A webapp that displays is your phone upright or up-side down
Demo Link ->
Sensorstream app continously sends the sensor values to up-down-API.py. The JS file in the flask app home.js continously sends GET
request to the up-down-API.py and with the help of cgi
Python module the orientation of the phone is send as a response. According to the response home.js adjusts the image on browser.
Keras
$ pip install keras
Tensorflow
$ pip install tensorflow
Install Sensorstream IMU+GPS App from Google PlayStore.
If you need your own model then use value_capture.py to first get the sensor data. Use Orientation sensor data for getting the orientation. Now use the model_training.py to train the model.