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.
✨ 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.)
🚀 Installation
-
Prerequisites:
- Python 3.7+
pip(Python package installer)- A connected webcam recognized by your system.
-
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.
🔧 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:
- Capturing a frame from the webcam.
- Resizing the frame (optional, for performance/fit).
- Converting the frame to grayscale.
- Mapping pixel intensity values to ASCII characters.
- Printing the resulting ASCII string to the terminal using
blessedfor 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e1b6ba9644cb4c45c82683a5711f3944a42826d4a875f00f63a2fad209696713
|
|
| MD5 |
5e13f57048ec16c0dfe433c44ef05ee9
|
|
| BLAKE2b-256 |
56a50ebb817e3b3dfe83e11491f4a11a75b0c31dc354a5ffae8446011c944ccc
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
70043efbbd5177276fec4cf77775021d486caa2069ddd600a48416866ac7f1a6
|
|
| MD5 |
c74cc6b0cc9da8cccf2ad3f8aecbc0c0
|
|
| BLAKE2b-256 |
85749e7172b92edafd27e472aeca0d3a393163d6eb41b761111c73cdbed91a7b
|