Updated Blocks Sample TensorFlow Object Detection Op Mode (markdown)
@ -76,13 +76,13 @@ Save the op mode and re-run it. The op mode should display the target zone base
|
||||
<p align="center">[[/images/Blocks-Sample-TensorFlow-Object-Detection-Op-Mode/modifiedBlocksExample.png]]<br/>The modified op mode should indicate target zone based on the label of last recognized object in its list.<p>
|
||||
|
||||
### Important Note Regarding Image Orientation
|
||||
The system interprets images based on the phone's orientation (Portrait or Landscape) at the time that the TensorFlow object detector was 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. 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.
|
||||
|
||||
<p align="center"><img src="https://github.com/FIRST-Tech-Challenge/WikiSupport/blob/master/tensorflow/images/tfodPortrait.png" width="300"> <img src="https://github.com/FIRST-Tech-Challenge/WikiSupport/blob/master/tensorflow/images/tfodDSPortrait.png" width="300"><br/>If you initialize the detector in Portrait mode, then the images are processed in Portrait mode.<p>
|
||||
<p align="center">[[/images/Blocks-Sample-TensorFlow-Object-Detection-Op-Mode/tfodPortrait.png]]<br/>If you initialize the detector in Portrait mode, then the images are processed in Portrait mode.<p>
|
||||
|
||||
The "Left" and "Right" values of an object's bounding box correspond to horizontal coordinate values, while the "Top" and "Bottom" values of an object's bounding box correspond to vertical coordinate values.
|
||||
|
||||
<p align="center"><img src="https://github.com/FIRST-Tech-Challenge/WikiSupport/blob/master/tensorflow/images/tfodBoundaries.png" width="300"><br/>The "Left" and "Top" boundaries of a detection box when the image is in Portrait mode.<p>
|
||||
<p align="center">[[/images/Blocks-Sample-TensorFlow-Object-Detection-Op-Mode/tfodBoundaries.png]]<br/>The "Left" and "Top" boundaries of a detection box when the image is in Portrait mode.<p>
|
||||
|
||||
If you want to use your smartphone in Landscape mode, then make sure that your phone is in Landscape mode when the TensorFlow object detector is initialized. Landscape mode is preferable for this season's game since it offers a wider field of view so that all three minerals can fit in a single image.
|
||||
|
||||
|
Reference in New Issue
Block a user