All Projects → burningion → Dab And Tpose Controlled Lights

burningion / Dab And Tpose Controlled Lights

Control your lights with dab and t-pose, duh

Projects that are alternatives of or similar to Dab And Tpose Controlled Lights

Workshop
AI and Machine Learning with Kubeflow, Amazon EKS, and SageMaker
Stars: ✭ 2,418 (+1664.96%)
Mutual labels:  jupyter-notebook
Robustautoencoder
A combination of Autoencoder and Robust PCA
Stars: ✭ 137 (+0%)
Mutual labels:  jupyter-notebook
Fetching Financial Data
Fetching financial data for technical & fundamental analysis and algorithmic trading from a variety of python packages and sources.
Stars: ✭ 137 (+0%)
Mutual labels:  jupyter-notebook
Zhihu Spider
一个获取知乎用户主页信息的多线程Python爬虫程序。
Stars: ✭ 137 (+0%)
Mutual labels:  jupyter-notebook
Youtube Like Predictor
YouTube Like Count Predictions using Machine Learning
Stars: ✭ 137 (+0%)
Mutual labels:  jupyter-notebook
End To End Generative Dialogue
A neural conversation model
Stars: ✭ 137 (+0%)
Mutual labels:  jupyter-notebook
Datacamp solutions python
My solutions to DataCamp projects (now only Python)
Stars: ✭ 138 (+0.73%)
Mutual labels:  jupyter-notebook
Cnn Audio Denoiser
Tensorflow 2.0 implementation of the paper: A Fully Convolutional Neural Network for Speech Enhancement
Stars: ✭ 138 (+0.73%)
Mutual labels:  jupyter-notebook
Wikidataintegrator
A Wikidata Python module integrating the MediaWiki API and the Wikidata SPARQL endpoint
Stars: ✭ 137 (+0%)
Mutual labels:  jupyter-notebook
Copy Paste Aug
Copy-paste augmentation for segmentation and detection tasks
Stars: ✭ 132 (-3.65%)
Mutual labels:  jupyter-notebook
Nfft
Lightweight non-uniform Fast Fourier Transform in Python
Stars: ✭ 137 (+0%)
Mutual labels:  jupyter-notebook
Text Analytics
Unstructured Data Analysis (Graduate) @Korea University
Stars: ✭ 138 (+0.73%)
Mutual labels:  jupyter-notebook
Smilecnn
Smile detection with a deep convolutional neural net, with Keras.
Stars: ✭ 137 (+0%)
Mutual labels:  jupyter-notebook
Dask Docker
Docker images for dask
Stars: ✭ 137 (+0%)
Mutual labels:  jupyter-notebook
Glasses
High-quality Neural Networks for Computer Vision 😎
Stars: ✭ 138 (+0.73%)
Mutual labels:  jupyter-notebook
Datasets
🎁 3,000,000+ Unsplash images made available for research and machine learning
Stars: ✭ 1,805 (+1217.52%)
Mutual labels:  jupyter-notebook
Dat210x
Programming with Python for Data Science Microsoft
Stars: ✭ 137 (+0%)
Mutual labels:  jupyter-notebook
Easy slam tutorial
首个中文的简单从零开始实现视觉SLAM理论与实践教程,使用Python实现。包括:ORB特征点提取,对极几何,视觉里程计后端优化,实时三维重建地图。A easy SLAM practical tutorial (Python).图像处理、otsu二值化。更多其他教程我的CSDN博客
Stars: ✭ 137 (+0%)
Mutual labels:  jupyter-notebook
Rapids Single Cell Examples
Examples of single-cell genomic analysis accelerated with RAPIDS
Stars: ✭ 138 (+0.73%)
Mutual labels:  jupyter-notebook
Qutip Notebooks
A collection of IPython notebooks using QuTiP: examples, tutorials, development test, etc.
Stars: ✭ 137 (+0%)
Mutual labels:  jupyter-notebook

Dab and T-Pose Controlled Lights

Control your lights by dabbing and t-pose'ing, duh

Dab and T-Pose Controlled Lights

Check out the full blog post here.

Getting the ZWave Controller working on the TX2

By default, I couldn't write to the /dev/ttyACM0 device that the ZWave USB controller came up on with my NVDIA Tegra TX2.

You'll need to do something along the following to get permissions:

$ sudoedit /etc/udev/rules.d/50-myusb.rules

Followed by inserting the following lines to add perms to the /dev/ttyUSB* and /dev/ttyACM*:

KERNEL=="ttyUSB[0-9]*",MODE="0666"
KERNEL=="ttyACM[0-9]*",MODE="0666"

Getting an OpenPose Model running on the TX2

There are two ways, I started out by using the original OpenPose repo to get a build and proof of concept running.

I got probably half a frame 1.4(ish) frames per second out of that. You can see how I initialize and use the built in devboard camera in the 01_body_from_image.py file in this repo. That comes directly out of the included Python examples.

Because I wanted better response time, I ended up searching for a better model. I found tf-pose-estimation.

It requires Tensorflow, so be sure to grab the latest Jetpack release from NVIDIA here when installing.

After that, it should run with the included run_webcam.py, just be sure to run it with the right model. Mobilenet_v2_large was the bare minimum for an acceptable detection for me:

$ python3 run_webcam.py --model=mobilenet_v2_large --resize=432x368

With this model, I get 4(ish) frames per second on the TX2, much better for detection latency. I may try seeing if I can optimize further after getting a full proof of concept running.

Exploring OpenPose Data and Training a New Classifier

We'll use some saved examples of T-Poses and Dabs in order to train our classifier. You can see the Jupyter notebook here with examples of labeling and converting our raw npy Numpy exports to CSVs and Pandas datasets, along with cleanup and training.

The current (working) architecture looks like this:

Dab and T-Pose Neural Network Architecture

Running the Project Itself

Dab and T-Pose Architecture

You'll need to get OpenPose up and running, along with the Python libraries for OpenCV and ZWave. After that, you can use the included program, just run it under the openpose/examples/tutorial_api_python directory.

If you want to grab more example poses for retraining, just replace the 01_body_from_image.py with the one included in this repo's src/ directory.

Known bugs

For some reason, the model test I run on my original X and y dataset doesn't seem to work. I think I messed the data up somewhere along the way in the Jupyter Notebook. If you figure out where that happens, open a PR please. :)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].