acmerobotics / ftc-dashboard

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

[Feature] VisionPortal compatibility #140

Closed AlphaRant9 closed 11 months ago

AlphaRant9 commented 11 months ago

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

wangxdflight commented 11 months ago

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

rbrott commented 11 months 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.