Changes between Version 8 and Version 9 of ControlSystems/SoftwareTeam/Training/GettingStarted/Cameras


Ignore:
Timestamp:
Nov 15, 2019, 11:13:13 PM (5 years ago)
Author:
David Albert
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ControlSystems/SoftwareTeam/Training/GettingStarted/Cameras

    v8 v9  
    30306. To display the camera open up Shuffleboard and read [https://wpilib.screenstepslive.com/s/currentCS/m/shuffleboard/l/831042-displaying-camera-streams this]
    3131
     32** Multiple Cameras **
    3233It'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]
    3334
    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) **
     36It'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.
    3537
    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 **
     39Another 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.*