![]() |
Laptop Based Imaging?
Anyone get it working with c++. It seems like the pages on this topic in the cookbook are yet to be completed.
It shouldn't be that hard, should it? Send image to laptop. Program does stuff with image. Program sends back information needed. |
Re: Laptop Based Imaging?
It's even easier than that. You don't have to do an explicit "send image to laptop" step. The Dashboard already gets images directly from the camera.
|
Re: Laptop Based Imaging?
Documentation somewhere?
|
Re: Laptop Based Imaging?
Quote:
So you guys are processing the image on the laptop and sending rectangle coords back to the robot? What kind of frame rate do you get that way? We can only do 3-5 Hz doing all the processing on the robot. TIA |
Re: Laptop Based Imaging?
We are getting 21-27 fps after processing, evolutionary selection, and sockets (7 threads, phew!). C# on a modest laptop
|
Re: Laptop Based Imaging?
We currently have our image processing set up this way. As Alan said, the Driver Station is already getting the image, so we use that one. Then we send the relevant numbers (x position of top target, distance) to the robot over one of the available UDP ports as described in 2.2.9. UDP 1130 to be specific.
The camera has an http server hosting the image, and the driver station and the cRio both request an image from this server. Or perhaps it's just the cRio, and then the cRio forwards it to the DS; I haven't looked at the code in a while. |
Re: Laptop Based Imaging?
Quote:
Quote:
|
Re: Laptop Based Imaging?
Quote:
Thanks for the info - multi-casting sends data from one net node to multiple nodes simultaneously. It sounds like the camera is not doing that, it just sends the image to whomever connects, one at a time. http://en.wikipedia.org/wiki/Multicasting |
Re: Laptop Based Imaging?
Quote:
|
Re: Laptop Based Imaging?
Quote:
|
Re: Laptop Based Imaging?
Quote:
HTH |
Re: Laptop Based Imaging?
Quote:
|
Re: Laptop Based Imaging?
We are trying to use a hybrid of LabVIEW on the Data Dashboard and programming the cRIO with C++. Can anyone give some sample code (or point us in the right direction) to open and read from a UDP port in C?
Thanks, Shahrukh |
| All times are GMT -5. The time now is 12:30. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi