0

I am looking for a method to determine the distance between the eyes and top of the shoulder of a person in an image. At first I tried to use haar cascade in opencv to detect the eye position, which worked fine. However, I couldn't find any way to detect the shoulders. I think that it will be a lot of work to come up with my own training sets for my own shoulder detection model, so I am wondering if there is any easier way to do this.

example

user3408657
  • 179
  • 1
  • 3
  • 13
  • Do you have any sample images? I ask because if you want a simple solution, there must be a way to constrain the problem. For eg: images of ppl against a light background. If you have a natural background, the problem is going to be harder – Shawn Mathew Jun 28 '17 at 01:30
  • @ShawnMathew There isn't really any consistent background for what I am trying to use it for. I hope there is still some way to do it with a natural background. – user3408657 Jun 28 '17 at 01:34
  • you did not specify any accuracy... what's the variance of that distance? I have my doubts that this even makes sense unless you have a special imaging setup. where is the shoulder anyway? – Piglet Jun 28 '17 at 07:23

1 Answers1

2

If you can afford enough computing power, OpenPose is a good solution. A simpler approach is described here, I have tried it and it works ok.

You can get a rough estimate of the shoulder width given the eye location using the following rules (used by artists): Width of the head is twice the distance between the eyes. Eyes are located halfway between the top of the head and the tip of the chin This diagram can help you to estimate the distance between the chin tip and the shoulders.

Totoro
  • 3,398
  • 1
  • 24
  • 39