|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Trouble Detecting Ball in Image
Hey all,
We're trying to detect the ball in the camera feed so we can either pick it up autonomously or make it easier for the driver. We were able to find the ball in vision assistant but when we moved the code to Dashboard it was no longer working the same way. We're using an HSV threshold, a filter for small particles, a canny edge detector, and a Gaussian blur. Upon testing the code and looking at the output picture we saw that the Gaussian blur was not showing up. Most of our code is in the attached picture, it's based off the default dashboard. Thanks, Team 4338 ![]() |
|
#2
|
|||
|
|||
|
Re: Trouble Detecting Ball in Image
Can we get more specifics? What is it doing? What would you like it to do?
Can you probe the images and other outputs and use breakpoints to see if any of the steps in particular are not working? By the way, be sure that binary images use the binary palette for viewing? Greg McKaskle |
|
#3
|
||||
|
||||
|
Re: Trouble Detecting Ball in Image
Our goal for this code is for it to draw a circle over the ball in the camera feed which we can use to then subsequently pick up the ball using our program. At the moment upon printing out a debug image to the dashboard screen we see that our Gaussian blur step does not do anything; the image just contains the final edge detector step. We set the image to a binary palette but nothing changed? Any help would be appreciated.
Thanks, Team 4338 |
|
#4
|
||||
|
||||
|
Re: Trouble Detecting Ball in Image
Can you show a bit more of your dashboard code so we can see how you intergrated it into dashboard?
|
|
#5
|
|||
|
|||
|
Re: Trouble Detecting Ball in Image
It looks like the same image is being used for input and output. If you probe different wires, you should be able to see the intermediates. If you want that step on your panel, you will need to be more careful about how you use the source and destination images. You will need to create temporary debugging images so that the source is not modified.
Greg McKaskle |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|