4. Components
The essential components of the
project!
● Python
● PostgreSQL
● OpenCV
● Scikit-Image
● Python Libraries: ScıPy, NumPy
● Flask
● Bootstrap
5. Algorithm
1. Create schema
2. Upload image and calculate histograms
3. Add image and calculated features to the database
4. Search for similarity in saved images
5. Return a subset with the most similar according to a distance measure
6.
7. The Tasks
Some required tasks for the
project.
1. Extract Features
2. Add Image to Database
3. Search through Images and
Compare Features
4. Return Similar Images
8. 1. Extract Features
● Color Vector: CalcHist()
OpenCV method - HSV
● Texture Vector: LBP
(Local Binary Patterns)
Scıkıt-Image Lıbrary - GrayScale
● Shape Vector: Hu Moments
OpenCV method - GrayScale
Normalize all!
2. Add Image to DB
● Save image to local folder
● Get path of image
● Save path and features on
Database
→
9. 3. Search through Images
● Concatenate vectors
● Calculate ChiSquare (x2
) distance
● Get results
4. Return Similar
● Sort Results
● Keep 8 best
● Present
→
10. Add Many Images
More Features
Annotations
Video
Audio
Ontology
Crawling
Future Work
Text-Based Retrieval
Image Segmentation