From 8bf21fc4437b964a7a8cc04fcd424e6b24b0030d Mon Sep 17 00:00:00 2001 From: Seaborn Lee Date: Sun, 22 May 2022 23:35:23 +0800 Subject: [PATCH] Support Chinese --- ocr/main.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ocr/main.swift b/ocr/main.swift index ef635f6..45e69eb 100644 --- a/ocr/main.swift +++ b/ocr/main.swift @@ -72,7 +72,7 @@ func detectText(fileName : URL) -> [CIFeature]? { let inputURL = URL(fileURLWithPath: "/tmp/ocr.png") -var recognitionLanguages = ["en-US"] +var recognitionLanguages = ["zh-Hans", "en-US"] do {