How to get pixel location of detected bounding box? #1773
-
🚀 The featureHow can I get the array of detected Bounding box location from the image or pdf? Motivation, pitchTo get the array of detected Bounding box location from the image or pdf? AlternativesNo response Additional contextNo response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi @DhiviJR 👋 You can export the results take a look here: https://mindee.github.io/doctr/using_doctr/using_models.html#what-should-i-do-with-the-output The geometry values are absolute (0 -1) so you need to multiply the x-coordinates with the doc/image width and the y-coordinates with the image height to get the relative coords :) Best, |
Beta Was this translation helpful? Give feedback.
-
If you need only the detection part without recognition check out our notebooks :) --> https://mindee.github.io/doctr/notebooks.html (standalone predictors) |
Beta Was this translation helpful? Give feedback.
Hi @DhiviJR 👋
You can export the results take a look here: https://mindee.github.io/doctr/using_doctr/using_models.html#what-should-i-do-with-the-output
The geometry values are absolute (0 -1) so you need to multiply the x-coordinates with the doc/image width and the y-coordinates with the image height to get the relative coords :)
Best,
Felix