Page 1 of 1

Find the position of all the small images inside an image

Posted: 2018-04-16T05:19:46-07:00
by aamin
Hey everyone, I need to find the position(top,left), height and width of the images inside an Image. The idea is to convert a image to docx format.
I am reading the image and recognizing the text from it using tesseract OCR.
tesseract doc.jpg hocrDoc -l eng hocr
The hocr format gives me the position of the text,
Now I need to get the images and position it accordingly.

Re: Find the position of all the small images inside an image

Posted: 2018-04-16T10:14:49-07:00
by fmw42
Please, always provide your IM version and platform when asking questions, since syntax may differ. Also provide your exact command line and if possible your images.

See the top-most post in this forum "IMPORTANT: Please Read This FIRST Before Posting" at http://www.imagemagick.org/discourse-se ... f=1&t=9620

For novices, see

http://www.imagemagick.org/discourse-se ... f=1&t=9620
http://www.imagemagick.org/script/comma ... essing.php
http://www.imagemagick.org/Usage/reference.html
http://www.imagemagick.org/Usage/
https://github.com/ImageMagick/usage-markdown