Go to Post Its not the event that matters - its the preparation for the event that matters! - Ken Patton [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 18-10-2016, 16:12
istanbulls istanbulls is offline
Registered User
FRC #6064
 
Join Date: Oct 2016
Location: Turkey
Posts: 5
istanbulls is an unknown quantity at this point
Vision code sample

Hi, we are a new team from istanbul and preparing for off-season event in Turkey. We are new on labview and learning very fast with examples.

We used vision assistant, and Imax to get images and etc. but couldn't integrate it in autonomous with microsoft hd3000 camera. Also we tried to integrate samples from tutorials. we want to use 320x240 resolution.

Could anyone help us on this issue.

Thank you very much
Reply With Quote
  #2   Spotlight this post!  
Unread 18-10-2016, 16:46
Bkeeneykid's Avatar
Bkeeneykid Bkeeneykid is offline
#wheatcoastneatcoast
AKA: Devin Keeney
FRC #1982 (Cougar Robotics); Season Long Fantasy FIRST (F3)
Team Role: Student
 
Join Date: Feb 2015
Rookie Year: 2015
Location: Lenexa, Kansas
Posts: 273
Bkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud of
Re: Vision code sample

Quote:
Originally Posted by istanbulls View Post
Hi, we are a new team from istanbul and preparing for off-season event in Turkey. We are new on labview and learning very fast with examples.

We used vision assistant, and Imax to get images and etc. but couldn't integrate it in autonomous with microsoft hd3000 camera. Also we tried to integrate samples from tutorials. we want to use 320x240 resolution.

Could anyone help us on this issue.

Thank you very much
I would highly recommend you to try and use GRIP instead. It's much more user friendly than IMAX, and it'll be easier to integrate. See here for more info: http://wpilib.screenstepslive.com/s/4485/m/50711
__________________

F4 Network Website Designer

2010-2012: A Whole Buncha FLL Teams; Team Spirit, Gracious Professionalism Award winner
2015-Current: FRC 1982, Captain, Electrical Lead
Beginning FIRST Volunteer

Moderator on the FIRSTwiki
Reply With Quote
  #3   Spotlight this post!  
Unread 18-10-2016, 16:48
adciv adciv is offline
One Eyed Man
FRC #0836 (RoboBees)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2010
Location: Southern Maryland
Posts: 478
adciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to all
Re: Vision code sample

Quote:
Originally Posted by istanbulls View Post
We used vision assistant, and Imax to get images and etc. but couldn't integrate it in autonomous with microsoft hd3000 camera. Also we tried to integrate samples from tutorials. we want to use 320x240 resolution.
Please post your code and I'll see what's not working. Alternatively, FIRST provides sample vision code which you can use and will work.
__________________
Quote:
Originally Posted by texarkana View Post
I would not want the task of devising a system that 50,000 very smart people try to outwit.
Reply With Quote
  #4   Spotlight this post!  
Unread 18-10-2016, 18:26
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,748
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: Vision code sample

There is a tutorial specifically about combining vision and the robot template code. There are actually two common ways of doing this.

The first is to keep the vision code on the DS laptop and process the images sent to the dashboard program. In this case, your robot code for vision will not be much more than opening the camera and setting up basic camera settings. The vision processing code will be in the dashboard code, in the vision loop. You can use Network Tables or TCP/UDP to update the robot with results of processing.

The second is to replace a portion of the robot vision code with the processing code.

The Vision example for 2016 has a project with code for both dashboard and robot, and the tutorial describes how to do this.

Greg McKaskle
Reply With Quote
  #5   Spotlight this post!  
Unread 19-10-2016, 16:31
istanbulls istanbulls is offline
Registered User
FRC #6064
 
Join Date: Oct 2016
Location: Turkey
Posts: 5
istanbulls is an unknown quantity at this point
Re: Vision code sample

Thanks friends we will work on DS code to not use too much resource of Roborio.
Reply With Quote
  #6   Spotlight this post!  
Unread 20-10-2016, 08:40
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,748
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: Vision code sample

If you want to know what the roboRIO CPU usage is, the Driver Station shows it on a chart. On the right side, click on the charts tab and the CPU is the red plot.

Processing images can be done in either location. Determine what type of results you will get from the image and how you will use that info to aim. It is not necessary and not optimal that you use only a camera, but use other sensors to accomplish the turning and aiming.

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 02:32.

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