final void setPreviewCallback(Camera.PreviewCallback cb) Installs a callback to be invoked for every preview frame in addition to displaying them on the screen.abstract void onPreviewFrame(byte[] data, Camera camera) Called as preview frames are displayed.这里返回的是预览帧 速率很快, data为一个YUV的数据流, 需要转换为RGB 添加好定时功能 ,即可得到你想要的效果。
Installs a callback to be invoked for every preview frame in addition to displaying them on the screen.abstract void onPreviewFrame(byte[] data, Camera camera)
Called as preview frames are displayed.这里返回的是预览帧 速率很快, data为一个YUV的数据流, 需要转换为RGB 添加好定时功能 ,即可得到你想要的效果。