Loading Template image

Hey y’all!
I’ve been working on getting vision as an off-season goal. I’ve got a small problem left right now. As you can see in the screenshots, my color-filtering and population-filters are working fine. Right now, though I’ve also implemented a shape-matching piece to get a report of all the matching particles. My problem right now is that the dashboard can’t seem to load the template image to compare it.

I developed this with vision assistant and put it on the dashboard.
The small gray box at the bottom in the screenshots is supposed to display the template image, but it isn’t showing anything, so I concluded that the template image isn’t loading.

Is there a reason for this? How can I go about fixing it? Thanks!

EDIT: screenshots are in a post below.

I’m likely not going to be able to help. But I didn’t see any photos attached.

Also, you might want to describe your setup (where is processing, which vision library, etc)

I will add the photos… I forgot to attach them.

I am processing the images on the dashboard, and I used vision assistant to generate the code for me.

Here are the screenshots.


cd2.PNG



cd2.PNG

I can’t help with the problem you asked about. But I would point out that the color reflecting back to the color from the goal is white. As you can see in your photo, you’re picking up other objects. See if you can adjust the camera or the led to not have it reflect white. It’s best to avoid the following colors, since they are commonly used on the field (Red & Blue) or by lights (white). A lot of teams like Green, since it’s less likely to be in your environment.

If you bought 2 different LEDs from different manufactures, that sold “GREEN” LEDs, they would likely be different wave lengths. This holds true for any color. So tune to your specific color.

In the Cheesy Poofs presentation at Worlds, they used the following analogy.

Each pixel has 3 color buckets, Red, Green and Blue. If all 3 buckets are full, you get white. Each color of light likely has portions of all 3 colors. A Green LED might have a tiny bit of blue and red. The green will fill up the green bucket quickly. But if you keep letting more and more light in, eventually the Red and Blue buckets will fill up. This is what would cause a red LED to reflect white, letting in too much light. So check the camera settings to reduce how much light is let in per frame. I think it’s exposure that controls this.

I’ll do that as soon as I get back to the workshop tomorrow. Thanks for the advice!