AI
[AI] EazyOCR 사용해보기
dud9902
2025. 1. 9. 22:50
Eazyocr이란?
Python 기반의 광학 문자 인식(OCR) 라이브러리로, 이미지 내 텍스트를 인식·추출하고 다양한 언어를 지원한다. 심층 학습 알고리즘을 활용해 높은 정확도와 빠른 속도를 제공하며, 간단한 API 덕분에 사용이 용이하다. 이러한 특징으로 인해 이미지 및 문서 스캔, 차량 번호판 인식, 스트리밍 비디오에서의 문자 인식 등 여러 애플리케이션에 폭넓게 적용할 수 있다.
eazyocr 테스트 과정
1. 설치하기
pip install easyocr
2. 예제 코드를 가져온다.
https://github.com/JaidedAI/EasyOCR
GitHub - JaidedAI/EasyOCR: Ready-to-use OCR with 80+ supported languages and all popular writing scripts including Latin, Chines
Ready-to-use OCR with 80+ supported languages and all popular writing scripts including Latin, Chinese, Arabic, Devanagari, Cyrillic and etc. - JaidedAI/EasyOCR
github.com
# STEP 1 : import modules
import easyocr
# STEP 2 : create inference object
reader = easyocr.Reader(['ko','en']) # this needs to run only once to load the model into memory
# STEP 3 :load data
data = 'korean.png'
# STEP 4 : inference
result = reader.readtext(data, detail=0)
print(result)
# STEP 5: post processing
3. 테스트 결과