Difference between revisions of "ROS CamShift"
From wikidb
(→For OpenCV 2) |
(→Build) |
||
Line 8: | Line 8: | ||
=== Build === | === Build === | ||
+ | |||
+ | Modifications to [[CMakeLists.txt v1]] | ||
+ | |||
+ | Add these to the <tt>Build</tt> section | ||
+ | |||
+ | # cam_shift_tracker | ||
+ | add_executable(cam_shift_tracker src/cam_shift_tracker.cpp) | ||
+ | target_link_libraries(cam_shift_tracker | ||
+ | ${catkin_LIBRARIES} | ||
+ | ${OpenCV_LIBRARIES} | ||
+ | ) | ||
In <tt>/home/eepp/catkin_ws</tt>. | In <tt>/home/eepp/catkin_ws</tt>. |
Revision as of 12:53, 8 November 2015
For OpenCV 2
For NUC with Ubuntu 14.04 and OpenCV 2.4.
Source
cam_shift_tracker.cpp v1 (In progress)
Build
Modifications to CMakeLists.txt v1
Add these to the Build section
# cam_shift_tracker add_executable(cam_shift_tracker src/cam_shift_tracker.cpp) target_link_libraries(cam_shift_tracker ${catkin_LIBRARIES} ${OpenCV_LIBRARIES} )
In /home/eepp/catkin_ws.
catkin_make
Execute
roscore rosrun usb_cam usb_cam_node ~video_device "/dev/video0" rosrun follow cam_shift_tracker
Notes
- Camshift Nodelet - investigate it
Old
Listings
Based on /usr/share/doc/opencv-doc/examples/c/camshiftdemo.c. See CamShift.