![]() |
How to access Axis camera feed with OpenCV
Our team had some trouble accessing our IP camera's stream in OpenCV, so here's what we did in case other teams are having similar issues.
We are using OpenCV-2.4.8 and JavaCV-0.7. Code:
IPCameraFrameGrabber grabber = new IPCameraFrameGrabber("http://YOUR_CAMERA'S_IP_ADDRESS/axis-cgi/mjpg/video.cgi?resolution=480x360&fps=INSERT_FPS_HERE");Code:
http://10.26.1.11/axis-cgi/mjpg/video.cgi?resolution=480x360&fps=100 |
Re: How to access Axis camera feed with OpenCV
My team has also been working with OpenCV (using the official 2.4.7 Java bindings), and we have been using this URL successfully:
Code:
http://10.xx.yy.11/mjpg/video.mjpgAlso, I'm curious as to your decision to use JavaCV now that OpenCV includes Java bindings. Would you say there is an advantage to using JavaCV over the official bindings, or does JavaCV supplement them? |
Re: How to access Axis camera feed with OpenCV
Quote:
Quote:
|
Re: How to access Axis camera feed with OpenCV
I'm trying to coax my daughter's team in the direction of OpenCV and wondered if you could share any more pointers or code samples.
Thanks, Chris Quote:
|
Re: How to access Axis camera feed with OpenCV
Quote:
- The OpenCV documentation and tutorials are well written and a great reference. The first class you will want to learn about is the Mat class (short for Matrix), which is what images are stored as. Then look into the Core, Imgproc, and Highgui modules. - If you use the Java bindings of OpenCV, then you will want to refer to the Javadocs - This thread contains links to many valuable resources regarding OpenCV and vision processing. - The ScreenSteps Live documentation has a section that explains the algorithm that the sample vision code uses. Although it uses NI Vision as opposed to OpenCV, many of the principles still apply. - DaisyCV, Team 341's 2012 vision code, is an excellent example of an FRC vision system built with OpenCV. Note that it is a SmartDashboard extension and uses WPIJavaCV, which differs a bit from modern OpenCV. We'll likely be posting our code after the end of the season on GitHub (shameless self plug :rolleyes:), but if you'd like to see a sample of the code I have now to help you get started, send me a PM and I'll see what I can do. |
Re: How to access Axis camera feed with OpenCV
Quote:
You may find it easier to begin with OpenCV-Python or SimpleCV, which have great documentation. Here's a StackOverflow post with a bunch of other good resources. |
| All times are GMT -5. The time now is 10:40. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi