From 70b3cd77f880c4fef4e784e3e16bef7361cbac35 Mon Sep 17 00:00:00 2001 From: Westside Robotics Date: Thu, 21 Oct 2021 13:57:25 -0700 Subject: [PATCH] Updated Blocks Sample Op Mode for TensorFlow Object Detection (markdown) --- Blocks-Sample-Op-Mode-for-TensorFlow-Object-Detection.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.