-
Notifications
You must be signed in to change notification settings - Fork 9.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Arabic training data has room for improvement #2047
Comments
@mustafa0x Can you upload the amiri dataset ? |
It seems like I messed up and overwrote the files in that repository in a
way that lost the old files.
If someone has a copy of the traineddata, please attach to this thread and
I will upload again. thanks.
…On Thu, 22 Nov 2018, 11:34 Amit D. ***@***.*** wrote:
tesseract-ocr/tessdata_best#11
<tesseract-ocr/tessdata_best#11>
https://github.com/Shreeshrii/tessdata_shreetest/tree/72294b8476b9
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2047 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AE2_o8UVQeCKZ0ZyN_K9AjLweOxwQyMbks5uxtH9gaJpZM4YWcRb>
.
|
@Shreeshrii: @amitdo was able to very-impressively pull it up. |
Thnaks @amitdo. I have now re-uploaded (there might have been a git way to
do so, but it was easier for me to download and then upload).
Glad that the finetuned traineddata files are helpful for people.
…On Thu, Nov 22, 2018 at 2:14 PM mustafa0x ***@***.***> wrote:
@Shreeshrii <https://github.com/Shreeshrii>: @amitdo
<https://github.com/amitdo> was able to very-impressively pull it up.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2047 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AE2_o_eJNmJSvSms91Xp7ckwWKTA-edKks5uxvezgaJpZM4YWcRb>
.
--
____________________________________________________________
भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com
|
Your dataset doesn't work with number and arabic text combined together |
Please send a small sample Arabic text with proper usage of digits, text
and other punctuation and I can try to fine-tune with it.
…On Fri, 23 Nov 2018, 11:51 andreahmed ***@***.*** wrote:
Your dataset doesn't work with number and arabic text combined together
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2047 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AE2_o80fd27GjZls3uuZUVB6XiXKVKBmks5uyCeegaJpZM4YWcRb>
.
|
@amitdo do you have a dataset with arabic numbers and arabic text that @Shreeshrii can use ? |
@Shreeshrii This is nearly 8k characters, 100 of which are Arabic numerals. |
No, I don't have such a dataset. |
@Shreeshrii do you have any success ? I think it's very complicated, arabic text with numbers doesn't work in that engine |
@Shreeshrii any progress? |
@AndreAhmed It's the weekend, it's the holidays, and this is open source work. Please wait until Shreeshrii has some free time to spend on this. |
@AndreAhmed @Shreeshrii I happen to have a large dataset of Arabic text, with Arabic numbers and text. I'm having issues fine tuning the original _best model. I will attach the dataset below (composed of ~4000 lines). If you can attempt to fine tune using them, that would be great. The generated .box files might be an issue. |
@Shreeshrii @jaddoughman I think there is a major problem with arabic text with numbers including, I'm not sure it's a fine tuning issue, or recognize problem from the OCR itself. |
That is my suspicion also. However we can not know for sure until @theraysmith responds. From what I understand, while Arabic is written as RTL, Arabic numbers are written as LTR. The training works by treating all text regard less of language direction as LTR. There is supposed to be a higher level function which changes the language direction. The above is pure speculation on my part. It is also possible that the problem exists only in github tesseract and not in Google's version. It will help if someone can create a 2-3 lines minimal test case and test with all varieties of traineddata, with --oem 1 and --oem 0, and also with 3.05 version with cube to see whether problem exists in all cases. Then it will be easier for @jbredien to check whether same test case works in Google's tesseract. |
I did test with a lot of trained data for simple 3 lines text, it never work at all, there is no recognition of the numbers at all @Shreeshrii |
I debugged it, it can detect numbers at all, that's one problem. Another problem is the combination of arabic letters with numbers, the engine ignores the numbers and it doesn't detect it. Because at first it doesn't recognize the numbers. @Shreeshrii @theraysmith |
I'm trying to generate dataset for Arabic text with Arabic-Indian Numbers with JessEditor, but I guess jTessBoxEditor does not support Arabic-Indian Numbers which is (۰ - ۱ - ۲ - ۳ - ٤ - ٥ - ٦ - ٧ - ۸ - ۹) with Unicode (U+0660 -> U+0669) is there any dataset support Arabic text with Arabic- Indian numbers ? can you add Arabic Indian numbers to JessEditor? |
I have tried ara.traineddata, ara-amiri-3000.traineddata and Arabic.traineddata on tesseract v4.0.0.20181030 Windows platform. My data has Arabic plus English and English Numericals. All the traineddata giving incorrect results and if I OCred 5 images ( ID cards )of same format, I am getting the results in different formats, Example 4 images giving Name of person on line 9 but 5th one giving on line 10, how do we control that |
Please see tesseract-ocr/tesseract#2263 (comment) |
I just installed Tesseteract 4.0.0 (see: Environment), OCR'ed a sample document using
ara
andarab-script
, and found that theara-amiri-3000
training data (created by @Shreeshrii) continues to be superior, which is consistent to my more rigorous testing in the beta 1 days (see: tesseract-ocr/tessdata_best#11 (comment)).I also noticed that the Arabic comma is still not recognized (it is by
ara-amiri-3000
), and nor are the Indic numerals (most of the time). I created an issue to add these to the Arabic langdata, but haven't yet received a response (tesseract-ocr/langdata#131).Related: It's possible that using the Scheherazade font for training will give better results, as it's very similar to Lotus Light — the font used by most printed Arabic books.
Thanks!
Environment
The text was updated successfully, but these errors were encountered: