This project is a command-line tool that converts images into text and renders them in terminals. Additionally, it includes a Python script to feed live video from a camera or a video file and convert it into text format.
- Convert images into text for terminal rendering.
- Process live video feed and convert it into text.
- Supports both live camera feed and video file input.
- Supports 8 color pallets now
- Gcc compiler for building the image to text converter.
- Make
- Python 3.x for running the video feed script.
- C libraries: math, X11
- Python libraries: openCV
- Clone this repository.
- Compile the C code using the provided Makefile or your preferred method.
- Ensure Python 3.x is installed on your system.
- Install required Python packages using
pip install opencv
.
- Run the compiled binary with the path to the image file as an argument.
- Example:
./img_to_ascii path/to/image.jpg
- Run the Python script with optional parameters for video file input.
- Example:
python main.py [path/to/video.mp4]
- Contributions are welcome! Fork the repository and submit a pull request with your changes.
- I dont really understand licensing yet so you can go and do whatever you want with this.
- Huge thanks to the stbi library which helped parse the images in easily.