Skip to content

Commit

Permalink
add readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jackie840129 committed Jul 4, 2018
1 parent 5798a6e commit c058386
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions Lab_2/Readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Lab_2

This is the simplified version of DLCV course HW2.
This is the simplified version of NTU Deep Learning for Computer Vision (DLCV) course HW2.

**What you will learn :**
- Color Segmentation
Expand All @@ -11,8 +11,10 @@ This is the simplified version of DLCV course HW2.

**Directory Tree**
```
|__Lab1
|__Lab2
| |__ Readme.md
| |__ train-100/
| |__ test-100/
| |__ image/
| |__ filterBank.mat
| |__ mountain.jpg
Expand Down Expand Up @@ -107,7 +109,7 @@ for simplicity). The centroid of each cluster then indicates a visual word.

Now compute BoW of training images in Train-100 with the saved "visual_words.npy", resulting in a 500×50 matrix. Choose one image from each category (5 category) and plot their **Hard-Sum**, **Soft-Sum**, and **Soft-Max**, respectively. Can you expect which BoW strategy results in better classification results and why?

<img src="./image/hardsum.jpg" alt="hs" width="360px"/> <img src="./image/softsum.jpg" alt="ss" width="360px" /> <img src="./image/softmax.jpg" alt="sm" width="360px"/>
<img src="./image/hardsum.jpg" alt="hs" width="280px"/> <img src="./image/softsum.jpg" alt="ss" width="280px" /> <img src="./image/softmax.jpg" alt="sm" width="280px"/>

4. ) Finally, We adopt the k-nearest neighbors classifier (**KNN**) to perform classification
using the above BoW features.
Expand Down
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This Python Opencv Lab is split into two parts for morning and afternoon.
2. [Lab_2/](./Lab_2) : Color and Texture Segmentation (Clustering) , Recognition with Bag of Visual Words

### Reference
The lab practice referred to [OpenCVtutorial](http://opencv-python-tutroals.readthedocs.io/en/latest/index.html) and NTU DLCV course [website](http://vllab.ee.ntu.edu.tw/dlcv.html).
The lab practice referred to [OpenCVtutorial](http://opencv-python-tutroals.readthedocs.io/en/latest/index.html) and NTU Deep Learning for Computer Vision (DLCV) course [website](http://vllab.ee.ntu.edu.tw/dlcv.html).

### Prerequisites
- python3.5+
Expand Down

0 comments on commit c058386

Please sign in to comment.