본문 바로가기

Programming/Python

파이썬으로 이미지에서 글자 추출하기[pytesseract Libarary]

반응형
SMALL

글자 추출하려고 했던 이미지

import pytesseract
from PIL import Image

pytesseract.pytesseract.tesseract_cmd = r'C:\Program Files\Tesseract-OCR\tesseract.exe'

print(pytesseract.image_to_string(Image.open('IMG_3365.jpg'), lang='kor+eng'))

결과: 

 

A: What's that smell?
It's smells like something is burning.
SA MAWAI? SI7t EHS YAW LEE GI, (mh N

B: Oh, | just started burning
(| just lit up)

some incense.

Does it smell ba a



Process finished with exit code 0

 

제대로 읽지 못함.

한국애덜 블로깅 해놓은거 중 제대로 되는게 없네. 정말 하나하나 내가 해 보아야 하나봐.

 

 

 

반응형
LIST

'Programming > Python' 카테고리의 다른 글

Python을 통해 PDF에서 텍스트를 일괄 추출하는 방법  (0) 2023.11.07
FastAPI  (0) 2023.10.18
Python Lambda Function  (0) 2023.10.01
파이썬 가상환경(venv) 종류 및 사용법 정리  (0) 2023.10.01
Django  (0) 2023.10.01