edgeimpulse / mobile-client

Mobile acquisition and inferencing client
Apache License 2.0
59 stars 16 forks source link

Unable to acquire data #1

Open vanti opened 4 years ago

vanti commented 4 years ago

I followed the instructions to add my mobile phone (Sony Xperia X Compact) as a device, and the phone seemed to be added fine. Then I tried to follow the instructions to collect some data: https://docs.edgeimpulse.com/docs/continuous-motion-recognition

When I hit "Start Sampling", the phone responded and tried to collect 10 seconds of data. But no matter how I moved the phone, I would only collect a bunch of 0's:

image

Any clue as to what may be wrong?

janjongboom commented 4 years ago

@vanti What browser are you using? I suspect a problem with access to the devicemotion API...

vanti commented 4 years ago

I am using Google Chrome.

janjongboom commented 4 years ago

@vanti If you head to https://timvolodine.github.io/deviceorientation-test/ do you see any data flowing through? I don't think there's a way to disable devicemotion API in Chrome on Android, so I'm not sure how to fix this easily...

vanti commented 4 years ago

I have figured it out. Need to enable sensors under Settings->Site Settings->Motion Sensors in Chrome. Thanks for pointing me on the right track!

janjongboom commented 4 years ago

@vanti Awesome, I'll add it to the docs!