|
Camera Targetting
We started playing around with our camera. After a bit of configuring we got the hardware set up and ran the example vi 'Rectangular Target Processing'. We got the image to pop up (much to our joy) and after changing some settings we able to lock on to the reflective tape. There was no noticeable lag and we were feeling pretty good. Of all the information given by the camera we liked how it gave an accurate reading of the distance from the camera lens to the reflective tape and backboard.
We then decided to implement the example into some basic framework by really just copying and pasting. We wanted to see how the values changed and reacted if the camera was on a driving robot versus a stationary one. Once we got the example plugged in correctly, we ran the code. Unfortunately there was a large delay, something close to 10 seconds. By contrast there was no delay on the camera image feeding directly into the Driver Station.
We really only want the distance feature. Everything else is nice but we wouldn't use it in competition. We realize that if we remove all the unnecessary vision code then we can probably minimalize or remove the lag. At first we started taking away small chucks and then checking to see if distance feature was still working. This, understandably don't go to well after a little while.
We were wondering if anyone knew the best way to cut back everything to only get the distance reading. In addition to the lag issue we don't like having all this extra code that we aren't using. Any thoughts? (particularly asking Mr. McKaskle...)
__________________
Carnegie Mellon School of Computer Science Class of 2017
2012 Dean's List Winner, 2011 NWCIT Award of Aspirations in Computing National Winner
2014 - : FIRST Team 3504 Girls of Steel (Mentor)
2014 Engineering Inspiration
2006 - 2013: FIRST Team 1912 Combustion (Webmaster / Controls Capt / Beta Test Lead / Drive Capt / JrFLL Coach)
2013 Woodie Flowers Finalist for Wendy Holladay. 2010 - 2013 Regional Chairman's Award at the Bayou Regional. 2011 - 2012 Best Website at the Bayou Regional. 2010 - 2013 Beta Test Team for Hardware and LabVIEW. 2012 JrFLL State Expo Coordinator.
|