Skip to main content

Convert videos and images to ASCII art, including live streaming.

Project description

GLFY Tool

GLFY is a versatile tool for converting videos, images, and live streams into ASCII art. It supports video conversion, live video capture, virtual camera streaming, and screen capturing. GLFY is designed for efficiency and customization, making it ideal for artistic and fun applications.

Features

  • Video to ASCII Art: Convert video files into ASCII art video files.
  • Image to ASCII Art: Convert image files into ASCII art images.
  • Live Video to ASCII Art: Capture live video from your webcam and display it as ASCII art.
  • Virtual Camera Support: Stream ASCII art to a virtual camera for use in video applications.
  • Screen Capture: Stream your screen as ASCII art in real-time.
  • Customizable Parameters: Adjust brightness, contrast, vibrancy, gamma, and more.
  • Improved Performance: Optimized for faster loading and responsiveness.
  • Enhanced Live Video Handling: Improved compatibility, resolution management, and padding for virtual camera compatibility.

Installation

Install GLFY directly from PyPI:

pip install glfy

Usage

GLFY can be used from the command line or within a Python script.

Command Line Usage

  • Convert an image to ASCII art: glfy image path/to/image.jpg

  • Convert a video to ASCII art: glfy video path/to/video.mp4

  • Start live video ASCII conversion: glfy live

  • Start live video conversion from the screen: glfy live -src scr

Python Script Usage

You can use GLFY’s CLI from within a Python script using the subprocess module:

import subprocess

Convert an image to ASCII art using the CLI

subprocess.run(['glfy', 'image', 'path/to/image.jpg'])

Convert a video to ASCII art using the CLI

subprocess.run(['glfy', 'video', 'path/to/video.mp4'])

Start live video ASCII conversion using the CLI

subprocess.run(['glfy', 'live'])

Customizable Parameters

GLFY allows you to adjust various parameters to customize the ASCII art output:

  • Brightness, Contrast, and Vibrancy Adjustments: Modify the appearance of the ASCII art.
  • Gamma Correction: Fine-tune the brightness of the ASCII output.
  • Background Manipulation: Adjust background vibrancy, brightness, and blur.
  • ASCII Character Set: Use different ASCII characters for varied artistic effects.
  • Virtual Camera Settings: Set resolution and frame rate for virtual camera streaming.

Recent Updates

  • Performance Improvement: Optimized imports for faster loading.
  • Live Video Fix: Improved resolution management and compatibility for smoother streaming.
  • Error Handling: Enhanced error messages and user feedback.

License

This project is licensed under the MIT License.

Enjoy creating ASCII art with GLFY!

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

glfy-0.1.1.tar.gz (1.6 MB view details)

Uploaded Source

Built Distribution

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

glfy-0.1.1-py3-none-any.whl (1.6 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: glfy-0.1.1.tar.gz
  • Upload date:
  • Size: 1.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for glfy-0.1.1.tar.gz
Algorithm Hash digest
SHA256 74acd8bc03d31d6dac28dbbddab0fa5802691fa04e03e849730523e6c9e2cb8a
MD5 344982a623f2cac93d489c8cff4b1272
BLAKE2b-256 56293e43d0c4fd251bf16dc26c5bb3f0b23fd79463382cc4eab5491295c12472

See more details on using hashes here.

File details

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

File metadata

  • Download URL: glfy-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for glfy-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fdb20645d438efc109a38dcb507aa0c1dcd9306928dacea3fe53e8afa5d50a39
MD5 c40b7c25c8a69eee3f00dbd14ce8511f
BLAKE2b-256 c0c0453b9de7dd3cd30fd354832bef3fa32a54c20bbd9431bfa79b3a0049a268

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