Questions tagged [opencv]
OpenCV (Open Source Computer Vision) is a cross-platform library of programming functions for real time computer vision.
460
questions
0
votes
2
answers
5
views
2D image point to 3D
Hey!
I have a setup with a bottom camera (simple webcam pointed at the ground). Along with the camera is an IMU, which means that I have the attitude of the camera. I also have an estimation of the ...
0
votes
1
answer
1
view
Use ros-indigo-opencv3 alongside 2.4.8?
Maybe it is brand new but I've recently noticed I can install ros-indigo-opencv3. It installs into the /opt/ros/indigo. There is also a opencv 2.4.8 already installed into the system outside of /opt ...
0
votes
1
answer
1
view
Has anyone used the KalmanFilter Opencv libraries inside ROS?
Hi,
I was wondering if someone has used the Kalman filter of Opencv inside ROS. The "normal" Opencv program works perfectly, but when i use it inside ros (The same code), it throws me the ...
0
votes
1
answer
1
view
opencv3.0 ros indigo
Hi,
I want to use opencv 3.0.0 in ros but I have troubles linking my code. When install ros-indigo-desktop-full there are dependencies to opencv2.4 for some pkg like cv_bridge or image_pipeline.
When ...
0
votes
1
answer
8
views
How can I add C++ optimization flags to ROS
I am running an opencv code on ROS and I really need to turn on the -O3 optimization flag.
Originally posted by adnansousi on ROS Answers with karma: 3 on 2015-07-15
Post score: 0
0
votes
1
answer
1
view
Kalman filter of opencv doesnt work in ROS
Hi, im trying to adapt a Kalman filter cpp code to a node cpp in ROS, but in the very beginning, the initialization goes wrong, more precisly, when i try to set the matrices, this is the relevant ...
0
votes
1
answer
2
views
At an impasse using OpenCV
Hi all,
I have this snippet of code that was copied from one of the tutorials on cv_bridge:
...
0
votes
2
answers
2
views
CvBridge conversion problem: Asus Xtion depth image to OpenCV
Hi,
I have a Asus Xtion sensor being driven by the Openni2_launch package. I subscribe to the "/camera/depth/image" topic and attempt to convert the ImageConstPtr& data type to an OpenCV ...
0
votes
1
answer
1
view
How to publish images quickly
ROS Indigo, Python, OpenCV (cv_bridge)
I wrote a node that does differential imaging on the webcam feed from a Kinect, but when I publish the final images and try to view them in image_view, the frame ...
0
votes
1
answer
2
views
Where do I save an Image for calling it with cv::imread
Hi!
I'm using opencv for reading an image that later I'm going to use as a reference in my ROS node, the problem is that my code isn't reading it.
I saved it in the src folder inside the package ...
0
votes
1
answer
2
views
Sensor msg to an opencv image
I am attempting to convert a sensor_msgs/Image msg into something displayable in opencv. I am using cv_bridge to accomplish this conversion. When I catkin build, I get:
...
0
votes
1
answer
1
view
What is the package in Indigo supports webcam in laptop?
Packages available for webcams are only for usb webcam and few for laptop cams but i cant find any Package for Indigo rather than Hydro, so what is the Indigo package supports laptop webcams
...
0
votes
2
answers
1
view
face_detector not detecting with RGBD camera
I recently installed the face_detector node and compilled it successfully. However, when I run the .launch given in the package I cannot detect any faces. I'm using Ubuntu 12.04, ROS Hydro, rosbuild ...
0
votes
1
answer
1
view
How do I use nonfree opencv Libraries in ROS
Hello,
I need to use a SURF feature detector in ros. I succeded when I used it outside ROS, but when i try to make a code for a node in ROS, the compiler shows me this:
...
0
votes
1
answer
8
views
cv_bridge: sensor_msgs::Image to sensor_msgs::ImageConstPtr
Hi there!
I've been having some real trouble with cv_bridge (and, I guess c++ in general); I'm really stumped as to how to solve this issue but I suspect it's down to a fundamental misunderstanding of ...
0
votes
1
answer
35
views
Working with cv_bridge and OpenCV correctly
Hello, I am struggling to use cv_bridge correctly. Do I have to convert the cv_bridge to a cv::Mat, before I can use OpenCV's functions?
My situation is the following: I wrote a simple OpenCV ...
0
votes
1
answer
1
view
movement detection in ROS
Hello Everyone, I tried a program on OpenCV about movement detection and It works pretty well since it's capturing 2 camera frames and making differentiation between them (from image to grayscale then ...
0
votes
1
answer
3
views
Optical flow with bottom camera on aerial vehicle
I'm interested in obtaining an estimation of the linear velocity of the vehicle using optical flow, so which are the best packages for optical flow using the bottom camera of an aerial vehicle? (the ...
0
votes
1
answer
3
views
Showing image with 2 channels
Hi,
I'm using goodFeaturesToTrack() method to locate corners from an image. However when I try to view the image, using imshow(), I get an error:
OpenCV Error: Bad number of channels (Source image ...
0
votes
1
answer
3
views
Unable to view camera output while using cv_bridge
I am using ROS Hydro in Ubuntu 12.04 which is installed in Virtualbox. I am trying to use cv_bridge to convert my ros images to opencv images captured by Logitech C270.
Being a novice to this field, I ...
0
votes
1
answer
1
view
Why prefer to use uvc_camera instead of cv::Capture when working with OpenCV?
Hi!
ROS offers its own way of grabbing data from cameras (for example: a normal web cam most of us have integrated in our notebooks) using the uvc_camera driver. Now I'm not asking why use this at all....
0
votes
1
answer
5
views
undefined reference to symbol 'cv::cvtColor(cv::_InputArray const&, cv::_OutputArray const&, int, int)'
I am trying to convert RGB image to Grayscale in ROS, but I am getting the error as below:
...
0
votes
1
answer
2
views
"ReInstalling" openCV after installing ROS
Hello everyone,
I installed ROS Indigo some time ago and in that time I was going to install Opencv separately to learn about this library, however a professor told me that once I install ROS, I also ...
0
votes
1
answer
1
view
OSX indigo opencv linking problem (cv_bridge, image_view)
I'm trying to install indigo from source on a mac recently upgraded to yosemite (10.10). I've had a few issued but managed to build everything up to cv_bridge. cv_bridge has a linking error with ...
0
votes
3
answers
8
views
Ros not responding to keypress to WaitKey
Hi guys..
I am using openCV to run some video processing, in which i switch 2 algorithm, and the switch is performed by the user, from a key press.. The only problem is though i am not able it make ...
0
votes
1
answer
1
view
Problem when compiling OpenCV with ROS
I am using rosbuild to build a project with OpenCV and ROS. The OpenCV version is 2.4.9, built and installed from source. The ROS version is indigo.
When I include the nonfree module of OpenCV (has ...
0
votes
1
answer
3
views
Why is my callback function not called
I trying to understand why my subscriber isn't outputting anything.. It seems like, it doesn't get called, but it doesn't make sense why it doesn't...
Anyone who could explain??
...
0
votes
1
answer
1
view
Configure Eclipse to work with ROS and OpenCV
How to configure Eclipse Luna to work with ROS and OpenCV?
I followed the ROS IDE instrucitions and I have succesfully set up an eclipse project. On the OpenCV website in step 8 they tell to click on ...
0
votes
1
answer
7
views
ros with Aruco Tags
Hello I'm trying to use this pkg: https://github.com/warp1337/ros_aruco
I installed OpenCV and Aruco 1.2.4.
I tested the Aruco and It works.
Problem:
In step 7 I get this error
...
0
votes
1
answer
2
views
Help in making node with OpenCV/cv_bridge and ROS Indigo
Greetings,
Running ROS Indigo, Ubuntu 14.04 and catkin_simple. My system has downloaded:
<...
0
votes
2
answers
3
views
OpenCV4Tegra and ROS - HowTo? (Jetson TK1)
Hi all,
I'm trying to "force" ROS to see OpenCV4Tegra as the official OpenCV installed on my Jetson TK1 so that cv_bridge does not install libopencv-dev from Ubuntu repo.
I tried to follow ...
0
votes
1
answer
1
view
[SOLVED] opencv my awesome library problem
I have a problem when trying to run catkin_make, i am trying to build a package that uses opencv, i have added in CMakeLists :
find_package(OpenCV)
include_directories(${OpenCV_INCLUDE_DIRS})
...
0
votes
1
answer
1
view
Stereo to point cloud
Hi, I have a calibrated stereo camera and I would like convert images to point cloud.
I'm going to do this with opencv, with the function reprojectImageTo3D, but I need the Q matrix.
I found another ...
0
votes
1
answer
1
view
Possibility of importing and using an external library in ROS nodes
Dear all,
I wonder whether it is possible to import & use other external libraries in my ROS's node. In my case, I need to know if I can use this OpenCV library in my kinect node or not. If it is,
...
0
votes
1
answer
1
view
pixel coordinates to 3D
Hi, I have a stereo camera mounted in a UR5 and I want to detect the holes of a work piece and move the tcp near the holes.
I detect the centre of the holes with opencv and but I don't know how to ...
0
votes
1
answer
1
view
0
votes
1
answer
1
view
Black image for an Image publisher with image_transport
I made a node retrieving an image with openCV explained on this ROS tutorial. The image is ten converted into a format suitable for ROS, using CV_bridge functions.
Problem is, there is no image that ...
0
votes
1
answer
3
views
AR DRONE 2.0 Tracking
Hello, I'm using ROS, OpenCV and Eclipse with an AR DRONE 2.0. My question is: How can my drone follow an object? I installed ardrone_autonomy and tried some tutorials to convert my video on image to ...
0
votes
1
answer
9
views
Is it possible to convert depth messages as Ipl image using CvBridge
I could convert RGB messages in to picture but says that the "[32FC1] is not a color format. but [mono8] is. The conversion does not make sense". Is there anything else i should be doing?
my ...
0
votes
2
answers
5
views
How to extract depth data from rosbags(contains depth and RGB data) as picture frames
I have a Bagfile containing Raw depth and RGB data. I converted the RGB data into images using the tutorial
http://wiki.ros.org/rosbag/Tutorials/Exporting%20image%20and%20video%20data
But when I used ...
0
votes
1
answer
1
view
ros indigo and opencv 3.0
Hi,
I just wanted to ask how to use ros indigo with opencv 3.0.
I installed ros-indigo-opencv3 and compiled the latest opencv from source.
When I create regular executables opencv 3.0 is used and it ...
0
votes
1
answer
5
views
How to use a sdk (non-ros header/lib/binaries) in ros package?
I am trying to use a camera sdk to write a camera stream publisher in ros.
It's not a uvc camera, so I cannot use usb_cam or other similar nodes to access the camera stream.
I've already had the ...
0
votes
2
answers
1
view
OpenCV2 under Groovy not compiling
Hi all,
I am trying to fix a compiling problem for a week now, without success. :(
Basically I am implementing this tutorial: http://wiki.ros.org/image_transport/Tutorials/PublishingImages
However, ...
0
votes
1
answer
3
views
Is there any point in using image_transport republish instead of using CompressedImage in Python?
I have a Python ROS node that subscribes to a topic of message type CompressedImage. So far it works fine (I play a rosbag with compressed images, run my node, and it correctly reads them [I checked ...
0
votes
1
answer
1
view
how to link opencv coorect under hydro
Hi,
we are trying to run the prerealese test on our package. Locall all builds fine, but the jenkins server gehts the following error:
...
0
votes
1
answer
1
view
streaming AR.Drone 2.0 images to OpenCV
I'm following these tutorials to stream images to OpenCV format from the /ardrone/image_raw topic.
http://wiki.ros.org/cv_bridge/Tutorials/...
0
votes
1
answer
1
view
DepthImage to Mat (OpenCV)
I am working with a 3d camera that provides a depthimage which is encoded in 32FC1
I need the image in OpenCV format (Mat) in order to access each component as a matrix
The problem is that when I have ...
0
votes
2
answers
2
views
how to publish and sub camera in opencv
i've finished my opencv program ! I want to publish to pc other (LAN)
What should I do
Here my program opencv
...
0
votes
1
answer
2
views
build errors when trying to use CVbridge with ROS Hydro
I'm trying to follow this tutorial - http://wiki.ros.org/cv_bridge/Tutorials/UsingCvBridgeToConvertBetweenROSImagesAndOpenCVImages
to stream images to a node.
After I added the node ...
0
votes
1
answer
4
views
vision_opencv can't be found by ROS but it's installed
I was trying to make a package using the catkin_create_pkg but later it gives me an error for a package I have.
My command was:
...