Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hand segmentation question

Hi,

I have a problem with hand segmentation. Namely, I try to segment my hand from the background, then I want to build convex hull of my hand but I can not do it because not all points are fully connected this is presented in this image: https://i.imgur.com/SHoNKsD.png .

What I am doing: I convert BGR2YUV, then I take V channel and perform background subtraction then I want to build convex hull. Do you know some good way to connected those point together to extract the hand for building the convex hull.

Thanks in advance for help.

click to hide/show revision 2
None

updated 2017-10-07 12:01:14 -0600

berak gravatar image

Hand segmentation question

Hi,

I have a problem with hand segmentation. Namely, I try to segment my hand from the background, then I want to build convex hull of my hand but I can not do it because not all points are fully connected this is presented in this image: https://i.imgur.com/SHoNKsD.png .

What I am doing: I convert BGR2YUV, then I take V channel and perform background subtraction then I want to build convex hull. Do you know some good way to connected those point together to extract the hand for building the convex hull.

Thanks in advance for help. help.

click to hide/show revision 3
None

updated 2017-10-07 12:02:33 -0600

berak gravatar image

Hand segmentation question

Hi,

I have a problem with hand segmentation. Namely, I try to segment my hand from the background, then I want to build convex hull of my hand but I can not do it because not all points are fully connected this is presented in this image: .https://i.imgur.com/SHoNKsD.png.

What I am doing: I convert BGR2YUV, then I take V channel and perform background subtraction then I want to build convex hull. Do you know some good way to connected those point together to extract the hand for building the convex hull.

Thanks in advance for help.

Hand segmentation question

Hi,

I have a problem with hand segmentation. Namely, I try to segment my hand from the background, then I want to build convex hull of my hand but I can not do it because not all points are fully connected this is presented in this image: https://i.imgur.com/SHoNKsD.png.https://i.imgur.com/I6Ty78m.png.

What I am doing: I convert BGR2YUV, then I take V channel and perform background subtraction then I want to build convex hull. However, in order to build convex hull, the contour of the hand is necessary. Do you know some good way to connected connect those point points together to extract the hand region for building the convex hull.

Thanks in advance for help.

Hand segmentation question

Hi,

I have a problem with hand segmentation. Namely, I try to segment my hand from the background, then I want to build convex hull of my hand but I can not do it because not all points are fully connected this is presented in this image: https://i.imgur.com/I6Ty78m.png.

What I am doing: I convert BGR2YUV, then I take V channel and perform background subtraction then I want to build convex hull. However, in order to build convex hull, the contour of the hand is necessary. Do you know some good way to connect those points together to extract the hand region for building the convex hull.

Thanks in advance for help.

Hand segmentation questionquestion contour extraction

Hi,

I have a problem with hand segmentation. Namely, I try to segment my hand from the background, then I want to build convex hull of my hand but I can not do it because not all points are fully connected this is presented in this image: https://i.imgur.com/I6Ty78m.png.

What I am doing: I convert BGR2YUV, then I take V channel and perform background subtraction then I want to build convex hull. However, in order to build convex hull, the contour of the hand is necessary. Do you know some good way to connect those points together to extract the hand region for building the convex hull.

while(true)
{
    Mat HSV1;
    Mat th;

    Mat YUV1;
    Mat fin_image;

    readFrame(frame);

    cvtColor(frame, YUV1, CV_BGR2YUV);

    Mat YUV[3];   

    split(YUV1,YUV);

    imshow("Y",YUV[0]);
    imshow("U",YUV[1]);
    imshow("V",YUV[2]);
    applyBackgroundMOGSubtraction(YUV[2]);
    imshow("foreground",foreground);
    findAndDrawContours(foreground);

    medianBlur(foreground, foreground, 3);
    doMorphologicalOperations(foreground);
    equalizeHist( foreground, foreground );


    imshow("foreground",foreground);        


    if(char(waitKey(30)) == 'q')
    {
        break;
    }
}

Thanks in advance for help.

click to hide/show revision 7
None

updated 2017-10-08 02:29:49 -0600

berak gravatar image

Hand segmentation question contour extraction

Hi,

I have a problem with hand segmentation. Namely, I try to segment my hand from the background, then I want to build convex hull of my hand but I can not do it because not all points are fully connected this is presented in this image: https://i.imgur.com/I6Ty78m.png. .

What I am doing: I convert BGR2YUV, then I take V channel and perform background subtraction then I want to build convex hull. However, in order to build convex hull, the contour of the hand is necessary. Do you know some good way to connect those points together to extract the hand region for building the convex hull.

while(true)
{
    Mat HSV1;
    Mat th;

    Mat YUV1;
    Mat fin_image;

    readFrame(frame);

    cvtColor(frame, YUV1, CV_BGR2YUV);

    Mat YUV[3];   

    split(YUV1,YUV);

    imshow("Y",YUV[0]);
    imshow("U",YUV[1]);
    imshow("V",YUV[2]);
    applyBackgroundMOGSubtraction(YUV[2]);
    imshow("foreground",foreground);
    findAndDrawContours(foreground);

    medianBlur(foreground, foreground, 3);
    doMorphologicalOperations(foreground);
    equalizeHist( foreground, foreground );


    imshow("foreground",foreground);        


    if(char(waitKey(30)) == 'q')
    {
        break;
    }
}

Thanks in advance for help.