Centroid of object or What is frame in video ? [closed]

asked 2015-01-14 06:46:06 -0500

Vivek gravatar image

Hello everyone ! I have a little query. I am working on video in which i applied segmentation. So i have Segmentated video and hence have each capture image frame (im.read()) . Now i need to calculate the centroid of the object, I don't know how to do that ?? Can you help me in the same ?? I think frame is nothing but the array of RGB values. If so, how to access that values ? or Any other idea how to do that in python. Thanks

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by FooBar
close date 2015-01-14 07:53:25.772374



Using moments. But this is linked to this one

thdrksdfthmn gravatar imagethdrksdfthmn ( 2015-01-14 06:59:51 -0500 )edit

Hey thdrksdfthmn I have only one object in my video (i.e. human person) so how can i get centroid by using frame of each capture ??

Vivek gravatar imageVivek ( 2015-01-14 07:14:43 -0500 )edit

Please edit your original question and don't open a new one with the same question: Old question is here: http://answers.opencv.org/question/52...

FooBar gravatar imageFooBar ( 2015-01-14 07:53:20 -0500 )edit

please edit your question (old one) and add some steps you have done until now, like : object detection, object segmentation... and then you will better understand the thing you want to do

thdrksdfthmn gravatar imagethdrksdfthmn ( 2015-01-14 08:01:21 -0500 )edit

Okkk !! Sorry for inconvenience

Vivek gravatar imageVivek ( 2015-01-14 08:08:11 -0500 )edit