tracking centroid for multiple object

asked 2014-09-17 08:01:57 -0500

Andrew1108 gravatar image

Hello, I got problem to tracking centroid from multiple objects.. I did background subtraction, find contour, and put rectangle also find centroid from opencv.. I already read in here and try using

track = Tracking(simplecvimage, bb)

where is image is frame after apply background subtraction in opencv and convert to simplecv image using

simplecvimg= Image(fgmask, cv2image=True)

and bb is (x,y,w,h) from opencv

(x,y,w,h) = cv2.boundingRect(contour)

Showing problem

TypeError: __init__() should return None, not 'Tracking'

What should I do?

edit retag flag offensive close merge delete