Go to Post Realizing your DON'T want to be an engineer is every bit as important as realizing you do - Lil' Lavery [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 14-01-2012, 00:13
newkidd-sagar newkidd-sagar is offline
Registered User
FRC #1241
 
Join Date: Jan 2010
Location: Mississauga
Posts: 13
newkidd-sagar is an unknown quantity at this point
Sending Vision Processing Data to Dashboard (C++)

Hi there,

Today I was working on some vision tracking code and I was able to load an image of the rectangle on the backboard into NI Vision Assistant and apply HSL thresholding operations on it. I then took those values and used them in my C+ + code (something like Threshold HSLThres(values)) and then applied these values to an image that was grabbed from the camera. At the end of the code I was left with a binary image that should only highlight the reflective tape that the rectangles form.

Now, where I'm having a little trouble is trying to see this processing happen in real time. Is this possible using the default Dashboard (so basically seeing the binary image where the camera feed is supposed to be)? I have looked into the DashboardDataSender but I am unsure of how to call and what parameters to send to the function SendVisionData.

Also, once this processing is done, how can I tell the camera to "lock on" to this target?

Lastly, are there any other useful methods I could use to make the image processing more efficient? While I was coding this, I found that the C Rio would get bogged down and the robot started to lag. This may be in part with bad coding and memory allocation but I am wondering on how exactly some teams are offloading their camera processing to their Driverstation laptops.

Thank you for your help.
Reply With Quote
 


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 17:49.

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