https://github.com/zsc/facetap
A Face Detection controlled Tap
https://github.com/zsc/facetap
Last synced: about 1 year ago
JSON representation
A Face Detection controlled Tap
- Host: GitHub
- URL: https://github.com/zsc/facetap
- Owner: zsc
- Created: 2020-01-12T09:54:32.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-03T11:30:03.000Z (over 3 years ago)
- Last Synced: 2025-01-13T15:25:20.993Z (about 1 year ago)
- Language: Python
- Size: 1.52 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# facetap
A Face Detection controlled Tap
## Auto run
Add below to `/etc/crontab`
```
@reboot ubuntu bash -c "cd /home/ubuntu/facetap/flask/ && FLASK_APP=/home/ubuntu/facetap/flask/main.py python2 -m flask run --host=0.0.0.0 > /tmp/t.txt 2>&1"
```
## Jetson Nano
### pin mapping
https://stackoverflow.com/questions/61039191/how-to-setup-gpio-pins-in-gpio-tegra-soc-mode-vs-gpio-bcm-mode-using-jetson-nano
The pin #9 here corresponds to #21 on the Jetson Nano.
```
import Jetson.GPIO as GPIO
GPIO.setmode(GPIO.BCM)
GPIO.setup(9, GPIO.OUT)
```
## Xavier NX
* pin1: 3.3V
* pin6: GND
* pin7: control output
```
import Jetson.GPIO as GPIO
GPIO.setmode(GPIO.BOARD) # now simply follow the pin number on PCB
GPIO.setup(7, GPIO.OUT)
GPIO.output(7, False)
GPIO.output(7, True)
```