Find the position of all the small images inside an image

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
aamin
Posts: 1
Joined: 2018-04-15T09:49:00-07:00
Authentication code: 1152

Find the position of all the small images inside an image

Post 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.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

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

Post 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
Post Reply