Camera View Adjustment Prediction for Improving Image Composition

Yu-Chuan Su, Raviteja Vemulapalli, Ben Weiss, Chun-Te Chu, Philip Andrew Mansfield, Lior Shapira, Colvin PittsarXiv 2021

TL;DR

This paper introduces a novel deep learning system that suggests real-time camera view adjustments to users before they capture a photo, aiming to improve image composition. To tackle the lack of relevant datasets, they create a new "view adjustment" dataset by repurposing existing image cropping data and propose a two-stage semi-supervised learning approach that leverages both labeled and unlabeled images for training.

What Problem Does This Paper Address?

Capturing a well-composed photograph is crucial for its aesthetic appeal, but many amateur photographers lack the necessary expertise. While post-processing techniques like cropping can help, they are insufficient for scenarios where the photographer needs to adjust the camera's viewpoint before taking the shot. Existing methods often focus on cropping, which is a limited solution. This paper addresses the challenge of providing intelligent, real-time suggestions for camera view adjustments (like shifting, zooming, or rotating) to guide users towards better compositions during the capture process itself.

Methods

The core of the proposed solution is a deep learning model that predicts three things:

  1. Suggestion Predictor: Whether a view adjustment is needed at all.
  2. Adjustment Predictor: Which specific type of adjustment (horizontal shift, vertical shift, zoom, rotation) is most beneficial.
  3. Magnitude Predictor: The appropriate magnitude for the suggested adjustment.

To train this model, they employ a two-stage semi-supervised approach:

  • Stage 1: Composition Scoring Model: A CNN is trained to predict the composition quality of an image. This model is trained using a pairwise ranking loss on both labeled (from cropping datasets) and unlabeled (well-composed images from the web) data. Data augmentation techniques are used to prevent the model from relying on superficial cues like borders.
  • Stage 2: View Adjustment Model: This model is trained using labeled data derived from image cropping datasets and, crucially, pseudo-labels generated by the composition scoring model on unlabeled images. This pseudo-labeling process involves simulating various view adjustments on an image and selecting the one that yields the highest composition score according to the Stage 1 model.

The system's output is a suggestion for a specific adjustment type and its magnitude, aiming to improve the photo's composition.

Datasets

  • New Benchmark Dataset: The authors create a new "view adjustment dataset" by repurposing existing image cropping datasets. This involves converting bounding box annotations for "best crops" into view adjustment labels.
  • Training Data:
    • Labeled Data: Derived from image cropping datasets like FCDB, GAICD, and CPC.
  • Unlabeled Data: Well-composed images sourced from Unsplash and Open Images.
  • Evaluation Data: The test splits of FCDB and GAICD are used, with simulated view adjustments applied to generate evaluation samples. They also evaluate on the Pano2Vid dataset for 360° images.

Key Insights and Ideas

  • View Adjustment vs. Cropping: The paper convincingly argues that adjusting the camera view before capture is a more general and often necessary solution than post-capture cropping, especially for scenarios where the desired composition isn't achievable by simply removing image parts.
  • The Power of Semi-Supervised Learning: Their two-stage approach, leveraging both labeled and unlabeled data, significantly outperforms purely supervised methods. This highlights the importance of large amounts of diverse data, even if it's not perfectly labeled.
  • Pseudo-Labeling as a Data Generation Strategy: Repurposing existing cropping datasets to generate view adjustment labels is a clever way to overcome the lack of direct supervision for this novel task.
  • Composition is Sensitive to Rotation: The results show that while the model performs well on shifts and zooms, rotation adjustments are more challenging, likely due to the high sensitivity of image composition to orientation, especially when the horizon is visible.

Key Results

  • Objective Evaluation: The proposed semi-supervised approach achieved a higher AUC (0.608) and TPR (0.436 at 0.3 FPR) for suggestion prediction compared to supervised methods. It also achieved the best F1-scores for most adjustment types and the highest IoU (0.750), indicating that the suggested views closely approximate the ground truth.
  • User Study: A user study revealed that the suggested view adjustments improve image composition 79% of the time. When a suggestion was provided, it was correct 79% of the time, with only a 12.6% rate of suggesting an adjustment that degraded the composition.
  • Generalization: The model shows good generalization to 360° images from the Pano2Vid dataset, even though it wasn't explicitly trained on them.

Limitations and Future Work

  • Rotation Magnitude Prediction: The model struggles with accurately predicting the magnitude of rotation adjustments, leading to a lower success rate for this specific adjustment type.
  • Iterative Adjustments: While the model can be applied iteratively, it can sometimes drift far from the initial view. The authors suggest exploring more sophisticated iterative adjustment strategies for more consistent suggestions.
  • Ignoring Depth: The current simulation of view adjustments ignores depth information, which could be a factor in real-world composition.
  • Limited Perturbation Ranges: The ranges for shift and zoom perturbations were chosen to ensure the inverse perturbation (ground truth) falls within a specific range. This might limit the exploration of extreme adjustments.

Summary updated

BibTeX
@misc{su2021camera,
  author = {Yu-Chuan Su and Raviteja Vemulapalli and Ben Weiss and Chun-Te Chu and Philip Andrew Mansfield and Lior Shapira and Colvin Pitts},
  title = {{Camera View Adjustment Prediction for Improving Image Composition}},
  year = {2021},
  eprint = {2104.07608},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2104.07608},
}
Figure