Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   OpenCV with Axis Camera (http://www.chiefdelphi.com/forums/showthread.php?t=100217)

shuhao 14-01-2012 19:02

OpenCV with Axis Camera
 
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.

RufflesRidge 14-01-2012 19:04

Re: OpenCV with Axis Camera
 
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.

~Cory~ 14-01-2012 19:28

Re: OpenCV with Axis Camera
 
There is atleast 3 different topics started about that question. Do a search and youll find a ton of information.

Quote:

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.

Quote:

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.

shuhao 14-01-2012 19:37

Re: OpenCV with Axis Camera
 
Quote:

Originally Posted by ~Cory~ (Post 1105609)
Obtain the MJPEG stream directly from the camera.

This is what I plan to do.. Not sure how.. though

~Cory~ 14-01-2012 19:49

Re: OpenCV with Axis Camera
 
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...lution=640x480

cgmv123 14-01-2012 20:43

Re: OpenCV with Axis Camera
 
Quote:

Originally Posted by ~Cory~ (Post 1105629)
where xx yy is the team number, excluding zeros

You can leave the zeros in. The software is smart enough to ignore them. For us, 13.06 automatically resolves to 13.6.


All times are GMT -5. The time now is 10:43.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi