Thanks to advances in imaging technologies, people take more pictures than ever before. Further, the proliferation of media sharing applications has increased the demand for picture sharing to a greater degree than ever before. Yet the flood of photos, and the need to sort through them to find relevant pictures, has actually increased the time and effort required for sharing pictures. As a result, it is often the case that either pictures that are less than representative of the best pictures, or no pictures at all, end up getting shared.
The summary provided in this section summarizes one or more partial or complete example embodiments of the invention in order to provide a basic high-level understanding to the reader. This summary is not an extensive description of the invention and it may not identify key elements or aspects of the invention, or delineate the scope of the invention. Its sole purpose is to present various aspects of the invention in a simplified form as a prelude to the detailed description provided below.
The invention encompasses technologies for analyzing various features detected in a face detected in an image. Such features may include at least the eyes, eyebrows, nose, and mouth of a face as reflected in a detected image. Such analyzing may include scoring aspects of these features. Such scores may be weighted. The analysis may be used to determine expressions and/or poses of the face, as well as indicate if the face is smiling, frowning, or neutral. An overall quality score for the face may also be determined and provided based on the aforementioned analysis as well as whether or not the face is near an edge of the image or cut-off in the image. Finally, a face signature may be determined that uniquely identifies the face, at least within the scope of the analyzed features. Such face signatures may be used to detect a similar face in other images. Reference to a face and to eyes, eyebrows, nose, mouth, and other features of the face as used herein typically refers to such as shown in an image as opposed an actual face or its features.
Many of the attendant features will be more readily appreciated as the same become better understood by reference to the detailed description provided below in connection with the accompanying drawings.
The detailed description provided below will be better understood when considered in connection with the accompanying drawings, where:
Like-numbered labels in different figures are used to designate similar or identical elements or steps in the accompanying drawings.
The detailed description provided in this section, in connection with the accompanying drawings, describes one or more partial or complete example embodiments of the invention, but is not intended to describe all possible embodiments of the invention. This detailed description sets forth various examples of at least some of the technologies, systems, and/or methods invention. However, the same or equivalent technologies, systems, and/or methods may be realized according to examples as well.
Although the examples provided herein are described and illustrated as being implementable in a computing environment, the environment described is provided only as an example and not a limitation. As those skilled in the art will appreciate, the examples disclosed are suitable for implementation in a wide variety of different computing environments.
Computing environment 100 typically includes a general-purpose computing system in the form of a computing device 101 coupled to various components, such as peripheral devices 102, 103, 101 and the like. These may include components such as input devices 103, including voice recognition technologies, touch pads, buttons, keyboards and/or pointing devices, such as a mouse or trackball, that may operate via one or more input/output (“I/O”) interfaces 112. The components of computing device 101 may include one or more processors (including central processing units (“CPU”), graphics processing units (“GPU”), microprocessors (“μP”), and the like) 107, system memory 109, and a system bus 108 that typically couples the various components. Processor(s) 107 typically processes or executes various computer-executable instructions and, based on those instructions, controls the operation of computing device 101. This may include the computing device 101 communicating with other electronic and/or computing devices, systems or environments (not shown) via various communications technologies such as a network connection 114 or the like. System bus 108 represents any number of bus structures, including a memory bus or memory controller, a peripheral bus, a serial bus, an accelerated graphics port, a processor or local bus using any of a variety of bus architectures, and the like.
System memory 109 may include computer-readable media in the form of volatile memory, such as random access memory (“RAM”), and/or non-volatile memory, such as read only memory (“ROM”) or flash memory (“FLASH”). A basic input/output system (“BIOS”) may be stored in non-volatile or the like. System memory 109 typically stores data, computer-executable instructions and/or program modules comprising computer-executable instructions that are immediately accessible to and/or presently operated on by one or more of the processors 107.
Mass storage devices 104 and 110 may be coupled to computing device 101 or incorporated into computing device 101 via coupling to the system bus. Such mass storage devices 104 and 110 may include non-volatile RAM, a magnetic disk drive which reads from and/or writes to a removable, non-volatile magnetic disk (e.g., a “floppy disk”) 105, and/or an optical disk drive that reads from and/or writes to a non-volatile optical disk such as a CD ROM, DVD ROM 106. Alternatively, a mass storage device, such as hard disk 110, may include non-removable storage medium. Other mass storage devices may include memory cards, memory sticks, tape storage devices, and the like.
Any number of computer programs, files, data structures, and the like may be stored in mass storage 110, other storage devices 104, 105, 106 and system memory 109 (typically limited by available space) including, by way of example and not limitation, operating systems, application programs, data files, directory structures, computer-executable instructions, and the like.
Output components or devices, such as display device 102, may be coupled to computing device 101, typically via an interface such as a display adapter 111. Output device 102 may be a liquid crystal display (“LCD”). Other example output devices may include printers, audio outputs, voice outputs, cathode ray tube (“CRT”) displays, tactile devices or other sensory output mechanisms, or the like. Output devices may enable computing device 101 to interact with human operators or other machines, systems, computing environments, or the like. A user may interface with computing environment 100 via any number of different I/O devices 103 such as a touch pad, buttons, keyboard, mouse, joystick, game pad, data port, and the like. These and other I/O devices may be coupled to processor 107 via I/O interfaces 112 which may be coupled to system bus 108, and/or may be coupled by other interfaces and bus structures, such as a parallel port, game port, universal serial bus (“USB”), fire wire, infrared (“IR”) port, and the like.
Computing device 101 may operate in a networked environment via communications connections to one or more remote computing devices through one or more cellular networks, wireless networks, local area networks (“LAN”), wide area networks (“WAN”), storage area networks (“SAN”), the Internet, radio links, optical links and the like. Computing device 101 may be coupled to a network via network adapter 113 or the like, or, alternatively, via a modem, digital subscriber line (“DSL”) link, integrated services digital network (“ISDN”) link, Internet link, wireless link, or the like.
Communications connection 114, such as a network connection, typically provides a coupling to communications media, such as a network. Communications media typically provide computer-readable and computer-executable instructions, data structures, files, program modules and other data using a modulated data signal, such as a carrier wave or other transport mechanism. The term “modulated data signal” typically means a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal. By way of example, and not limitation, communications media may include wired media, such as a wired network or direct-wired connection or the like, and wireless media, such as acoustic, radio frequency, infrared, or other wireless communications mechanisms.
Power source 190, such as a battery or a power supply, typically provides power for portions or all of computing environment 100. In the case of the computing environment 100 being a mobile device or portable device or the like, power source 190 may be a battery. Alternatively, in the case computing environment 100 is a desktop computer or server or the like, power source 190 may be a power supply designed to connect to an alternating current (“AC”) source, such as via a wall outlet.
Some mobile devices may not include many of the components described in connection with
Those skilled in the art will realize that storage devices utilized to provide computer-readable and computer-executable instructions and data can be distributed over a network. For example, a remote computer or storage device may store computer-readable and computer-executable instructions in the form of software applications and data. A local computer may access the remote computer or storage device via the network and download part or all of a software application or data and may execute any computer-executable instructions. Alternatively, the local computer may download pieces of the software or data as needed, or distributively process the software by executing some of the instructions at the local computer and some at remote computers and/or devices.
Those skilled in the art will also realize that, by utilizing conventional techniques, all or portions of the software's computer-executable instructions may be carried out by a dedicated electronic circuit such as a digital signal processor (“DSP”), programmable logic array (“PLA”), discrete circuits, and the like. The term “electronic apparatus” may include computing devices or consumer electronic devices comprising any software, firmware or the like, or electronic devices or circuits comprising no software, firmware or the like.
The term “firmware” typically refers to executable instructions, code, data, applications, programs, program modules, or the like maintained in an electronic device such as a ROM. The term “software” generally refers to computer-executable instructions, code, data, applications, programs, program modules, or the like maintained in or on any form or type of computer-readable media that is configured for storing computer-executable instructions or the like in a manner that is accessible to a computing device. The term “computer-readable media” and the like as used herein is strictly limited to one or more apparatus, article of manufacture, or the like that is not a signal or carrier wave per se. The term “computing device” as used in the claims refers to one or more devices such as computing device 101 and encompasses client devices, mobile devices, one or more servers, network services such as an Internet service or corporate network service, and the like, and any combination of such.
In summary, system 200 is configured for analyzing and scoring a face in an image. An image(s) is typically provided by one or more sources as input 212 to the system. Such sources include camera phones, digital cameras, digital video recorders (“DVRs”), computers, digital photo albums, social media applications, image and video streaming web sites, and any other source of digital images. Note that one or more actual images may be input and/or output, or references to images, or any combination of such.
Facial recognition module 210 is a module that accepts an image as input 212, detects one or more faces in the image, and that detects various features in recognized faces. In one example, the functionality of module 210 may be provided in the form of a software development kit (“SDK”). Module 210 may include sub modules such as face detector 214 (e.g., the portion of module 210 that detects faces in an image) and facial feature detector 216 (e.g., the portion of module 210 that detects facial features in an image). Any image provided at input 212 is typically available to both face detector 214 and facial feature detector 216.
Face detector 214 typically provides output 215 in the form of a face identifier that identifies a detected face in image 212. Given multiple detected faces, a unique face identifier is typically provided for face detected. In one example, a face identifier may be a RECT data structure or the like that bounds certain aspects of the face it identifies (e.g., see example rectangle 410 in
Facial feature detector 216 typically accepts an image and a face identifier(s) of any face(s) detected in the image. Module 216 typically provides output 217 in the form of a set of facial feature descriptors that describe facial features detected in a face corresponding to a face identifier. Given multiple face identifiers as input, a corresponding set of facial feature descriptors is typically provided for each face identifier. In one example, the set of facial feature descriptors may be in the form of coordinates for each detected facial features, such as described in connection with
Feature analyzer 220 typically accepts an image, a face identifier(s) of any face(s) detected in the image, and a corresponding set of facial feature descriptors for each face detected. Module 220 typically provides output 222 in the form of face information for each face detected. In one example, such face information may include, for each face detected, the face identifier of the face, the face's set of facial feature descriptors, a quality score of the face, a unique signature for the face, an indication of an expression of the face, and indication of a pose of the face, and/or additional analysis results such as described herein below. Such indications may be provided in the form of a score or the like, or in any other form. Such a face signature maybe used to detect, based at least on analyzed facial features, similar faces in other images, where such similar faces typically belong to the same person, closely-related persons, or similar-looking persons.
Face analyzer 310 may analyze one or more aspects of a face. For example, module 310 may analyze the input to determine a location of the face in the image, a degree to which the face is cut-off in the image, a degree of sharpness of the face, and a confidence level that a detected face actually represents a face. Examples of methods for the foregoing are provided below in connection with
Eye analyzer 320 may analyze one or more aspects of an eye(s) in the face. For example, module 320 may analyze the input to determine a degree to which an eye is open, the direction an eye is looking, and/or a degree of sharpness of an eye in the image. Examples of methods for the foregoing are provided below in connection with
Mouth analyzer 330 may analyze one or more aspects of a mouth in the face. For example, module 330 may analyze the input to determine a degree to which the mouth is open, and a degree to which teeth are visible in the mouth. Examples of methods for the foregoing are provided below in connection with
Expression analyzer 340 may analyze one or more aspects of the face, the eyes, and the mouth in the face. For example, module 340 may analyze the input to determine an expression on and/or a pose of the face. Examples of methods for the foregoing are provided below in connection with
In one example, features on the face may be detected and indicated with coordinate points such as a chin point 420 and face side points 421 and 422. In addition, coordinate points 431, 432, and 433 may indicate a detected left eye brow, coordinate points 441, 442, and 443 may indicated a detected right eye brow, and coordinate points 471 and 472 may indicate a detected nose.
In the example, the left eye of the face may be detected and indicated with coordinate points 451-454, with coordinate point 450 indicating a direction the eye is looking. The right eye of the face may be detected and indicated with coordinate points 461-464, with coordinate point 460 indicating a direction the eye is looking. The phrases “direction the eye is looking”, “eye direction”, and the like generally refer to the direction the eye is pointing or aimed. Further, the mouth of the face may be detected and indicated with coordinate points 481-486.
For example, block 540 of method 500 typically indicates analyzing aspects of the right eye of the face, and block 550 of method 500 typically indicates analyzing aspects of the left eye of the face. Examples of eye analysis are provided below in connection with
Block 590 of method 500 typically indicates calculating a score for the face. Such a face score may be an overall quality score for the face that is based on one or more of the analysis steps of method 500. In one example, the score may be a value between zero and one. In other examples, the score may be represented by a value within a continuous range, or by a quantization such as high, medium, or low, or the like. In one example, the face score may represent an overall measure of the quality of the face in the image, and may be based on a combination of analyzed aspects such as face sharpness, face expression, face pose, and/or the state of the face's eyes and mouth. Such a score may be provided as output 222 in response to image input 212.
Block 610 typically indicates presenting or determining a confidence level that a detected face represents an actual face. Such a level may be received as part of the input, or may be determined based on data received as part of the input. In the latter case, the level may be based on the face identifier and the set of facial feature descriptors received as input. For example, a face indicator that indicates a proportionate face size relative to the image and/or a more complete and consistent set of facial feature descriptors tend to indicate a higher confidence, while an disproportionate face size and a less complete and consistent set tend to indicate a lower confidence.
A confidence score may be assigned to the face that represents the confidence level. Such a confidence score may be weighted, and may be represented by a real number between zero and one, a value within some other range, and/or by a quantization such as high/medium/low, and/or the like.
Block 620 typically indicates determining a location of the face in the image. Based on this location, and the size of the face according to the face identifier, a proximity of the face to an edge of the image may also be determined. The proximity of the face to an edge of the image may be compared to an unacceptable proximity range resulting in a location score for the face. Such a proximity range may be specified by a constant or by a variable that may be pre-set and/or definable by a user, a machine learning system, or otherwise. In one example, a lower location score may be assigned if the face is located at least in part within the unacceptable proximity range than if the face is located entirely outside the range. Such a proximity range may be specified by a constant or by a variable that may be pre-set and/or definable by a user, a machine learning system, or otherwise.
Such a face location score may be weighted, and may be represented by a real number between zero and one, by a value within some other continuous range, and/or by a quantization such as acceptable or unacceptable, or high, medium, or low, or the like. A user may be a person or a system of any type.
Further, based on the face location and/or the facial feature descriptors of the face, block 620 may include determining if the face is cut-off at the edge of the image. The term “cut-off” as used herein generally refers to some portion of the face being located at an edge of the image such that a portion of the face is not shown in the image (i.e., the cut-off portion). A certain cut-off range may be defined (such as up to a certain percentage or the like of a face that is cut-off). Such a cut-off range may be specified by a constant or by a variable that may be pre-set and/or definable by a user, a machine learning system, or otherwise.
A cut-off score may be assigned to the face that represents the degree to which the face is cut off. Such a face cut-off score may be weighted, and may be represented by a real number between zero and one, by a percentage, by a value within some other range, and/or by a quantization such as acceptable/unacceptable, cut off/not cut off, and/or the like.
Block 630 typically indicates determining a degree of sharpness of the face. In one example, the degree of sharpness may be based on pixel contrast of lines of the face, where greater contrast across fewer pixels typically indicates a greater degree of face sharpness in contrast to lesser contrast across more pixels that typically indicates a lesser degree of face sharpness.
A sharpness score may be assigned to the face that represents the degree of sharpness. Such a face sharpness score may be weighted, and may be represented by a real number between zero and one, by a value within some other range, and/or by a quantization such as acceptable/unacceptable, high/medium/low, and/or the like.
Block 640 typically indicates determining a face color. In one example, the color of the face may be determined from an area of the face selected based on the facial features, such as areas proximate the eyes and/or nose. In one example, a area proximate the eyes and/or nose is selected and a dominant color in that area is determined. If the determined color corresponds to an expected color, then the face color may be assigned a higher score than if the determined color does not correspond to an expected color. Such a face color score may indicate a degree of correspondence to the expected color. Further, a set of expected colors may be provided and used in score the determined face color.
Such a face color score may be weighted, and may be represented by a real number between zero and one, by a value within some other range, and/or by a quantization such as acceptable/unacceptable, estimated ethnicities based on the determined color, color descriptions (e.g., black/white, etc), and/or the like.
Block 710 typically indicates determining an open-closed state of an eye in the detected face. Such a state may be determined for the right eye, the left eye or both. The method may be performed in substantially the same manner regardless of the particular eye being analyzed. In one example, the determination is made based on eye coordinate points, such as points 461-464 shown for example eye 740. In this example, points 463 and 464 typically indicate the broadest detected horizontal edges of the eye, and may be used to determine the eye's width as it appears in the image. Points 461 and 462 typically indicate the broadest detected vertical edges of the eye, and may be used to determine the eye's height as it appears in the image. A ratio of the height to the width, or the width to the height, may indicate the open-closed state of the eye.
An eye open-closed score may be assigned to the eye and/or the face that represents the eye's open-closed state. Such an eye open-closed score may be weighted, and may be represented by a real number between zero and one, a ratio, a value within some other range, an opened and/or closed percentage, and/or by a quantization such as open/closed, and/or the like.
In some situations, such as when the face is turned to one side, only one of the horizontal edges of the eye may be detectable in the face. In such a situation, information that indicates a degree to which the face is turned, along with the available eye coordinate points, may be used to estimate the eye's width. Such information may be available as part of the input, and/or may be available as output from expression analyzer 340 or from some other module. Such an estimated width may be used as the determined eye's width in method 710.
Block 720 typically indicates determining a direction an eye is looking. Such a direction may be determined for the right eye, the left eye or both. The method may be performed in substantially the same manner regardless of the particular eye being analyzed. In order to determine the direction an eye is looking, the open-closed state of the eye may need to be sufficiently open to enable detecting eye coordinate point 460. The pose of the face may also need to be sufficient to enable detecting eye coordinate point 460.
In one example, the determination is made based on eye coordinate points, such as points 460-464 shown for example eye 740. In this example, a location of point 460 in relation to points 462-463 and/or to points 463-464 may be used in determining the direction the eye is looking. For example, if point 460 is located substantially equidistant from each of points 461-464, and if points 461 and 462 are located substantially equidistant from points 463 and 464, then the direction the eye is looking may be determined to be substantially forward. In this example, forward may also be toward the camera that captured the image.
Continuing the previous example, if point 460 is located to the right of points 463-464, then the direction the eye is looking may be determined to be to the right. If point 460 is located to the left of points 463-464, then the direction the eye is looking may be determined to be to the left. If point 460 is located above points 463-464, then the direction the eye is looking may be determined to be upward. If point 460 is located below points 463-464, then the direction the eye is looking may be determined to be downward.
An eye direction score may be assigned to the eye and/or the face that represents the eye direction. Such an eye direction score may be weighted, and may be represented by a real number between zero and one, an angle, a value in degrees, a value within some other range, and/or by a quantization such as toward the camera/not toward the camera, toward a subject of the image/not toward a subject of the image, forward/not forward, up/down, right/left, and/or the like.
Block 730 typically indicates determining a degree of sharpness of an eye in the detected face. Such a degree of sharpness may be determined for the right eye, the left eye or both. The method may be performed in substantially the same manner regardless of the particular eye being analyzed. In one example, the degree of sharpness may be based on pixel contrast of lines of the eye and/or around the eye, where greater contrast across fewer pixels typically indicates a greater degree of eye sharpness in contrast to lesser contrast across more pixels that typically indicates a lesser degree of eye sharpness.
A sharpness score may be assigned to the eye that represents the degree of sharpness. Such an eye sharpness score may be weighted, and may be represented by a real number between zero and one, by a value within some other continuous range, and/or by a quantization such as acceptable or unacceptable, or high, medium, or low, or the like.
Block 810 typically indicates determining an open-closed state of a mouth in the detected face. In one example, the determination is made based on mouth coordinate points, such as points 481-486 shown for example mouths 801, 802, and 803. In this example, points 481 and 482 typically indicate the broadest detected horizontal edges of the mouth, and may be used to determine the mouth's width as it appears in the image. Points 483 and 484 typically indicate the top of the upper lip and the bottom of the upper lip respectively. Points 485 and 486 typically indicate the top of the lower lip and the bottom of the lower lip respectively. Points 483 and 486 typically indicate the broadest detected vertical edges of the mouth, and may be used to determine the mouth's height as it appears in the image. The mouth's height and width may be used to determine an area of the mouth on the face, or an approximation or estimation thereof.
Further, points 484 and 485 may be used to determine a distance between the bottom of the upper lip and the top of the lower lip, where such a distance may indicate the open-closed state of the mouth. A ratio of the height to the distance, or the distance to the height, may indicate the open-closed state of the mouth.
A mouth open-closed score may be assigned to the mouth and/or the face that represents the mouth's open-closed state. Such a mouth open-closed score may be weighted, and may be represented by a real number between zero and one, a ratio, a value within some other range, an opened and/or closed percentage, and/or by a quantization such as open/closed, and/or the like.
In some situations, such as when the face is turned to one side, only one of the horizontal edges of the mouth may be detectable in the face. In such a situation, information that indicates a degree to which the mouth is turned, along with the available mouth coordinate points, may be used to estimate the mouth's width. Such information may be available as part of the input, and/or may be available as output from expression analyzer 340 or from some other module. Such an estimated width may be used as the determined mouth's width in method 810.
Block 820 typically indicates determining whether or not teeth are visible in the mouth, or determining an amount of the mouth area in which teeth are visible. Recognition of teeth is typically based on the presence of a pale color in an area of the mouth where teeth may typically be anticipated. In one example, this area—termed herein the “teeth area”—is defined as the portion of an open mouth between points 481 and 482 and between points 484 and 485, not including the lips of the mouth, or an approximation or estimation thereof.
If the open-closed state of the mouth is determined to be closed, then it may also be determined that no teeth are visible, such as in example 801. If the mouth is determined to be open, and a pale color is detected in at least a portion of the teeth area of the mouth, then it may be determined that teeth are visible, such as in examples 802 and 803. A comparison between the mouth area and the portion of the teeth area in which teeth are detected may be made to determine a measure of visible teeth in the mouth.
A teeth visible score may be assigned to the mouth and/or face that represents the determined measure of visible teeth. Such a teeth visible score may be weighted, and may be represented by a real number between zero and one, by a value within some other range, and/or by a quantization such as visible/not visible, and/or the like.
Block 910 typically indicates determining an expression(s) of the detected face. In one example, such determined expressions may be selected from a set comprising smiling, frowning, neutral, and other. In this example, determining such expressions may largely be based on the mouth and mouth analysis 800. For example, the location of points 481 and 482 relative to point 485 may be used to select one of the expressions in the set. Smiling may be selected if points 481 and 482 are located above point 485. Frowning may be selected if points 481 and 482 are located below point 485. Neutral may be selected if points 481 and 482 are located substantially in-line with point 485. Other may be selected for an arrangement of the points that is inconsistent with any of those previously described.
An expression score may be assigned to the face that represents the face's expression. Such an expression score may be weighted, and may be represented by a real number between zero and one, a value within some other range, and/or by a quantization such as smiling/frowning/neutral/other, and/or the like.
Block 920 typically indicates determining a pose(s) of the detected face. Face poses may be determined based on information such as relative positions of the eyes, nose, mouth, eyebrows, and the size of the face. Further, information describing or indicating the orientation of the face may be received or determined. All such information (received and/or determined) may be used to determine and indicate various poses of the face, such as forward or other facing, tilted up or down, right or left, looking at the camera that captured the image, looking at a subject in the image, etc. One or more indications of determined and/or received poses may be provided. Further, a pose score may be assigned to the face that represents the face's pose and/or pose quality. Such a pose score may be weighted, and may be represented by a real number between zero and one, a value within some other range, and/or by a quantization such as tilted right/left and/or up/down, and/or the like.
In view of the many possible embodiments to which the invention and the forgoing examples may be applied, it should be recognized that the examples described herein are meant to be illustrative only and should not be taken as limiting the scope of the present invention. Therefore, the invention as described herein contemplates all such embodiments as may come within the scope of the following claims and any equivalents thereto.
This Application is a Continuation of and claims benefit from or priority of U.S. patent application Ser. No. 15/497,423, filed Apr. 26, 2017, entitled “CREATION OF REPRESENTATIVE CONTENT BASED ON FACIAL ANALYSIS” which is a continuation of U.S. patent application Ser. No. 14/264,012, filed Apr. 28, 2014, and entitled “CREATION OF REPRESENTATIVE CONTENT BASED ON FACIAL ANALYSIS”, now U.S. Pat. No. 9,639,742, issued May 2, 2017, both of which are specifically incorporated by reference for all that they disclose and teach.
Number | Date | Country | |
---|---|---|---|
Parent | 15497423 | Apr 2017 | US |
Child | 16388102 | US | |
Parent | 14264012 | Apr 2014 | US |
Child | 15497423 | US |