# Patent

## Title
Facilitating computer-assisted tagging of object instances in digital images

## Abstract

One embodiment of the present invention provides a system that facilitates computer-assisted tagging of objects in a digital image. During operation, the system receives locations for one or more objects-of-interest in the digital image. Next, the system determines likelihoods of specific tags being assigned to the objects-of-interest. The system then automatically assigns tentative tags to the objects-of-interest based on the determined likelihoods. Next, the system displays the assignments of tentative tags to a user, and receives corrections to the assignments, if any, from the user.

## Background
BACKGROUND
1. Field of the Invention
The present invention relates to techniques for tagging images within computer systems. More specifically, the present invention relates to a method and an apparatus that facilitates computer-assisted tagging of object instances within digital images.
2. Related Art
Unlike conventional film-based photographs, digital photographs can be loaded onto a computer system. This allows photographic management software to be used to organize, access and manipulate the photographs. In managing a collection of digital photographs, it is quite useful to assign tags to the photographs, to facilitate subsequent operations involving the photographs. For example, photographs can be tagged with the names of people that appear in the photographs to facilitate subsequent retrieval of photographs containing a specific person.
Unfortunately, in existing systems, users have to tag digital photographs manually. This involves going through the photographs one-at-a-time to explicitly assign tags to photographs. For example, the tags can identify the people present in the photograph or the location of the photograph. Note that tagging people in photographs is especially problematic because there are often multiple people in a given photograph. Consequently, there may be multiple tags for each photograph. This differs from location tags, wherein only a single location is typically associated with a given photograph.
Because the tag-assignment process is so time-consuming, very few people actually take the time to do it, even though tagging significantly enhances photograph management operations, such as searching.
Hence, what is needed is a method and an apparatus that facilitates tagging photographs without having to perform time-consuming manual tagging operations.
SUMMARY
One embodiment of the present invention provides a system that facilitates computer-assisted tagging of objects in a digital image. During operation, the system receives locations for one or more objects-of-interest in the digital image. Next, the system automatically determines likelihoods of specific tags being assigned to the objects-of-interest. The system then automatically assigns tentative tags to the objects-of-interest based on the determined likelihoods. Next, the system displays the assignments of tentative tags to a user, and receives corrections to the assignments, if any, from the user.
Hence, the present invention facilitates assigning tags to images, without the user having to manually assign tags to images. The user can simply confirm or correct an automatically generated tag assignment, which takes significantly less time than manually assigning tags to photographs. The present invention also streamlines the tagging process because images not containing objects-of-interest can be skipped, and only objects-of-interest can be presented to the user, instead of entire images.
In a variation on this embodiment, the digital image includes a set of related digital images, such as images from the same photo album or from the same event.
In a variation on this embodiment, the digital image comprises a portion of a video image sequence.
In a variation on this embodiment, receiving the locations for the one or more objects-of-interest involves: receiving the digital image; and performing an object detection operation on the digital image to detect the objects-of-interest and to determine the locations of the objects-of-interest.
In a variation on this embodiment, automatically assigning the tentative tags to the objects involves assigning the tentative tags based on: information about similar assignments from related digital images; time stamps associated with the digital image and with related digital images; information about the similarity of areas in proximity to the objects in related digital images; and/or probabilities that associated objects will appear together within the digital image.
In a variation on this embodiment, automatically assigning the tentative tags to the objects involves using information about the orientation, position and scale of a given object within the digital image to determine a probability that the given object will be tagged.
In a variation on this embodiment, displaying the assignments of the tentative tags to the objects can involve: displaying the tentative tags in proximity to the associated objects in the digital image; displaying the objects grouped by tentative tag assignments; and/or displaying a set of most likely tentative tags for each object.
In a variation on this embodiment, in addition to automatically assigning tentative tags to objects, the method further comprises allowing the user to manually assign tags to objects.
In a variation on this embodiment, the objects-of-interest can include: a face of a person; a head of a person; or a body of a person.
In a variation on this embodiment, the system ceases to display objects which have been tagged (or have had tag assignments confirmed) by the user.
In a variation on this embodiment, the system uses the assigned tags to facilitate subsequent operations involving the digital image and/or a set of related digital images.



BRIEF DESCRIPTION OF THE FIGURES
FIG. 1 illustrates a system that assigns tags to objects in accordance with an embodiment of the present invention.
FIG. 2 illustrates an object record structure in accordance with an embodiment of the present invention.
FIG. 3 presents a flow chart illustrating the process of assigning tags to digital images in accordance with an embodiment of the present invention.



