Simple CBIR using Color Histogram Comparison Author: Pat Kujawa Purpose: Assignment 1, CSCI 578 Preliminaries I developed my solution from scratch using both the .net framework and python (2.7). For the GUI framework, I chose to use WPF, which is the successor to Windows Forms. I did so because of the power and flexibility of WPF while still providing an easy design process. I chose to use python for the core code because it was easy to prototype with and provided essential libraries for efficient data manipulation (numpy) and image deserialization (SimpleCV). Running the application Unfortunately, choosing python and its libraries makes for a somewhat painful deployment experience. You should have access to a zip file containing all of the .net and python code. The python script will fail if SimpleCV is not installed on your machine. Luckily, SimpleCV provides a super-installer for windows that will also install python, numpy, scipy, opencv, and a few other libraries that are often used in python development. (I tried quite hard to find a way to create a single executable, but it appears that there is no easy way to do that (and also take advantage of the aforementioned libraries).) So overall, to run the application: Install SimpleCV (and with it python 2.7, numpy, and opencv) Run Cbir.exe Follow instructions on GUI Namely, drag an image onto the GUI, drag a folder too, and select the histogram method you want to test While I was able to keep the UI responsive (and provide a log of activities), I couldn't get the storage of image information on the python side to work when used in conjunction with the GUI (it works when the script is run via commandline, though). Screenshots of the app in action Results for image 33:
7
Embed
Simple CBIR using Color Histogram Comparison - …pckujawa.github.io/portfolio/mm-cbir/part1/report.pdf · Simple CBIR using Color Histogram Comparison Author: Pat Kujawa Purpose:
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Simple CBIR using Color Histogram Comparison
Author: Pat Kujawa
Purpose: Assignment 1, CSCI 578
Preliminaries
I developed my solution from scratch using both the .net framework and python (2.7). For the GUI
framework, I chose to use WPF, which is the successor to Windows Forms. I did so because of the
power and flexibility of WPF while still providing an easy design process. I chose to use python for the
core code because it was easy to prototype with and provided essential libraries for efficient data
manipulation (numpy) and image deserialization (SimpleCV).
Running the application
Unfortunately, choosing python and its libraries makes for a somewhat painful deployment experience.
You should have access to a zip file containing all of the .net and python code. The python script will fail
if SimpleCV is not installed on your machine. Luckily, SimpleCV provides a super-installer for windows
that will also install python, numpy, scipy, opencv, and a few other libraries that are often used in python
development.
(I tried quite hard to find a way to create a single executable, but it appears that there is no easy way to
do that (and also take advantage of the aforementioned libraries).)
So overall, to run the application:
Install SimpleCV (and with it python 2.7, numpy, and opencv)
Run Cbir.exe
Follow instructions on GUI
Namely, drag an image onto the GUI, drag a folder too, and select the histogram method you
want to test
While I was able to keep the UI responsive (and provide a log of activities), I couldn't get the storage of
image information on the python side to work when used in conjunction with the GUI (it works when the