I have graduate project about calculate software with OpenCv. Firstly take a grey photo with webcam then detect the edge of bottle. The head and buttom side edge detect. Then calculate a value the bottle height with pixel. Getting reference form head and button, it take a and b value pixel then get diameters. Edge Detection method is not matter.
This picture can be more comprehensible for problem http://speedy.sh/vRgTy/w.JPG
I must get all values for different bottle and can with a OpenCv solution. I How can I solve this problem? It would be very good if anybody give a hint to carry out this project.