Detecting images within another image
Posted: 2011-05-31T09:01:35-07:00
Hi all, I would like to know if there is any way to detect the coordinates of several images inside another (bigger) one.
The actual situation is this:
- I have several JPEG images, all of them with a WHITE background and several little images over that white background
- I would like to obtain the position of the squares which could cover each image. I mean, if one of those little images is a triangle, i would like to obtain the coordinates of the smaller square which could cover entirely that triangle.
- My intention is to locate each little image with something similar to this information: coordinate_X + coordinate_Y + width + height ...or maybe something like this... coordinateA + coordB + coordC + coordD <-- Both cases let me to define the squares I am looking for.
So, the result for 1 big image detection could be something like this:
Detected little image #1: (100,100,50,50) <-- The little image is placed in the position 100, 100 and its size is 50px X 50px
Detected little image #2: (500, 150, 75, 30)
Detected little image #3: (600, 300, 40, 100)
Do you know any way to get what I want to obtain?? Or maybe another new compatible idea !!! I'm open minded and I really don't know how to manage this
Thank yo very much!!
The actual situation is this:
- I have several JPEG images, all of them with a WHITE background and several little images over that white background
- I would like to obtain the position of the squares which could cover each image. I mean, if one of those little images is a triangle, i would like to obtain the coordinates of the smaller square which could cover entirely that triangle.
- My intention is to locate each little image with something similar to this information: coordinate_X + coordinate_Y + width + height ...or maybe something like this... coordinateA + coordB + coordC + coordD <-- Both cases let me to define the squares I am looking for.
So, the result for 1 big image detection could be something like this:
Detected little image #1: (100,100,50,50) <-- The little image is placed in the position 100, 100 and its size is 50px X 50px
Detected little image #2: (500, 150, 75, 30)
Detected little image #3: (600, 300, 40, 100)
Do you know any way to get what I want to obtain?? Or maybe another new compatible idea !!! I'm open minded and I really don't know how to manage this
Thank yo very much!!