Log in

View Full Version : Sample field images from (Axis) robot camera?


mhaeberli
07-03-2014, 19:43
Can anyone offer us sample images of the vertical (and hot) targets from a robot camera, preferably with illumination? (Green LED ring would be best for comparison).
Thanks,
Martin

yash101
07-03-2014, 20:11
i have a repo of them :D.

Enjoy ;) (http://devstuff.no-ip.biz:890/cdn/FIRST/2014/Vision/samples/)

Apeace
08-03-2014, 11:43
Hey sorry for hi-jacking this thread, but how do you use these images?

I know we use these lines of code to get the image.

ColorImage image;
image = new RGBImage("/image.jpg");

But I have two questions.

1. How do I get the image on the CRio? Do I put it in my Netbeans project?

2. What is the directory I'm looking for? (line 2 of my code snippet)

irvingc
08-03-2014, 14:40
You can transfer them to the cRIO via FTP. Open a command prompt and run: "ftp 10.XX.YY.2" (replace with your cRIO's IP address). Blank username and password should give you read/write access.

The root directory should just be the root directory of your cRIO (i.e. image = new RGBImage("/image/file.jpg"); will look for file.jpg in the image/ folder in the root directory of the cRIO).

mhaeberli
09-03-2014, 01:18
thx!

mhaeberli
09-03-2014, 01:19
In our case, we are using them to train / confirm our computer vision code attempt (which in fact runs on the drive laptop).

Joe Ross
11-03-2014, 12:10
There are also images installed with the vision examples for each programming language. See http://wpilib.screenstepslive.com/s/3120/m/8731/l/91395-c-java-code, as well as more images available here: http://firstforge.wpi.edu/sf/frs/do/listReleases/projects.wpilib/frs.2014_vision_images

DjScribbles
11-03-2014, 13:46
Keep in mind that these images are great for testing your code, but you will need to verify your threshold/filter parameters against images taken with your camera and lighting configuration. There are a lot of settings you can change on the camera, and generally you need to adjust your camera settings for good results.

In C++ (and Java) you can write an image taken from your camera to a file by calling the ImageBase::Write routine on your image, the same is probably true in labview.