Skip to content

Commit

Permalink
Image collector and filtering module
Browse files Browse the repository at this point in the history
  • Loading branch information
firojalam committed Feb 12, 2017
1 parent f327203 commit 37b9a0c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
18 changes: 12 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
# AIDRImageFiltering

# How to run:


# Image Crawler Module
Crawl images from json file extracted from twitter.

## How to run:
```bash
cd AIDRImageFiltering/
java -classpath /target/image-filtering-0.0.1-SNAPSHOT.jar hbku.qcri.sc.aidr.imagecrawler.ImageCrawler -j sample/150311152434_cyclone_pam-15_20150326_vol-4.json -f sample/images -m p

Options to run:
-j Json file of the collection
-f Save image to the folder under the name of collection
-m Run in parallel, value is p for parallel running option, it will check the number of processor the machine has and will utilizes 75% of it.
```
Options to run:
* -j Json file of the collection
* -f Save image to the folder under the name of collection
* -m Run in parallel, value is p for parallel running option, it will check the number of processor the machine has and will utilizes 75% of it.
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,8 @@ public void downloadImagesSingleThread(List<Tweet> twts, String folder) {
public static void main(String args[]) throws ParseException, IOException {
CommandLineParser parser = new BasicParser();
Options options = new Options();
options.addOption("f", "folder", true, "Save image to the folder under the name of collection");
options.addOption("j", "json_file", true, "Json file of the collection");
options.addOption("f", "folder", true, "Save image to the folder under the name of collection.");
options.addOption("j", "json_file", true, "Json file of the collection.");
options.addOption("m", "mode", true, "Run in parallel?");

CommandLine commandLine = null;
Expand Down

0 comments on commit 37b9a0c

Please sign in to comment.