DETAILED DESCRIPTION
The following description is presented to enable any person skilled in the art to make and use the invention, and is provided in the context of a particular application and its requirements. Various modifications to the disclosed embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other embodiments and applications without departing from the spirit and scope of the present invention. Thus, the present invention is not limited to the embodiments shown, but is to be accorded the widest scope consistent with the principles and features disclosed herein.
The data structures and code described in this detailed description are typically stored on a computer-readable storage medium, which may be any device or medium that can store code and/or data for use by a computer system. This includes, but is not limited to, magnetic and optical storage devices, such as disk drives, magnetic tape, CDs (compact discs) and DVDs (digital versatile discs or digital video discs), and computer instruction signals embodied in a transmission medium (with or without a carrier wave upon which the signals are modulated). For example, the transmission medium may include a communications network, such as a LAN, a WAN, or the Internet.
System that Assigns Tags to Images
FIG. 1 illustrates a system that assigns tags to objects in accordance with an embodiment of the present invention. (Note that the term “tag” refers to any type of identifier or other label which can be associated with an object within an image.) This system resides within a computer system (not shown), which can generally include any type of computer single-processor or multiprocessor computer system, such as a stand-alone computer system or a distributed computer system.
The system processes a number of digital images 102-104 through an object detection module 106, which identifies the locations of objects-of-interest, such as faces, in digital images 102-104. At this point, the identified locations can be stored in database 116 as is indicated by the dashed lines in FIG. 1.
Next, a heuristics module 110 determines tentative tag assignments for the identified objects. These tentative tag assignments feed into a user interface (UI) module, which presents the tentative tag assignments to a user 117. This enables user 117 to either confirm or correct the tentative tag assignments. Note that these corrections can possibly feed back into heuristics module 110 to update tag assignments for related object instances within digital images 102-104.
Finally, the confirmed tag assignments 114 can be stored in database 116. This enables the tag assignments to be used to facilitate subsequent operations involving the digital image or related digital images.
The process of assigning tags to images is described in more detail below with reference to FIGS. 2-3.
Object Record Structure
One embodiment of the present invention uses an object record structure 200 (as is illustrated in FIG. 2) to represent object instances. One of these object record structures can be created for each instance of an object which is located in a digital image. Referring to FIG. 2, object record structure 200 contains an image identifier 202, which identifies the image containing the object. Object record structure 200 also includes the location 204 of the object (within the image) as well as an object ID 206 for the object (or object instance). Object record structure 200 also includes a tag assignment 208 for the object, which is initially empty. Object record structure additionally contains probabilities of various tags being assigned to the associated object 210. These probabilities can be determined using heuristics as is described below with reference to FIG. 3.
Process of Assigning Tags to Digital Images
FIG. 3 presents a flow chart illustrating the process of assigning tags to digital images in accordance with an embodiment of the present invention. The process starts when the system receives one or more digital images (step 302). These digital images can include digital photographs, or digital images from a sequence of digital images, such as a portion of a video image sequence. Note that a digital image typically contains a number of sub-images of objects which appear in the image. For example, an image can contain a number of faces. Hence, the term “object” as used in this specification can refer to a sub-image of an object within an image.
Next, the system performs an object detection operation on the digital images (using known object detection techniques) to determine the locations for instances of objects-of-interest in the digital images (step 304). At this point, the system may allow the user to explicitly assign tags to objects.
The system then uses heuristics to determine likelihoods of specific tags being assigned to identified object instances (step 306). For example, the system can use the following heuristics in cases where the objects-of-interest are faces of people within digital photographs.

    
    
        (1) The system can determine tag assignments for untagged faces in photographs based on tag assignments from related photographs associated with the same user. For example, if the user has tagged a face as belonging to a specific person in a photograph, the system can consider the specific person while make tentative tag assignments for faces in related photographs.
        (2) The system can use time stamps of photographs to assist in determining tag assignments. For example, photographs which are taken at about the same time are likely to contain the same people.
        (3) The system can make use of the similarity of areas immediately under faces in photographs to determine tag assignments for photographs taken close in time. This heuristic takes advantage of the fact that a given person is likely to be wearing the same clothing on the same day.
        (4) The system can make use of the similarity of areas above faces in photographs taken close in time for tag assignments. This heuristic takes advantage of the fact that the same person is likely to have the same hair style, or is likely to be wearing the same hat, in photographs taken at about the same time.
        (5) The system can make use of the pose and scale of faces to determine the probability that a given face will be tagged. If there are many faces in a photo, a small face or a non-frontal pose decreases the likelihood that the face will be tagged. Conversely, larger faces, frontal faces and faces that are closer to the center of a photograph are more likely to be tagged.
        (6) The system can make use of information from other tag assignments in the same or similar photographs to determine tag assignments. Note that a given person is unlikely to occur in a photograph more than once. Moreover, a tag is likely re-occur in different photographs taken close in time to each other.
        (7) The system can make use of the likelihood that the specific combinations of people are likely to occur together in photographs. For example, members of the same family are likely to occur together in the same photograph. Hence, if the user has tagged a face as belonging to a specific person in a photograph, the system can consider family members of the specific person when attempting to assign tags to other faces in the photograph or in other photographs.
    
    


