This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import multiprocessing | |
import optuna | |
# objective function, returns a score for example | |
def objective(trial): | |
return 1 | |
def optimize(study_name, n_trials, sleep): | |
print( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
camera3d.py | |
Victor Talpaert 2022 | |
Quick script to visualize a depth image from an ASUS Primesense camera for course I gave on March 2022 at ENSTA Paris | |
====================== | |
Instructions | |
# Install dependencies | |
pip3 install primesense numpy matplotlib opencv-python |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Add your Wii Dance Dance Revolution Dance Pad Controller as an input to your home automation. | |
https://en.wikipedia.org/wiki/Dance_pad | |
For those that want an interactive RGB lights scenery, configure your homeassistant (hass.io) | |
to change your dancefloor's lighting according to the MQTT signals. Now you are doing your | |
own light show ! | |
Hardware: | |
Each dance pad input is a weight sensible resistor. I replaced the original circuit board |