gali8 / Tesseract-OCR-iOS

Tesseract OCR iOS is a Framework for iOS7+, compiled also for armv7s and arm64.
http://www.nexor.it
MIT License
4.22k stars 949 forks source link

Arabic is not working #374

Closed scubess closed 5 years ago

scubess commented 6 years ago

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 ?

ahbou commented 6 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 the cubic files from here

AND set the engine mode before init

tesseract = G8Tesseract(language: "ara", engineMode: .cubeOnly)

scubess commented 6 years ago

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

ahbou commented 6 years ago

I'm using the latest Tesseract-OCR-iOS v4.0 with those files and it works. Make sure you init with engineMode: .cubeOnly

scubess commented 6 years ago

Hi @ahbou , Just let you know it works and thanks for your help !

AhmedElsayedTaha commented 3 years ago

@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

AhmedElsayedTaha commented 3 years ago

@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

Abdullah-Alashi-LP commented 6 months ago

Hey @scubess and @ahbou

I'm getting the same error, I tried the following:

  1. version [5.0.1] with ara.traineddata and without cube data

  2. version [5.0.1] with [ara.traineddata](https://github.com/tesseract-ocr/tessdata/blob/main/ara.traineddata) and included cube data from there

  3. version [4.0.0] with [ara.traineddata and without cube data

  4. 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

WeiWenTaoApple commented 6 months ago

这是一封自动回复邮件。已经收到您的来信,我会尽快回复。