Skip to main content

A CLI tool to display webcam feed as ASCII art in the terminal

Project description

Camtty 📸 -> 💻 -> 🎨

Turn your webcam feed into live ASCII art directly in your terminal!

Camtty is a fun command-line tool that captures video from your webcam, converts each frame into ASCII characters, and displays the result in real-time in your terminal.

Camtty in Action 1

✨ Features

  • Live Webcam Feed: See the world around you rendered in ASCII.
  • Real-time Conversion: Fast conversion process for a smooth experience.
  • Terminal-Based: Runs entirely within your terminal using libraries like blessed.
  • Customizable (Future): (Add potential future features like character set selection, resolution adjustment, etc.)

Camtty Feature Example

🚀 Installation

  1. Prerequisites:

    • Python 3.7+
    • pip (Python package installer)
    • A connected webcam recognized by your system.
  2. Install using pip: (Assuming your package is or will be published on PyPI)

    pip install camtty
    

    Alternatively, for local development:

    # Clone the repository (if you haven't already)
    # git clone https://github.com/Aresga/Camtty.git
    # cd camtty
    pip install .
    

🎮 Usage

Simply run the following command in your terminal:

camtty

Press Ctrl+C to stop the stream.

Camtty Usage Example

🔧 How it Works

Camtty uses:

  • OpenCV (opencv-python): To capture video frames from the webcam.
  • NumPy: For efficient numerical operations on image data.
  • Blessed: To control the terminal and display the ASCII art smoothly.

The core logic involves:

  1. Capturing a frame from the webcam.
  2. Resizing the frame (optional, for performance/fit).
  3. Converting the frame to grayscale.
  4. Mapping pixel intensity values to ASCII characters.
  5. Printing the resulting ASCII string to the terminal using blessed for positioning.

🤝 Contributing

Contributions are welcome! Please feel free to open an issue or submit a pull request.

📄 License

see the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

camtty-0.1.1.tar.gz (24.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

camtty-0.1.1-py3-none-any.whl (20.6 kB view details)

Uploaded Python 3

File details

Details for the file camtty-0.1.1.tar.gz.

File metadata

  • Download URL: camtty-0.1.1.tar.gz
  • Upload date:
  • Size: 24.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for camtty-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e1b6ba9644cb4c45c82683a5711f3944a42826d4a875f00f63a2fad209696713
MD5 5e13f57048ec16c0dfe433c44ef05ee9
BLAKE2b-256 56a50ebb817e3b3dfe83e11491f4a11a75b0c31dc354a5ffae8446011c944ccc

See more details on using hashes here.

File details

Details for the file camtty-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: camtty-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 20.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for camtty-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 70043efbbd5177276fec4cf77775021d486caa2069ddd600a48416866ac7f1a6
MD5 c74cc6b0cc9da8cccf2ad3f8aecbc0c0
BLAKE2b-256 85749e7172b92edafd27e472aeca0d3a393163d6eb41b761111c73cdbed91a7b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page