Open Wolf0605 opened 2 years ago
import pytesseract
import pytesseract as tess
pytesseract.pytesseract.tesseract_cmd = r'C:\Tesseract\tesseract.exe'
from PIL import Image
This is library you need
img = Image.open('Resources/eng_anime.PNG')
text = pytesseract.image_to_string(img)
print(text)
And code
I want it
THE
SIMSPSONS
DID IT
But output was terrible I tried another one
THE VAST WAISTBAND
SALE
It was pretty good. but , there are some noize
I also tried difficult one Output
Out put
Out put
세 미
식 젼 빵
차 우 스 쾌
오 늘 의 생 어 드
스 놀
오 늘 의 파 스 따
스 테 이크 코 스
29.000 원
식 전 빵
요 늘 의 생 어 드
오 능 의 수프
채 군 튼 십 10000).
Out put
【 そ ば ・ ら ど ん )
・⑤③0a
お に ぎ 0 く ⑦ ヶ ー
攣麟り薯ヲ ト #0⑨⑧ 椎 ⑰0⑧
⑤00a +⑦⑤0
Z膣天ゎが}輸“
午騎‥峨~午積 ⑦B③0 京 司 庵
は 楊 〒粒"時~午債凛時〉 _ 誉 567 q374'
Process finished with exit code 0
Out put
IE 隆 山 【eE
る x く + し セ で
< レト 談 談 E ① に し
aukuo R へ ③
ン ート キ く り a
n く m、 ) 啓
で ト ヘ ②⑨
ト み ク 賽僻靡
“ 倉
〉 MuAn せ ④
ぁ + キ ト ふ A
s セ り も ト さ L
② な Ke 子 叶 ④Sd
か p へ n を 可 滝 % き る
訣 団 と nn い e
人 囲 P へ B
aa 0 一 ベ
ー ヘ
Out put
| 珪 ⑧ エ リ ム プ ロ リ ク
国 を \ 晃 : フ ラ ン ス を ま Ne カ ッ
& る th う カ コ テ ン ル g
①emdor 電 思 で も
Out put
轟毛和牛ネギ塩ヵルど } 鼻毛和牛上ネギ壇カルピ
_ ⑧⑦0n 相 ①.①⑥0
Becuase It's not working if it's not sheet
So i'm going to try different ocr ( pytorch ) or use api
How to Install OCR in tesseract