Updated Blocks Sample Op Mode for TensorFlow Object Detection (markdown)

Westside Robotics
2021-10-21 13:57:25 -07:00
parent adff0fc1ee
commit 70b3cd77f8

@ -59,7 +59,7 @@ If the list is empty (i.e., if no objects were detected) the op mode sends a tel
If the list is not empty, then the op mode iterates through the list and calls a function "displayInfo" to display information via telemetry about each detected object.
### Modifying the Sample Op Mode to display Target Zone
### Modifying the Sample Op Mode to Indicate Duck Detected
This sample op mode uses TensorFlow blocks for the Freight Frenzy season. Let's modify the op mode so it will set a variable to indicate whether a Duck was detected, and show a Telemetry message accordingly. Using the Blocks editor, under Variables, create a new variable "isDuckDetected". Initialize it to "false", just before the "for each item" block that will examine the list of recognitions.
<p align="center">[[https://raw.githubusercontent.com/wiki/WestsideRobotics/FTC-training/Images/050_Blocks_TFOD_webcam_variable.png]]<br/>Reset the variable to false with each cycle of the "while" loop.<p>