OpenROV webcam capture imaged

software

#1

Hey Guys, I am trying to capture images from the webcam of the openrov to do some image processing on it. At the moment I am trying to use matlab to capture the image via the url http://192.168.254.1:8090/?action=stream, but it is not working as I don’t know the file is generated by the webcam. Can someone help :slight_smile:


#2

That will give you the mjpeg video stream. If you want a single image you will need to use http://192.168.254.1:8090/?action=snapshot


#3

Cool thanks for that! will try that out and let you know how it goes :slight_smile:


#4

Hey badevguru

I understand that it gives a mjpeg, but the issue arises in the extension of the url to capture the image frame, for example some ip webcams have http://ip-address:port/image.jpg or /mjpg.cgi. Is there anything like that for the webcam on the ROV?


#5

We are using mjpeg-streamer to send the video across, and that is the API that is supported by that package. Does MathLab need the URL to end with an extension for it to work? Such as:

http://192.168.254.1:8090/?action=snapshot1&fileext=.jpg

#6

Hey badevgurur

The first url you gave me worked! A little slow (because MATLAB is generally slow) thanks for the assist.


#7

This topic was automatically closed after 24 hours. New replies are no longer allowed.