我能够编译已经在tesseract样本中的英文版本,但无法添加其他语言,如swe.traineddata
。
我这样做
G8RecognitionOperation *operation = [[G8RecognitionOperation alloc] initWithLanguage:@"eng+swe"];
添加此项时会发出此错误,但英文处理正常。
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