1- Install requirements.txt file:
pip install -r requirements.txt
2- Then Run main.py
-
Open cmd in the application directory and type “pip install -r requirements.txt” to install the required dependencies to run the application, then type “python main.py” to run it.
-
It opens on the live camera and we can see different features on the left.
-
If we want to identify the man, Firstly, we choose “Detect Faces” to draw a rectangle around the face, then press “Identify Faces” which tells us who this man is by comparing the face with the faces that were saved in the faces directory.
-
Press “Image Segmentation” if you want to divide the image into its components (edge detection).
-
It’s simple if you want to write on the screen by pressing the “Painter” button, then choose which color you want to write with, but we need to use any object that has a blue color end.
-
“Capture Screen” to save a picture from the stream in the gallery directory.
-
“Capture Video” to save a video from a stream in the gallery directory after pressing the “q” button on the keyboard.
-
To merge between two images one from the live stream and the second from saved styles, press “Style Transfer”. From the keyboard, if we
A. Press “n” to load the next neural style transfer model.
B. Press “p” to load the previous neural style transfer model.
C. Press “s” to save the resulting image to the gallery directory.
-
“Clear” button to delete any feature we have used.
-
To add a new person we should first create a directory manually with his name and add his picture, then press “Update Identifier”.
-
Press “Esc” on the keyboard to exit from the application.