You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
您好,感谢提供这么好的作品,就是有一段代码报错
AttributeError: 'DdddOcr' object has no attribute 'set_ranges',怎么解决呢
image = open("c:\test.jpg", "rb").read()
ocr.set_ranges(0)
result = ocr.classification(image, probability=True)
s = ""
for i in result['probability']:
s += result['charsets'][i.index(max(i))]
print(s)
The text was updated successfully, but these errors were encountered:
abc123info
changed the title
AttributeError: 'DdddOcr' object has no attribute 'set_ranges'
报错:AttributeError: 'DdddOcr' object has no attribute 'set_ranges'
Aug 25, 2024
您好,感谢提供这么好的作品,就是有一段代码报错
AttributeError: 'DdddOcr' object has no attribute 'set_ranges',怎么解决呢
image = open("c:\test.jpg", "rb").read()
ocr.set_ranges(0)
result = ocr.classification(image, probability=True)
s = ""
for i in result['probability']:
s += result['charsets'][i.index(max(i))]
print(s)
The text was updated successfully, but these errors were encountered: