Skip to content

Commit

Permalink
Update master
Browse files Browse the repository at this point in the history
  • Loading branch information
viirya committed Jun 9, 2012
1 parent 3e87f08 commit 304ac40
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Expand Up @@ -11,8 +11,26 @@ Since `flickrnode` module can not be installed by npm, you shoule git clone it i

## Usage

### Search Flickr photos

coffee query.coffee -t <query term> -i <image download path> -f <feature storing path> -m <image processing path> -l <geolocation> -c <database collection>

For example:
coffee query.coffee -t paris -i ./test -f ./feature -m ./tmp -l 'Paris, France' -c paris

### Sample photos from fetched Flickr photos

sample.coffee -c <database collection> -f <feature storing path> -d <output file> -s <sample number>

For example:
sample.coffee -c paris -f ./features -d test.clu -s 1000

### Clustering of sampled photos

python cluster.py -f <sampled photo features> -o <output file> -k <number of clusters>

In addition to "output file", another file "output file" + ".meta" will be created that contains mean and std feature vector of sampled features.

For example:
python cluster.py -f test.clu -o sample.kmean -k 64

0 comments on commit 304ac40

Please sign in to comment.