- Overview
- Features
- Requirements
- Environment Setup
- Source Code Setup Instructions for Windows PCs
- Application Usage
- Output
This application converts images to LED matrix animations for display on 13x8 LED matrices. It provides various animation effects including AI-powered transformations.
- Convert images to 13x8 monochrome bitmap format
- Generate various animation types:
- Edge Pulse (AI Edge Detection)
- Morphological (AI Erosion/Dilation)
- Contour Wave (AI Contour Detection)
- Zoom (AI Breathing Effect)
- Wave Distort (AI Image Warping)
- Saliency (AI Focus Detection)
- Threshold Sweep (Classic)
- Rotation (Classic)
- Flip (Classic)
- Export animations as Arduino-compatible header files
- Windows PC or Ubuntu PC
- Python 3.12 with Pillow (PIL)
- Numpy for array operations
- Scikit-image, scipy, and matplotlib for animation and visualization
To set up the Python environment required for running the application, follow the steps below. This ensures all dependencies are installed in an isolated and reproducible environment.
- Python 3.12 is required for this application.
- Install Python (64-bit) by following the installation guide.
- Make sure you have Python installed and properly configured in your system path.
# Check Python version
python --versionGit is required for version control and collaboration. Proper configuration ensures seamless integration with repositories and development workflows.
For detailed steps, refer to the internal documentation:
Setup Git
The following steps are required to set up the source code for the application on Windows PCs.
-
Create your working directory:
mkdir my_working_directory cd my_working_directory -
Download Your Application:
git clone -n --depth=1 --filter=tree:0 https://github.com/qualcomm/Startup-Demos.git cd Startup-Demos git sparse-checkout set --no-cone /Others/IoT-Robotics/LED_Matrix_Generator/ git checkout
-
Navigate to Application Directory:
cd ./Others/IoT-Robotics/LED_Matrix_Generator/ -
Install the required dependencies:
pip install -r requirements.txt
To run a continuous showcase of all animation types:
cd src
python animation_showcase.pyBefore running specific animations or conversions, copy the image you want to convert to the src/ directory:
# Example: Copy your image to the src directory
cp your_image.png src/To convert a single image to LED matrix format:
cd src
python img_to_13x8_u32.py image.png [options]# Example (creating a wave distortion animation of fire with 16 frames):
cp /images/test.png src/
python img_to_13x8_u32.py test.png --frames 16 -o frame.h --animate wave-distort --threshold 64Options:
--threshold VALUE: Grayscale threshold (0-255, default: 128)--invert: Invert binary output (dark becomes ON)--rotate ANGLE: Rotate image (0, 90, 180, 270 degrees)--mirror: Mirror horizontally (left-right)--flip: Flip vertically (top-bottom)--c-array: Output C/Arduino array format--output FILE: Output header file--animate TYPE: Generate animation frames--frames COUNT: Number of animation frames (default: 8)
The application can output:
