Terminal Webcam
This project captures images from your webcam and displays them in the terminal. There are two versions of the script: capture.py
which displays monochrome webcam output, and color.py
which displays colored webcam output.
Monochrome Example
Colored Example
Running the project
This project is meant to be run on Linux. Follow the steps below to set it up:
- First, clone the repository:
git clone https://github.com/mustafaakin/terminal-webcam.git
- Navigate into the project directory:
cd terminal-webcam
- Create a virtual environment using
venv
:
python3 -m venv venv
This will create a new directory venv
in your project where all the dependencies will be installed.
- Activate the virtual environment:
source venv/bin/activate
- Install the project dependencies from
requirements.txt
:
pip install -r requirements.txt
- Run the scripts:
For monochrome webcam output:
python3 capture.py
For colored webcam output:
python3 color.py
To quit the application, press Ctrl + C in the terminal.
Note: You'll need a webcam connected to your computer for this to work. Enjoy using your webcam in the terminal!
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.