Ask Your Question

Revision history [back]

Object measurement from photo

I need to measure object's parameters (like round radius, dismentions). I have a photo of object. I can control lightning of photo, background and other things, that depends on camera and object positioning.

I've tried to use cv2.HoughCircles for circle detection, and it worked pretty well.I need edge coordinates in format like x1,y1;x2,y2. For edge detection i've tried cv2.goodFeaturesToTrack, but it didnt work pretty well. Results were inaccurate, and some edges weren't detect at all.

If anyone have ideas what methods/solutions i can use for more accurate detection of edges coordinates , please let me know.

Thanks in advance.