ftctechnh / ftc_app

FTC Android Studio project to create FTC Robot Controller app.
759 stars 3.17k forks source link

usage of VuforiaLocalizerImpl.onRenderFrame()? #657

Open j-christ opened 5 years ago

j-christ commented 5 years ago

We're doing some image processing (using OpenCV) on the frames generated from VuforiaLocalizer.getFrameOnce(). We'd like to overlay the results of that processing on the rendered frame, and it looks like onRenderFrame() would be the place to do that. However, our processing results are in image pixel coordinates, and the onRenderFrame context appears to be using OpenGL.

Does anyone have any suggestions as to how to get pixel-coordinate data (e.g. OpenCV contours) to be overlayed on the frame in onRenderFrame?

Windwoes commented 3 years ago

If you want to draw on the screen, and you're already using OpenCV, then using EasyOpenCV is your best bet.