Skip to content

Commit

Permalink
fix: pillow库
Browse files Browse the repository at this point in the history
  • Loading branch information
yuhldr committed Dec 8, 2024
1 parent 5fe49b6 commit f860630
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lfy/api/server/ocr/easyocr.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ def main(self, *args, **kwargs):
return super().main(*args, fun_main=_fun_ocr, py_libs=["easyocr"])

def check_conf(self, conf_str, fun_check=_fun_check, py_libs=None):
return super().check_conf(conf_str, fun_check, ["easyocr", "pillow"])
return super().check_conf(conf_str, fun_check, ["easyocr", "PIL"])
2 changes: 1 addition & 1 deletion lfy/api/server/ocr/pytesseract.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ def main(self, *args, **kwargs):
return super().main(*args, fun_main=_fun_ocr, py_libs=["pytesseract"])

def check_conf(self, conf_str, fun_check=_fun_check, py_libs=None):
return super().check_conf(conf_str, fun_check, ["pytesseract", "pillow"])
return super().check_conf(conf_str, fun_check, ["pytesseract", "PIL"])

0 comments on commit f860630

Please sign in to comment.