Skip to content
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

Need help to generate Db from Images #6

Open
basitmashwani opened this issue May 16, 2020 · 6 comments
Open

Need help to generate Db from Images #6

basitmashwani opened this issue May 16, 2020 · 6 comments

Comments

@basitmashwani
Copy link

ٱلسَّلَامُ عَلَيْكُمْ‎
Brother, I need help to run this script to generate Db for Quran Images. Unable to run the script

@ahmedre
Copy link
Contributor

ahmedre commented May 16, 2020

وعليكم السلام ورحمة الله وبركاته
what is the problem you are running into?

@basitmashwani
Copy link
Author

I have Quran images I download the project When I run ayah.py and pass image and ayah marker image it just generates an image and didn't detect the ayah

@ahmedre
Copy link
Contributor

ahmedre commented May 17, 2020

make sure the ayah marker image you are using is one from the pages you are using and make sure you are running ayah.py against pages with a white colored background.

@ahmedre
Copy link
Contributor

ahmedre commented Jun 1, 2020

closing for now, please let me know if you still are having issues.

@ahmedre ahmedre closed this as completed Jun 1, 2020
@basitmashwani
Copy link
Author

Thanks, @ahmedre for your help but unfortunately I didn't succeed yet. Basically I believe I am lacking in compiling the code confused in parameters. Basically, I have a page and image marker but when I execute the script it does nothing and when I dig down the code it didn't detect any ayah on
marker
Page-003

the page.

Ayah and image are attaching here. Your help and guide will be appreciatable Jazakallah khyr.

@ahmedre ahmedre reopened this Jun 20, 2020
@ahmedre
Copy link
Contributor

ahmedre commented Jun 20, 2020

i tried this out with your image and got decent results, matching all but 1 ayah - the 7th ayah - because the marker is very difficult to get due to touching other text and what not. what i did is:

  • run make_white.py on your image - the ayah detection works best on images with white backgrounds (so usually, i do all my operations on images with white backgrounds since whatever values i get there will apply perfectly to transparent images as well).
  • updated your template with a different one

i used this template:
t2

and got this result:
res

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants