https://github.com/cyberagentailab/cropping-design-constraints
codes for evaluating image cropping under design constraints
https://github.com/cyberagentailab/cropping-design-constraints
Science Score: 10.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
○codemeta.json file
-
○.zenodo.json file
-
○DOI references
-
✓Academic publication links
Links to: arxiv.org -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (8.0%) to scientific vocabulary
Repository
codes for evaluating image cropping under design constraints
Basic Info
- Host: GitHub
- Owner: CyberAgentAILab
- Language: Python
- Default Branch: main
- Homepage: https://cyberagentailab.github.io/cropping-design-constraints/
- Size: 94.8 MB
Statistics
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
Paper: Image Cropping under Design Constraints
Takumi Nishiyasu1, Wataru Shimoda2, Yoichi Sato1
1Tokyo University, 2 CyberAgent.Inc
Accepted to ACMMM Asia 2023. [Publication] [Arxiv] [project-page]

Requirements
- Python3.9+
- Install the following packages:
bash pip install numpy pandas
Evaluation
This repository contains evaluation codes for "Image Cropping under Design Constraints".
Evaluate the performance of the heatmap-based approach (iter_size = 100) by:
bash python test.py --pred_file data/predictions.csvpredictions.csv is a file for evaluation. The structure of the file is as follows:
- image file name, predicted bounding box [x1,y1,x2,y2], ground truth bounding box [x1,y1,x2,y2], layout bounding box [x1,y1,x2,y2] ``` 1011366896_Large.jpg,"[[0, 0, 768, 768]]","[[0.0, 0.0, 756.0, 768.0]]","[[0.0, 0.0, 512.0, 384.0]]"
1011366896_Large.jpg,"[[0, 0, 1024, 757]]","[[105.0, 0.0, 1024.0, 690.0]]","[[512.0, 0.0, 1024.0, 384.0]]"
...
IMG_6266.jpg,"[[0, 96, 941, 736]]","[[0.0, 77.0, 911.0, 697.0]]","[[0.0, 170.0, 128.0, 682.0]]" ```
Evaluation data
- The extended evaluation dataset is here
The JSON file contains the design constraints for preparing the
ground truth bounding boxandlayout bounding boxwith image information of FLMSThe structure of FLMSblankaspect.json is as follows: ``` { "1011366896Large-0-10158730158730158.png": { "imagename": "1011366896Large.jpg", "aspectratio": "1.0158730158730158", "blankspaceindex": 0, "blankspace": [ 0, 0, 512, 384 ], "blankaspectbbox": [ 0, 0, 756, 768 ] }, "1011366896Large-1-0750816104461371.png": {...},
... "IMG_6266-4-0_6805708013172338.png": { "image_name": "IMG_6266.jpg", "aspect_ratio": "0.6805708013172338", "blank_space_index": 4, "blank_space": [ 0, 170, 128, 682 ], "blank_aspect_bbox": [ 0, 77, 911, 697 ] }}
```
Reference
bibtex @inproceedings{flmsfang2014automatic, title={Automatic Image Cropping Using Visual Composition, Boundary Simplicity and Content Preservation Models}, author={Fang, Chen and Lin, Zhe and Mech, Radomir and Shen, Xiaohui}, booktitle={Proc. ACM International Conference on Multimedia (ACMMM)}, pages={1105--1108}, year={2014}, }
Citation
If you use this code or find our work is helpful, please consider citing our work:
bibtex
@inproceedings{nishiyasu2023cropping,
title={Image Cropping under Design Constraints},
author={Takumi, Nishiyasu and Wataru, Shimoda and Yoichi, Sato},
booktitle={Proc. ACM International Conference on Multimedia Asia (ACMMMAsia)},
year={2023},
}
Contact
If you have any requests or need to get in touch, please feel free to raise issues or send a Pull Request.
Owner
- Name: CyberAgent AI Lab
- Login: CyberAgentAILab
- Kind: organization
- Location: Japan
- Website: https://cyberagent.ai/ailab/
- Twitter: cyberagent_ai
- Repositories: 7
- Profile: https://github.com/CyberAgentAILab
GitHub Events
Total
- Watch event: 3
Last Year
- Watch event: 3