The present invention generally relates to image processing systems and methods, and relates in particular to automatic image cropping systems and methods for use with portable devices equipped with digital cameras.
Portable devices equipped with cameras, such as Panasonic mobile phones, have been emerging and becoming popular in the market. The resource, such as memory and storage, and the resolution of the camera lens on these portable devices are usually limited. Therefore, their uses are usually limited to the capturing of human objects for wireless image transfer. As a result, most people use the mobile phone camera just for fun. Thus, the camera on a mobile device has not reached its potential. In additional to continuing improving hardware and equipping devices with more memory and storage, more features are called for in order to increase the use of built-in cameras.
Built-in cameras on a portable device should be able to capture a variety of information from scenes or objects when a user carries it around. Examples are pictures from magazines, billboards, newsletters, catalogs; contact numbers from business cards; URL/phone number from advertisements, and other information. When capturing such information on a portable device, users often have to compliment the focus or the field of angle of the lens. As a result, users typically capture larger than desired area/blocks in the viewing area. These unnecessary regions occupy a large portion of storage space. They also consume bandwidth, thus slowing down the rendering of images on the device's LCD screen. Accordingly, there is need for a way to prevent users from capturing superfluous information.
In accordance with the present invention, an automatic image cropping system is for use with a portable device having an image capture mechanism and a limited resource for storing or transmitting captured information. The system includes a region of interest suggestion engine defining plural image region candidates by performing image segmentation on an image stored in digital form. The engine also determines if an image region candidate is likely to be more or less interesting to a user than another image region candidate. The engine further selects an image region candidate determined as likely to be of most interest to the user. In some embodiments, the engine further possesses a training module to track user interaction with the portable device and adjust future determination of likelihood of user interest accordingly.
Further areas of applicability of the present invention will become apparent from the detailed description provided hereinafter. It should be understood that the detailed description and specific examples, while indicating the preferred embodiment of the invention, are intended for purposes of illustration only and are not intended to limit the scope of the invention.
The present invention will become more fully understood from the detailed description and the accompanying drawings, wherein:
The following description of the preferred embodiment(s) is merely exemplary in nature and is in no way intended to limit the invention, its application, or uses.
The present invention fulfills the needs of users to conserve memory and bandwidth resources by providing an automatic image-cropping scheme to aid users in selecting areas of interest when capturing. This scheme helps to alleviate the problem with memory or bandwidth involved with transmitting an image using a wireless handset. This scheme also facilitates zooming in on a certain object. Thus, the scheme applies to digital still cameras as well.
The core components of automatic image cropping are comprised of ROI (region of interest) suggestion engine and a GUI for user confirmation. The suggested ROI from the suggestion engine will be prompted to the user in an easy-to-use graphical interface. As illustrated in
Turning to
In step 18, the captured image in RGB format is transformed into HUV (Hue, Saturation and Intensity) format as discussed in A. K. Jain, “Fundamentals of Digital Image Processing”, Prentice Hall. The image segmentation and ROI selection algorithm is performed using this color representation.
In step 20, the image captured on the LCD screen is segmented based on the texture and color consistency. A fuzzy k-mean clustering method can be employed as discussed in A. M. Bensaid, L. O. Hall, J. C. Bezdek, L. P. Clark, M. L. silbiger, J. A. Arrington and R. F. Murtagh, “Validity-Guided (Re)Clustering with Applications to Image Segmentation”, IEEE Trans. on Fuzzy Systems, Vol. 4, No. 2, May, 1996. The features used in the clustering method are derived on the color differences of neighboring pixels i and j defined as
Cdiff(i,j)=√{square root over ((h(i)−(h(j))2+(u(i)−u(j))2+(v(i)−v(j))2)}
where h(i), u(i) and v(i) are the HUV value of pixel i and h(j), u(j) and v(j) are the HUV value of pixel j.
Vectors calculated from Wavelet transform such as Daubechies 3 can be used to represent texture information as discussed in: Robert Porter and Nishan Canagarajar, A Robust Automatic Clustering Scheme for Image Segmentation using Wavelets, IEEE Transactions on Image Processing, Vol. 5, NO. 4, April 1996; Michael Unser, Texture Classification and Segmentation using Wavelet Transform, IEEE Transactions on Image Processing, VOL. 4, NO. 11, November 1995; and T. Chang and C. C. Jay Kuo, Texture Analysis and Classification with Tree-Structured Wavelet Transform, IEEE Transactions on Image Processing, Vol. 2, No. 4, October 1993.
In step 22, entropy based image region selection is performed in some embodiments. In a preferred embodiment, an algorithm uses entropy as one of plural criteria to determine if a region is more or less interesting to the user. A region with larger entropy contains more information, and thus may be more likely to be of interest to the user.
The entropy of an image is defined as
where h(i) iεI is the histogram of the image.
The higher the entropy, the richer the colors are, and it is assumed that the region with the highest entropy is likely to be the region of interest to the user. The candidate regions are generated in the order of entropy. Considering that human perception can be different from the pure idea of richness in information measured by entropy, these candidates are selected based on several other criteria. Mainly, the size and location of the candidate areas relative to the entire viewing area are considered. Consequently, a cost function is defined as
where HH., HU, HV are the entropy of sub-images H, U and V respectively.
is the area ratio of the ROI and the whole image. Xc,Yc is the center of the ROI while Icx,Icy is the center of the captured image. w, h are the width and height of the lens viewing area, respectively. α, β, γ are normalizing weights. The region with the lowest cost will be prompted to the user first. Camera sensor data (such as user focus area, camera orientation, lens aperture, etc.) may also be used in the suggestion engine.
The selection of parameters α, β, γ can be based on the characteristics of the camera and the habits of the user. For example, a camera lens with a macro may be able to capture an interested region in relatively larger scale. Therefore, the weight of Aratio can be slightly higher. In yet another example, if a user always saves the entire captured image, the weight of Aratio will out-weight any other parameters (α=0, β=1, γ=0) (i.e., the automatic cropping is turned off). Therefore, human behaviors and habits can be recorded and used to automatically adjust the parameters through a training process that involves interactive feedback and accumulation. The details are illustrated in
It is envisioned that the user can shift focus between identified regions, and that the region having the focus will have a display property making it distinguishable from other image region candidates. Ranking the regions by entropy or lowest cost facilitates focus shifting by allowing the user to navigate from region to region with few or simplified physical interface components. In some embodiments, bounding boxes are used to indicate the image region candidates, with the hue of a bounding box around an image region candidate that has the focus being different from a hue of bounding boxes about image region candidates that do not have the focus. Example hues are red and green, but it is envisioned that other hues may be used, and that users, such as red-green color blind users, may be given the ability to select to use different display properties. For example, users may be permitted to select that bounding boxes or other indicators have a relatively more bold appearance when receiving the focus, or that such indicators exhibit different visual patterns. Additional or alternative display properties can also be used. For example, the entire image may be presented as a thumbnail, with the currently selected image region candidate primarily displayed in the active display. Also, indicators, such as bounding boxes, blocks, or lines, may be provided to the thumbnail to show image region candidates with differing display properties. Further, image contents outside all image region candidates may be permitted to blink, while image region candidates not having the focus are steadily rendered in black and white, and the currently selected candidate region is steadily rendered in color. Yet further, the active display of the device GUI may simply display one image region candidate at a time, with the entire image being treated as one of the image region candidates. Further still, the portable device may provide mechanisms (e.g., cursor, arrow button, jog dial, etc.) for users to browse through and select candidate regions. Moreover, various alternative and additional ways to accommodate user browsing, navigation, and selection of image region candidates are envisioned as will be readily apparent to one skilled in the art.
The automatic image cropping scheme of the present invention can be used in a low-resource camera device, such as mobile phone or PDA equipped with a camera, to identify regions of interest from a captured image, and only save a user desired region/block in order to save memory resource on the device.
The algorithm designed for color images and the ROI suggestion engine based on entropy therefore provides intelligence that is closer to a human's perception when capturing an object in the viewing area. Yet, the algorithm is simple to implement with less computational intensity on a low resource device.
The description of the invention is merely exemplary in nature and, thus, variations that do not depart from the gist of the invention are intended to be within the scope of the invention. Such variations are not to be regarded as a departure from the spirit and scope of the invention.
This application claims the benefit of U.S. Provisional Application No. 60/493,232, filed on Aug. 7, 2003. The disclosure of the above application is incorporated herein by reference in its entirety for any purpose.
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/US04/25490 | 8/6/2004 | WO | 2/7/2006 |
Number | Date | Country | |
---|---|---|---|
60493232 | Aug 2003 | US |