New computer model automatically, aesthetically crops photos

New computer model automatically, aesthetically crops photos
An original photo (left); the same photo cropped by existing technology, such as the software in smartphones; and the same photo cropped by the researchers' model to contain the visually significant part of the photo. Credit: James Wang and Jia Li / Penn State

Computers can now automatically crop photos to capture the most interesting part in an aesthetically pleasing manner, thanks to researchers at Penn State.

"When manually cropping an image, humans identify the most interesting or eye-catching part of the photo—even if it is off-centered—and crop the photo to frame it, but existing tools crop photos down the middle of the image, with no consideration of whether that section contains a visually significant part of the photo," said Jia Li, professor of statistics, who, along with her colleague James Wang, professor of information sciences and technology, recently received U.S. patent No. 10,186,040 for the model. "We have solved this problem by creating a that quickly identifies the visual significance of each segmented part of a photo and the overall photo in an aesthetically pleasing manner."

According to the researchers, the software could be used in smartphones, on and on internet browsers, where photos traditionally have been automatically cropped in the middle, often missing the main subject or yielding an aesthetically displeasing result.

The team modeled the amount of time that a human eye is likely to linger on a particular segment of an image using a Markov chain, which is a statistical model. The attention paid to any segment depends on its individual attributes such as color, texture and brightness, as well as its spatial relationship with other segments. The researchers encoded all of these different types of information within the parameters of the Markov chain. The statistical model then ranks the segments, with the highest significance assigned to the segment that retains the eye the longest. This ordering helps the model to determine the best location to crop. The decision also takes into account the aesthetic quality of the cropped image.

"Spatial arrangement of the segments in an image plays a major role in determining significance," said Li. "The model considers how the segments interact spatially, without assuming that the geometric center of the image is necessarily more important. For example, two segments with the same appearance can have rather different significance scores depending on their placement with respect to the rest of the picture."

According to Li and Wang, the model works quickly to crop photos and requires very little computing power.

"Our code takes around 50 milliseconds to process an image of 400 by 300 pixels on a common desktop computer or laptop," said Wang. "As a result, our method is suitable for devices with limited memory and computing power."

The team hopes to market its method to internet search engine and mobile phone companies, among others.

"By cropping photos in a more aesthetically pleasing manner, a number of photo-related applications can be improved, especially when the is small, such as in phones, watches or tablets," said Wang. "In addition, the may help visual ads companies improve their click-through rates."

Citation: New computer model automatically, aesthetically crops photos (2019, April 11) retrieved 4 December 2023 from
This document is subject to copyright. Apart from any fair dealing for the purpose of private study or research, no part may be reproduced without the written permission. The content is provided for information purposes only.

Explore further

Online system rates images by aesthetic quality


Feedback to editors