Go to Post the entire arena broke into applause when that first robot climbed that first robot ramp. - RoboMom [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
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 19-02-2012, 21:19
dwmcc dwmcc is offline
Registered User
FRC #2192 (YAK Attack)
Team Role: Leadership
 
Join Date: Feb 2010
Rookie Year: 2008
Location: Newport, Oregon
Posts: 14
dwmcc is an unknown quantity at this point
Question cRIO Vision Targeting - Please Help!

We're somewhat at a loss for vision. We have the Axis Camera M1011, and we've already used the setup axis camera tool to assign it an IP address. At this stage, we're trying to do the vision processing on the cRIO (depending on the amount of lag, we may later switch to processing on the computer).

Should I use the Rectangular Target Processing project (included with Labview) or should I use the NI Vision Assistant to process the images. Are you supposed to use one or another? We're at a loss for how to actually process the images in our project.

Thanks,
dwmcc
Reply With Quote
  #2   Spotlight this post!  
Unread 19-02-2012, 22:07
MotorHead's Avatar
MotorHead MotorHead is offline
Programming Mentor
AKA: Jeff Beltramo
FRC #1922 (OZ-Ram)
Team Role: Coach
 
Join Date: Jan 2008
Rookie Year: 2006
Location: Concord, NH
Posts: 68
MotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to behold
Re: cRIO Vision Targeting - Please Help!

The rectangular target vision processing vi is a sample code to demonstrate pre-built vision processing techniques. You can work with this code directly if you incorporate into your program. It includes 3 different algorithms you can experiment with to locate the rectangle. The output of the vision processing is written to a global variable that you can access anywhere in your code. The output includes the x, y coord of the center of the rectangle with respect to the center of the camera's field of view along with a calc. distance to target.

The vision assistant is a utility provided by National Instruments that allows you to build your own algorithm. When it is done, it includes a vi code generator. Search NI website for the vision assistant tutorial if you are interested in going this route.
__________________
Jeff Beltramo
Team #1922
Concord, New Hampshire

Reply With Quote
  #3   Spotlight this post!  
Unread 19-02-2012, 22:30
dwmcc dwmcc is offline
Registered User
FRC #2192 (YAK Attack)
Team Role: Leadership
 
Join Date: Feb 2010
Rookie Year: 2008
Location: Newport, Oregon
Posts: 14
dwmcc is an unknown quantity at this point
Re: cRIO Vision Targeting - Please Help!

Thank you very much. We've decided to use the Rectangular Target Processing example in our code. Our problem is this -

We go to test the code by running it locally, and can calibrate the camera and code to recognize the reflective goal marker, but when we stop the code, our calibrations are lost. How do we save the camera calibrations - and do we do it before or after we import the Rectangular Target Processing project to our cRIO project?

Thanks so much for your prompt response.
dwmcc
Reply With Quote
  #4   Spotlight this post!  
Unread 20-02-2012, 08:04
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,752
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: cRIO Vision Targeting - Please Help!

Make the current values the default. There is a popup for individual controls and also a menu to do it for the entire panel.

Greg McKaskle
Reply With Quote
  #5   Spotlight this post!  
Unread 05-03-2012, 22:59
mjgard's Avatar
mjgard mjgard is offline
Michael
AKA: Michael Gard
FRC #2844 (Stampede Robotics)
Team Role: Teacher
 
Join Date: Oct 2007
Rookie Year: 2007
Location: Laveen,AZ
Posts: 74
mjgard will become famous soon enough
Re: cRIO Vision Targeting - Please Help!

I have been messing with the default rectangular code and I can get an image when I have a camera direct to the computer, but can not get a picture when I run it on the crio or when I put it into our project. If I run the driver station I can get a picture there. So I know I am getting an image but it isnt getting into the vision processing vi. Any ideas? Also is there a way to process it on the computer instead of the crio to save processing power and increase speed?

Thanks for Any Help
__________________
Michael
Stampede Robotics Mentor
FRC 2844

2012 Arizona Regional --Judges' Award
2012 Las Vegas Regional -- Regional Winners
2012 Las Vegas Regional-- Coopertition Award
2009 Arizona Regional -- Rookie All Star Award
Reply With Quote
  #6   Spotlight this post!  
Unread 06-03-2012, 07:53
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,752
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: cRIO Vision Targeting - Please Help!

If you want to run the vision code on the laptop, the primary you need to solve is getting the data back to the robot. There are threads about using UDP or network tables to do this.

If you want to get the vision working on the robot, try starting with the example and tutorial. See if those steps work out.

Greg McKaskle
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


All times are GMT -5. The time now is 22:12.

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