Closed scubess closed 5 years ago
I just went through this too. Arabic only works in Cubic mode so you need to include the trained_data from here
AND set the engine mode before init
tesseract = G8Tesseract(language: "ara", engineMode: .cubeOnly)
Hi @ahbou ,
i tried it now. I am getting another error,
tessdata_manager.SeekToStart(TESSDATA_INTTEMP):Error:Assert failed:in file ../../classify/adaptmatch.cpp, line 511
And also, i noticed the datafiles and cube files you refered is for v3.04 and seems it won't work with 3.03-rc1 (lower version in iOS) ? Any help please
I'm using the latest Tesseract-OCR-iOS v4.0 with those files and it works. Make sure you init with engineMode: .cubeOnly
Hi @ahbou , Just let you know it works and thanks for your help !
@ahbou Please I want to use Arabic so I can't find Cubes data and how to use engineMode: .cubeOnly in my code ?in Android
@ahbou I can't download cubes file from here , and I can't find them :( :( https://github.com/tesseract-ocr/tessdata/tree/3.04.00
Hey @scubess and @ahbou
I'm getting the same error, I tried the following:
version [5.0.1] with ara.traineddata and without cube data
version [5.0.1] with [ara.traineddata](https://github.com/tesseract-ocr/tessdata/blob/main/ara.traineddata) and included cube data from there
version [4.0.0] with [ara.traineddata and without cube data
version [4.0.0] with [ara.traineddata and included cube data from there
I made sure to set engineMode: .cubeOnly
your help is much appreciated
这是一封自动回复邮件。已经收到您的来信,我会尽快回复。
Hi, I tried to make it work in ara.traineddata without cube. But it show me error,
actual_tessdata_num_entries_ <= TESSDATA_NUM_ENTRIES:Error:Assert failed:in file ../../ccutil/tessdatamanager.cpp, line 53
But it is working fine with eng.traineddata. Can someone help me please ?