Inspiration
We wanted to develop a program that calculates visual similarity over matrices using linear algebra and Euclidean distance, and analyzes these results with artificial intelligence support.
What it does
- Image Processing: Reads, resizes, and converts images into color/normalized matrices using OpenCV and NumPy.
- Matrix Math: Calculates Euclidean distance and percentage-based similarity scores.
- AI Analysis: Sends the metrics to the Google Gemini API to generate a quick, clear English summary report.
How we built it
- Python: Used as the core programming language.
- OpenCV & NumPy: For image processing and matrix-based vector calculations.
- Google GenAI SDK: To integrate Gemini AI reports.
- Tkinter: For the native file selection interface (
askopenfilename). - Dotenv & OS: For secure API key management. -**I received help from AI for syntax and mathematical solutions.Also for the English translation.
Challenges we ran into
- Preventing the program from crashing during sudden Google AI server traffic spikes (
503) and daily quota limits (429). We solved this by building timeout controls and a 3-tier smartretrymechanism.
Accomplishments that we're proud of
- Successfully combining linear algebra, computer vision principles, and generative AI into a lightweight, clean, and stable terminal application.
What we learned
- Gained hands-on experience in pixel matrix normalization, Euclidean distance calculations, and defensive API error handling in Python.
What's next for matrix-image-analyst
- Moving the interface out of the terminal into a full-fledged desktop GUI application and adding different comparison algorithms.