简体   繁体   English

如何在Android中同时获取传感器测量值和从相机捕获图像?

[英]How to get sensor measurement and capture image from camera simultaneously in android?

I want to capture the sensor readings at the exact time when an image is captured in android. 我想在Android中捕获图像时的准确时间捕获传感器读数。

I know to get sensor values. 我知道要获取传感器值。 I also know to capture images from camera intent. 我也知道要从相机意图中捕获图像。

But the problem is that the sensor values may not correspond to the exact time of capture. 但是问题是传感器值可能与捕获的确切时间不对应。 This is because the camera app has the user delay for the "OK/cancel" thing after clicking an image. 这是因为相机应用程序在单击图像后,用户延迟了“确定/取消”操作。

How do I obtain the sensor reading at the exact time of clicking? 如何在准确的点击时间获得传感器读数?

Thanks in advance. 提前致谢。

But the problem is that the sensor values may not correspond to the exact time of capture. 但是问题是传感器值可能与捕获的确切时间不对应。 This is because the camera app has the user delay for the "OK/cancel" thing after clicking an image. 这是因为相机应用程序在单击图像后,用户延迟了“确定/取消”操作。

When user clicks an image, you can observe the image folder for file changing, then you know exact time. 用户单击图像时,可以观察图像文件夹中的文件更改,然后知道确切的时间。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM