From aae112529b4af75b02a1c7ead71ee41da96cb3db Mon Sep 17 00:00:00 2001 From: AuroraWright Date: Sat, 21 Oct 2023 03:19:05 +0200 Subject: [PATCH] Enable language correction on apple vision (seems to help with vertical text) --- manga_ocr/ocr.py | 1 + 1 file changed, 1 insertion(+) diff --git a/manga_ocr/ocr.py b/manga_ocr/ocr.py index f3410ff..597705b 100644 --- a/manga_ocr/ocr.py +++ b/manga_ocr/ocr.py @@ -143,6 +143,7 @@ class AppleVision: req = Vision.VNRecognizeTextRequest.alloc().init() req.setRecognitionLevel_(0) + req.setUsesLanguageCorrection_(True) req.setRecognitionLanguages_(['ja','en']) handler = Vision.VNImageRequestHandler.alloc().initWithData_options_(