Set android camera to send gray scale images

2020-05-01 08:04发布

问题:

Can the android camera be programmatically set to send gray scale images. I'm not asking about conversion after the images have been received, I'm asking for a way to programmatically set it like we do with fps, resolution etc.

回答1:

Are you talking about the built in camera app (via an intent) or inside your app?

If it's the built in camera app, i don't think it's possible, and even if it was , you can't assume it will work the same on all devices, since many of them have customized camera apps.

About camera within your app, yes, you can do it, and there are examples out there how to do show things on the camera based on its content , like this one