Updated Using an External Webcam (markdown)

FTC Engineering
2019-10-17 10:38:09 -04:00
parent a8a653469b
commit 103c3e6aa5

@ -60,14 +60,15 @@ This option may be used to adjust the camera, with frequent manual image refresh
<p align="center">[[/images/Using-an-External-Webcam/DS-webcam-preview-CH-3.jpg]]<p> <p align="center">[[/images/Using-an-External-Webcam/DS-webcam-preview-CH-3.jpg]]<p>
**Important Note:** Because the camera stream feature is only available during the INIT phase of an op mode, you must ensure that the Vuforia library is activated in your Op Mode _**before**_ the waitForStartCommand: **Important Note:** Because the Camera Stream feature is only available during the INIT phase of an op mode, you must ensure that the Vuforia library is activated in your Op Mode _**before**_ the waitForStartCommand:
<p align="center">[[/images/Using-an-External-Webcam/activateBeforeWaitForStart.jpg]]<p> <p align="center">[[/images/Using-an-External-Webcam/activateBeforeWaitForStart.jpg]]<p>
In order for the Camera Stream function to be available, the Robot Controller must detect that there is an active Vuforia video stream available. Because this feature is only available during the INIT phase of an op mode If you do not see the Camera Stream option in your main menu on your Driver Station, then verify that the Vuforia function is activated before the waitForStart command in your Op Mode. Also make sure you've given the system enough time to initialize the Vuforia software before you check to see if Camera Stream is available.
Because this image displays during INIT, Vuforia or TensorFlow augmented data appears only if activated before the waitForStart command. This is demonstrated in the Sample Op Modes.
Alternatively, camera output can be viewed on a display monitor or other device plugged into the HDMI port on the REV Control Hub. Alternatively, camera output can be viewed on a display monitor or other device plugged into the HDMI port on the REV Control Hub.
**Important Note:** While a portable display monitor can be used to view or troubleshoot the camera stream on your Control Hub, teams are not allowed to have a portable display monitor connected to their Control Hub during a match.
For custom streams, advanced users of Android Studio may consult the API documentation for CameraStreamServer#setSource and CameraStreamSource. For custom streams, advanced users of Android Studio may consult the API documentation for CameraStreamServer#setSource and CameraStreamSource.