Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Center Camera manually to basket?? (http://www.chiefdelphi.com/forums/showthread.php?t=104133)

mbone206 03-03-2012 12:00

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

Greg McKaskle 03-03-2012 12:26

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

mbone206 03-03-2012 13:50

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

Greg McKaskle 03-03-2012 13:59

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

mbone206 03-03-2012 14:13

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

Greg McKaskle 03-03-2012 14:26

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


All times are GMT -5. The time now is 11:15.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi