View Single Post
  #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