Re: Get coordinates Top, Left, size of some areas
Posted: 2018-10-17T16:13:27-07:00
Ok. For the question #2 an example below.fmw42 wrote: ↑2018-10-17T15:35:25-07:00 1) No, not directly. You would need to extract the area fields and filter on them
2) Again, you would have to filter on Y coordinate of the extracted bounding boxes, then crop the original image for those boxes, one crop command per box. I am not sure I know what you mean by merge? Do you mean include a crop of both areas and the region between them? Or crop each box separately and append them. Perhaps a diagram/picture would help.
All the above would have to be done from a script looping over each row of the output and filtering on the areas and matching the regions of the same or similar Y coordinate of the top left corner.
Let say I already have a way to identify the first 2 images by their coordinates (same Y value). I would like to generate an image with the Box1 and Box2 joined with lets say 15 pixel between them and 2 pixel border each box of color red or black. Something like this:
Box1Box2.png
And for Box3 and Box4 would be like this:
Box3Box4.png