https://github.com/nubilfi/ascii-webcam
A webcam that visualizes its output as ASCII art directly in the terminal
https://github.com/nubilfi/ascii-webcam
ascii opencv ratatui rust webcam
Last synced: 5 months ago
JSON representation
A webcam that visualizes its output as ASCII art directly in the terminal
- Host: GitHub
- URL: https://github.com/nubilfi/ascii-webcam
- Owner: nubilfi
- License: mit
- Created: 2024-09-09T03:29:31.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-09-30T02:43:29.000Z (9 months ago)
- Last Synced: 2025-01-30T17:38:22.988Z (5 months ago)
- Topics: ascii, opencv, ratatui, rust, webcam
- Language: Rust
- Homepage:
- Size: 3.79 MB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ASCII Webcam
[](https://crates.io/crates/ascii-webcam)
[](https://github.com/nubilfi/ascii-webcam/actions?branch=main)
[](https://docs.rs/ascii-webcam/latest/ascii_webcam/index.html)
[](https://codecov.io/gh/nubilfi/ascii-webcam)ASCII Webcam is an application that captures video from your webcam and displays it as ASCII art in real-time within your terminal. This project demonstrates the use of OpenCV for video capture, image processing techniques, and terminal-based UI rendering using the [Ratatui](https://ratatui.rs/) library.
## Features
- Real-time webcam capture and ASCII conversion
- Terminal-based user interface with Ratatui
- FPS counter
- Resizable ASCII output adapting to terminal dimensions
- Help menu## Requirements
- OpenCV 4.x
- A compatible webcam## Installation
1. Install OpenCV 4.x. The installation process varies depending on your operating system:
- On Archlinux: `sudo pacman -Sy opencv`
- For other systems, please refer to the [OpenCV installation guide](https://docs.opencv.org/4.x/d7/d9f/tutorial_linux_install.html).2. Build the project:
```
cargo b -r
```3. Run test:
```
cargo t
```4. Run benchmark:
```
cargo bench
```## Usage
Run the application with:
```
cargo r
```Once the application starts:
- The main window displays the ASCII representation of your webcam feed.
- The top bar shows the current FPS.
- Press `?` to toggle the help menu.
- Press `q` to quit the application.## License
[MIT](https://github.com/nubilfi/ascii-webcam/blob/main/LICENSE)