diff --git a/README.md b/README.md index 94d404a..972e05c 100755 --- a/README.md +++ b/README.md @@ -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. \ No newline at end of file +``` +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. diff --git a/src/main/java/hbku/qcri/sc/aidr/imagecrawler/ImageCrawler.java b/src/main/java/hbku/qcri/sc/aidr/imagecrawler/ImageCrawler.java index d538b43..14b3659 100755 --- a/src/main/java/hbku/qcri/sc/aidr/imagecrawler/ImageCrawler.java +++ b/src/main/java/hbku/qcri/sc/aidr/imagecrawler/ImageCrawler.java @@ -267,8 +267,8 @@ public void downloadImagesSingleThread(List 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;