![]() |
Accessing .mjpg stream from camera to process
Our team is attempting to use a dlink camera (don't know the exact model at the moment) and it has support in the form of 10.16.84.20/camera.mjpg. I've looked at the axis camera code and switching that to a standard mjpeg stream would require a bit of deconstruction, which is doable but is a waste of my time if there is another alternative.
Is there a built in way to retrieve images from any given mjpg stream? |
Re: Accessing .mjpg stream from camera to process
bump. Haven't had time to write a mjpeg adapter
|
Re: Accessing .mjpg stream from camera to process
I do not think you can do what your looking for. I think first really shafted the java programmers this season! I digress, I think you might have to use a usb webcam for that. In the beginning i was playing around with the vision and stuff, but it seems like you will need a co-processor anyways. I did a solid week of research on this topic before I got a semi workable vision prototype. I only use OpenCV(for image processing) and the network tables to communicate to the robot. You can find the github link here!
|
Quote:
What do you think is worse this year compared to last year? |
Re: Accessing .mjpg stream from camera to process
Quote:
Thanks for your JavaCV link but the only thing I'm looking for is to display the image on the driver station. I ended up following this code to get some byte arrays out of a mjpeg. |
Re: Accessing .mjpg stream from camera to process
Quote:
|
Re: Accessing .mjpg stream from camera to process
Quote:
|
Re: Accessing .mjpg stream from camera to process
Quote:
|
Re: Accessing .mjpg stream from camera to process
Quote:
|
Re: Accessing .mjpg stream from camera to process
You can use OpenCV VideoCapture object. You could also edit the smart dashboard camera view.
|
Quote:
It works for me. There's even a built in example for it. |
Re: Accessing .mjpg stream from camera to process
Quote:
|
Re: Accessing .mjpg stream from camera to process
Quote:
|
Re: Accessing .mjpg stream from camera to process
We were finally able to get it running, but not with the AxisCamera. The robotRio sees the IP camera as cam0, so I was able to use it just like the USB cameras. Thank for the help.
|
| All times are GMT -5. The time now is 11:12. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi