Skip to content

Commit

Permalink
fix install
Browse files Browse the repository at this point in the history
  • Loading branch information
alicewish committed Nov 7, 2023
1 parent 2d3dd15 commit d79191c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyqt5_momotranslator.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import string
import sys
import webbrowser
from collections import Counter, OrderedDict
from collections import Counter, OrderedDict, defaultdict
from colorsys import hsv_to_rgb, rgb_to_hsv
from concurrent.futures import ThreadPoolExecutor, as_completed
from copy import deepcopy
Expand Down Expand Up @@ -5373,7 +5373,7 @@ def get_textblocks(letter_in_contour, media_type, f=None):
px_area = px_pts.shape[0]
if letter_area_min <= px_area <= letter_area_max:
letter_cnts.append(letter_cnt)
# logger.debug(f"{len(raw_letter_cnts)=}, {len(letter_contours)=}, {len(letter_cnts)=}")
logger.debug(f"{len(raw_letter_cnts)=}, {len(letter_contours)=}, {len(letter_cnts)=}")

# ================单词================
textwords = []
Expand Down
4 changes: 4 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ applescript
astor
baidu_aip
bs4
chardet
deep-translator
easyocr
jieba
Expand All @@ -10,9 +11,12 @@ loguru
mammoth
matplotlib
natsort
nltk
numpy
paddleocr
paddlepaddle
prettytable
psd_tools
psutil
pypandoc
pyperclip
Expand Down

0 comments on commit d79191c

Please sign in to comment.