Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经使用 android vision API 从图像中找到面部区域。但是如何从实时相机中裁剪脸部。关联
您可以使用 takePicture 方法获取图像
mCameraSource.takePicture(new CameraSource.ShutterCallback() { @Override public void onShutter() { } }, new CameraSource.PictureCallback() { @Override public void onPictureTaken(byte[] bytes) { //Your code for crop faces here } });