Updated Using TensorFlow Lite for the Ultimate Goal Challenge (markdown)

FTC Engineering
2020-10-20 13:57:57 -04:00
parent fd9e5a6446
commit 6ba44449a3

@ -1,6 +1,13 @@
### What is a TensorFlow Lite?
[TensorFlow Lite](https://www.tensorflow.org/lite/) is a lightweight version of Google's [TensorFlow](https://www.tensorflow.org/) machine learning technology that is designed to run on mobile devices such as an Android smartphone. A _trained TensorFlow model_ was developed to recognize game elements for the 2020-2021 Ultimate Goal presented by QualComm challenge. This TensorFlow model has been integrated into the FIRST Tech Challenge Control System software and can be used to identify and track these game pieces during a match.
### How would you use TensorFlow in the Ultimate Goal Challenge?
For this season's challenge, during the pre-Match stage a die is rolled and the field is randomized.
<p align="center">[[/images/Blocks-Sample-TensorFlow-Object-Detection-Op-Mode/randomization.png]]<br/>Create an Op Mode with ConceptTensorFlowObjectDetection as its template.<p>
When the autonomous stage of the match begins, a robot can use TensorFlow to "look" at the Starter Stack Area and determine how many (if any) rings are stacked in that area. Based on the number of rings that it "sees" the robot can deliver its wobble goal to the appropriate target zone to score additional points during the autonomous portion of the match.
### Important Note on Phone Compatibility
The TensorFlow Lite technology requires Android 6.0 (Marshmallow) or higher. If you are a Blocks programmer and you are using an older Android device that is not running Marshmallow or higher, then the TensorFlow Object Detection category of Blocks will automatically be missing from the Blocks design palette.