This was an Image Processing project that I used to generate my profile pic when my profile picture was this, it runs using the users webcam:
The project uses OpenCV and runs until the user decides to terminate the program.
Open up a terminal environment (preferably Linux or MacOS) and run the following:
pip install opencv-python
pip install numpy
python3 profile-pic.py
If you haven't got Python or Pip installed then you will have to do that first, as a Mac user I prefer to use homebrew, which should install Pip as well, but if not you can install Python from the official site.
Pip documentation can be found here.