A script that you can use to put on Virtual Glasses everywhere
- Python 3.6 & above
- dlib
- OpenCv
- Numpy
- Keras
- Tensorflow
- Flask
keyboard | mode | keyboard | update parameter |
---|---|---|---|
1 |
axis | z |
top increase |
2 |
head box | a |
top decrease |
3 |
glasses marker | x |
buttom increase |
4 |
landmark | s |
buttom decrease |
5 |
glasses model | c |
left、right increase |
6 |
cv bad | d |
left、right decrease |
q |
quit | v |
temple offset increase |
n |
change glasses | f |
temple offset decrease |
r |
re-search model | b |
depth increase |
m |
use model 20 | g |
depth decrease |
-
cd
to the Vglass located
-
- Run
main.py
- Run
optional arguments:
-h, --help show this help message and exit
-p PATH, --path PATH Multimedia file location.
-m MODE, --mode MODE File type. Must be "video" or "image".
-s -s to active the save mode
--save SAVE The path to save the output.
- Run with default camera
0
$python main.py -p 0
- Run with
video
input$python main.py -p <video path>
- Run with
image
input$python main.py -p <picture path> -m image
Note that : path can be an url
or file