introlab / find-object

Find-Object project
http://introlab.github.io/find-object/
BSD 3-Clause "New" or "Revised" License
448 stars 189 forks source link

Object Detection #69

Closed shrijan00 closed 6 years ago

shrijan00 commented 6 years ago

Iḿ using a kinect v1 to detect object and get it co-ordinates. So, after installing the required package when i run ¨rosrun find_object_2d find_object_2d image:=/camera/rgb/image_raw¨ i get the following error. Anybody please help screenshot from 2018-10-09 17-43-39

matlabbe commented 6 years ago

Add a new case in this file for the encoding you are using: https://github.com/introlab/find-object/blob/784691a0701466d7d881af64687b0fcfdcf07a02/src/ros/CameraROS.cpp#L118-L124 Use the right conversion enum in this list: https://docs.opencv.org/3.1.0/d7/d1b/group__imgproc__misc.html

matlabbe commented 6 years ago

EDIT: Update to latest version to have the commit above, you may not need to change the code afterwards.

shrijan00 commented 6 years ago

I rectified it and its working.