简单的文字识别
This commit is contained in:
parent
81bf3735ae
commit
bfad6eac09
@ -301,6 +301,6 @@ class PinPicture(tk.Frame):
|
||||
self.reader = easyocr.Reader(['ch_sim', 'en'])
|
||||
result = self.reader.readtext(np.array(self.image), detail=0)
|
||||
text = ''
|
||||
for str in result:
|
||||
text += str
|
||||
for words in result:
|
||||
text += words
|
||||
print (text)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user