skvggor / terminal-webcam

A webcam that can be run on a bare terminal

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Monochrome Example

Colored Example

Colored Example

Running the project

This project is meant to be run on Linux. Follow the steps below to set it up:

  1. First, clone the repository:
git clone https://github.com/mustafaakin/terminal-webcam.git
  1. Navigate into the project directory:
cd terminal-webcam
  1. 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.

  1. Activate the virtual environment:
source venv/bin/activate
  1. Install the project dependencies from requirements.txt:
pip install -r requirements.txt
  1. 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.

About

A webcam that can be run on a bare terminal


Languages

Language:Python 100.0%