Next, the system assigns tentative tags to objects based on the determined likelihoods (step 308). Note that the system may decide not to assign tags to certain objects. For example, in a crowd of people, the system may only assign tags to specific people-of-interest in the crowd.
Next, the system displays assignments of tentative tags to objects to a user (step 310). During this display process, the most-likely tags can be presented to the user for mass confirmation or correction. This can involve: displaying the tentative tags in proximity to the associated objects in the digital image; displaying the objects grouped by tentative tag assignments; and/or displaying a set of most likely tentative tags for each object (for example, in a pull-down menu under each object-of-interest).
In one embodiment of the present invention, the objects-of-interest are “faces” in digital photographs. In this embodiment, a “face-tagging wizard” displays faces of people automatically extracted from images, normalized to the same size. These faces are grouped into bins for each tag assignment and may be ordered based on the system's confidence that the faces belong to the bin. There can also be an “unassigned” faces bin. The user can select one or more faces and drag them from one bin to another, thereby changing their assignments. Alternatively, the user can delete faces, thereby making them unassigned.
Sometimes it is difficult to recognize a sub-image for an object outside of its surrounding image. To help with this, the entire image from which the object instance was extracted can be displayed in a corner, possibly with the object highlighted. Objects explicitly tagged by the user can be removed to make space for new objects. In addition, the act of explicitly tagging an object may change the suggested assignments of related objects, so that untagged objects may move from one bin to another.
After the tentative tag assignments are displayed to a user, the user can correct or confirm the assignments (step 312). At this point, the corrected (or confirmed) assignments can be stored to a database. The system can also return to step 306 to apply the heuristics to the corrected (or confirmed) assignments. In this way, as the user corrects tag assignments, the estimates for tag assignment likelihoods for untagged faces can be reevaluated. Hence, correcting a tag assignment may trigger changes to other tag assignments. The system can also remove from the display objects which have been tagged (or have had tag assignments confirmed) by the user.
Finally, the system can use the tag assignments to facilitate subsequent operations involving the digital images (step 314). For example, the system can retrieve all photographs that are tagged to indicate that a person-of-interest appears in the photographs.
One problem that can potentially arise is that recognition technology may not be good enough to present tag assignments to the user (a fraction of which are wrong). To deal with this problem, one embodiment of the present invention arranges the extracted images in such a way that images which the system believes are similar to each other are placed close to each other (or are somehow easier to select as a group). In this way, the user still has to explicitly select images to be associated with tags, but the user will have easier time selecting sets of images which are similar.
The foregoing descriptions of embodiments of the present invention have been presented only for purposes of illustration and description. They are not intended to be exhaustive or to limit the present invention to the forms disclosed. Accordingly, many modifications and variations will be apparent to practitioners skilled in the art. Additionally, the above disclosure is not intended to limit the present invention. The scope of the present invention is defined by the appended claims.

## Claims

1. A method for facilitating computer-assisted tagging of objects in a digital image, comprising:
using a computer to perform:
receiving locations for one or more objects-of-interest in the digital image;
automatically determining likelihoods of specific tags being assigned to the objects-of-interest;
automatically assigning tentative tags to the objects-of-interest based on the determined likelihoods;
displaying, on the computer, the assignments of tentative tags to a user; and
receiving corrections to the assignments from the user.

2. The method of claim 1, wherein the digital image includes a set of related digital images.

3. The method of claim 1, wherein the digital image comprises a portion of a video image sequence.

4. The method of claim 1, wherein receiving the locations for the one or more objects-of-interest involves:
receiving the digital image; and
performing an object detection operation on the digital image to detect the objects-of-interest and to determine the locations of the objects-of-interest.

5. The method of claim 1, wherein automatically assigning the tentative tags to the objects-of-interest involves assigning the tentative tags based on information about similar assignments from related digital images.

6. The method of claim 1, wherein automatically assigning the tentative tags to the objects-of-interest involves assigning the tentative tags based on time stamps associated with the digital image and with related digital images.

7. The method of claim 1, wherein automatically assigning the tentative tags to the objects-of-interest involves assigning the tentative tags based on information about the similarity of areas in proximity to the objects in related digital images.

