Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>For a problem like this, there could be multiple solutions to accomplish what you want to do. You could use OpenCV to help you implement the functions yourself. Some suggestions on how to handle this type of problem:</p> <ol> <li>Segment the blue markers from the image. Possibly using a threshold on the blue channel to get the those points. They should have a pretty high value in the blue channel.</li> <li>Since the markers appear to more than one pixel, you could treat the nearby neighbors pixels that are blue as a cluster and find the centroid of each cluster(marker). </li> <li>From the centroid on the nose tip, computer the distance to each cluster centroid on the face.</li> </ol> <p>It also depends on a few things. It looks like the shirt in this image has quite a bit of blue, so it would probably get segmented in with the markers. To remove this you could use OpenCV's face detection to find the face then only worry about the found face region. </p> <p>Also it depends on if you know where the nose marker is. If you can manually select it (can use OpenCV to do this), you can set a seed on the nose marker, then do the previous steps. </p> <p>If you can't manually select it, based on this image it appears the nose marker is close to the center of the image (if you are using the nose tip). You may be able to find the centroid closest to the image center and use this. Doing this would be dependent on the rest of the images that you would be testing on though. Also, this automatic method of determining the nose marker, may not work as there are other markers that are pretty close. You may pick one of those up instead of the actual nose tip.</p> <p>As I said this is a pretty subjective problem, there could be many solutions to solve it. These are just a couple of suggestions to maybe help point you in the right direction.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload