Skip to content

Commit

Permalink
change allowlist
Browse files Browse the repository at this point in the history
  • Loading branch information
vvng7190 committed Nov 22, 2023
1 parent c8a917e commit a9e49c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Signboard_detect&ocr&translate.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def translate_korean_to_english(text):
cropped_image = image[y1:y2, x1:x2]

# ocr for cropped img
result = reader.readtext(cropped_image, allowlist = '{소망동물병원')
result = reader.readtext(cropped_image, allowlist = '{소망동물병원삼화페인트서부슈퍼지영선한복맛깔명성안경콘택트공덕커피애월식당')
for detection in result:
coords = detection[0]
text = detection[1]
Expand Down

0 comments on commit a9e49c9

Please sign in to comment.