Patent attributes
A system obtains an image from a digital image stream captured by an imaging component. Both a foreground region of interest and a background region of interest present in the obtained image are identified, and the imaging component is zoomed out as appropriate to maintain a margin (a number of pixels) around both the foreground region of interest and the background region of interest. Additionally, a position of regions of interest (e.g., the background region of interest and the foreground region of interest) to improve the composition or aesthetics of the image is determined, and a composition score of the image indicating how good the determined position is from an aesthetics point of view is determined. A zoom adjustment value is determined based on the position of the regions of interest, and the imaging component is caused to zoom in or out in accordance with the zoom adjustment value.