The field relates generally to image processing, and more particularly to image processing for recognition of gestures.
Image processing is important in a wide variety of different applications, and such processing may involve two-dimensional (2D) images, three-dimensional (3D) images, or combinations of multiple images of different types. For example, a 3D image of a spatial scene may be generated in an image processor using triangulation based on multiple 2D images captured by respective cameras arranged such that each camera has a different view of the scene. Alternatively, a 3D image can be generated directly using a depth imager such as a structured light (SL) camera or a time of flight (ToF) camera. These and other 3D images, which are also referred to herein as depth images, are commonly utilized in machine vision applications, including those involving gesture recognition.
In a typical gesture recognition arrangement, raw image data from an image sensor is usually subject to various preprocessing operations. The preprocessed image data is then subject to additional processing used to recognize gestures in the context of particular gesture recognition applications. Such applications may be implemented, for example, in video gaming systems, kiosks or other systems providing a gesture-based user interface. These other systems include various electronic consumer devices such as laptop computers, tablet computers, desktop computers, mobile phones and television sets.
In one embodiment, an image processing system comprises an image processor having image processing circuitry and an associated memory. The image processor is configured to implement a gesture recognition system comprising a static pose recognition module. The static pose recognition module is configured to identify a hand region of interest in at least one image, to obtain a vocabulary of hand poses, to estimate a plurality of hand features based on the hand region of interest, the plurality of hand features comprising a first set of features estimated from the hand region of interest and a second set of features comprising at least one feature estimated using a transform on a contour of the hand region of interest, and to recognize a static pose of the hand region of interest based on the first set of features and the second set of features, wherein respective numbers of features in the first set of features and the second set of features are based at least in part on a size of the vocabulary of hand poses.
Other embodiments of the invention include but are not limited to methods, apparatus, systems, processing devices, integrated circuits, and computer-readable storage media having computer program code embodied therein.
Embodiments of the invention will be illustrated herein in conjunction with exemplary image processing systems that include image processors or other types of processing devices configured to perform gesture recognition. It should be understood, however, that embodiments of the invention are more generally applicable to any image processing system or associated device or technique that involves recognizing static poses in one or more images.
The recognition subsystem 110 of GR system 108 more particularly comprises a static pose recognition module 112 and one or more other recognition modules 114. The other recognition modules 114 may comprise, for example, respective recognition modules configured to recognize cursor gestures and dynamic gestures. The operation of illustrative embodiments of the GR system 108 of image processor 102 will be described in greater detail below in conjunction with
The recognition subsystem 110 receives inputs from additional subsystems 116, which may comprise one or more image processing subsystems configured to implement functional blocks associated with gesture recognition in the GR system 108, such as, for example, functional blocks for input frame acquisition, noise reduction, background estimation and removal, or other types of preprocessing. In some embodiments, the background estimation and removal block is implemented as a separate subsystem that is applied to an input image after a preprocessing block is applied to the image.
Exemplary noise reduction techniques suitable for use in the GR system 108 are described in PCT International Application PCT/US13/56937, filed on Aug. 28, 2013 and entitled “Image Processor With Edge-Preserving Noise Suppression Functionality,” which is commonly assigned herewith and incorporated by reference herein.
Exemplary background estimation and removal techniques suitable for use in the GR system 108 are described in Russian Patent Application No. 2013135506, filed Jul. 29, 2013 and entitled “Image Processor Configured for Efficient Estimation and Elimination of Background Information in Images,” which is commonly assigned herewith and incorporated by reference herein.
It should be understood, however, that these particular functional blocks are exemplary only, and other embodiments of the invention can be configured using other arrangements of additional or alternative functional blocks.
In the
Additionally or alternatively, the GR system 108 may provide GR events or other information, possibly generated by one or more of the GR applications 118, as GR-based output 113. Such output may be provided to one or more of the processing devices 106. In other embodiments, at least a portion of set of GR applications 118 is implemented at least in part on one or more of the processing devices 106.
Portions of the GR system 108 may be implemented using separate processing layers of the image processor 102. These processing layers comprise at least a portion of what is more generally referred to herein as “image processing circuitry” of the image processor 102. For example, the image processor 102 may comprise a preprocessing layer implementing a preprocessing module and a plurality of higher processing layers for performing other functions associated with recognition of gestures within frames of an input image stream comprising the input images 111. Such processing layers may also be implemented in the form of respective subsystems of the GR system 108.
It should be noted, however, that embodiments of the invention are not limited to recognition of static or dynamic hand gestures, but can instead be adapted for use in a wide variety of other machine vision applications involving gesture recognition, and may comprise different numbers, types and arrangements of modules, subsystems, processing layers and associated functional blocks.
Also, certain processing operations associated with the image processor 102 in the present embodiment may instead be implemented at least in part on other devices in other embodiments. For example, preprocessing operations may be implemented at least in part in an image source comprising a depth imager or other type of imager that provides at least a portion of the input images 111. It is also possible that one or more of the GR applications 118 may be implemented on a different processing device than the subsystems 110 and 116, such as one of the processing devices 106.
Moreover, it is to be appreciated that the image processor 102 may itself comprise multiple distinct processing devices, such that different portions of the GR system 108 are implemented using two or more processing devices. The term “image processor” as used herein is intended to be broadly construed so as to encompass these and other arrangements.
The GR system 108 performs preprocessing operations on received input images 111 from one or more image sources. This received image data in the present embodiment is assumed to comprise raw image data received from a depth sensor, but other types of received image data may be processed in other embodiments. Such preprocessing operations may include noise reduction and background removal.
The raw image data received by the GR system 108 from the depth sensor may include a stream of frames comprising respective depth images, with each such depth image comprising a plurality of depth image pixels. For example, a given depth image D may be provided to the GR system 108 in the form of a matrix of real values. A given such depth image is also referred to herein as a depth map.
A wide variety of other types of images or combinations of multiple images may be used in other embodiments. It should therefore be understood that the term “image” as used herein is intended to be broadly construed.
The image processor 102 may interface with a variety of different image sources and image destinations. For example, the image processor 102 may receive input images 111 from one or more image sources and provide processed images as part of GR-based output 113 to one or more image destinations. At least a subset of such image sources and image destinations may be implemented at least in part utilizing one or more of the processing devices 106.
Accordingly, at least a subset of the input images 111 may be provided to the image processor 102 over network 104 for processing from one or more of the processing devices 106. Similarly, processed images or other related GR-based output 113 may be delivered by the image processor 102 over network 104 to one or more of the processing devices 106. Such processing devices may therefore be viewed as examples of image sources or image destinations as those terms are used herein.
A given image source may comprise, for example, a 3D imager such as an SL camera or a ToF camera configured to generate depth images, or a 2D imager configured to generate grayscale images, color images, infrared images or other types of 2D images. It is also possible that a single imager or other image source can provide both a depth image and a corresponding 2D image such as a grayscale image, a color image or an infrared image. For example, certain types of existing 3D cameras are able to produce a depth map of a given scene as well as a 2D image of the same scene. Alternatively, a 3D imager providing a depth map of a given scene can be arranged in proximity to a separate high-resolution video camera or other 2D imager providing a 2D image of substantially the same scene.
Another example of an image source is a storage device or server that provides images to the image processor 102 for processing.
A given image destination may comprise, for example, one or more display screens of a human-machine interface of a computer or mobile phone, or at least one storage device or server that receives processed images from the image processor 102.
It should also be noted that the image processor 102 may be at least partially combined with at least a subset of the one or more image sources and the one or more image destinations on a common processing device. Thus, for example, a given image source and the image processor 102 may be collectively implemented on the same processing device. Similarly, a given image destination and the image processor 102 may be collectively implemented on the same processing device.
In the present embodiment, the image processor 102 is configured to recognize hand gestures, although the disclosed techniques can be adapted in a straightforward manner for use with other types of gesture recognition processes.
As noted above, the input images 111 may comprise respective depth images generated by a depth imager such as an SL camera or a ToF camera. Other types and arrangements of images may be received, processed and generated in other embodiments, including 2D images or combinations of 2D and 3D images.
The particular arrangement of subsystems, applications and other components shown in image processor 102 in the
The processing devices 106 may comprise, for example, computers, mobile phones, servers or storage devices, in any combination. One or more such devices also may include, for example, display screens or other user interfaces that are utilized to present images generated by the image processor 102. The processing devices 106 may therefore comprise a wide variety of different destination devices that receive processed image streams or other types of GR-based output 113 from the image processor 102 over the network 104, including by way of example at least one server or storage device that receives one or more processed image streams from the image processor 102.
Although shown as being separate from the processing devices 106 in the present embodiment, the image processor 102 may be at least partially combined with one or more of the processing devices 106. Thus, for example, the image processor 102 may be implemented at least in part using a given one of the processing devices 106. As a more particular example, a computer or mobile phone may be configured to incorporate the image processor 102 and possibly a given image source. Image sources utilized to provide input images 111 in the image processing system 100 may therefore comprise cameras or other imagers associated with a computer, mobile phone or other processing device. As indicated previously, the image processor 102 may be at least partially combined with one or more image sources or image destinations on a common processing device.
The image processor 102 in the present embodiment is assumed to be implemented using at least one processing device and comprises a processor 120 coupled to a memory 122. The processor 120 executes software code stored in the memory 122 in order to control the performance of image processing operations. The image processor 102 also comprises a network interface 124 that supports communication over network 104. The network interface 124 may comprise one or more conventional transceivers. In other embodiments, the image processor 102 need not be configured for communication with other devices over a network, and in such embodiments the network interface 124 may be eliminated.
The processor 120 may comprise, for example, a microprocessor, an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), a central processing unit (CPU), an arithmetic logic unit (ALU), a digital signal processor (DSP), or other similar processing device component, as well as other types and arrangements of image processing circuitry, in any combination.
The memory 122 stores software code for execution by the processor 120 in implementing portions of the functionality of image processor 102, such as the subsystems 110 and 116 and the GR applications 118. A given such memory that stores software code for execution by a corresponding processor is an example of what is more generally referred to herein as a computer-readable storage medium having computer program code embodied therein, and may comprise, for example, electronic memory such as random access memory (RAM) or read-only memory (ROM), magnetic memory, optical memory, or other types of storage devices in any combination.
Articles of manufacture comprising such computer-readable storage media are considered embodiments of the invention. The term “article of manufacture” as used herein should be understood to exclude transitory, propagating signals.
It should also be appreciated that embodiments of the invention may be implemented in the form of integrated circuits. In a given such integrated circuit implementation, identical die are typically formed in a repeated pattern on a surface of a semiconductor wafer. Each die includes an image processor or other image processing circuitry as described herein, and may include other structures or circuits. The individual die are cut or diced from the wafer, then packaged as an integrated circuit. One skilled in the art would know how to dice wafers and package die to produce integrated circuits. Integrated circuits so manufactured are considered embodiments of the invention.
The particular configuration of image processing system 100 as shown in
For example, in some embodiments, the image processing system 100 is implemented as a video gaming system or other type of gesture-based system that processes image streams in order to recognize user gestures. The disclosed techniques can be similarly adapted for use in a wide variety of other systems requiring a gesture-based human-machine interface, and can also be applied to other applications, such as machine vision systems in robotics and other industrial applications that utilize gesture recognition.
Also, as indicated above, embodiments of the invention are not limited to use in recognition of hand gestures, but can be applied to other types of gestures as well. The term “gesture” as used herein is therefore intended to be broadly construed.
Embodiments of the invention provide a number of advantages relative to conventional GR systems. GR uses a wide variety of techniques for classifying a gesture by means of image processing and pattern recognition. Hand and face gesture recognition are two common types of gestures used in GR systems, as hands and faces are among the most informative parts of human bodies. In particular, hand gestures allow for a wide variety of personal-invariant recognizable and well-separable data input sources.
Some embodiments are well suited for GR involving still-frame-based recognition of static hand poses as one of a predefined set of “alphabet” poses or postures or rejection as an unknown pose. A predefined set of alphabet poses is more generally referred to herein as a vocabulary of poses or postures. Other embodiments perform perception, tracking and recognition of hand and hand part movement including velocity, direction, magnitude and trajectory in space. In still other embodiments, an integral GR system joins static hand pose recognition and perception, tracking and recognition of hand and hand part movement, thus providing considerable synergetic effects for recognition quality.
Static hand pose recognition in some embodiments includes accurate and high-quality hand movement analysis involving determination of palm shape and the location of different parts of the hand including fingers, wrists and upper parts of hands. In these embodiments, palm shape detection procedures are used. In one exemplary palm shape detection procedure, a palm contour is found and the palm is cut from the whole scene for further processing. A hand contour can be extracted from a 2D edge shape. To classify a hand shape by means of hand contour analysis, a possible first step in some embodiments is to separate or otherwise distinguish the palm from the rest of the hand. Exemplary techniques for such analysis are described in Russian Patent Application No. 2013134325, filed Jul. 22, 2013 and entitled “Gesture Recognition Method and Apparatus Based on Analysis of Multiple Candidate Boundaries,” which is commonly assigned herewith and incorporated by reference herein.
In some embodiments, sophisticated pattern recognition techniques utilize a database or hand pose vocabulary of supported hand poses to find the best match(es) for a hand pose extracted from a given frame. Examples of such pattern recognition techniques include least squares analysis, decision trees, Gaussian mixture models (GMMs), etc. One or more measures of an image-to-pattern matching may be used. Logarithmic likelihood ratio (LLR) is one such measure which enables comparison of competing recognition decisions and reliability estimations.
A number of factors contribute to the complexity and difficulty of high quality hand pose recognition. By way of example, the distance to a hand changes in time even within the same static gesture, therefore its size and consequently its palm spatial resolution changes. Thus, in some embodiments on-the-fly hand rescaling is applied to input images 111. As another example, hand position and orientation may change within a same static gesture. To account for these issues, some embodiments apply normalization procedures to input images 111. Normalization procedures include, by way of example, size normalization and rotation and position tracking in a 3D space, which produce from a raw frame a standardized counterpart. The use of normalization procedures in some embodiments can provide advantages relative to techniques which maintain and utilize an extensive database of all possible orientations, positions and scales for every static hand pose. In some embodiments, maintaining such an extensive database may not be feasible using acceptable amounts of computational resources and thus normalization procedures may be used.
One exemplary technique for live hand pose normalization used in some embodiments is the use of an affine transform for normalization. Robust heuristic approaches for performing such normalization are described in Russian Patent Application No. 2013148582, filed Oct. 30, 2013 and entitled “Image Processor Comprising Gesture Recognition System with Computationally-Efficient Static Hand Pose Recognition,” which is commonly assigned herewith and incorporated by reference herein.
In other embodiments, a thin or small set of hand features which are invariant to the above-noted motion, scaling, rotation and other distortion issues may be used to match a static pose in the input images 111 to candidate poses. Techniques for finding efficient, robust and well-defined but not excessive sets of such hand features will be described in further detail below.
Hand pose recognition in some embodiments utilizes a wide variety of simple features of a hand mask for computationally efficient estimation. Hand postures or hand shapes are examples of what are more generally referred to herein as static poses. Examples of such simple features include, by way of example, mask perimeter, area, width, height, moments, etc. As a number of hand poses in a pose vocabulary increases, some hand poses may be quite similar to one another. For example, a hand pose vocabulary having five or more different hand poses may include two or more hand poses which are similar to one another such that the use of simple features of a hand mask becomes inefficient in terms of performance. When only a few simple features are used, collisions or overlap between similar static poses leads to inefficient performance. Thus, in some embodiments, one or more special or complex features are used to reduce such collisions. Manually adding additional features, however, can dramatically increase complexity of a GR system and lead to a computationally inefficient implementation.
Some embodiments construct an optimal or refined feature set for a given pose vocabulary. In these embodiments, an optimal or refined feature set is constructed in terms of a number of features in the set versus a recognition error rate tradeoff. These embodiments organize a universal set of features that describe a shape of a hand from a 2D binary mask point of view, which allows hand mask reconstruction from the universal set of features. The particular number of features in the universal set of features corresponds to a given desired recognition accuracy which is based in part on the size of the given pose vocabulary. The universal set of features in some embodiments includes a number of basic or simple features describing a hand mask as a whole as well as one or more features that describe the hand contour. Examples of features which describe the hand contour include Fourier coefficients of contour decomposition as well as remainders of the inverse terms of the decomposition. A wide variety of search methods, including Monte Carlo and genetic search methods, can be used to test all or some portion of available features so as to select the universal set of features that meet the given desired recognition accuracy.
The operation of the GR system 108 of image processor 102 will now be described in greater detail with reference to the diagrams of
It is assumed in these embodiments that the input images 111 received in the image processor 102 from an image source comprise input depth images each referred to as an input frame. As indicated above, this source may comprise a depth imager such as an SL or ToF camera comprising a depth image sensor. Other types of image sensors including, for example, grayscale image sensors, color image sensors or infrared image sensors, may be used in other embodiments. A given image sensor typically provides image data in the form of one or more rectangular matrices of real or integer numbers corresponding to respective input image pixels. These matrices can contain per-pixel information such as depth values and corresponding amplitude or intensity values. Other per-pixel information such as color, phase and validity may additionally or alternatively be provided.
Each of the above-listed steps of the process 200 will be described in greater detail below. In other embodiments, certain steps may be combined with one another, or additional or alternative steps may be used.
The process begins with step 202, defining a hand ROI. The hand ROI mask for a hand in an input image is implemented as a binary mask in the form of an image, also referred to herein as a “hand image,” in which pixels within the ROI have a certain binary value, illustratively a logic 1 value, and pixels outside the ROI have the complementary value, illustratively a logic 0 value. An ROI may be defined using imager depth information and threshold-based logic. In some embodiments, a pixel (i, j) belongs to the ROI if dmin≦d(i, j)≦dmax, where dmin and dmax are predefined non-negative constants, e.g., dmin=0 and dmax=0.6 meters. Exemplary techniques for determining a hand ROI mask are described in the above-referenced Russian Patent Application No. 2013148582.
An input image in which the hand ROI is identified in step 202 may be supplied by a ToF imager. Such a ToF imager typically comprises a light emitting diode (LED) light source that illuminates an imaged scene. Distance is measured based on the time difference between the emission of light onto the scene from the LED source and the receipt at the image sensor of corresponding light reflected back from objects in the scene. Using the speed of light, one can calculate the distance to a given point on an imaged object for a particular pixel as a function of the time difference between emitting the incident light and receiving the reflected light. More particularly, distance d to the given point can be computed as follows:
where T is the time difference between emitting the incident light and receiving the reflected light, c is the speed of light, and the constant factor 2 is due to the fact that the light passes through the distance twice, as incident light from the light source to the object and as reflected light from the object back to the image sensor. This distance is more generally referred to herein as a depth value.
The time difference between emitting and receiving light may be measured, for example, by using a periodic light signal, such as a sinusoidal light signal or a triangle wave light signal, and measuring the phase shift between the emitted periodic light signal and the reflected periodic signal received back at the image sensor.
Assuming the use of a sinusoidal light signal, the ToF imager can be configured, for example, to calculate a correlation function c(τ) between input reflected signal s(t) and output emitted signal g(t) shifted by predefined value τ, in accordance with the following equation:
In such an embodiment, the ToF imager is more particularly configured to utilize multiple phase images, corresponding to respective predefined phase shifts τn given by n π/2, where n=0, . . . , 3. Accordingly, in order to compute depth and amplitude values for a given image pixel, the ToF imager obtains four correlation values (A0, . . . , A3), where An=c(τn), and uses the following equations to calculate phase shift φ and amplitude a:
The phase images in this embodiment comprise respective sets of A0, A1, A2 and A3 correlation values computed for a set of image pixels. Using the phase shift φ, a depth value d can be calculated for a given image pixel as follows:
where ω is the frequency of emitted signal and c is the speed of light. These computations are repeated to generate depth and amplitude values for other image pixels. The resulting raw image data is transferred from the image sensor to internal memory of the image processor 102 for preprocessing in the manner previously described.
The hand ROI can be identified in the preprocessed image using any of a variety of techniques. For example, it is possible to utilize the techniques disclosed in the above-cited Russian Patent Application No. 2013135506 to determine the hand ROI. Accordingly, step 202 may be implemented in a preprocessing block of the GR system 108 rather than in the static pose recognition module 112.
As described above, the hand ROI may also be determined using threshold logic applied to depth values of an image. In some embodiments, the hand ROI is determined using threshold logic applied to depth and amplitude values of the image. This can be more particularly implemented as follows:
1. If the amplitude values are known for respective pixels of the image, one can select only those pixels with amplitude values greater than some predefined threshold. This approach is applicable not only for images from ToF imagers, but also for images from other types of imagers, such as infrared imagers with active lighting. For both ToF imagers and infrared imagers with active lighting, the closer an object is to the imager, the higher the amplitude values of the corresponding image pixels, not taking into account reflecting materials. Accordingly, selecting only pixels with relatively high amplitude values allows one to preserve close objects from an imaged scene and to eliminate far objects from the imaged scene. It should be noted that for ToF imagers, pixels with lower amplitude values tend to have higher error in their corresponding depth values, and so removing pixels with low amplitude values additionally protects one from using incorrect depth information.
2. If the depth values are known for respective pixels of the image, one can select only those pixels with depth values falling between predefined minimum and maximum threshold depths dmin and dmax. These thresholds are set to appropriate distances between which the hand is expected to be located within the image.
3. Opening or closing morphological operations utilizing erosion and dilation operators can be applied to remove dots and holes as well as other spatial noise in the image.
One possible implementation of a threshold-based ROI determination technique using both amplitude and depth thresholds is as follows:
1. Set ROIij=0 for each i and j.
2. For each depth pixel dij set ROIij=1 if dij≧dmin and dij≦dmax.
3. For each amplitude pixel aij set ROIij=1 if aij≧amin.
4. Coherently apply an opening morphological operation comprising erosion followed by dilation to both ROI and its complement to remove dots and holes comprising connected regions of ones and zeros having area less than a minimum threshold area Amin.
The output of the above-described ROI determination process is a binary ROI mask for the hand in the image. It can be in the form of an image having the same size as the input image, or a sub-image containing only those pixels that are part of the ROI. For further description below, it is assumed that the ROI mask is an image having the same size as the input image. As mentioned previously, the ROI mask is also referred to herein as a “hand image” and the ROI itself within the ROI mask is referred to as a “hand ROI.” The output may include additional information such as an average of the depth values for the pixels in the ROI. This average of depth values for the ROI pixels is denoted elsewhere herein as meanZ.
The process in
1. Sqrt(area)—the square root of a number of pixels of a ROI or a similar feature calculated from a simplified hand contour.
2. Hand contour perimeter/Sqrt(area)—the number of pixels in perimeter of the hand contour divided by the square root of the area of the ROI. In some embodiments, the pixels in the perimeter of the hand contour are defined as the set of boundary pixels, where boundary pixels are those ones which belong to the ROI and have neighbors from outside the ROI. This feature may also be defined in various other manners.
3. Sqrt(forefinger area/area)—the square root of a number of pixels in a forefinger area divided by the area of the ROI. Exemplary techniques for defining this feature are described in the above-referenced Russian Patent Application No. 2013148582.
4. Sqrt(Cyy)/area—the square root of the second y-coordinate central moment of the ROI divided by the area of the ROI, where pixels in the image are associated with a Cartesian coordinate system having an x-axis and y-axis.
5. Wrist width/Sqrt(area)—the width in pixels of the lower row of the ROI divided by the square root of the area of the ROI.
6. Delta(wrist width)/Sqrt(area)—the difference between the width of the lower row of the ROI and the row delta pixels upper divided by the square root of the area of the ROI, where delta is a constant (e.g., delta=1) or a parameter which is inversely proportional depending on an average distance from a sensor to the hand in the ROI.
7. Egglikeness/Sqrt(area)—“egglikeness” divided by the square root of an area of the ROI. A degree of egglikeness may be determined as follows. Assume that the height of the hand is H, and that w1=W1/4, w2=W1/2 and w3=W3/4 are the widths of the hand at respective heights h1=¼*H, h2=½*H and h3=¾*H. Using the three points (h1, w1), (h2, w2) and (h3, w3) in two-dimensional space, find a parabola of the form w(h)=a1*h2+a2*h+a3 that goes through all three points. Exemplary techniques for determining the egglikeness are described in the above-referenced Russian Patent Application No. 2013148582.
8. Height/Sqrt(area)—the height of the ROI mask or a height of a minimal bounding rectangle divided by the square root of the area of the ROI.
9. Sqrt(Cxx)/area—the square root of the second x-coordinate central moment of the ROI divided by the area of the ROI.
10. Forefinger width/Sqrt(area)—the width of the top pointing finger defined as the ROI width at htop centimeters (cm) from the uppermost ROI pixel divided by the square root of the area of the ROI. As an example, in some embodiments htop is 2. In other embodiments, different values for htop may be used.
11. Width/Sqrt(area)—the ROI width or a width of a minimum bounding rectangle divided by the square root of the area of the ROI.
12. Max width/Sqrt(area)—the maximum width of a ROI row divided by the square root of the area of the ROI.
13. Width/height—the ROI width divided by the ROI height.
14. Sqrt(Cxx)/Sqrt(Cyy)—the ratio of the corresponding second order central moments of the x- and y-axes.
It should be noted that the above-described hand features are exemplary only, and additional or alternative hand features may be utilized to facilitate static pose recognition in other embodiments, including combinations of the above-described features. For example, various functions of one or more of the above-described hand features or other related hand features may be used as additional or alternative hand features. In addition, functions other than square root may be used in conjunction with hand area, forefinger area, etc. Also, techniques other than those described above may be used to compute the features.
In some embodiments, a subset of the above-described features are used in step 204. The particular number and type of features used may vary depending on available memory, complexity and other limitations.
The above-described hand features can all be calculated at relatively low complexity using one or at most two scanning passes through the ROI mask.
For the selected set of features and a reduced vocabulary of basic poses 201, a collision matrix P is defined as follows. For each 1≦k, l≦N, where N is the number of poses in the vocabulary 201, P(k, l)=probability of a pose from class #k to be recognized as a pose from class #l. Estimation of probabilities may be performed using a testing database for estimating frequencies P(k, l). An example of a collision matrix P is shown in
The basic pose vocabulary 201 may be selected using a variety of techniques. In some embodiments, the basic pose vocabulary is selected using expert knowledge. In other embodiments, the following technique is utilized. If P is a collision matrix for basic features and a complete pose vocabulary is denoted B, the basic pose vocabulary A is defined as a subset of B which gives a maximal average value on the main diagonal of collision matrix P or a maximal min value on a diagonal of the corresponding sub-matrix of P among all subsets A of B. Typically, a size M<N of a subset A is an input requirement, and thus selection is made among all subsets of poses with size M or less. A is an example of the basic pose vocabulary 201 and B is an example of the complete pose vocabulary 205.
The process continues with step 206, selecting candidate poses based on recognition results from step 204. Using the similarity measures for the poses from vocabulary A, the set of poses from the complete pose vocabulary B that are candidates for recognition on the second level are selected. The selection of candidates may be based on a pose collision table 203 resulting from the collision matrix P described above. An example of a pose collision table will be described in further detail below.
A table of candidate poses C in some embodiments is defined as follows. Assume that Nmax is the maximum number of pose collisions for poses from A and Pmax→0 is a maximum collision probability allowed. For each pose k from simplified set A, form an array Par(k) of P(k, l), P(l, k) with k=1, . . . , N excluding k, in descending order. The values of k which are greater or equal to Pmax and at the same time reside in the first Nmax elements of Par(i) are selected.
In other embodiments, pattern classification techniques are used to select the candidate hand poses from the basic vocabulary 201 in step 206. Examples of such pattern classification techniques include GMMs, neural networks, random decision trees, principal components analysis, etc.
The
Exemplary techniques that are suitable for use in implementing the palm boundary determination in step 208 in some embodiments are described in the above-referenced Russian Patent Application No. 2013134325.
In other embodiments, alternative techniques are used. For example, the palm boundary may be determined by taking into account that the typical length of the human hand is about 20-25 cm. All pixels located more than a 25 cm threshold distance from the uppermost fingertip along a previously-determined main direction of the hand are removed from the ROI. The uppermost fingertip can be identified as the uppermost point of the hand or as the uppermost 1 value in the binary ROI mask. The 25 cm threshold can be converted to a particular number of image pixels by using an average depth value determined for the pixels in the ROI as mentioned in conjunction with the description of step 202 above.
One or more of the above-described techniques may be used to define the best wrist cut line in step 208. All pixels located below the best wrist cut line may be excluded from the ROI.
The process continues with step 210, performing detailed static hand pose recognition for the candidate poses determined in step 206 based on a universal set of features. Step 210 uses the complete vocabulary of poses 205. In step 210, the process selects the most likely pose from the full vocabulary B based on the universal set of hand pose features. In some embodiments, the selection is performed using maximal likelihood methods using similarity measures based on a pattern classification method such as GMMs, neural network, random decision trees, principal components analysis, etc. As shown in
The universal set of features used in step 210 in
In some embodiments, features derived from a transform on the contour of the hand ROI are obtained as follows. First, the center of the hand ROI is identified. Second, a vector is obtained by estimating respective distances from a subset of contour points of the hand ROI to the center of the hand ROI. Third, the vector is transformed using a transform function such as a discrete cosine transform, a wavelet transform or other Fourier-like transform to obtain a set of coefficients. More detailed examples for obtaining the set of coefficients are described below.
Let a set of pixels (xi, yi) i=1, . . . , n represent the contour of the hand ROI. As an example, i=1 may correspond to the left bottom corner of the hand ROI and contour tracking may be done in a clockwise order. The set of pixels thus represents an ordered list of points characterizing the general shape of the hand ROI.
Let nDCT correspond to some predefined constant number of transform coefficients, referred to herein as DCT. Although DCT and nDCT are used to refer to the transform coefficients and the corresponding number thereof, the coefficients are not limited solely to discrete cosine transform coefficients. Instead, as described above, the transform may be a wide variety of transforms, such as wavelet and other Fourier-like transforms. In some embodiments, nDCT is 32.
Let (mx, my) correspond to the “center” of the hand in a Cartesian coordinate system comprising an x-axis and a y-axis. The center may be determined in a number of different ways. In some embodiments, the center of mass of the hand ROI mask points is used as the center of the hand. In other embodiments, the center of a largest inscribed circle in the hand ROI is used as the center. In still other embodiments, the pair of points (mx, my) is identified where mx is the x-coordinate center of the largest inscribed circle in the hand ROI, and my is calculated by subtracting a constant value dy from ybottom. dy corresponds to a fixed constant in cm, such as 5 cm, which is recalculated in pixels using a known average distance from the hand to the camera for the image. ybottom is the y-coordinate of the lower row of the ROI.
A ROI contour scan may be performed using a variety of operations. In some embodiments, a contour perimeter P is estimated and used to form a subset (xj, yj) of the contour points (xi, yi), where j=1, . . . , nDCT. The distance between adjacent contour points in the subset is approximately equal to P/(nDCT−1).
In other embodiments, the contour points (xi, yi) are tracked to form the subset of contour points (xj, yj). The distance between adjacent contour points is approximately equal to some predefined constant step, such as 5 pixels. If a full contour circuit is made, tracking is stopped. If the full circuit gives less than nDCT points, the subset is appended with (0, 0) points until its length is equal to nDCT. Alternatively, if a full contour circuit is made tracking may be continued until nDCT points are obtained.
After obtaining the subset of contour points using one of the above techniques or an alternative technique, distances from the subset of contour points to the center (mx, my) of the hand are determined according to the equation:
r
j=√{square root over ((xj−mx)2+(yj−my)2,)}{square root over ((xj−mx)2+(yj−my)2,)}j=1, . . . ,nDCT
The vector r=(r1, r2, . . . rnDCT) is then transformed using a DCT, wavelet or other invertible Fourier-like transform to form coefficients DCT(r)=(DCT0, DCT1, . . . , DCTnDCT-1). As described above, the notation DCT is used for illustrative purposes and is not intended to limit embodiments solely to use with discrete cosine transforms.
The coefficients DCT(r) may be further processed to obtain a residual feature. An example of such processing is described below. If a set of DCT coefficients (DCT0, DCT1, . . . , DCTnDCT-1) are available for the contour, the residual coefficient for index j, j=0, . . . , nDCT is estimated as follows. For each index j, the tail of DCT coefficients is replaced with zeroes. For example, (DCT0, DCT1, . . . , DCTnDCT-1)→(DCT0, DCT1, . . . , DCTj, 0, 0, . . . , 0). An inverse transform is applied to the truncated vector to obtain iDCTj=iDCT(DCT0, DCT1, . . . , DCTj, 0, 0, . . . , 0) where iDCT is the inverse transform function. Next, the difference between the original vector r and iDCTj is determined, such that the residual feature for index j is determined according to the following equation:
DCT
res(j)=dist(r,iDCTj)
where dist represents a distance function. The distance function may be a Euclidian, Manhattan, maximum absolute difference metric, or a variety of other distance metrics.
In some embodiments, the universal set of features used in step 210 in
The first set of features may comprise two or more of an area of the hand ROI, a perimeter of the hand ROI, a width of the hand ROI and a height of the hand ROI in addition to one or more of a forefinger area of the hand ROI, a wrist width of the hand ROI and a forefinger width of the hand ROI or one or more of second-order centered moments or functions thereof for coordinates of pixels of the hand ROI.
A subset of the poses shown in
To recognize candidate poses in step 204 or the hand pose in step 210 or step 304, various classification techniques may be utilized. In some embodiments, each static pose in a vocabulary utilizes a corresponding classifier configured in accordance with a classification technique such as, for example, GMMs, nearest neighbor, decision trees and neural networks. Additional details regarding the use of classifiers based on GMMs in the recognition of static hand poses can be found in the above-cited Russian Patent Application No. 2013134325.
The particular types and arrangements of processing blocks shown in the embodiments of
The illustrative embodiments provide significantly improved gesture recognition performance relative to conventional arrangements. For example, these embodiments provide computationally-efficient static pose recognition using estimated hand features. The estimated hand features comprise first and second sets of features, where respective numbers of features in the first and second sets are based at least in part on a size of a vocabulary of hand gestures used for recognition. The disclosed techniques can be applied to a wide range of different GR systems, using depth, grayscale, color, infrared and other types of imagers which support a variable frame rate, as well as imagers which do not support a variable frame rate. Some embodiments are particularly well-suited to instances where source images are low-resolution, as the contour of a hand ROI may be obtained from low-resolution images whereas other types of features such as palm texture are difficult or impossible to obtain from low-resolution images.
Different portions of the GR system 108 can be implemented in software, hardware, firmware or various combinations thereof. For example, software utilizing hardware accelerators may be used for some processing blocks while other blocks are implemented using combinations of hardware and firmware.
At least portions of the GR-based output 113 of GR system 108 may be further processed in the image processor 102, or supplied to another processing device 106 or image destination, as mentioned previously.
It should again be emphasized that the embodiments of the invention as described herein are intended to be illustrative only. For example, other embodiments of the invention can be implemented utilizing a wide variety of different types and arrangements of image processing circuitry, modules, processing blocks and associated operations than those utilized in the particular embodiments described herein. In addition, the particular assumptions made herein in the context of describing certain embodiments need not apply in other embodiments. These and numerous other alternative embodiments within the scope of the following claims will be readily apparent to those skilled in the art.
Number | Date | Country | Kind |
---|---|---|---|
2014108870 | Mar 2014 | RU | national |