The present application is based on, and claims priority from, Taiwan Patent Application No. 101132330, filed Sep. 5, 2012, the disclosure of which is hereby incorporated by reference herein in its entirety.
The present disclosure relates generally to a method and apparatus for object positioning by using depth images.
In the past, a visual interactive based human-machine interactive system uses single camera or color information to analyze the image. Under some conditions, such as the user closing to the background color, or changing ambient light, or the complex background of many people, this kind of technology is likely to cause insufficient image recognition rate. The existing technologies use the information of a depth image to aid the image analysis. For example, some technologies may use depth images to track a user's local area, or capture and track the extremity position of the user, or perform detection on one or more extremities of a human target. Some techniques may use such as color and depth information to find hand position, or hand area and facial area.
A technology uses the depth image to track the user's local area, such as shown in
Another technology using a depth image to capture and track extremity position of user produces the grid of voxels from the depth image, removes the background grids of voxels and isolates the user, then finds the extremity location of the user from the isolated user. In other words, this technology finds the extremity location of the user through creating a three dimensional grids and removing background to isolate human target.
Yet another technology uses depth images to identify extremities of each part of the user's body such as shown in
One technology uses color and depth information to locate multiple hand areas and face areas by segmenting the human body and then segmenting human's skin-color areas by using the color detection; and categorizes the skin-color areas by using a k-means method; finally, distinguishes hand area or face area in conjunction with the depth information. The technology of using color and depth information to locate hand position uses LUV color space, and couples with mixture of Gaussians model, to find out the skin-color areas; and helped by the depth information to remove background skin areas. In the front skin-color areas, the technology compares size, height, and depth information of any two areas to locate the positions of hands.
Another technique analyzes the upper and the lower arms of a human subject with the convex degree feature (CDF) of the depth image. As shown in
In the above mentioned image analysis technologies, some technologies may be unable to build a single model to perform comparison due to different distances between the user and the video camera device such that the sizes of the contour shapes of the local areas in the image are not the same. Some technologies may be unable to obtain complete skeleton information of the user due to the shelter in front of the user. Some technologies use skin-color information, and the impact of ambient light may result in a lower recognition rate.
Therefore, it is an important issue on how to design an object positioning technology which may only use the depth image information without establishing user skeleton, and use the real distance information for feature extraction, to positioning near or far objects by only establishing a single model unaffected by the ambient light and shelter.
The exemplary embodiments of the disclosure may provide a method and apparatus for object positioning by using depth images.
One exemplary embodiment relates to a method for object positioning by using depth images, adapted to an object positioning apparatus. The method is executed by a hardware processor to perform: converting a depth information of each of a plurality of pixels in each of one or more depth images into a real world coordinate; according to the real world coordinate, computing a distance of each of the plurality of pixels to an edge in each of a plurality of directions; assigning a weight to the distance of the each pixel to each edge of a plurality of edges; and according to a weight limit and the weight of the distance of each of the plurality of pixels to each of the plurality of edges, selecting one or more extremity positions of an object.
Another exemplary embodiment relates to a method for object positioning by using depth images, adapted to an object positioning apparatus. The method is executed by a hardware processor to perform: for each of a plurality of pixels in each of one or more depth images, computing a distance of the pixel to an edge in each of a plurality of directions; convening a depth information of the distance of the each pixel to each edge of a plurality of edges into a real world coordinate; assigning a weight to the distance of the each pixel to the each edge; and according to a weight limit and the weight of the distance of each of the plurality of pixels to each of the plurality of edges, selecting one or more extremity positions of an object.
Yet another exemplary embodiment relates to an apparatus for object positioning by using depth images. The apparatus may comprise a hardware processor connected to a depth image capture device. The hardware processor further includes a real-world coordinate computing module and a computing device. The real-world coordinate computing module converts each of a plurality of received depth information into a real world coordinate. The computing device is configured to compute a distance of each of a plurality of pixels in each of one or more depth images captured by the depth image capture device to an edge in each of a plurality of directions, assign a weight to the distance of each pixel to each edge, and select one or more extremity positions of an object according to a weight limit and the weight of the distance of each of the plurality of pixels to each edge in each of the plurality of directions.
Below, exemplary embodiments will be described in detail with reference to accompanying drawings so as to be easily realized by a person having ordinary knowledge in the art. The inventive concept may be embodied in various forms without being limited to the exemplary embodiments set forth herein. Descriptions of well-known parts are omitted for clarity, and like reference numerals refer to like elements throughout.
The exemplary embodiments in the disclosure provide an object positioning technology that converts the received depth image information into the real world coordinate of each pixel, and then computes a distance of each pixel to an edge in each of a plurality of directions. An edge, such as is a position that the found depth difference of the pixel is greater than a predetermined threshold in one direction. Then the technology assigns a weight to the distance of the pixel to each edge; and according to the weight of the distance and a weight limit, selects one or more extremity positions of an object.
In other words, the disclosed object positioning method by using depth images may be as shown in
In step 410, the depth information for each pixel, for example, represents the parallax of the left and the right images (the parallax unit is pixel distance). The parallax of the left and the right images is a pixel distance of a first image and a second image captured by dual video cameras, and the parallax of the left and the right images is converted into a real-world coordinate (the unit of the real world coordinate is cm). In practical applications, there are many ways of obtaining depth images, such as obtaining the depth image with dual video cameras architecture. Take the dual video cameras architecture as an exemplar,
According to
According to Z coordinate, the X and Y coordinates are converted as follows:
After having obtained the real-world distance of each pixel from a depth image, in accordance with step 420, the method computes a distance of each pixel to an edge in each of a plurality of directions. First, from each of N directions around each pixel, the method locates an extremity position of an edge, wherein the extremity position of the edge has a depth difference is greater than a predetermined threshold. The method then computes and records a true distance from the pixel to each of N extremity positions.
In other words, the steps of computing a distance from a pixel to an edge may include searching at least one pixel in this depth image, along a straight direction based on each pixel in this depth image, until there is a depth information difference between the pixel and each of the at least one pixel exceeds a predetermined threshold, and based on a real world coordinate, computing a distance of the pixel to each of the at the at least one pixel in each of a plurality of directions. Take the
After having computed the distance of each pixel to the edge in N directions, according to the object to be identified, such as the hand part, The method takes the distance of the real world coordinate in each direction as a baseline, and defines a weight fn of each direction a to be a distance function of the real-world coordinate of this direction n, to satisfy that when the pixel at a correct distance, the higher the weight value, while the larger the distance difference, the smaller the weight value. That is, the distance of the pixel to the edge is within a specified real distance, the assigned weight value is the largest; while the larger the difference away from the specified real distance, the smaller the assigned weight value. The weight value of each pixel may be assigned differently for different directions around each pixel, according to the convex feature of object to be identified.
Wherein d is the distance from the pixel to the edge for the direction n, Norn is equal to 6 and is a normalized parameter. The weight value is the smallest when the distance of the pixel to the edge is greater than (6+Norn) or less than (6−Norn).
Sw=Σi=18fn(d)
According to step 440, the position of an object to be identified may be found through the summed weight value Sw and a weight limit as following.
After the weighted images after smoothing 830 is obtained, the method sets a weight limit (such as predefined as 100), and in the weighted image after smoothing 830, selects one or more pixels with a largest weight value within a specified area range as candidate extremity positions of the object to be identified. For example, the weighted image after smoothing 830 is scanned from top left to bottom right, any pixel with a weight value exceeding the weight limit is considered as a candidate extremity position, and whether the exited candidate extremity position located within that specified area range (such as 50×50) is checked. When there exits this candidate extremity position, the one with the greatest weight value is selected as a candidate extremity position.
As shown in
In the above description, the two step of converting the depth information into a real-world coordinate for the depth image and computing a distance of the pixel to the edge according to a real-world coordinate may also be changed as computing a distance of the pixel to the edge and then converting the distance into a real-world coordinate. In other words, according to another exemplary embodiment, a method for object positioning by using depth images may be shown as
In step 1020, for example, a real-world distance Rd from the target pixel coordinates (x1, y1, d1) to an edge pixel coordinates (x2, y2, d2) may be obtained in the following manner. First, a real world coordinates (X1, Y1, Z1) of the target pixel coordinate and a real world coordinate (X2, Y2, Z2) of the edge pixel coordinate may be obtained by the computation of the previously described conversion formula. Then the real-world distance Rd is computed by using such as an Euclidean distance formula. That is the following computation formula.
Accordingly,
The object positioning apparatus 1100 may further include the depth image capture device 1110 to capture a plurality of depth images. The depth image capture device 1110 may be, but not limited to, a depth sensor, or an image capture device having dual video cameras architecture. The pixel information of the captured depth image is a true distance with respect to the depth sensor or a pixel distance between a first image and a second image captured by the dual video camera. Each of depth information comes from a plurality of depth image captured by the depth image capture device 1110, or is the distance of each pixel to each edge computed by the computing device 1124.
The real-world coordinates computing module 1122 may convert the depth information of pixel in the depth images captured from the depth image capture device 1110 into the real-world coordinate, and outputs to the computing device 1124. Or the computing device 1124 computes the distance of the pixel to the edge, and then the real-world coordinates computing module 1122 converts the distance into a distance of the real-world coordinate. As pervious mentioned, the pixel with depth difference of each direction around the pixel greater than a predetermined threshold is taken as an edge. How the computing device 1124 computes the distance of each pixel to an edge in each direction, gives a weight value, and selects one or more extremity positions of an object according to weight values of these distances and a weight limit have been described in the foregoing exemplary embodiments, and is not repeated here.
Therefore, the disclosed exemplary embodiments of the object positioning method and apparatus only use the depth image information so that the technology is not unaffected by ambient light. This technology does not need to establish user skeleton so that unaffected by shelter, and it use the real distance information for feature extraction to simply create a single model for estimating and tracking near or far objects to be identified. The disclosed embodiments may be applied in the object positioning of gesture control system, appliance control, interactive advertising billboards, 3C industry fields, and so on.
In summary, the disclosed exemplary embodiments provide a method and apparatus for object positioning by using depth images. The technology converts depth information of each of a plurality of pixels in each of one or more depth images into a real world three-dimensional coordinate, and computes a distance of each pixel to an edge in each of a plurality of directions, and assigns a weight to the distance of each pixel to each edge. Based on the weight of the distance of each pixel to each edge, the disclosed exemplary embodiments determine the position of an object to be identified. This technology has features that are not subject to the influence of ambient light and shelter, and only create a single model to estimate and track near or far objects to be identified.
It will be apparent to those skilled in the art that various modifications and variations can be made to the disclosed embodiments. It is intended that the specification and examples be considered as exemplary only, with a true scope of the disclosure being indicated by the following claims and their equivalents.
| Number | Date | Country | Kind |
|---|---|---|---|
| 101132330 A | Sep 2012 | TW | national |
| Number | Name | Date | Kind |
|---|---|---|---|
| 5937079 | Franke | Aug 1999 | A |
| 6154558 | Hsieh | Nov 2000 | A |
| 6173066 | Peurach et al. | Jan 2001 | B1 |
| 6185314 | Crabtree et al. | Feb 2001 | B1 |
| 6198485 | Mack et al. | Mar 2001 | B1 |
| 6434255 | Harakawa | Aug 2002 | B1 |
| 6658136 | Brumitt | Dec 2003 | B1 |
| 6674877 | Jojic et al. | Jan 2004 | B1 |
| 6690451 | Schubert | Feb 2004 | B1 |
| 6788809 | Grzeszczuk et al. | Sep 2004 | B1 |
| 7283676 | Olsson | Oct 2007 | B2 |
| 7319479 | Crabtree et al. | Jan 2008 | B1 |
| 7340077 | Gokturk et al. | Mar 2008 | B2 |
| 7372977 | Fujimura et al. | May 2008 | B2 |
| 7590262 | Fujimura et al. | Sep 2009 | B2 |
| 7781666 | Nishitani et al. | Aug 2010 | B2 |
| 7971157 | Markovic et al. | Jun 2011 | B2 |
| 7974443 | Kipman et al. | Jul 2011 | B2 |
| 7996793 | Latta et al. | Aug 2011 | B2 |
| 8031906 | Fujimura et al. | Oct 2011 | B2 |
| 8113991 | Kutliroff | Feb 2012 | B2 |
| 20050131581 | Sabe et al. | Jun 2005 | A1 |
| 20050180602 | Yang et al. | Aug 2005 | A1 |
| 20050185834 | Kristjansson et al. | Aug 2005 | A1 |
| 20050196015 | Luo et al. | Sep 2005 | A1 |
| 20050201612 | Park et al. | Sep 2005 | A1 |
| 20080101652 | Zhao et al. | May 2008 | A1 |
| 20080159591 | Ruedin | Jul 2008 | A1 |
| 20080170749 | Albertson et al. | Jul 2008 | A1 |
| 20090010490 | Wang et al. | Jan 2009 | A1 |
| 20090028440 | Elangovan et al. | Jan 2009 | A1 |
| 20090161914 | Song | Jun 2009 | A1 |
| 20100014710 | Chen et al. | Jan 2010 | A1 |
| 20100092038 | Theodore et al. | Apr 2010 | A1 |
| 20100111444 | Coffman | May 2010 | A1 |
| 20100160835 | Shin et al. | Jun 2010 | A1 |
| 20100166258 | Chai et al. | Jul 2010 | A1 |
| 20100166259 | Otsu et al. | Jul 2010 | A1 |
| 20100215257 | Dariush et al. | Aug 2010 | A1 |
| 20100302247 | Perez et al. | Dec 2010 | A1 |
| 20110080336 | Leyvand et al. | Apr 2011 | A1 |
| 20110080475 | Lee et al. | Apr 2011 | A1 |
| 20110093820 | Zhang et al. | Apr 2011 | A1 |
| 20110119216 | Wigdor | May 2011 | A1 |
| 20110193939 | Vassigh et al. | Aug 2011 | A1 |
| 20110199291 | Tossell et al. | Aug 2011 | A1 |
| 20110206273 | Plagemann et al. | Aug 2011 | A1 |
| 20110211754 | Litvak et al. | Sep 2011 | A1 |
| 20110219340 | Pathangay et al. | Sep 2011 | A1 |
| 20110228981 | Harres et al. | Sep 2011 | A1 |
| 20110234490 | Markovic et al. | Sep 2011 | A1 |
| 20110234589 | Lee et al. | Sep 2011 | A1 |
| 20110246329 | Geisner et al. | Oct 2011 | A1 |
| 20110255746 | Berkovich et al. | Oct 2011 | A1 |
| 20110262002 | Lee | Oct 2011 | A1 |
| 20110279368 | Klein et al. | Nov 2011 | A1 |
| 20110279663 | Fan et al. | Nov 2011 | A1 |
| 20110285626 | Latta et al. | Nov 2011 | A1 |
| 20110289455 | Reville et al. | Nov 2011 | A1 |
| 20110293137 | Gurman et al. | Dec 2011 | A1 |
| 20110299774 | Manders et al. | Dec 2011 | A1 |
| 20110302293 | Buban | Dec 2011 | A1 |
| 20120027252 | Liu et al. | Feb 2012 | A1 |
| 20120038932 | Lenz et al. | Feb 2012 | A1 |
| 20120084652 | Martinez Bauza et al. | Apr 2012 | A1 |
| 20120229628 | Ishiyama et al. | Sep 2012 | A1 |
| Number | Date | Country |
|---|---|---|
| 484303 | Apr 2002 | TW |
| 501035 | Sep 2002 | TW |
| I223712 | Nov 2004 | TW |
| 200522709 | Jul 2005 | TW |
| I270824 | Jan 2007 | TW |
| I274296 | Feb 2007 | TW |
| 200744148 | Dec 2007 | TW |
| 200842733 | Nov 2008 | TW |
| I307052 | Mar 2009 | TW |
| 200937350 | Sep 2009 | TW |
| I326049 | Jun 2010 | TW |
| 201025150 | Jul 2010 | TW |
| I328727 | Aug 2010 | TW |
| I333783 | Nov 2010 | TW |
| 201044285 | Dec 2010 | TW |
| 201121314 | Jun 2011 | TW |
| 201137766 | Nov 2011 | TW |
| 201145119 | Dec 2011 | TW |
| 201145184 | Dec 2011 | TW |
| 201203131 | Jan 2012 | TW |
| 201214242 | Apr 2012 | TW |
| 201214244 | Apr 2012 | TW |
| 201218047 | May 2012 | TW |
| Entry |
|---|
| Hu et al., “Human arm estimation using convex features in depth images”, Image Processing (ICIP), 2010 17th IEEE International Conference, p. 3269-p. 3272, Sep. 2010. |
| Li et al., “Local Shape Context Based Real-time Endpoint Body Part Detection and Identification from Depth Images”, Computer and Robot Vision (CRV), 2011 Canadian Conference, p. 219-p. 226, May 2011. |
| Chen et al., “Real-time hand tracking on depth images”, Visual Communications and Image Processing (VCIP), 2011 IEEE, p. 1-p. 4, Nov. 2011. |
| Xu et al;., “Integrated approach of skin-color detection and depth information for hand and face localization”, Robotics and Biomimetics (ROBIO), 2011 IEEE International Conference, p. 952-p. 956, Dec. 2011. |
| Pham et al;., “Dual hand extraction using skin color and stereo information”, Robotics and Biomimetics, ROBIO 2008. IEEE International Conference, Feb. 2009, p. 330-p. 335, 2008. |
| Number | Date | Country | |
|---|---|---|---|
| 20140064602 A1 | Mar 2014 | US |