Giter Club home page Giter Club logo

flickr-cropping-dataset's Introduction

Flickr Image Cropping Dataset

This repository contains the dataset used in the following paper:

Yi-Ling Chen, Tzu-Wei Huang, Kai-Han Chang, Yu-Chen Tsai, Hwann-Tzong Chen, Bing-Yu Chen. (2017). "Quantitative Analysis of Automatic Image Cropping Algorithms:A Dataset and Comparative Study". IEEE Winter Conference on Applications of Computer Vision (WACV) 2017.

For more information regarding the paper, please visit https://yiling-chen.github.io/flickr-cropping-dataset/

Download the dataset

  1. Clone the repository to your local disk.
  2. Under a command line terminal, run the following commands to get the images with cropping annotations:
$ cd scripts/
$ python download_images.py -w 4

The above command will launch 4 worker thread to download the images to a pre-defined folder (../data) from Flickr. Check out the code to see how to change the default folder. If you want to get the images with ranking annotation, run the following command instead.

$ python download_ranking_images -w 4

Annotation

  1. Cropping: cropping_training_set.json and cropping_testing_set.json contain the cropping annotations of this dataset. The annotations are saved as an array of JSON dictionaries. Each dictionary includes the information of one image. See the following for an example.
[
    {
        "url":"https://farm5.staticflickr.com/4096/4910188666_04cf9f487d_b.jpg",
        "flickr_photo_id":4910188666,
        "crop":[
            266,
            6,
            757,
            399
        ]
    },
]
  1. Ranking: ranking_annotation.json contain the ranking annotations of this dataset. The annotations are saved as an array of JSON dictionaries. Each dictionary includes the information of one image. Each image contains ten crop pairs. The crop with more votes is more visually pleasing than the other one. See the following for an example.
[
    {
        "url":"https://farm3.staticflickr.com/2946/15251367120_9bdca6b5c3_c.jpg",
        "crops":[
            {
                "vote_for_1":1,
                "vote_for_0":4,
                "crop_1":[
                    171,
                    281,
                    300,
                    400
                ],
                "crop_0":[
                    139,
                    234,
                    300,
                    400
                ]
            },
        ],
        "flickr_photo_id":15251367120
    },
]

Evaluation

For a completely fair comparison with the baselines reported in the paper, you may want to evaluate your image cropper with the same sliding windows as specified in sliding_window.json.

License

MIT License

Questions?

If you have questions/suggestions, please feel free to send an email to (yiling dot chen dot ntu at gmail dot com).

If you use this dataset in an academic paper, please cite the following article:

@inproceedings{chen-wacv2017,
  title={Quantitative Analysis of Automatic Image Cropping Algorithms:A Dataset and Comparative Study},
  author={Yi-Ling Chen and Tzu-Wei Huang and Kai-Han Chang and Yu-Chen Tsai and Hwann-Tzong Chen and Bing-Yu Chen},
  booktitle={IEEE WACV 2017},
  year={2017}
}

flickr-cropping-dataset's People

Contributors

yiling-chen avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.