Overlay Image at a particular position on the background dynamically

Discuss digital image processing techniques and algorithms. We encourage its application to ImageMagick but you can discuss any software solutions here.
Locked
rajinnovation2020
Posts: 1
Joined: 2015-07-31T14:34:32-07:00
Authentication code: 1151

Overlay Image at a particular position on the background dynamically

Post by rajinnovation2020 »

Hi,
I am practicing some image processing concepts. During the course I came across imageMagick, powerful tool. I am working on a project to overlay image onto a background image at a specific position by detecting that position dynamically. This is similar to virtual tryon concept.

In the attached images Background image contains the human photo (mannequin photo is given here for example), overlay image contains a dress to be overlay on the human at appropriate portion. It should be dynamic to find the position where it has to be overlay. The final output should look like Fina

If we change the background photo and the overlay image it has to detect the appropriate location where it has to overlay.

I need help in how to achieve this task. I know only the basic concept, we need to find out the edges / boundary points of the human in the background then from there compute the appropriate position where the overlay image has to be placed. But I don't know how to do it exactly with the imagemagick. Can some one please help me how to achieve this.

Background Image https://www.dropbox.com/s/28zchv15rdpg6 ... d.jpg?dl=0
Overlay Image https://www.dropbox.com/s/wgouvk91y2dk7 ... y.jpg?dl=0
Final image https://www.dropbox.com/s/dutq61u6x5bmw ... e.jpg?dl=0

Thanks in advance.

Locked