Skip to main content

ASCII Camera 📹✨

╔══════════════════════════════════════════╗
║            🎥 ASCII CAMERA 📹            ║
║        Real-time Retro Video Art         ║
╚══════════════════════════════════════════╝

Transform your webcam feed into retro ASCII art in real-time! ASCII Camera brings back the nostalgic charm of text-based graphics while showcasing your creativity in the terminal.

Features

🎥 Real-time conversion: Live webcam feed to ASCII art
🌈 Colorful output: Support for colored ASCII art with ANSI escape codes
⚡ High performance: Optimized for smooth real-time rendering
🎛️ Customizable: Multiple ASCII character sets and color schemes
📏 Adaptive resolution: Automatically adjusts to your terminal size
🔧 Easy to use: Simple command-line interface

Installation

From PyPI (recommended)

pip install ascii-camera

From source

git clone https://github.com/masashimorita/ascii_camera.git
cd ascii_camera
pip install -e .

Usage

Basic usage

ascii-camera

With custom options

# High detail ASCII characters
ascii-camera --charset detailed

# Colored output
ascii-camera --color

# Custom resolution
ascii-camera --width 80 --height 24

# Different FPS
ascii-camera --fps 15

# Retro green terminal theme
ascii-camera --color --theme matrix

Available options

  • --width, -w: Terminal width (default: auto-detect)
  • --height, -h: Terminal height (default: auto-detect)
  • --fps: Frames per second (default: 12)
  • --charset: ASCII character set (simple/detailed/block)
  • --color: Enable colored output
  • --theme: Color theme (matrix/amber/cyan/rainbow)
  • --camera: Camera device index (default: 0)
  • --help: Show help message

ASCII Character Sets

  • Simple: .:-=+*#%@ (10 levels)
  • Detailed: .,'~!;<>+*xvXGM#8@ (16 levels)
  • Block: ░▒▓█ (4 levels, bold look)

Color Themes

  • Matrix: Classic green-on-black terminal
  • Amber: Retro amber terminal
  • Cyan: Cool cyan blue
  • Rainbow: Dynamic color mapping

Requirements

  • Python 3.8+
  • OpenCV (opencv-python)
  • NumPy
  • Colorama (for Windows color support)
  • Webcam/camera device

How it works

  1. Capture: Uses OpenCV to grab frames from your webcam
  2. Process: Converts each frame to grayscale and resizes to terminal dimensions
  3. Map: Maps pixel brightness values to ASCII characters
  4. Display: Renders the ASCII frame in your terminal with optional colors
  5. Repeat: Continues the process for real-time video

Troubleshooting

Camera not found

# Try different camera indices
ascii-camera --camera 1
ascii-camera --camera 2

Performance issues

# Lower FPS for better performance
ascii-camera --fps 8

# Smaller resolution
ascii-camera --width 60 --height 20

Terminal compatibility

  • Works best with modern terminals that support ANSI escape codes
  • For Windows: Use Windows Terminal, ConEmu, or enable ANSI support

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT License - see LICENSE file for details.

Inspiration

Inspired by classic ASCII art and retro terminal aesthetics. Perfect for developers who love the intersection of modern technology and nostalgic computing.

Metadata

Release files for ascii-camera 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ascii-camera 0.1.0
File Size Uploaded Provenance
ascii_camera-0.1.0.tar.gz 8.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for ascii-camera 0.1.0
File Interpreter ABI Platform
ascii_camera-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 19.6 kB

Release files / ascii_camera-0.1.0.tar.gz

Download URL ascii_camera-0.1.0.tar.gz
Size 8.7 kB
Tags Source
SHA-256 checksum
How to use checksums
e462f98d403d80f04e812a05e5701117f2cb682459df4c5b9d692d3b8d53686b
BLAKE2b-256 checksum
How to use checksums
3628f573353d108720f6092de0f32b977a278ebd319add56283d82c3fe9f4f3b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.12

Release files / ascii_camera-0.1.0-py3-none-any.whl

Download URL ascii_camera-0.1.0-py3-none-any.whl
Size 11.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1eb1cda765732a01a67edc9cb7c7f92bd5ae761426390815c1e00d293070fa89
BLAKE2b-256 checksum
How to use checksums
1597ce49a6c358004382ad4110e97a3d88da8a556d57d6e2aaf8ce7b5d9ac5e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.12

Security for ascii-camera 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page