Open iCalculated opened 5 years ago
Maybe consider base-64 string encoding. Resources here: https://www.baeldung.com/java-base64-image-string
Taking the image file from the Robot and sending it back to the client as a string to save memory and resources for processing.
Never mind guys i was messing around
Planning a redo of the driverstation-side vision processing, now that onboard processing is working. My biggest goal is to not require OpenCV's native libraries, as they were not required at all for robot-side processing. Also, the CameraServer seems to be an automatic networktable, if it is able to communicate with Shuffleboard, so I'll just be reading up on how to implement it.
However, if we plan to do offboard android/pi processing, one problem would be how would we connect to NetworkTables if the driver station is already connected to the robot? If that is not possible, how would we send information though USB?
Another issue is getting the camera from the offboard computer. WPILIB automatically does it for us for the robot, but I don't know the process for getting it on an android phone for example.
How about 2 Network Tables? One from the RasPi to the Robot, and one from the robot to the DriverStation?
Also, from a RasPi, then we can use a USB webcam plugged into the pi
Main issue at this point is getting information from the camera to the Driver Station and back.