opencv - Determine width of an object(hand) from binary image with reference image -
i want find width of human hand stucked @ holes in hand.
i've picture of hand , found binary of it. hand has cirlce on radius , center known(reference object). want find widht of hand has patches(holes) on , hinders finding best width of hand.
here far
hand image
i've tried selecting roi of hand find width, holes in image won't let me find width
i've tried chaging them line too, couldn't myself
if there color image, have been lot easier segment hand , coin. anyway here's output , method:
- segment out parts need find comparison of
- find contours , draw bounding rectangles or best fit circle. can use length, width or radius measures find compare actual sizes. in case 1 53 , other 172 (i guess)
- divide lengths , multiply known dimension value.
note: don't rely on method if need accurate values as, there might lot of factors parallax etc considered while measuring.
in case using width better approximation
for segmenting had high boost filter image, erode , dilate multiple times rid of background extent , threshold. coin, sharpen, dilate , threshold. shiny corners helped things out. how segment image depends on make use of in it. if want automate process similar images, should see better methods



Comments
Post a Comment