diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index f4bfcdb..0000000 Binary files a/.DS_Store and /dev/null differ diff --git a/manga_ocr/ocr.py b/manga_ocr/ocr.py index 5552afc..f3410ff 100644 --- a/manga_ocr/ocr.py +++ b/manga_ocr/ocr.py @@ -151,11 +151,11 @@ class AppleVision: success = handler.performRequests_error_([req], None) res = '' - if success: + if success[0]: for result in req.results(): res += result.text() + ' ' + req.dealloc() - req.dealloc() handler.dealloc() x = post_process(res) return x