Skip to content

CodePeacock/vrglasses

Repository files navigation

vrglasses

A script that you can use to put on Virtual Glasses everywhere

A. Environment dependence

  • Python 3.6 & above
  • dlib
  • OpenCv
  • Numpy
  • Keras
  • Tensorflow
  • Flask

B. Function

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

C. Run it

    1. cd to the Vglass located
    1. Run main.py
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.

How to run the script

  • 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published