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

Unable to understand the repo #52

Open
oolabib opened this issue Oct 6, 2024 · 3 comments
Open

Unable to understand the repo #52

oolabib opened this issue Oct 6, 2024 · 3 comments

Comments

@oolabib
Copy link

oolabib commented Oct 6, 2024

I was able to generate images for many pages, but I'm unable to understand how I can find/calculate the boundaries for each Aya and there doesn't seem to be a way to tell how to do this.

Can someone help?

@ahmedre
Copy link
Contributor

ahmedre commented Oct 6, 2024

the script writes the updated values into the glyph_page_line_bbox in the mysql database. If you're using the dockerized version, this is stored as a volume, so as long as the mysql container is running, you can connect to it and export the data however you wish.

@oolabib
Copy link
Author

oolabib commented Oct 12, 2024

Thanks for reply, still need a bit more help.

Attached is the table for the generated image of page 2, which is only 5 verses.

Question is, how do I calculated the bounding box for each verse?
image

@ahmedre
Copy link
Contributor

ahmedre commented Oct 30, 2024

You have the bounding box of every glyph and then in another table, you have the line each glyph belongs to - combining these should help in sha' Allah

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