8. The method of claim 1, wherein automatically assigning the tentative tags to the objects-of-interest involves assigning the tentative tags based on probabilities that associated objects will appear together within a digital image.

9. The method of claim 1, wherein automatically assigning the tentative tags to the objects-of-interest involves using information about the orientation, position and scale of a given object within the digital image to determine a probability that the given object will be tagged.

10. The method of claim 1, wherein displaying the assignments of the tentative tags to the objects-of-interest involves displaying the tentative tags in proximity to the associated objects in the digital image.

11. The method of claim 1, wherein displaying the assignments of the tentative tags to the objects-of-interest involves displaying the objects grouped by tentative tag assignments.

12. The method of claim 1, wherein displaying the assignments of the tentative tags to the objects-of-interest involves displaying a set of most likely tentative tags for each object.

13. The method of claim 1, wherein in addition to automatically assigning tentative tags to the objects-of-interest, the method further comprises allowing the user to manually assign tags to objects.

14. The method of claim 1, wherein the method further comprises ceasing to display objects which have been tagged (or have had tag assignments confirmed) by the user.

15. The method of claim 1, further comprising using the assigned tags to facilitate subsequent operations involving the digital image and/or a set of related digital images.

16. A computer-readable storage device storing instructions that when executed by a computer cause the computer to perform a method for facilitating computer-assisted tagging of objects in a digital image, the method comprising:
receiving locations for one or more objects-of-interest in the digital image;
automatically determining likelihoods of specific tags being assigned to the objects-of-interest;
automatically assigning tentative tags to the objects-of-interest based on the determined likelihoods;
displaying the assignments of tentative tags to a user; and
receiving corrections to the assignments from the user.

17. The computer-readable storage device of claim 16, wherein the digital image includes a set of related digital images.

18. The computer-readable storage device of claim 16, wherein the digital image comprises a portion of a video image sequence.

19. The computer-readable storage device of claim 16, wherein receiving the locations for the one or more objects-of-interest involves:
receiving the digital image; and
performing an object detection operation on the digital image to detect the objects-of-interest and to determine the locations of the objects-of-interest.

20. The computer-readable storage device of claim 16, wherein automatically assigning the tentative tags to the objects-of-interest involves assigning the tentative tags based on information about similar assignments from related digital images.

21. The computer-readable storage device of claim 16, wherein automatically assigning the tentative tags to the objects-of-interest involves assigning the tentative tags based on time stamps associated with the digital image and with related digital images.

22. The computer-readable storage device of claim 16, wherein automatically assigning the tentative tags to the objects-of-interest involves assigning the tentative tags based on information about the similarity of areas in proximity to the objects in related digital images.

23. The computer-readable storage device of claim 16, wherein automatically assigning the tentative tags to the objects-of-interest involves assigning the tentative tags based on probabilities that associated objects will appear together within a digital image.

24. The computer-readable storage device of claim 16, wherein automatically assigning the tentative tags to objects-of-interest involves using information about the position, orientation and scale of a given object within the digital image to determine a probability that the given object will be tagged.

25. The computer-readable storage device of claim 16, wherein displaying the assignments of the tentative tags to the objects-of-interest involves displaying the tentative tags in proximity to the associated objects in the digital image.

26. The computer-readable storage device of claim 16, wherein displaying the assignments of the tentative tags to the objects-of-interest involves displaying the objects grouped by tentative tag assignments.

27. The computer-readable storage device of claim 16, wherein displaying the assignments of the tentative tags to the objects-of-interest involves displaying a set of most likely tentative tags for each object.

28. The computer-readable storage device of claim 16, wherein in addition to automatically assigning tentative tags to the objects-of-interest, the method further comprises allowing the user to manually assign tags to objects.

29. The computer-readable storage device of claim 16, wherein the method further comprises ceasing to display objects which have been tagged (or have had tag assignments confirmed) by the user.

30. The computer-readable storage device of claim 16, wherein the method further comprises using the assigned tags to facilitate subsequent operations involving the digital image and/or a set of related digital images.

31. An apparatus that facilitates computer-assisted tagging of objects in a digital image, comprising:
a receiving mechanism configured to receive locations for one or more objects-of-interest in the digital image;
a determination mechanism configured to automatically determine likelihoods of specific tags being assigned to the objects-of-interest;
an assignment mechanism configured to automatically assign tentative tags to the objects-of-interest based on the determined likelihoods;
a display mechanism configured to display the assignments of tentative tags to a user; and
a correction mechanism configured to receive corrections to the assignments, if any, from the user.