소개.
https://www.jaided.ai/easyocr/
Jaided AI: EasyOCR demo
EasyOCR is a python module for extracting text from image. It is a general OCR that can read both natural scene text and dense text in document. We are currently supporting 80+ languages and expanding. Supported Languages LanguageCode Name Abazaabq Adyghea
www.jaided.ai
소스.
github : 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
간단한 예제 학습.
python3 -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
pip install easyocr
pip install git+https://github.com/JaidedAI/EasyOCR.git
import easyocr
reader = easyocr.Reader(['ko','en'], gpu=False) # this needs to run only once to load the model into memory
result = reader.readtext('./2.jpeg')
# result = reader.readtext('https://www.somewebsite.com/chinese_tra.jpg')
# 전체 결과 출력
print(result)
# 글자만 출력
print("\n=== 인식된 텍스트 ===")
for box, text, prob in result:
print(text)
pip install requests
import requests
import easyocr
import numpy as np
from PIL import Image
from io import BytesIO
url = "URL ex) https://.... "
response = requests.get(url)
response.raise_for_status()
img = Image.open(BytesIO(response.content))
reader = easyocr.Reader(['ko','en']) # 원하는 언어
result = reader.readtext(np.array(img))
print(result)