Changes between Version 8 and Version 9 of ControlSystems/SoftwareTeam/Training/GettingStarted/Cameras
- Timestamp:
- Nov 15, 2019, 11:13:13 PM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ControlSystems/SoftwareTeam/Training/GettingStarted/Cameras
v8 v9 30 30 6. To display the camera open up Shuffleboard and read [https://wpilib.screenstepslive.com/s/currentCS/m/shuffleboard/l/831042-displaying-camera-streams this] 31 31 32 ** Multiple Cameras ** 32 33 It's often desirable for a robot to have more than one camera; the camera server supports this and you can select cameras using a game controller button or even automatically when the robot changes direction. You can read about multiple camera selection [https://wpilib.screenstepslive.com/s/currentCS/m/vision/l/708159-using-multiple-cameras here] 33 34 34 It's possible to do many more advanced things with cameras including processing the video stream in software to identify game pieces and targets. Team 2537 generally doesn't do this processing on the !RoboRIO because it lack sufficient processing power; instead we use a Raspberry Pi with its own camera to do the processing; a Raspberry Pi is several times more powerful than the !RoboRIO. 35 ** Vision processing (OpenCV) ** 36 It's possible to process the video stream in software to identify game pieces and targets. This requires use of vision processing libraries such as OpenCV; you can read about it on screenstepslive [https://wpilib.screenstepslive.com/s/currentCS/m/vision/l/682778-read-and-process-video-cameraserver-class here]. Team 2537 generally doesn't process video on the !RoboRIO because it lack sufficient memory and CPU power; instead we use a Raspberry Pi which has several times more memory and processing power. 35 37 36 Another way to make driving by camera easier is to create overlays on the video feed such as cross-hairs to show where a shooter is aimed. Doing this requires using the NIVision libraries and software provided with [https://forums.ni.com/t5/FIRST-Robotics-Competition/Download-FRC-Software-Here/ta-p/3734559?profile.language=en FRC Update Suite]. Note: ask a mentor for the team's serial number. You may also need the [https://www.ni.com/en-us/support/downloads/drivers/download/packaged.vision-acquisition-software.329473.html acquisition software]. 38 ** Drawing Overlays ** 39 Another way to make driving by camera easier is to create overlays on the video feed such as cross-hairs to show where a shooter is aimed. Doing this requires using the NIVision libraries and software provided with [https://forums.ni.com/t5/FIRST-Robotics-Competition/Download-FRC-Software-Here/ta-p/3734559?profile.language=en FRC Update Suite]. Note: ask a mentor for the team's serial number. You may also need the [https://www.ni.com/en-us/support/downloads/drivers/download/packaged.vision-acquisition-software.329473.html acquisition software] and import the com.ni.vision.NIVision.*