Giter VIP home page Giter VIP logo

Comments (6)

TouqeerAhmad avatar TouqeerAhmad commented on June 30, 2024 1

Thank you for your detailed reply. I was actually able to get the required data (with 20fps vision and 100 fps imu) by explicitly specifying the sample rate as advised in here.

https://stackoverflow.com/questions/17663191/android-accelerometer-sampling-rate

The weird thing is for Pixel2/Pixel2XL the default DelayFastest worked but for S8/Pixel and PixelXL, I had to specify the sampling rate, the flag for DelayFastest was making it stuck.

Thank you for you help and code!

from android-dataset-recorder.

goldbattle avatar goldbattle commented on June 30, 2024

I would look into how that setting is getting set, I think I remember back when I made this it had a higher rate then 50fps for the IMU. I never fully tested this package out as I ended up not needing it for my project. Here are the points in the code I would look at:

HERE and HERE

From the looks of it, I am hard coding the values of the ENUM that should be getting used.
https://developer.android.com/reference/android/hardware/SensorManager.html#SENSOR_DELAY_FASTEST

Ideally that should work, but maybe there is some issues that we are not aware of?
Not sure, hope this helps you look in the right direction.

from android-dataset-recorder.

goldbattle avatar goldbattle commented on June 30, 2024

from android-dataset-recorder.

fangxu622 avatar fangxu622 commented on June 30, 2024

do you solve the problem ? I get the problem in lenovo phab2 pro(google tango phone). App Freezes when Delay Fastest is Selected..and I can get 90-100 fps imu when select delay game ,but the vision data just have 3-5fps, I want to get 20fps vision and 100 fps imu or higher~~how do you solve this problem

from android-dataset-recorder.

goldbattle avatar goldbattle commented on June 30, 2024

The problem with the vision data is that it needs to get copied into an opencv format which I think causes the largest amount of delay and thus a slow framerate. I was only able to have higher framerates if I used an extremely small images. You could try to optimize/investigate this section of code:
https://github.com/rpng/android-dataset-recorder/blob/master/app/src/main/java/io/rpng/recorder/activities/MainActivity.java#L187-L290

For the IMU, you could manually change the code so that you are inputting "10" for 10 milliseconds which is the delay for 100hz. (see https://stackoverflow.com/a/21427536)

from android-dataset-recorder.

fangxu622 avatar fangxu622 commented on June 30, 2024

@goldbattle why not record video for vision data avoid app get stuck? Can we do that?

from android-dataset-recorder.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.