Application that accesses to local web-camera, detects faces and shows a processed movie on web browser.
The detected faces are overlayed by laughing man gif in the movie.
- python
- python >= 3.8
- opencv-python
- fastapi
- uvicorn
- jinja2
- sqlalchemy
- devices
- WebCam (which can be detected by opencv-python)
- Setup python environment by
$ pipenv install- Download laughing man gif (e.g. https://tenor.com/view/ghost-shell-laughing-man-gif-5752519) as "./pyscripts/laughing_man.gif"
- Set haarcascade xml path at
PATH_TO_HAARCASCADEin ./pyscripts/laughing_man.py - run scripts by
$ pipenv run python app.py- Access to the server URL (localhost:8000)