acmerobotics / ftc-dashboard

React-based web dashboard designed for FTC
https://acmerobotics.github.io/ftc-dashboard
Other
178 stars 137 forks source link

[Feature] VisionPortal compatibility #140

Closed AlphaRant9 closed 1 year ago

AlphaRant9 commented 1 year ago

Hey there! Is there any plans in the future to make a VisionPortal or AprilTagProcessor object compatible with FtcDashboard.getInstance().startCameraStream()?

wangxdflight commented 1 year ago

Having the same need. It would be nice to add the support.

rbrott commented 1 year ago

I added a new example that hopefully helps: https://github.com/acmerobotics/ftc-dashboard/blob/master/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/VisionPortalStreamingOpMode.java.

You can also use this with CameraStreamServer. Not sure why the stock vision portal doesn't implement CameraStreamSource.