Updated Blocks Sample TensorFlow Object Detection Op Mode (markdown)

FTC Engineering
2020-10-26 19:20:07 -04:00
parent 42cd32c0bb
commit 5cacb68eb3

@ -86,20 +86,20 @@ The "Left" and "Right" values of an object's bounding box correspond to horizont
If you want to use your smartphone in Landscape mode, then make sure that your phone is in Landscape mode when the TensorFlow object detector is initialized. Landscape mode is preferable for this season's game since it offers a wider field of view so that all three minerals can fit in a single image.
<p align="center"><img src="https://github.com/FIRST-Tech-Challenge/WikiSupport/blob/master/tensorflow/images/tfodLandscape.png" height="300"><br/>The system can also be run in Landscape mode.<p>
<p align="center">[[/images/Blocks-Sample-TensorFlow-Object-Detection-Op-Mode/tfodLandscape.png]]<br/>The system can also be run in Landscape mode.<p>
If the phone is in Landscape mode when the object detector is initialized, then the images will be interpreted in Landscape mode.
<p align="center"><img src="https://github.com/FIRST-Tech-Challenge/WikiSupport/blob/master/tensorflow/images/tfodBoundariesLandscape.png" height="300"><br/>The "Left" and "Top" boundaries of a detection box when the image is in Landscape mode.<p>
<p align="center">[[/images/Blocks-Sample-TensorFlow-Object-Detection-Op-Mode/tfodBoundariesLandscape.png]]<br/>The "Left" and "Top" boundaries of a detection box when the image is in Landscape mode.<p>
Note that Android devices can be locked into Portrait Mode so that the screen image will not rotate even if the phone is held in a Landscape orientation. If your phone is locked in Portrait Mode, then the TensorFlow object detector will interpret all images as Portrait images. If you would like to use the phone in Landscape mode, then you need to make sure your phone is set to "Auto-rotate" mode. In Auto-rotate mode, if the phone is held in a Landscape orientation, then the screen will auto rotate to display the contents in Landscape form.
<p align="center"><img src="https://github.com/FIRST-Tech-Challenge/WikiSupport/blob/master/tensorflow/images/autorotate.png" width="300"><br/>Auto-rotate must be enabled in order to operate in Landscape mode.<p>
<p align="center">[[/images/Blocks-Sample-TensorFlow-Object-Detection-Op-Mode/autorotate.png]]<br/>Auto-rotate must be enabled in order to operate in Landscape mode.<p>
### Deactivating TensorFlow
When the example Op Mode is no longer active (i.e., when the user has pressed the stop button on the Driver Station) the Op Mode will attempt to deactivate the TensorFlow library before it's done. It's important to deactivate the library to free up system resources.
<p align="center"><img src="https://github.com/FIRST-Tech-Challenge/WikiSupport/blob/master/tensorflow/images/blocksTensorFlowDeactivate.png" width="400"><br/>Deactivate TensorFlow.<p>
<p align="center">[[/images/Blocks-Sample-TensorFlow-Object-Detection-Op-Mode/blocksTensorFlowDeactivate.png]]<br/>Deactivate TensorFlow.<p>
### Using a Custom Inference Model