티스토리 뷰

 

pytesseract를 사용하여, 이미지의 text 출력

code:

from PIL import Image
import pytesseract
pytesseract.pytesseract.tesseract_cmd = 'C:/Program Files/Tesseract-OCR/tesseract.exe'

print(pytesseract.image_to_string(Image.open('./test.png')))

 

output:

I watch three climb before it’s my
turn.[lit’s a tough one.|ilithe guy
before me tries twice.[ll He falls
tuice.[lAfter the last one, he
cones down,lie’s finished for the
gay. Te's my turn.

“good luck!” to me.)
pit of a problem,
outcrop on this one.
halfway up the wall.

   
  
 

It's not a

 

원본 이미지

 

Wow...

댓글