Hello OpenCV + ROS users,
I will submit a ticket for this but I'm wondering if anyone has a quick fix in the meantime. I was using the camshift.py OpenCV Python sample successfully under Cturtle. Now, using Diamondback (Debian packages), I get the following error after selecting a rectangle to track:
Traceback (most recent call last):
File "camshift.py", line 115, in <module>
demo.run()
File "camshift.py", line 79, in run
(iters, (area, value, rect), track_box) = cv.CamShift(backproject, self.track_window, crit)
TypeError: <unknown> is not a numpy array
Does anyone know how I can modify this line to make it work? I am using the latest camshift.py https://code.ros.org/svn/opencv/trunk/opencv/samples/python/">from SVN since the samples don't seem to be included in the ROS vision_opencv stack.
Thanks! patrick
See http://answers.ros.org/question/255/are-opencv-samples-in-diamondback-debs for how to get the samples in the OpenCV package. Can you try that and see if the problem persists? There might be some sort of API mismatch between camshift.py in trunk vs. OpenCV included in Diamondback if the samples included in vision_opencv work for you.
Asked: Apr 14 '11
Seen: 354 times
Last updated: Apr 14 '11
ROS Answers is licensed under Creative Commons Attribution 3.0 Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.