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

enter image description here

binary image

i've tried selecting roi of hand find width, holes in image won't let me find width

hand roi (rectangles)

i've tried chaging them line too, couldn't myself

hand roi (lines)

if there color image, have been lot easier segment hand , coin. anyway here's output , method:

enter image description here enter image description here

  1. segment out parts need find comparison of
  2. 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)
  3. 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

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -