android - 从 android 相机图像中过滤红外源

标签 android image filter camera infrared

我试图找出在 Android 设备上的摄像头是否有任何红外线源。 (即红外LED) 由于相机捕获红外线(我可以在预览/图片中看到 LED 灯亮起),我认为应该可以通过某种方式查明相机当前是否正在捕获红外线信号,但由于 IR“颜色”以某种方式转换为可见颜色(像紫色),这显然不像找出图片中是否有紫色那么容易,因为它可能是真正的紫色而不是红外线。
Android 引用资料告诉我,我可以获得不同图像格式(YCbCr、YUV 等)的图片,但这些格式似乎都没有太大帮助。 现在我的想法是,以某种方式从相机中获取“原始”数据,其中仍然包括有关什么是红外线和什么不是红外线的信息,或者基本上将红外线恢复为显然在后台自动发生的可见光转换。关于如何实现这一目标的任何想法?

最佳答案

问得好,如果我拿着 HI-FI 或电视的 Remote 并按下音量调高/调低,那么我可以获得 Nexus One 摄像头的红外光源:可见淡紫色在闪烁。所以 Nexus One 有红外摄像头:)

Digital cameras use CCD and other similar sensors to capture infrared images. Although all digital cameras available on the market are sensitive to infrared light, they are equipped with infrared-blocking filters. The main reason for this is that consumer cameras are designed to capture visible light. But sometimes these filters are used together, giving very interesting in-camera effects like false color, wood effects etc. To start with infrared photography, all you need to have is A digital camera that is sensitive to infrared light. A visible-light blocking filter (e.g. a Wratten 89B filter) Image-editing software, such as Photoshop. http://www.smashingmagazine.com/2009/01/11/40-incredible-near-infrared-photos/

我写了一个非常非常简单的在线广播播放器。与 Media Player 进行异步调用。有些设备正在播放有些不是,而且模式不同。从我对简单的 Madia Player 的悲惨经历来看,你将不得不编写 5 个版本才能在一些设备上工作。 Audio-Video 添加或删除了每个制造商的功能:Samsung、Sony Ericsson、Motorola,您只是想知道如果平台独立的 Java 为什么您的代码不能在该设备上运行...

我认为可以通过 NDK 从相机获取原始数据,但没有经过测试。

It provides headers and libraries that allow you to build activities, handle user input, use hardware sensors, access application resources, and more, when programming in C or C++

http://developer.android.com/sdk/ndk/index.html

如果有人找到了使用 SDK 并与 2 家不同手机制造商合作的解决方案,请告诉我!

关于android - 从 android 相机图像中过滤红外源,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8673168/

相关文章:

ruby-on-rails - 防止某些用户在 Rails Admin 中删除记录

java - Android:无法解析 AsyncTask 中的方法 'findViewById(int)'

java - 错误 :(17, 21) 错误 : no suitable method found for add(int, ExampleItemFragment)

android - setDrawerLockMode 在 android 中不起作用?

Python围绕相机轴旋转图像

css - IE 中的元素旋转和调整大小(jQuery UI + CSS)

android - 通过音频插孔电缆在两个 Android 设备上传输数据

android - react native 图像组件在 android 中不起作用

algorithm - 放大一张大图片

javascript - Jquery 中的queue() 和filter() 链接是否会提高性能?