Detection of hand from the webcam to move a jpeg

I would like to create a simple code that allows me to detect the position of my hand through the pc webcam. The aim is to move a simple image with the movement of the hand, matching the coordinates x, y of the image to the hand position.