我按照Android Studio教程获得了CameraPreview to work (Camera API Android Developer Guide)。但我想在每次更改时从预览中的特定像素获得RGB值。我找不到将previewImage转换为位图的方法,也不能理解onPreviewFrame方法的用法 @Override public void onPreviewFrame(byte[] data,Camera camera) {} 如何从Camerapreview像素获取<
我正在尝试使用从Camera.PreviewCallback的onPreviewFrame()方法获得的byte[]数据来使用OpenCV人脸检测 Mat matrgb = new Mat();
Imgproc.cvtColor(matNew, matrgb, Imgproc.COLOR_YUV420sp2RGB