Go to Post know what else would be great? with each new rep point you get 10 airline miles on your Visa or MasterCard - KenWittlief [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 15-01-2010, 16:50
I am error's Avatar
I am error I am error is offline
The Error
FRC #0686 (Bovine Intervention)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Frederick
Posts: 20
I am error is an unknown quantity at this point
Basic Camera Program?

Does anyone have a basic camera script example for the camera. I am pulling my hair out trying to find one. If anyone can help that would be great.
__________________
I am Error. Yes.

Reply With Quote
  #2   Spotlight this post!  
Unread 17-01-2010, 11:18
jtdowney jtdowney is offline
Boiler Up
AKA: John Downey
FRC #4302 (Robophins)
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2006
Location: Chicago
Posts: 300
jtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant future
Re: Basic Camera Program?

Below is my attempt to port the simple C++ example in the WPILib guide. The arguments to EllipseDescriptor need to be changes and I didn't include any of the exception handling code. This code may not work at all because I haven't tested it with a robot but the ellipse matches have an X/Y position to the ellipses it detects.

Code:
MonoImage image = AxisCamera.getInstance().getImage().getLuminancePlane();
EllipseMatch[] matches = image.detectEllipses(new EllipseDescriptor(1.0, 2.0, 3.0, 4.0));
            
// do something with the matches
__________________
John Downey
Lead Robot Inspector - Purdue IndianaFIRST District
Whitney Young Magnet High School/Robophins (FRC 4302) - Mentor (2013-current)
Midwest Regional Planning Committee - Member (2012-current)
Boilermaker Regional Planning Committee - Member (2011-2014)
Robot Inspector (2008-current)
Purdue FIRST Programs - Staff Advisor (2008-2011)
Lafayette-Jefferson High School/Precision Guessworks (FRC 1646) - Mentor (2006-2011)
Reply With Quote
  #3   Spotlight this post!  
Unread 17-01-2010, 11:36
James Dempsey James Dempsey is offline
Overtired Programmer
AKA: Rooster Cogburn
FRC #1559 (Devil Tech)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Victor, NY
Posts: 11
James Dempsey is an unknown quantity at this point
Re: Basic Camera Program?

If you are using NetBeans as an IDE, source code is provided. Start a new project, click samples, click Java FRC, and then click on the camer example. If those instructions are slightly out of order I apologize, I do not have the FRC libraries on this computer. Hope this helps
-
James D
Reply With Quote
  #4   Spotlight this post!  
Unread 17-01-2010, 11:51
jtdowney jtdowney is offline
Boiler Up
AKA: John Downey
FRC #4302 (Robophins)
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2006
Location: Chicago
Posts: 300
jtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant future
Re: Basic Camera Program?

After reading James suggestion the sample they include looks like a great starting point. I hadn't received any updates to the NetBeans plugins until today this this sample is a useful new addition.
__________________
John Downey
Lead Robot Inspector - Purdue IndianaFIRST District
Whitney Young Magnet High School/Robophins (FRC 4302) - Mentor (2013-current)
Midwest Regional Planning Committee - Member (2012-current)
Boilermaker Regional Planning Committee - Member (2011-2014)
Robot Inspector (2008-current)
Purdue FIRST Programs - Staff Advisor (2008-2011)
Lafayette-Jefferson High School/Precision Guessworks (FRC 1646) - Mentor (2006-2011)
Reply With Quote
  #5   Spotlight this post!  
Unread 18-01-2010, 03:06
James Dempsey James Dempsey is offline
Overtired Programmer
AKA: Rooster Cogburn
FRC #1559 (Devil Tech)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Victor, NY
Posts: 11
James Dempsey is an unknown quantity at this point
Re: Basic Camera Program?

Quote:
Originally Posted by jtdowney View Post
After reading James suggestion the sample they include looks like a great starting point. I hadn't received any updates to the NetBeans plugins until today this this sample is a useful new addition.
They really did not do a good job documenting where to find their sample code. I hope future release will provide better instructions on where to find it because me and a few others spent well over 4 hours scouring through files to find the things. Someone from my team should be posting some code that incorporates a drive system as well as camera target recognition and an updating dashboard interface.

-
James D
Reply With Quote
  #6   Spotlight this post!  
Unread 20-01-2010, 20:25
synth3tk's Avatar
synth3tk synth3tk is offline
Volunteer / The Blue Alliance
AKA: David Thomas
no team
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Ohio
Posts: 2,005
synth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond repute
Re: Basic Camera Program?

Quote:
Originally Posted by James Dempsey View Post
They really did not do a good job documenting where to find their sample code. I hope future release will provide better instructions on where to find it because me and a few others spent well over 4 hours scouring through files to find the things. Someone from my team should be posting some code that incorporates a drive system as well as camera target recognition and an updating dashboard interface.

-
James D
Let us know when you have this ready! It would really help us out greatly.
__________________
Quote:
The difference between theory and application is that in theory, theory and application are the same; In application, they are not.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Download a Basic Drive Program for a class LavaEagle NI LabVIEW 4 21-10-2009 22:47
Camera on basic framework Arcre NI LabVIEW 2 11-02-2009 04:17
Program PIC with Basic Stamp marine14514 Programming 5 17-02-2008 15:50
the old P BASIC program Thadanator Programming 2 07-04-2005 11:52
Remote Program Execution in Visual Basic Jeff Waegelin Programming 6 14-06-2004 21:15


All times are GMT -5. The time now is 11:14.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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