Go to Post My only question is, Can your robot place tetras and deliver Krispy Kremes to team mentors in autonomous mode? - Rich Kressly [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
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 28-04-2016, 17:06
Hitchhiker 42's Avatar
Hitchhiker 42 Hitchhiker 42 is offline
Roboter
AKA: Mark Lavrentyev
FRC #4557 (FullMetal Falcons)
Team Role: Programmer
 
Join Date: Oct 2015
Rookie Year: 2015
Location: Cromwell, CT
Posts: 467
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
Vision Problems: Images blacking out

Hello y'all!
I've been working on vision tracking for our robot as an off-season goal. I decided to it on the dashboard, so we could display the processed image as well as the original side by side. My code and some dashboard views are attached to this post.

When I go to actually track the images, if I choose not to process the image, and only show the original, everything (that should work) works fine. However, when I enable the vision, and start processing the image, both images go black (including the one for original image).

Once in a while, if I drag over the image, it flickers with the right image.
Is there a solution to the problem? I am especially concerned with the fact that the original image goes dark if I want to process, despite it not being connected with any wires downstream.
Attached Thumbnails
Click image for larger version

Name:	visionenable.PNG
Views:	27
Size:	47.2 KB
ID:	20691  Click image for larger version

Name:	visionnotemable.PNG
Views:	26
Size:	274.0 KB
ID:	20692  Click image for larger version

Name:	basevision.PNG
Views:	29
Size:	41.3 KB
ID:	20693  Click image for larger version

Name:	dashoverall.PNG
Views:	25
Size:	46.5 KB
ID:	20694  
__________________



2016 - NE District Championship Entrepreneurship Award
2016 - Hartford District Industrial Design Award
2016 - Waterbury District Engineering Inspiration Award
Reply With Quote
  #2   Spotlight this post!  
Unread 28-04-2016, 23:15
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Vision Problems: Images blacking out

The image processing I remember doing on the DS laptop only has one actual image buffer. The processing steps replace the contents. If you're doing a threshhold function to come up with a binary image for further analysis (find convex hull, look at aspect ratio, that sort of thing), your image will end up with values of 0 and 1, which are probably indistinguishably dark on your screen. To fix that, edit the properties of the display to use a binary palette. I think the "detected" pixels will then show up red by default.

If you want to see both pre- and post-processed images, you're going to have to open a second IMAQ image buffer and tell the threshholding function to put its output in the second buffer instead of reusing the first one.
Reply With Quote
  #3   Spotlight this post!  
Unread 29-04-2016, 11:35
Hitchhiker 42's Avatar
Hitchhiker 42 Hitchhiker 42 is offline
Roboter
AKA: Mark Lavrentyev
FRC #4557 (FullMetal Falcons)
Team Role: Programmer
 
Join Date: Oct 2015
Rookie Year: 2015
Location: Cromwell, CT
Posts: 467
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: Vision Problems: Images blacking out

I will try that as soon as I am back in the workshop. Thank you!
__________________



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 08:06.

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