Grinding alone at night ?
Need some company while studying?
We usually sit in VC at night and do our own work, just having ppl around makes it easier to stay focused & study for longer
work on your own stuff share what you're workin on
join us - https://t.co/kMmW1wFteq :)
How i approach LC problem
Understand the Ques -> think of how will you solve it -> write pseudocode -> convert into py -> check whether the solution is optimal or not -> if it's not make it optimal
Sometimes understanding the qus takes more time than writing the code for it
What is SQLAlchemy?
SQLAlchemy is a Py lib that helps applications work with SQL databases using Python code.
Instead of writing every SQL query manually, I can work with Py objects and models. I use SQLAlchemy to connect Python with PostgreSQL and store image analysis data.
Connecting LUMEN to PostgreSQL using SQL Alchemy
Each image's path, hash, dimensions, statistics, brightness, exposure, entropy, channel data, histograms, dominant and duplicate img
info can be saved and retrieved from the database.
How LUMEN Generates Reports
After analyzing imgs, LUMEN needs to turn data into something useful
I use Pandas to create a structured CSV and JSON report containing img stats, brightness, colors, exposure, duplicates and more.
How LUMEN Generates Reports
After analyzing imgs, LUMEN needs to turn data into something useful
I use Pandas to create a structured CSV and JSON report containing img stats, brightness, colors, exposure, duplicates and more.
Why I Added Models to LUMEN
So I used Pydantic models to define exactly what each piece of data should look like. From image statistics to colors, histograms, duplicates, and the final report, everything now has a clear structure.
Why I Added Models to LUMEN
So I used Pydantic models to define exactly what each piece of data should look like. From image statistics to colors, histograms, duplicates, and the final report, everything now has a clear structure.
How LUMEN Loads Images
One thing I had to figure out while building LUMEN was how to handle diff img formats
I use Pillow to open imgs, check if they're grayscale, and convert everything to RGB. Then I turn the img into a NumPy arr so LUMEN can actually analyze the pixel data.