Skip to main content

PicImageSearch

release issues stars forks
聚合识图引擎
整合图片识别api,用于以图搜源(以图搜图,以图搜番),支持SauceNAO,tracemoe,iqdb,ascii2d,google(谷歌识图),baidu(百度识图),E-Hantai,ExHantai识图

文档

支持

简要说明

详细见文档 或者demo
同步请使用from PicImageSearch.sync import ...导入
异步请使用from PicImageSearch import Network,...导入
推荐使用异步

简单示例

from loguru import logger
from PicImageSearch.sync import SauceNAO

saucenao = SauceNAO()
res = saucenao.search('https://pixiv.cat/77702503-1.jpg')
# res = saucenao.search(r'C:/kitUIN/img/tinted-good.jpg') #搜索本地图片
logger.info(res.origin)  # 原始数据
logger.info(res.raw)  #
logger.info(res.raw[0])  #
logger.info(res.long_remaining)  # 99
logger.info(res.short_remaining)  # 3
logger.info(res.raw[0].thumbnail)  # 缩略图
logger.info(res.raw[0].similarity)  # 相似度
logger.info(res.raw[0].title)  # 标题
logger.info(res.raw[0].author)  # 作者
logger.info(res.raw[0].url)
from PicImageSearch import SauceNAO, Network

async with Network() as client:  # 可以设置代理 Network(proxies='http://127.0.0.1:10809')
    saucenao = SauceNAO(client=client)  # client不能少
    res = await saucenao.search('https://pixiv.cat/77702503-1.jpg')
    # 下面操作与同步方法一致

安装

  • 此包需要 Python 3.6 或更新版本。
  • pip install PicImageSearch
  • 或者
  • pip install PicImageSearch -i https://pypi.tuna.tsinghua.edu.cn/simple

Metadata

Release files for PicImageSearch 3.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for PicImageSearch 3.3.1
File Size Uploaded Provenance Actions
PicImageSearch-3.3.1.tar.gz 13.5 kB Without provenance Details for PicImageSearch-3.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for PicImageSearch 3.3.1
File Interpreter ABI Platform Actions
PicImageSearch-3.3.1-py3-none-any.whl Python 3 none any Details for PicImageSearch-3.3.1-py3-none-any.whl

Total release size: 33.6 kB

Release files / PicImageSearch-3.3.1.tar.gz

Download URL PicImageSearch-3.3.1.tar.gz
Size 13.5 kB
Tags Source
SHA-256 checksum
How to use checksums
9a559c0e0a41a43196ba444b3d9564d762cd1a24bd41105efa01d5f43194a2c2
BLAKE2b-256 checksum
How to use checksums
e232a4f7c2b0b6f19acfaa131aa1e46caa84597c05e550224b297d463445f487
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.12

Release files / PicImageSearch-3.3.1-py3-none-any.whl

Download URL PicImageSearch-3.3.1-py3-none-any.whl
Size 20.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
662750eb3e38c6d4a3d74a41a47bcaec8470b00ab9ba63f780a506e3c1252883
BLAKE2b-256 checksum
How to use checksums
ee6701aff95c0f98cbec500673e746bc8ad4aa70aa4cf660c9c369866fba3f65
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.12

Security for PicImageSearch 3.3.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

3.3.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page