How to calculate device translation from accelerometer values?

59 Views Asked by At

I've been working on a react based camera application which records a video along with its translation motion for each frame. But react does not have a lot of libraries supporting AR, and the only library we found called Viro is not maintained. I wanted to avoid using these libraries and directly get the translation values from the accelerometer sensor values. How do I go about doing that.

I had done a bit of googling and found that we could double integrate the acceleration wrt time to get the displacement, but also it has an issue where the noise will accumulate and make the displacement unusable.

So what is the actual method of getting it? Any help is appreciated.

0

There are 0 best solutions below