ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

How to use cv_camera with IP cameras?

asked 2018-04-16 15:56:37 -0500

Coppermind gravatar image

updated 2018-04-25 11:55:57 -0500

Hello, I am trying to use cv_camera with an IP camera. I am not sure how to initialize cv_camera such that it can read a cv_camera.

My understanding is that this would be done through setting the 'device_id' parameter. However, when I tried to set it to an http stream, it activated my laptop camera instead.

I did more experimenting and discovered that device_id only worked if it was set to an integer. I thought that the device_id parameter was passed to an instance of Videocapture cap(device_id) but this does not seem to be the case. I tried calling the address of an attached webcam directly '/dev/video1' but that did not work. I experimented with different cv paths as specified here:

http://funvision.blogspot.ca/2017/06/...

but I haven't been able to get anything besides integer inputs to device_id to work.

Any assistance or insight would be appreciated. Thank you for your time.

EDIT: There is another parameter called device_path that is documented on the github page.

edit retag flag offensive close merge delete

Comments

1

Please post your resolution as an answer and then accept your own answer.

We rarely close questions here on ROS Answers when they are answered.

gvdhoorn gravatar image gvdhoorn  ( 2018-04-17 01:27:31 -0500 )edit

Thanks for letting me know, but unfortunately I do not have sufficient karma to accept my own answer.

Coppermind gravatar image Coppermind  ( 2018-04-25 11:53:27 -0500 )edit

I've just accepted it for you.

gvdhoorn gravatar image gvdhoorn  ( 2018-04-25 13:06:10 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-04-25 11:59:36 -0500

Coppermind gravatar image

There is another parameter called device_path that is documented on the github page. This allows you to specify a cv_stream.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2018-04-16 15:56:37 -0500

Seen: 400 times

Last updated: Apr 25 '18