Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Programming Camera (http://www.chiefdelphi.com/forums/showthread.php?t=125809)

Team1605 04-02-2014 13:45

Programming Camera
 
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

Re: Programming Camera
 
Quote:

Originally Posted by Team1605 (Post 1337533)
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

Re: Programming Camera
 
okay thank you for the help...

Chadfrom308 05-02-2014 08:58

Re: Programming Camera
 
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

Re: Programming Camera
 
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

Re: Programming Camera
 
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

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

Re: Programming Camera
 
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

Re: Programming Camera
 
Quote:

Originally Posted by Chadfrom308 (Post 1338692)
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

Re: Programming Camera
 
Have you tried pinging the camera using command prompt?

Greg McKaskle 07-02-2014 09:31

Re: Programming Camera
 
It was mentioned in other threads, but be sure to click the enable button next to the image display.

Greg McKaskle


All times are GMT -5. The time now is 02:36.

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