How is it possible to get the camera image to OpenCV running on a computer on the same network?
I was thinking of a separate socket connection to the robot and have cRIO transmit the AxisCamera data over the network to a server on the computer, and that computer does whatever to it.
How about the WPI Smart Dashboard stuff? The docs don’t look quite done but you can find the installer on the Smart Dashboard project on FIRSTForge and some info in the WPILib Cookbook on the WPILib project. The data then goes over the SmartDashboard connection to the robot.
There is atleast 3 different topics started about that question. Do a search and youll find a ton of information.
How is it possible to get the camera image to OpenCV running on a computer on the same network?
Obtain the MJPEG stream directly from the camera.
I was thinking of a separate socket connection to the robot and have cRIO transmit the AxisCamera data over the network to a server on the computer, and that computer does whatever to it.
sockets. There are rules on the port numbers, however.
706 has a semi working system and are going to be posting a full length tutorial on how to do the obtainment of an MJPEG, filter bad colors, find a rectangle, take those points and fit them to a mathematical model (distance and angle, ray style), rectify that model, apply it in an algorithm, create a socket server and client, and send it back.
go to the axis camera’s (first set it up following the instructions… can’t find a link…) webpage. For us its 10.7.6.19 (10.xx.yy.zz) where xx yy is the team number, excluding zeros, and zz is the ip you set the camera to. Then go to the setup page, login, and then go to the html/webpage tab. Enter in the parameters you want and it will give you the url for the specific mjpeg stream.
Our current one is: http://10.7.6.19/axis-cgi/mjpg/video.cgi?resolution=640x480