Перейти к основному содержимому
I

dsh-image-search

iamjager416/dsh-image-search

Google Lens reverse image search: pass an image URL or a local file to get the Lens result page; with a SerpAPI key it also returns structured matches.

Установка

dsh plugin --profile web add github:iamjager416/dsh-image-search

README

用 Google Lens 反查图片的 DSH 插件。

能力

贴一张图、给一个图片地址,或者说一句「搜一下这张的出处」都可以。lens_search 接受公网图片 URL 或本地图片路径(聊天里贴的图会落到本地附件目录,直接可用):

  • 不配 key:把图片上传给 Google Lens,返回这次识图的结果页地址。
  • 配了 SerpAPI key:返回结构化匹配(标题、链接、来源站点、缩略图)。

配套两个工具:lens_status 查配置与剩余额度,lens_set_key 改 key(先验证再写入)。

安装

dsh plugin --profile web add dsh-image-search

插件页里有配置面板:注册/管理 key 的入口、key 输入框(保存前先验证)、结果语言、结果上限。

限制

  • 无 key 时只有结果页地址,没有结构化数据:Google 对无 JS 的请求只返回外壳页。
  • 单张图上限 20 MB;SerpAPI 直传上限 500 KB,更大的图用 sharp 压缩(没有 sharp 就退回结果页地址)。
  • 图片会上传给 Google 与 SerpAPI,敏感图片不要用。

许可

MIT

Похожие плагины