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 :)
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 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.