设置android相机发送灰度图像 [英] Set android camera to send gray scale images
问题描述
可以通过编程方式将Android摄像头设置为发送灰度图像。
我收到图片后我没有询问转换,我要求一种方法以编程方式设置它,就像我们使用fps,分辨率等一样。
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.
推荐答案
您是在谈论内置相机应用程序(通过意图)还是在应用内部?
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
这篇关于设置android相机发送灰度图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!