"update model files path"
This commit is contained in:
parent
aaa6f8d658
commit
2986449433
|
|
@ -78,4 +78,4 @@ def read_image_from_url(image_url):
|
|||
|
||||
# 외부에서 함수를 사용하는 예
|
||||
# 이미지 URL과 원하는 변환 유형('thumbnail' 또는 'translate')을 인자로 넘깁니다.
|
||||
result = image_trans('http://example.com/image.jpg', 'thumbnail')
|
||||
# result = image_trans('http://example.com/image.jpg', 'thumbnail')
|
||||
|
|
|
|||
|
|
@ -24,8 +24,6 @@ ocr = PaddleOCR(use_angle_cls=True, lang="ch",
|
|||
rec_model_dir=rec_model_path,
|
||||
cls_model_dir=cls_model_path) # 분류 모델 경로 지정
|
||||
|
||||
# PaddleOCR 객체 생성
|
||||
ocr = PaddleOCR(use_angle_cls=True, lang='ch') # 'ch'는 중국어, 'en'은 영어
|
||||
|
||||
def detect_text(image):
|
||||
# 이미지에서 텍스트 감지 및 인식
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue