quran / ayah-detection

scripts to detect ayah markers from quran images
95 stars 41 forks source link

Need help to generate Db from Images #6

Open basitmashwani opened 4 years ago

basitmashwani commented 4 years ago

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

ahmedre commented 4 years ago

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

basitmashwani commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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

basitmashwani commented 4 years ago

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 commented 4 years ago

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:

i used this template: t2

and got this result: res