Redefining Touchless Interactions.
Use pre-defined gestures to navigate through the webpage.
Scroll up | Scroll down | Scroll left | Scroll right |
---|---|---|---|
It's as simple as including just two lines of code.
<script src="https://cdn.jsdelivr.net/gh/sayamkanwar/TouchInverseJS/dist/touchinverse.min.js"></script>
<div id="touchinverse"></div>
OR
You can download the latest release of the library from here and include it locally in your project.
<script src="touchinverse.min.js"></script>
<div id="touchinverse"></div>
Follow these steps to start the backend server easily.
git clone https://github.com/sayamkanwar/TouchInverseJS.git
cd TouchInverseJS
TouchInverse's backend has been created on python2.7. It will be migrated to python3 in the next release.
- Create a virtual environment:
virtualenv -p /usr/bin/python2.7 venv
source venv/bin/activate
- Install the requirements:
pip install -r requirements.txt
. - Install
detectron
:pip install -e git+https://github.com/facebookresearch/densepose@35e69d110b432704c2183cd6aea531f4f695edbe#egg=Detectron
.
That's all! You're good to go.
To run the server, enter gunicorn main:app 80
. The backend server will be live at 127.0.0.1:8000
.
You can now simply include the touchinverse.min.js
file in your project and it'll add the plugin automatically.
If you want to test it, a demo has been included in the repository by the name of demo.html
. You can fire up a python http server to test it: python -m SimpleHTTPServer 80
. Open http://localhost/demo.html
in your browser and you can see it in action.
P.S. If you change the port due to some reason or host the server on a cloud, you'll have to edit the window.post_url
variable in touchinverse.min.js
file.
I'm working on the model's accuracy to make it as close to perfect as possible so in the next few releases, the model's accuracy should be better than the present one. The next release of Touch Inverse will also have the backend API hosted on a cloud server so as to avoid the server setup.
If you encounter any issue, feel free ping me at sayamkanwar616@gmail.com. :)