diff --git a/Blocks-Sample-TensorFlow-Object-Detection-Op-Mode.md b/Blocks-Sample-TensorFlow-Object-Detection-Op-Mode.md index 4110327..85215b5 100644 --- a/Blocks-Sample-TensorFlow-Object-Detection-Op-Mode.md +++ b/Blocks-Sample-TensorFlow-Object-Detection-Op-Mode.md @@ -76,7 +76,12 @@ Save the op mode and re-run it. The op mode should display the target zone base
[[/images/Blocks-Sample-TensorFlow-Object-Detection-Op-Mode/modifiedBlocksExample.png]]
The modified op mode should indicate target zone based on the label of last recognized object in its list.
### Important Note Regarding Image Orientation -If you are using a webcam with your Robot Controller, then the camera orientation is fixed in landscape mode. However, if you are using a smartphone camera, the system will interpret images based on the phone's orientation (Portrait or Landscape) at the time that the TensorFlow object detector is created and initialized. In our example, if you execute the TensorFlowObjectDetection.initialize block while the phone is in Portrait mode, then the images will be processed in Portrait mode. +If you are using a webcam with your Robot Controller, then the camera orientation is fixed in landscape mode. However, if you are using a smartphone camera, the system will interpret images based on the phone's orientation (Portrait or Landscape) at the time that the TensorFlow object detector is created and initialized. + +Note that for the Ultimate Goal presented by QualComm Challenge, the default TensorFlow inference model is optimized for a camera in landscape mode. + This means that it is better to orient your camera in landscape mode if you use this default inference model because you will get more reliable detections. + +In our example, if you execute the TensorFlowObjectDetection.initialize block while the phone is in Portrait mode, then the images will be processed in Portrait mode.
[[/images/Blocks-Sample-TensorFlow-Object-Detection-Op-Mode/tfodPortrait.png]]
If you initialize the detector in Portrait mode, then the images are processed in Portrait mode.