Go to Post Nice going guys!! Not only did you succeed in reviving this thread, but you woke up Dave from his mid summer slumber. Now we are going to get 6 months of pre-kickoff torture!! - Rosiebotboss [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 16-03-2013, 01:02
tj1673's Avatar
tj1673 tj1673 is offline
Collegiate Mentor
AKA: Trevor D.
FRC #0048 (Delphi E.L.I.T.E.)
Team Role: Alumni
 
Join Date: Apr 2007
Rookie Year: 2006
Location: Warren, OH
Posts: 14
tj1673 is just really nicetj1673 is just really nicetj1673 is just really nicetj1673 is just really nice
Axis 206 camera on computer only

Hello,

I've been trying to work on this camera for a project and I'm hit a wall.

1. Is it possible to only run the camera tracking without the cRIO? I've only been working with the camera and the computer.

If so,

2. I have loaded up the code supplied with WindRiver labeled as "VisionSample2013" and was wondering how to build and run this so that it only runs on the computer instead of trying to "contact" the cRIO.

Thanks in advance.
__________________
"You are not the battles you’ve lost. You are the war you fight. You are not that shadows that fall. You are a home for the light."
  #2   Spotlight this post!  
Unread 16-03-2013, 01:33
tj1673's Avatar
tj1673 tj1673 is offline
Collegiate Mentor
AKA: Trevor D.
FRC #0048 (Delphi E.L.I.T.E.)
Team Role: Alumni
 
Join Date: Apr 2007
Rookie Year: 2006
Location: Warren, OH
Posts: 14
tj1673 is just really nicetj1673 is just really nicetj1673 is just really nicetj1673 is just really nice
Re: Axis 206 camera on computer only

Also, I was wondering how to take still shots with the camera. Also, where do I find the shots taken by the camera if I am only using the computer, and not the cRIO?
__________________
"You are not the battles you’ve lost. You are the war you fight. You are not that shadows that fall. You are a home for the light."
  #3   Spotlight this post!  
Unread 16-03-2013, 10:07
Ginto8's Avatar
Ginto8 Ginto8 is offline
Programming Lead
AKA: Joe Doyle
FRC #2729 (Storm)
Team Role: Programmer
 
Join Date: Oct 2010
Rookie Year: 2010
Location: Marlton, NJ
Posts: 174
Ginto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of light
Re: Axis 206 camera on computer only

Our team's vision processing runs solely on the laptop, and periodically saves stills. We do this by extending SmartDashboard's WPICameraExtension class, doing image processing with OpenCV in the processImage() method and sending data back to the robot via NetworkTables. To save stills, it periodically spawns off a low-priority thread which saves a timestamped jpg. If you want to know how to make a WPICameraExtension with OpenCV processing, check out Miss Daisy's 2012 vision code. For saving an image, you can just use Java's javax.imageio.ImageIO class.
__________________
I code stuff.
  #4   Spotlight this post!  
Unread 16-03-2013, 14:18
tj1673's Avatar
tj1673 tj1673 is offline
Collegiate Mentor
AKA: Trevor D.
FRC #0048 (Delphi E.L.I.T.E.)
Team Role: Alumni
 
Join Date: Apr 2007
Rookie Year: 2006
Location: Warren, OH
Posts: 14
tj1673 is just really nicetj1673 is just really nicetj1673 is just really nicetj1673 is just really nice
Re: Axis 206 camera on computer only

I guess the main thing I need to get working is:

I want to get the camera to recognize that it is seeing the retroreflective material, and just printf some line like "I see green" or something along those lines, and while there is no retroreflective material in the shot, it shouldn't say anything or it could printf something like "I don't see anything".
__________________
"You are not the battles you’ve lost. You are the war you fight. You are not that shadows that fall. You are a home for the light."
  #5   Spotlight this post!  
Unread 16-03-2013, 15:54
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,756
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Axis 206 camera on computer only

I'd recommend starting with the white paper about 2013 vision processing.

The camera and other code doesn't "know" what it is looking at. You can use it to capture an image, and you can use what is known about the targets and your setup to process the image and determine if the target is in the image, where, how far away, etc. But the first step is to read the paper and ask questions that are more technical than what the printf says.

Greg McKaskle
  #6   Spotlight this post!  
Unread 16-03-2013, 17:44
tj1673's Avatar
tj1673 tj1673 is offline
Collegiate Mentor
AKA: Trevor D.
FRC #0048 (Delphi E.L.I.T.E.)
Team Role: Alumni
 
Join Date: Apr 2007
Rookie Year: 2006
Location: Warren, OH
Posts: 14
tj1673 is just really nicetj1673 is just really nicetj1673 is just really nicetj1673 is just really nice
Re: Axis 206 camera on computer only

Ok, well I used the NI Vision Assistant to process the images how I want them to work, and I went to Tools>Generate C Code...

1. Do I want a main function if I want to pull images from the camera?

2. In what program should I open up the C code generated by the NI Vision Assistant? I tried opening it up in Dev C++, but it can't find a lot of the header files used for the code.

I also tried opening it in WindRiver, but when WindRiver opens, it does not open any file.
__________________
"You are not the battles you’ve lost. You are the war you fight. You are not that shadows that fall. You are a home for the light."
Closed Thread


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


All times are GMT -5. The time now is 03:29.

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