diff --git a/main.swift b/main.swift index 15edd85..d942790 100644 --- a/main.swift +++ b/main.swift @@ -49,6 +49,7 @@ func detectText(fileName : URL) -> [CIFeature]? { // Create a new request to recognize text. let request = VNRecognizeTextRequest(completionHandler: recognizeTextHandler) + request.recognitionLanguages = ["zh", "en-US"] do { // Perform the text-recognition request.