需要首先确保ocr的资源文件中,包含了需要识别的语言种类。
设置OCR语言的接口为:OCREngine::SetLanguages( const wchar_t * languages),
可选语言种类如下:
Chinese-Simplified, Chinese-Traditional, Japanese, Korean, Basque, Bulgarian, Catalan, Croatian, Czech, Danish, Dutch, English , Estonian, Faeroese, Finnish, French, Galician, German, Greek, Hebrew, Hungarian, Icelandic, Italian, Latvian(Lettish), Lithuanian, Macedonian, Maltese, Norwegian, Polish, Portuguese, Romanian, Russian, Serbian, Slovak, Slovenian, Spanish, Swedish, Thai, Turkish, Ukrainian.
如果需要同时识别多种语言,参数用逗号隔开即可。
例如需要同时识别中英文:SetLanguages(L“Chinese-Simplified,English”);