简体   繁体   English

向Tesseract ios SDK添加新语言

[英]Adding a new language to Tesseract ios SDK

I am able to compile the English version which is already in sample for tesseract but not able to add other language like swe.traineddata . 我能够编译已经用于tesseract的示例的英语版本,但是无法添加其他语言,例如swe.traineddata

I'm doing like this 我就是这样

G8RecognitionOperation *operation = [[G8RecognitionOperation alloc] initWithLanguage:@"eng+swe"];

When adding this its giving this error but working fine with English. 添加此功能时,会出现此错误,但可以使用英语正常工作。

Cube ERROR (CubeRecoContext::Load): unable to read cube language model params from /private/var/mobile/Containers/Bundle/Application/D93B654A-1E46-4A34-9A83-95C6FC903085/*.app/tessdata/swe.cube.lm
Cube ERROR (CubeRecoContext::Create): unable to init CubeRecoContext object
init_cube_objects(true, &tessdata_manager):Error:Assert failed:in file tessedit.cpp, line 203

The fact it does not work has to do with the engine mode. 它不起作用的事实与引擎模式有关。 If you use the CubeOnly or TesseractCubeCombined, you need 'cube' files. 如果使用CubeOnly或TesseractCubeCombined,则需要“多维数据集”文件。 Engine mode TesseractOnly works fine. 引擎模式TesseractOnly可以正常工作。

在此处输入图片说明

you are missing some of files,I think so.Also check on Create Folder References.that helped me once. 我想是的,您缺少一些文件。还要检查“创建文件夹引用”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM