diff --git a/Blocks-Sample-Op-Mode-for-TensorFlow-Object-Detection.md b/Blocks-Sample-Op-Mode-for-TensorFlow-Object-Detection.md index 6e3f26c..4740693 100644 --- a/Blocks-Sample-Op-Mode-for-TensorFlow-Object-Detection.md +++ b/Blocks-Sample-Op-Mode-for-TensorFlow-Object-Detection.md @@ -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.

[[https://raw.githubusercontent.com/wiki/WestsideRobotics/FTC-training/Images/050_Blocks_TFOD_webcam_variable.png]]
Reset the variable to false with each cycle of the "while" loop.