Go to Post Engineers can really make a difference when people are in their time of need. - Elgin Clock [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 03-03-2012, 12:00
mbone206 mbone206 is offline
Registered User
FRC #0223
 
Join Date: Jan 2009
Location: New Jersey
Posts: 59
mbone206 is an unknown quantity at this point
Center Camera manually to basket??

Hi Greg <, All,

My team is trying to center the camera to the basket (in manual mode). Is there a way to have a visual to assist with this? Draw a line in center of vision screen, when line in middle basket, shooter will be centered?

Greatly appreciate support

mark
Reply With Quote
  #2   Spotlight this post!  
Unread 03-03-2012, 12: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,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: Center Camera manually to basket??

Yes. There are a couple ways to do this. The quickest is to use something colorful with an adhesive backing, like perhaps a piece of brightly colored tape. Cut it to form a triangle about 0.5 inches per side, and place that above or below the screen in the center of the image.

Another easy approach is to open LV, and choose to create your own dashboard. Go to the diagram of the dashboard VI and in the upper loop is where the camera is acquired, any overlays are cleared, and it is sent to the display. Add any adorner you like, say a line or rectangle, in-between the clear and the display. If it is running, even in debug mode, the DS will send data to it. After it works as intended, build it and move the EXE to the Program Files/FRC Dashboard folder.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 03-03-2012, 13:50
mbone206 mbone206 is offline
Registered User
FRC #0223
 
Join Date: Jan 2009
Location: New Jersey
Posts: 59
mbone206 is an unknown quantity at this point
Please clarify how? Re: Center Camera manually to basket??

Hi Greg

I am in second loop, upper looks like Kinect.... QUESTION on this, we are not using Kinect, should I commnet out, want to minimize code/communication not needed.

In second loop, not sure how to do what you said.... looking at IMAQ Clear Overlay VI... still do not understand how / where to implement Line 'between Crear and disdpay', Please help, do not have much experience with this or terminology

thanx
Reply With Quote
  #4   Spotlight this post!  
Unread 03-03-2012, 13:59
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: Center Camera manually to basket??

Unless you attach the Kinect, the top loop mostly sleeps. You can delete it if you want, but it isn't hurting anything.

The loop that clears the overlay also needs to draw a line or rectangle. The center of the image will be half of the resolution, so if you want to draw a vertical line, the coordinates would be xSize/2,0 and xSize/2,ySize. The function for doing overlays is in the vision palette, try searching for it. I would help more, but I'm not at my computer.

Greg Mckaskle
Reply With Quote
  #5   Spotlight this post!  
Unread 03-03-2012, 14:13
mbone206 mbone206 is offline
Registered User
FRC #0223
 
Join Date: Jan 2009
Location: New Jersey
Posts: 59
mbone206 is an unknown quantity at this point
STILL need help - Anyone know? Re: Center Camera manually to basket??

Greg,
Only few vi in Vision pallete and still can not figure out how to do what you are saying.. in DashBoardMain.VI, in HostCameraImage loop, went thru every VI and condition, still can not find what you are saying... If you can find answer when at computer, will appreciate more direction on how to do this.

Anyoone else know or can help how to have verticle line displyed down cdenter of camera vision?

Thank you for your support.... totally at a lost
Reply With Quote
  #6   Spotlight this post!  
Unread 03-03-2012, 14: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,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: Center Camera manually to basket??

Right click on the palette and choose search. In the search box try overlay. Any of the overlay VIs can be inserted between the clear and the display terminal. There was also similar overlay code in the vision example -- it was towards the bottom of the loop and inside a case and for loop. It draws rectangles around each target.

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:07.

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