简体   繁体   中英

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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