Giter Site home page Giter Site logo

Comments (9)

kitUIN avatar kitUIN commented on August 17, 2024

1.tracemoe.search()确实只需要图片地址 至于你说的动漫标题都是None,可以将报错与源码展示下吗?
2.文档问题,将会在之后修改,感谢提醒
3.ascii2d编码的warning对实际输出不影响,如果觉得输出难看,可以在ascii2d.py的36行更改为
image

from picimagesearch.

banned2054 avatar banned2054 commented on August 17, 2024

1.源码是这个样子的,没有出现报错,
image
我是想将搜图添加到qq机器人里,然后所出来的动画标题都是None的,各种语言版本的标题都是None,就像这样
image
3.如果只是警告我可能不会发这条issue,我现在用ascii2d搜索twitter的图片能得到结果,但是没有作者和url地址,用了像这样的测试方法
image
输出的结果是什么都没有
image
机器人输出的结果也没有作者和url地址,但有缩略图
image

from picimagesearch.

kitUIN avatar kitUIN commented on August 17, 2024

问题1 已经解决
pip3 install PicImageSearch==2.2.6升级或者使用pip3 install PicImageSearch --upgrade
问题2 能否提供图片让我重现错误

from picimagesearch.

kitUIN avatar kitUIN commented on August 17, 2024

我这边测试都没问题,能否提供能导致错误的图片地址?

from picimagesearch.

banned2054 avatar banned2054 commented on August 17, 2024

抱歉,下午外出了,刚刚才回来,这是源码
image
这个是搜索的图片
T{`O90K BTI{{5N P5BZ778

from picimagesearch.

banned2054 avatar banned2054 commented on August 17, 2024

encoding = None那个参数是后面加的,加这个和没加没有区别

from picimagesearch.

kitUIN avatar kitUIN commented on August 17, 2024

raw[0]所谓的有可能为空不是指为None
而是指内部的url 作者 标题为空
image
看来是我文档写的不明白,
不建议对raw[0]判空,即使是空也存在:<NormAscii2D(title='', authors=, mark=)>
建议对res.raw[0].url进行判空
根据你写的应该这么判断:

if result.url == "":
	result = res.raw[1]

PS:判断None 我个人建议用if res is None
PPS: 建议贴代码直接复制粘贴,并用markdown格式中的代码块展示,截图展示代码一般只在OI圈里用吧( )

from picimagesearch.

banned2054 avatar banned2054 commented on August 17, 2024

现在没有问题了,除了搜索时间很慢,可能是我2c2g的服务器性能太弱了。还有就是搜索结果不准,不过我自己去网站搜也只能搜到一样的结果。
总之目前没有问题了,感谢~

from picimagesearch.

kitUIN avatar kitUIN commented on August 17, 2024

其实搜索慢很大程度上是因为网络问题,或者可以改用其他搜索比如saucenao(不过这个要代理),或者iqdb

from picimagesearch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.