From cd27b17932df0a4e57c8186d3f2d5f5fbf05bc87 Mon Sep 17 00:00:00 2001 From: FTC Engineering Date: Wed, 28 Oct 2020 13:59:11 -0400 Subject: [PATCH] Updated Using a Custom TensorFlow Model with Blocks (markdown) --- Using-a-Custom-TensorFlow-Model-with-Blocks.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Using-a-Custom-TensorFlow-Model-with-Blocks.md b/Using-a-Custom-TensorFlow-Model-with-Blocks.md index 99e4659..2f81c42 100644 --- a/Using-a-Custom-TensorFlow-Model-with-Blocks.md +++ b/Using-a-Custom-TensorFlow-Model-with-Blocks.md @@ -29,5 +29,11 @@ Press the "Upload" button to upload the file to the Robot Controller. The words

[[/images/Using-a-Custom-TensorFlow-Model-with-Blocks/upload.png]]
Press the "Upload" button to upload the file to the Robot Controller.

+### Creating the Op Mode +Click on the "Blocks" tab at the top of the screen to navigate to the Blocks Programming page. Click on the Create New Op Mode Button to display the Create New Op Mode dialog box. Specify a name for your new op mode. Select "ConceptTensorFlowObjectDetectionCustomModel" as the sample op mode that will be used as a template for your new op mode. Note that if you do not have a webcam configured for your Robot Controller, the dialog box might display a warning message. You can ignore this warning message. Press "OK" to create your new op mode. +

[[/images/Using-a-Custom-TensorFlow-Model-with-Blocks/createNewOpMode.png]]
Use "ConceptTensorFlowObjectDetectionCustomModel" as the template for your new op mode.

+The new op mode should appear in edit mode in your browser. By default, the sample op mode assumes that you are using the smartphone camera with your robot controller. If you are using a webcam, disable the phone-specific initialization block and enable the webcam-specific block. + +

[[/images/Using-a-Custom-TensorFlow-Model-with-Blocks/initialize.png]]
Use the appropriate initialization block for the type of camera used on your robot.