Ask Your Question

Centroid of human person

asked 2015-01-11 03:20:08 -0500

Vivek gravatar image

Hey guys !! I m new to opencv and i m working on a project in which i have a video of a human person which is doing some activity (there is only one person in the video) . I need to calculate the centeroid of the body. I apply the segmentation and i have no idea what to do after that !! Please give me some idea how to do that if you can ! Thanks !

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2015-01-11 06:39:40 -0500

You can use cv::moments to get the center of your region:

edit flag offensive delete link more

answered 2015-01-17 07:27:15 -0500

Vivek gravatar image

updated 2015-01-17 07:27:58 -0500

I found the article excatly what i looking for

Here is the link

edit flag offensive delete link more


There should be a better spread of the python samples. However keep in mind that the samples require you to run the 3.0 version of OpenCV.

StevenPuttemans gravatar imageStevenPuttemans ( 2015-01-17 07:59:24 -0500 )edit

Question Tools



Asked: 2015-01-11 03:20:08 -0500

Seen: 592 times

Last updated: Jan 17 '15