Android 中的真实相机
我正在使用 Android Camara 做一个颜色检测器,需要一个良好的参数配置来显示真实的颜色。例如,我聚焦在黑色衬衫上,但相机接受光线并将颜色更改为浅灰色,而我不想要它。 如果有人知道如何进行良好的配置,我将不胜感激。
I'm doing a color detector with the Android Camara and need a good parameters configuration that show me a realistic color. For example, I focus in a black shirt, but the camara take the light and change the color to light gray and i don't want it.
If someone knows how to make a good configuration I would appreciate it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不能说我自己做到了,但我认为您需要有一个活动,其唯一目的是进行校准。您将获得实时摄像头反馈,并提示用户按 + 或 - 如果衬衫是他们想要的黑色。 +/- 将增强应用于相机视图的颜色矩阵滤镜。拍摄照片并使用捕获的位图可能比实时摄像头输入更简单。
I can't say I have done it myself but I think you would need to have an Activity whose sole purpose would be to do calibration. You would be getting a live Camera feed and prompt the user to press + or - if the shirt is the black they want. The +/- would be augmenting a Color matrix filter applied to the camera view. It might be simpler to take a picture and work with the captured bitmap than it would be for the live camera feed.