I'm working on an iOS app with OpenCV. I am trying to locate the position of the box around the person. I would like to start by getting the width of the box.
I'm converting the image to Greyscale and then using a Canny edge detector.
Link to image here http://s18.postimg.org/bbpczub2x/sampleshot.png
What would be the best way to get the coordinates of the extreme horizontal ends of the box (marked by the red in the picture)? Any pre-existing functions?