|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
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 |
|
#4
|
|||
|
|||
|
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 |
|
#5
|
|||
|
|||
|
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 |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|