Go to Post - Only think of Gracious Professionalism as a standard to work toward personally. - Never use it as a gauge to point out someone else’s shortcomings. - Rich Kressly [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
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 24-01-2012, 18:43
yelk11 yelk11 is offline
Registered User
FRC #3414
 
Join Date: Jan 2012
Location: farmington
Posts: 27
yelk11 is an unknown quantity at this point
Unhappy LABVIEW camera tracking

I am completely new to labview so could somone help me. my team has entrusted me to make the camera work. i don't know how. i don't know how to use the block diagrams but i do know about wiring.
Please Help,
Reply With Quote
  #2   Spotlight this post!  
Unread 25-01-2012, 08:19
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: LABVIEW camera tracking

Use the NI Vision Assistant program to learn about (and play around with) image processing and feature recognition.

Read Greg McKaskle's helpful 2012 Vision Target White Paper.

There are built-in examples in LabVIEW for FRC that show you how to add vision processing to your robot project.
Reply With Quote
  #3   Spotlight this post!  
Unread 26-01-2012, 14:35
Aur0r4's Avatar
Aur0r4 Aur0r4 is offline
Engineering Mentor
AKA: Jim Browne
None #1058 (PVC Pirates)
Team Role: Engineer
 
Join Date: Mar 2005
Rookie Year: 2002
Location: Londonderry, NH
Posts: 65
Aur0r4 has a brilliant futureAur0r4 has a brilliant futureAur0r4 has a brilliant futureAur0r4 has a brilliant futureAur0r4 has a brilliant futureAur0r4 has a brilliant futureAur0r4 has a brilliant futureAur0r4 has a brilliant futureAur0r4 has a brilliant futureAur0r4 has a brilliant futureAur0r4 has a brilliant future
Send a message via AIM to Aur0r4
Re: LABVIEW camera tracking

Yelk11,

You've picked a great tool to work with!

After you use the "Simulate Aquisition" step to load some images into the software from a folder (you can't acquire live from the Axis camera, although many Firewire cameras will work), you will want to follow this general approach:

Filter to get rid of unnecessary data:

Use the RBG or HSL (or others) in the Color Threshold tool to filter out everything except the target. This works as a software filter, same as a physical filter. We could get just the target frame to exist in the image, and everything else is black. Using a "Lookup Table" with the "equalizer" will convert the result to an 8-bit B/W image. This gives you substantially less data to process

Get geometry:

Use the "Find pattern", "edge finding", or other tools to locate geometry of interest, whether its just finding the center of the target or measuring its dimensions. Use coordinate systems on those features along with the measurement tools to get the information you want.

There are many approaches, and definitely research machine vision documents online, particularly on NI's website. They've developed some great stuff. The Vision Assistant is designed to help you develop an algorithm, and our programmers tell me that just about anything you can do in LabVIEW you can convert to code. I assume its magic. Code and I don't mix....

I am by no means an expert, but we've gotten some great results using this general outline.
__________________
Jim Browne, EIT
Team 1058 - PVC Pirates
Reply With Quote
  #4   Spotlight this post!  
Unread 26-01-2012, 14:41
Prototype151's Avatar
Prototype151 Prototype151 is offline
http://t3.gstatic.com/images?q=tbn:
FRC #3995
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Oregon
Posts: 5
Prototype151 is an unknown quantity at this point
Re: LABVIEW camera tracking

Fortunately, Labview comes with many premade examples which includes programs to run the camera tracking system with the servos you have. You will need to wire the servos and the the camera accordingly to use these programs!
Hope I helped.
__________________
-Pro Host Gaming-
Reply With Quote
  #5   Spotlight this post!  
Unread 26-01-2012, 14:50
DavidGitz's Avatar
DavidGitz DavidGitz is offline
Lead Technical Advisor
FRC #1208 (MeTool Brigade)
Team Role: Coach
 
Join Date: Dec 2006
Rookie Year: 1996
Location: O'Fallon, IL
Posts: 341
DavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud of
Send a message via AIM to DavidGitz Send a message via MSN to DavidGitz Send a message via Yahoo to DavidGitz
Re: LABVIEW camera tracking

Quote:
Originally Posted by Aur0r4 View Post
(you can't acquire live from the Axis camera,
Yes you can, and it's quite easy. After configuring your Axis Camera using the "Setup Axis Camera" tool power the camera appropriately and connect it to your computer using a crossover cable (or leave it connected to your radio and plug your computer into the radio. Or use the wireless). Next, change your computer's IP address as appropriate so that you can access the camera's webserver from your computer. Then in NI Vision Assistant click File>Acquire Image, then click "Acquire Image (Axis IP) and change the IP address to match the IP address of your Camera and click Close. Voila.
__________________
Reply With Quote
  #6   Spotlight this post!  
Unread 27-01-2012, 11:35
Aur0r4's Avatar
Aur0r4 Aur0r4 is offline
Engineering Mentor
AKA: Jim Browne
None #1058 (PVC Pirates)
Team Role: Engineer
 
Join Date: Mar 2005
Rookie Year: 2002
Location: Londonderry, NH
Posts: 65
Aur0r4 has a brilliant futureAur0r4 has a brilliant futureAur0r4 has a brilliant futureAur0r4 has a brilliant futureAur0r4 has a brilliant futureAur0r4 has a brilliant futureAur0r4 has a brilliant futureAur0r4 has a brilliant futureAur0r4 has a brilliant futureAur0r4 has a brilliant futureAur0r4 has a brilliant future
Send a message via AIM to Aur0r4
Re: LABVIEW camera tracking

Ah, thanks David!

We had been fighting this in DAQmx trying to create a custom instrument. Guess we made it harder than it had to be... I had assumed that since the only option not grayed out in the Vision assistant was the "Simulate Acquisition" that the functionality wasn't there unless DAQmx was happy.
__________________
Jim Browne, EIT
Team 1058 - PVC Pirates
Reply With Quote
  #7   Spotlight this post!  
Unread 27-01-2012, 11:53
DavidGitz's Avatar
DavidGitz DavidGitz is offline
Lead Technical Advisor
FRC #1208 (MeTool Brigade)
Team Role: Coach
 
Join Date: Dec 2006
Rookie Year: 1996
Location: O'Fallon, IL
Posts: 341
DavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud of
Send a message via AIM to DavidGitz Send a message via MSN to DavidGitz Send a message via Yahoo to DavidGitz
Re: LABVIEW camera tracking

No problem, glad you got it to work!
__________________
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 11:17.

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