The present invention relates generally to the field of techniques for analyzing graphical data and, in particular, methods and systems for computerized recognition of objects of interest in graphical contents of 2D images.
Recognition of objects of interest (referred to herein as “targets”) in graphical contents of 2D images is used by military, law enforcement, commercial, and private entities. Typically, the goal of target recognition is identification or monitoring of one or more targets depicted in images produced by surveillance apparatuses or images stored in respective databases or archives. In various applications, target recognition may be performed in real time or, alternatively, using pre-recorded data.
It has been recognized in the art that there are difficulties associated with computerized, i.e., automated, comparing of the graphical contents of images. In particular, many challenges in the field of computerized target recognition relate to identification of targets that change their appearance due to orientation, lighting conditions, or partial occlusions.
Despite the considerable effort in the art devoted to techniques for computerized image recognition, further improvements would be desirable.
One aspect of the invention provides a method for image recognition. The method is directed to determining a degree of similarity between a query image and reference images based on a value of a similarity score between the compared images, wherein the similarity score is defined as a complement to a pictorial edit distance, which is asserted as a weighted sum of a 2D representation of Insertion, Deletion, and Substitution Error terms of the Levenshtein algorithm for matching or searching one-dimensional data strings.
In one embodiment, the method comprises generating a matrix of similarity scores of the reference images, in which each reference image forms a diagonal matrix element and similarity scores of the reference images one versus another form non-diagonal matrix elements, and determining a similarity score of a query image versus a reference image. Then, the method calculates a similarity inverse matrix transforming the matrix of similarity scores in a diagonal identity matrix and a query vector. Elements of the query vector represent similarity scores between the query and reference images. The query vector is adjusted using the similarity inverse matrix and used to compare the query and reference images.
Another aspect of the present invention provides a system using the inventive method for image recognition.
Various other aspects and embodiments of the invention are described in further detail below.
The Summary is neither intended nor should it be construed as being representative of the full extent and scope of the present invention, which these and additional aspects will become more readily apparent from the detailed description, particularly when taken together with the appended drawings.
To facilitate understanding, identical reference numerals have been used, where possible, to designate similar elements that are common to the figures, except that suffixes may be added, when appropriate, to differentiate such elements. The images in the drawings are simplified for illustrative purposes and have not necessarily been drawn to scale.
The appended drawings illustrate exemplary embodiments of the invention and, as such, should not be considered as limiting the scope of the invention that may admit to other equally effective embodiments. It is contemplated that features or steps of one embodiment may beneficially be incorporated in other embodiments without further recitation.
Referring to the figures,
In various embodiments, method steps of the method 100 are performed in the depicted order or at least two of these steps or portions thereof may be performed contemporaneously, in parallel, or in a different order. For example, portions of steps 120, 130, and 140 may be performed contemporaneously or in parallel. Those skilled in the art will readily appreciate that the order of executing at least a portion of other discussed below processes or routines may also be modified.
Aspects of the present invention are illustratively described below within the context of images depicting live objects such as humans or body parts thereof. The invention may also be utilized within context of images depicting material objects, such as missiles or their plumes, vehicles, objects floating in air, free space, or liquid, beams of light, and the like, as well as images depicting a combination of various live or material objects. It has been contemplated and is within the scope of the invention that the method 100 is utilized within the context of such images.
At step 110, referring to
Illustratively, each of the reference images 220 depicts a respective object 225 that is compared to a target 215 depicted in the query image 210. Generally, the target 215 and objects 225 are depicted surrounded by live or material elements of their respective conventional habitats, conditions, or environments. For a purpose of graphical clarity, in the images 210 and 220 such elements are not shown.
Herein, the method 100 is discussed referring to the reference and query images depicting a single object (reference images 220) or a single target (query image 210). In alternate embodiments, reference and query images depicting several such objects or targets may similarly be compared using processing steps of the method 100.
In the depicted exemplary embodiment, the query and reference images 210, 220 are digitized 2D images having the same digital resolution (i.e., number of pixels per unit of area), and their graphical contents (i.e., target 215 and objects 225) have approximately the same physical dimensions, or scale factors.
Generally, at least a portion of these properties in available samples of query and reference images may differ from one another or at least one of the query and reference images 210, 220 may be a portion of a larger image plane. At step 110, respective properties of such query and reference images are normalized.
In particular, a normalization process may adjust scale factors or digital resolution of the query or reference images, equalize or approximately equalize physical dimensions of particular elements in the images or the images themselves, produce copies of the query and reference images having different digital resolutions, and the like. Such normalization of the images increases probability and reduces computational complexity of recognizing the target 215 in graphical contents of the reference images 220.
At step 120, a similarity matrix SM of the reference images 220 is generated,
Matrix elements Sij of the similarity matrix SM are defined as similarity scores between reference images 220i and 220j, where i and j are integers and i+j=M. In the similarity matrix SM, each reference image 220 forms a diagonal matrix element, and similarity scores of the reference images 220 one versus another form non-diagonal matrix elements.
Diagonal matrix elements (i.e., matrix elements Sii or Sjj) relate to similarity scores of the respective reference images versus themselves and, as such, are unity matrix elements (i.e., matrix elements which numerical value is equal to 1). Correspondingly, since similarity scores Sij and Sij for the respective reference image 220ij and 220ji are equal to one another, the similarity matrix 300 is a symmetric matrix. Numerical value of the non-diagonal matrix elements is disposed in a range from 0 to 1.
A similarity score between reference images 220i and 220j is defined as a complement to a pictorial edit distance (PED), which is asserted as a weighted sum of a 2D representation of Insertion, Deletion, and Substitution Error terms of the Levenshtein algorithm for matching or searching one-dimensional data strings. Techniques for determining PEDs and similarity scores are disclosed in detail in commonly assigned U.S. patent application Ser. No. 11/61,913, filed on Jan. 2, 2007, and Ser. No. 11/619,092, filed on Jan. 2, 2007, all of which are herein incorporated by reference. Techniques for determining PEDs and similarity scores and comparing images using these properties are further disclosed in the commonly assigned U.S. patent applications by C. Podilchuk entitled “Method and System for Comparing Images Using a Pictorial Edit Distance,” filed simultaneously herewith on this date, and “Method and System for Searching Multimedia Content,” simultaneously filed herewith on this date, the contents all of which are incorporated herein by reference. Salient features of these techniques are briefly discussed below.
To determine the similarity score between reference image 220i and 220j, an image disparity map is calculated for these images using a respective block matching algorithm. Using cost functions such as, for example, a mean absolute difference (or L1 error) or a mean square error (or L2 error), the image disparity map identifies disparity between pre-selected elementary blocks of pixels in the reference image 220i and 220j as a weighted sum of the one-to-many, one-to-none, and matching error correspondences between the blocks of pixels.
These types of correspondences are expressed in terms of the Levenshtein algorithm as follows: (i) one-to-many correspondence between the elementary blocks is asserted as an equivalent of an Insertion term, (ii) one-to-none correspondence between the elementary blocks is asserted as an equivalent of a Deletion term, (iii) partial matching between the elementary blocks is asserted as an equivalent of a Substitution Error term, and (iv) a PED between the compared images is asserted as an equivalent of the Levenshtein's Edit Distance.
The term “one-to-many correspondence” relates to an elementary block matching, with a cost function smaller than a first pre-determined threshold Q1, two or more elementary blocks of the other image. Accordingly, the term “one-to-none correspondence” relates to an elementary block having no match among the elementary blocks of the other image (i.e., elementary block which cost function, with respect to the elementary blocks of the other image, is greater than a second pre-determined threshold Q2). The term “partial matching” relates to the elementary blocks which cost functions, with respect to the elementary blocks of the other image, are disposed between Q1 and Q2, i.e., Q1≦Q≦Q2.
At step 130, using the similarity matrix SM, an inverse similarity matrix SIM is calculated. The inverse similarity matrix SIM is a matrix that, when multiplied by the similarity matrix SM, forms a unitary diagonal identity matrix IM, i.e.,
(SIM)·(SM)=IM. (Eq. 2)
In the identity matrix ID, all diagonal elements equal to 1 and non-diagonal elements equal to 0.
At step 140, a query vector V is generated,
Elements Sqk of the query vector V are selectively defined as similarity scores between the query image 210 and a respective reference image 220k, where k is an integer in a range from 1 to M.
At step 150, using the inverse similarity matrix SIM, an adjusted query vector VADJ is calculated as a product of the vector V and the inverse similarity matrix SIM, i.e.,
VADJ=V·(SIM). (Eq. 4)
Each element of the adjusted query vector VADJ corresponds to an adjusted value of a similarity score between the query image 210 and the respective reference image 220k.
At step 160, an element (or elements) of the adjusted query vector VADJ having a largest similarity score Smax among all elements of the vector VADJ is (are) defined.
At step 170, the method 100 queries if the similarity score Smax exceeds a pre-selected threshold T for numerical values of the similarity scores. If the query of step 170 is affirmatively answered, the method 100 proceeds to step 180, where the method 100 identifies the target 215 in the query image 210 as the object(s) 225 depicted in the reference image(s) 220 having the similarity score Smax. If the query of step 170 is negatively answered, the method 100 proceeds to step 190, where the method 100 defines absence of the objects 225 in the query image 210, i.e., determines that the objects 225 are not the target 215.
In a further embodiment, the query image 210 may be compared against the reference images 220 at least a portion of which is morphed using respective graphics software to examine how such variations relate to the similarity scores between the target 225 and the objects 215. In particular, such graphics software may produce morphed reference images 220 where lighting conditions, poses, or attributes (for example, clothing, hand-held or wearable objects, and the like) of the objects 225 are selectively modified.
In another embodiment, a plurality of the query images 210n, where n is an integer and n>1, may similarly be compared against the reference images 220. In yet another embodiment, a plurality of thresholds T may be defined to identify particular groups of the reference images (for example, groups which similarity scores with the respective query image(s) 210 correspond to pre-selected ranges of the similarity scores).
In exemplary embodiments, the method 100 may be implemented in hardware, software, firmware, or any combination thereof in a form of a computer program product comprising computer-executable instructions. When implemented in software, the computer program product may be stored on or transmitted using a computer-readable medium adapted for storing the instructions or transferring the computer program product from one computer to another.
In one embodiment, the analyzer 320 is a computer having a processor 322 and a memory unit 324. The memory unit 324 includes a database 326 of reference images 220 and an image comparing program, or software, 328. The image comparing program 328 encodes, in a form of computer instructions, the method 100. When executed by the processor 322, the program 328 performs processing steps of the method 100. In an alternate embodiment, the database 326 may be a portion of a remote apparatus (not shown) coupled to the analyzer 320.
In alternate embodiments, at least some of the computer program 328 and database 326 of reference images 220 may reside on a removable magnetic or optical media (e.g., flash memory card or drive, compact disc (CD), DVD, Blu-Ray and/or HD optical disks and the like) (not shown) or any other storage medium (not shown), including magnetic media such has hard disk drives, tapes, and the like, including media coupled to the computer 320 by way of a network (not shown), such as a wide area network (WAN), local area network (LAN) or the Internet.
The source 310 is generally a digital video-recording device (for example, digital camera, digital video camera, and the like), an image-digitizing device (for example, a scanner), or a remote data storage adapted for communicating with the analyzer 320. In an alternate embodiment, the prove image(s) 210 may be selected from images contained in the database 326 (i.e., from reference images 220).
Although the invention herein has been described with reference to particular illustrative embodiments, it is to be understood that these embodiments are merely illustrative of the principles and applications of the present invention. Therefore numerous modifications may be made to the illustrative embodiments and other arrangements may be devised without departing from the spirit and scope of the present invention, which is defined by the appended claims.
This application claims benefit of U.S. provisional patent application Ser. No. 60/861,932, filed on Nov. 30, 2006, which is herein incorporated by reference.
Number | Name | Date | Kind |
---|---|---|---|
4503557 | Maeda | Mar 1985 | A |
4901362 | Terzian | Feb 1990 | A |
5459739 | Handley | Oct 1995 | A |
5751286 | Barber | May 1998 | A |
5757959 | Lopresti | May 1998 | A |
5761538 | Hull | Jun 1998 | A |
5832474 | Lopresti et al. | Nov 1998 | A |
5875446 | Brown | Feb 1999 | A |
5901244 | Souma et al. | May 1999 | A |
5940778 | Marfurt | Aug 1999 | A |
6104835 | Han | Aug 2000 | A |
6161130 | Horvitz | Dec 2000 | A |
6295371 | Rucklidge | Sep 2001 | B1 |
6581034 | Choi et al. | Jun 2003 | B1 |
6616704 | Birman | Sep 2003 | B1 |
6629097 | Keith | Sep 2003 | B1 |
6633857 | Tipping | Oct 2003 | B1 |
6647139 | Kunii et al. | Nov 2003 | B1 |
6741725 | Astle | May 2004 | B2 |
6775411 | Sloan et al. | Aug 2004 | B2 |
6847966 | Sommer et al. | Jan 2005 | B1 |
6898469 | Bickford | May 2005 | B2 |
6915009 | Foote | Jul 2005 | B2 |
6944602 | Cristianini | Sep 2005 | B2 |
6990217 | Moghaddam | Jan 2006 | B1 |
7054847 | Hartman | May 2006 | B2 |
20010045979 | Matsumoto et al. | Nov 2001 | A1 |
20020028021 | Foote et al. | Mar 2002 | A1 |
20020064149 | Elliott et al. | May 2002 | A1 |
20020078043 | Pass et al. | Jun 2002 | A1 |
20030026484 | O'Neill | Feb 2003 | A1 |
20030108223 | Prokoski | Jun 2003 | A1 |
20040133927 | Sternberg et al. | Jul 2004 | A1 |
20040221237 | Foote et al. | Nov 2004 | A1 |
20040243567 | Levy | Dec 2004 | A1 |
20050022114 | Shanahan et al. | Jan 2005 | A1 |
20050125376 | Curtis et al. | Jun 2005 | A1 |
20050129290 | Lo | Jun 2005 | A1 |
20050147302 | Leung | Jul 2005 | A1 |
20060107823 | Platt | May 2006 | A1 |
20060112068 | Zhang | May 2006 | A1 |
20060251339 | Gokturk | Nov 2006 | A1 |
20070061301 | Ramer et al. | Mar 2007 | A1 |
20070294612 | Drucker et al. | Dec 2007 | A1 |
20080077570 | Tang et al. | Mar 2008 | A1 |
Number | Date | Country |
---|---|---|
0949580 | Feb 2001 | EP |
Number | Date | Country | |
---|---|---|---|
20080133521 A1 | Jun 2008 | US |
Number | Date | Country | |
---|---|---|---|
60861932 | Nov 2006 | US |