VNRecognizeTextRequest doesn't recognize special characters of Dansk language like Æ, æ, Ø, ø, Å ,å ,ß
It replace these words with Æ to AE, Ø to 0,O, Å to A and so on.
Below is my code for OCR Implementation.
private func configureOCR() {
ocrRequest.recognitionLevel = .accurate
ocrRequest.recognitionLanguages = ["da-DK", "nl-NL", "de-DE", "en-US","en-AU"]
ocrRequest.usesLanguageCorrection = true
ocrRequest = VNRecognizeTextRequest { (request, error) in
guard let observations = request.results as? [VNRecognizedTextObservation] else { return }
var ocrText = ""
for observation in observations {
guard let topCandidate = observation.topCandidates(1).first else { return }
ocrText += topCandidate.string + "\n"
}
DispatchQueue.main.async {
self.ocrTextView.text = ocrText
self.scanButton.isEnabled = true
}
}
}
Does vision or vision kit support Dansk language?
I don't think so. If you look at the documentation