YashIndane / phone-orientation

A webapp that displays is your phone upright or up-side down

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

phone-orientation

A webapp that displays is your phone upright or up-side down

Demo Link ->

Working

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.

phoneorien

Installations

Keras

$ pip install keras

Tensorflow

$ pip install tensorflow

App installation

Install Sensorstream IMU+GPS App from Google PlayStore.

imu

Training the model

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.

About

A webapp that displays is your phone upright or up-side down

License:Apache License 2.0


Languages

Language:Python 71.0%Language:JavaScript 20.6%Language:HTML 8.4%