Comments (6)
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.
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:
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.
from android-dataset-recorder.
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.
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.
@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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-dataset-recorder.