Go to Post You can lay out all the disclaimers that you want, but the bottom line is you are representing your team. - Karthik [more]
Home
Go Back   Chief Delphi > Technical > Programming
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 04-05-2016, 15:18
Hitchhiker 42's Avatar
Hitchhiker 42 Hitchhiker 42 is online now
Roboter
AKA: Mark Lavrentyev
FRC #4557 (FullMetal Falcons)
Team Role: Programmer
 
Join Date: Oct 2015
Rookie Year: 2015
Location: Cromwell, CT
Posts: 459
Hitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to behold
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.
__________________



2016 - NE District Championship Entrepreneurship Award
2016 - Hartford District Industrial Design Award
2016 - Waterbury District Engineering Inspiration Award

Last edited by Hitchhiker 42 : 04-05-2016 at 15:43.
Reply With Quote
  #2   Spotlight this post!  
Unread 04-05-2016, 15:31
BrianAtlanta's Avatar
BrianAtlanta BrianAtlanta is offline
Registered User
FRC #1261
Team Role: Mentor
 
Join Date: Apr 2014
Rookie Year: 2012
Location: Atlanta, GA
Posts: 69
BrianAtlanta has a spectacular aura aboutBrianAtlanta has a spectacular aura about
Re: Loading Template image

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)
__________________
Reply With Quote
  #3   Spotlight this post!  
Unread 04-05-2016, 15:43
Hitchhiker 42's Avatar
Hitchhiker 42 Hitchhiker 42 is online now
Roboter
AKA: Mark Lavrentyev
FRC #4557 (FullMetal Falcons)
Team Role: Programmer
 
Join Date: Oct 2015
Rookie Year: 2015
Location: Cromwell, CT
Posts: 459
Hitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to behold
Re: Loading Template image

Quote:
Originally Posted by BrianAtlanta View Post
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.
__________________



2016 - NE District Championship Entrepreneurship Award
2016 - Hartford District Industrial Design Award
2016 - Waterbury District Engineering Inspiration Award
Reply With Quote
  #4   Spotlight this post!  
Unread 04-05-2016, 15:45
Hitchhiker 42's Avatar
Hitchhiker 42 Hitchhiker 42 is online now
Roboter
AKA: Mark Lavrentyev
FRC #4557 (FullMetal Falcons)
Team Role: Programmer
 
Join Date: Oct 2015
Rookie Year: 2015
Location: Cromwell, CT
Posts: 459
Hitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to behold
Re: Loading Template image

Here are the screenshots.
Attached Thumbnails
Click image for larger version

Name:	cdimg.PNG
Views:	41
Size:	241.3 KB
ID:	20710  Click image for larger version

Name:	cd2.PNG
Views:	36
Size:	19.6 KB
ID:	20711  
__________________



2016 - NE District Championship Entrepreneurship Award
2016 - Hartford District Industrial Design Award
2016 - Waterbury District Engineering Inspiration Award
Reply With Quote
  #5   Spotlight this post!  
Unread 04-05-2016, 17:06
BrianAtlanta's Avatar
BrianAtlanta BrianAtlanta is offline
Registered User
FRC #1261
Team Role: Mentor
 
Join Date: Apr 2014
Rookie Year: 2012
Location: Atlanta, GA
Posts: 69
BrianAtlanta has a spectacular aura aboutBrianAtlanta has a spectacular aura about
Re: Loading Template image

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.
__________________
Reply With Quote
  #6   Spotlight this post!  
Unread 04-05-2016, 18:42
Hitchhiker 42's Avatar
Hitchhiker 42 Hitchhiker 42 is online now
Roboter
AKA: Mark Lavrentyev
FRC #4557 (FullMetal Falcons)
Team Role: Programmer
 
Join Date: Oct 2015
Rookie Year: 2015
Location: Cromwell, CT
Posts: 459
Hitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to behold
Re: Loading Template image

Quote:
Originally Posted by BrianAtlanta View Post
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!
__________________



2016 - NE District Championship Entrepreneurship Award
2016 - Hartford District Industrial Design Award
2016 - Waterbury District Engineering Inspiration Award
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 14:31.

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