You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I currently have this code, but I'm not sure if it is correct.
cameraClient.addPreviewDataCallBack(object : IPreviewDataCallBack {
override fun onPreviewData(data: ByteArray?, width: Int, height: Int, format: IPreviewDataCallBack.DataFormat) {
val frameData = data //Frame data form camera
}
})
After reading the documentation jiangdongguo/AndroidUSBCamera , I think we should add
// acquire raw data(NV21 or RGBA)
setPreviewDataCallBack(callBack)
but I don 't know how to do it , maybe you can help me ?
Best regards !
The text was updated successfully, but these errors were encountered: