YUV如何转bitmap
Completed这里已经拿到YUV数据了,如何转换成bitmap,有例子吗?MSKD_V4.16.4
-
已完成,Android-VideoStreamDecodingSample/android-videostreamdecodingsample/app/src/main/java/com/dji/videostreamdecodingsample/MainActivity.java at master · DJI-Mobile-SDK-Tutorials/Android-VideoStreamDecodingSample (github.com)。总结:onYuvDataReceived方法中需要参考官方例子,获得yuvImage,然后从网上找YUV转bitmap的方法。之后进行图像处理比如目标识别,然后通过SurfaceHolder将结果绘制到Canvas画布上。
Please sign in to leave a comment.
Comments
3 comments