Log in

View Full Version : Programming Camera


Team1605
04-02-2014, 13:45
I am programming the camera for the first time. I would only like to program the camera for a image for assistance for the the driver. Help needed....

notmattlythgoe
04-02-2014, 13:48
I am programming the camera for the first time. I would only like to program the camera for a image for assistance for the the driver. Help needed....

The only thing you'll need to do is run the camera configuration tool provided wit h the frc utilities. That will set the IP address of your camera and it will appear on the dashboard.

Team1605
04-02-2014, 19:43
okay thank you for the help...

Chadfrom308
05-02-2014, 08:58
We are having it where our camera tells us if we are lined up for a shot and will put a green border around the image on our computer

If you want to do something like that, use NI Vision assistant. It is very helpful and pretty easy to understand

Team1605
06-02-2014, 16:20
Well I did all the setup/configuration needed for the axis camera but there is no image coming up on the frc dashboard. Also i want to program the camera to look for the target and position the robot accordingly(in autonomous). how can i do that? I am programming in java(netbeans)

Chadfrom308
06-02-2014, 16:55
Make sure the IP address of the camera is correct. If I can remember clearly it should be like 10.te.am.11 (I would double check if I were you)

As for auto aiming, that's pretty tricky to perfect. You have to first find the goal, which you do by putting a ring of LEDs around the camera, then looking for that color in the NI vision assistant. Its more complex, but also pretty straightforward.

Look at this page (http://wpilib.screenstepslive.com/s/3120/m/8731/l/91395-c-java-code)

It is straight from first and wpilib

The basic steps after you find the target is to find the distance then program your robot to move that distance (normally with a PID)

You also want to do all your processing on the dashboard. It is much faster than the crio and processing images. Also get a good laptop, that also helps a lot too

yash101
06-02-2014, 17:28
are you planning on processing/advanced functions or just regular camera feed? Both said, you could write an OpenCV application for just a camera viewer and that will allow you to resize the view, etc.!

Team1605
06-02-2014, 19:06
Make sure the IP address of the camera is correct. If I can remember clearly it should be like 10.te.am.11 (I would double check if I were you)


I did check and it is correct but it still won't display on the FRC dashboard

Ultracrepidate
06-02-2014, 19:26
Have you tried pinging the camera using command prompt?

Greg McKaskle
07-02-2014, 09:31
It was mentioned in other threads, but be sure to click the enable button next to the image display.

Greg McKaskle