Convolutional neural network to distinguish sunglasses from smartphones using a webcam. The CNN is based on MobileNetV2 with a final binary dense layer.
- Python 3.9.7
- libraries and its versions are listed in requirements.txt and can be installed with:
$ conda install --name <environment_name> --file requirements.txt
-
Make sure that a webcam is attached to your computer
-
Run jupyter notebook and change to the directory imageclassifier/src. Open Projekt.ipynb.
-
Execute the last cell of the notebook. Your webcam should then be activated, showing a black frame.
-
Hold sunglasses or a smartphone into the black frame and press space. The notebook will tell wether it are sunglasses or a smartphone.
-
To stop the camera press q