Information processing device, information processing method, and program
By combining color and depth image analysis to confirm hand regions, the method improves detection accuracy in gesture-controlled devices, addressing illumination and shadow-related errors.
Patent Information
- Application Number
- JP2022101126
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2022-06-23
- Publication Date
- 2024-08-21
- Estimated Expiration
- 2042-06-23
AI Technical Summary
Existing gesture detection technologies in devices struggle with accuracy due to variations in illumination and shadow formation, leading to errors in detecting targets like hands based solely on color information, especially when backgrounds have similar colors.
The use of both color and depth images to identify regions of interest by associating pixels in overlapping ranges, applying conditions to color and depth information to accurately detect hands, including additional depth-based criteria to confirm hand regions.
Enhances hand detection accuracy by complementing color information with depth data, reducing false positives and improving gesture recognition in man-machine interfaces for intuitive device control.
Smart Images

Figure 0007537470000001 
Figure 0007537470000004 
Figure 0007537470000007
Abstract
Description
[Technical field]
[0001] The present invention relates to an information processing device, an information processing method, and a program. [Background technology]
[0002] Conventionally, there is a technology for detecting an operator's gesture and controlling the operation of a device in response to the detected gesture. In this technology, it is necessary to detect a specific part of the operator's body that makes the gesture (e.g., a hand). As one method for detecting a part of the operator's body, a method of analyzing the color of an image of the operator is known. For example, Patent Document 1 discloses a technology for extracting a skin-colored area by performing threshold processing for each of hue, saturation, and brightness in an image of the operator, and regarding the extracted area as a hand area. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2008-250482 A Summary of the Invention [Problem to be solved by the invention]
[0004] However, since the color of a detection target such as a hand in an image changes depending on the color and brightness of the lighting, and the way shadows are formed depending on the positional relationship with the light source, threshold processing that uniformly sets thresholds for parameters that specify the color such as hue, saturation, and brightness is likely to result in missed detection. Also, if the color of the background of the operator is the color of the detection target, the background will be erroneously detected as the detection target. Thus, there is a problem that the detection target cannot be detected accurately using only the color information of the image.
[0005] An object of the present invention is to provide an information processing device, an information processing method, and a program that are capable of detecting a detection target with higher accuracy. [Means for solving the problem]
[0006] In order to solve the above problems, the information processing device according to the present invention comprises: Photograph the subject A color image including color information and a depth image including depth information are multiplexed. Get Detecting a detection target that is at least a part of the subject included in the image based on the acquired color information and depth information. Where Science department Equipped with In an overlapping range where the imaging range of the color image and the imaging range of the depth image overlap, pixels of the color image correspond to pixels of the depth image, The processing unit includes: identifying a first region in the color image in which color information of pixels satisfies a first color condition related to the color of the detection target; Identifying a second region in the depth image in which pixel depth information satisfies a first depth condition related to the depth of the detection object; identifying a region including a third region that overlaps both the region corresponding to the first region and the region corresponding to the second region within the overlapping range; determining a second depth condition based on depth information of a pixel corresponding to the third region in the depth image; Identifying a fourth region of the first region of the color image, the fourth region corresponding to a region in the depth image where pixel depth information satisfies the second depth condition; Within the overlapping range, a region including the third region and a region corresponding to the fourth region of the color image is detected as the detection target.
[0007] In order to solve the above problems, an information processing method according to the present invention comprises: Photograph the subject A color image including color information and a depth image including depth information are multiplexed. Get A detection target that is at least a part of the subject included in the image is detected based on the acquired color information and depth information. A detection process is provided. , In an overlapping range where the imaging range of the color image and the imaging range of the depth image overlap, pixels of the color image correspond to pixels of the depth image, In the detection step, identifying a first region in the color image in which color information of pixels satisfies a first color condition related to the color of the detection target; Identifying a second region in the depth image in which pixel depth information satisfies a first depth condition related to the depth of the detection object; identifying a region including a third region that overlaps both the region corresponding to the first region and the region corresponding to the second region within the overlapping range; determining a second depth condition based on depth information of a pixel corresponding to the third region in the depth image; Identifying a fourth region of the first region of the color image, the fourth region corresponding to a region in the depth image where pixel depth information satisfies the second depth condition; Within the overlapping range, a region including the third region and a region corresponding to the fourth region of the color image is detected as the detection target.
[0008] In order to solve the above problems, the program according to the present invention comprises: The computer of the information processing device Photograph the subject A color image including color information and a depth image including depth information are multiplexed. Acquisition process and , A detection target that is at least a part of the subject included in the image is detected based on the acquired color information and depth information. A program for executing a detection process. , In an overlapping range where the imaging range of the color image and the imaging range of the depth image overlap, pixels of the color image correspond to pixels of the depth image, In the detection process, identifying a first region in the color image in which color information of pixels satisfies a first color condition related to the color of the detection target; Identifying a second region in the depth image in which pixel depth information satisfies a first depth condition related to the depth of the detection object; identifying a region including a third region that overlaps both the region corresponding to the first region and the region corresponding to the second region within the overlapping range; determining a second depth condition based on depth information of a pixel corresponding to the third region in the depth image; Identifying a fourth region of the first region of the color image, the fourth region corresponding to a region in the depth image where pixel depth information satisfies the second depth condition; Within the overlapping range, a region including the third region and a region corresponding to the fourth region of the color image is detected as the detection target. Effect of the Invention
[0009] According to the present invention, it is possible to detect a detection target with higher accuracy. [Brief description of the drawings]
[0010] [Figure 1] FIG. 1 is a schematic diagram showing a configuration of an information processing system. [Diagram 2] 1 is a diagram showing a color image capturing range by a color camera and a depth image capturing range by a depth camera. FIG. [Diagram 3] FIG. 2 is a block diagram showing a functional configuration of the information processing device. [Figure 4] 10 is a flowchart showing a control procedure of a device control process. [Diagram 5] 13 is a flowchart showing a control procedure of hand detection processing. [Figure 6] FIG. 4 is a diagram illustrating a method for identifying a first region to a third region in the hand detection process. [Figure 7] 13A to 13C are diagrams illustrating an operation of adding a fourth region in the hand detection process. [Figure 8] 13A to 13C are diagrams illustrating an operation of adding a fifth region in the hand detection process. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0011] Hereinafter, an embodiment of the present invention will be described with reference to the drawings.
[0012] <Outline of information processing system> FIG. 1 is a schematic diagram showing the configuration of an information processing system 1 according to the present embodiment. The information processing system 1 includes an information processing device 10, an image capturing device 20, and a projector 80. The information processing device 10 is communicatively connected to the image capturing device 20 and the projector 80 wirelessly or via a wire, and is capable of transmitting and receiving data such as control signals and image data between the image capturing device 20 and the projector 80.
[0013] The information processing device 10 of the information processing system 1 detects a gesture made by an operator 70 (subject) with a hand 71 (detection target) and controls the operation of the projector 80 (projection operation of an image, operation of changing various settings, etc.) according to the detected gesture. In detail, the photographing device 20 photographs the operator 70 positioned in front of the photographing device 20 and transmits image data of the photographed image to the information processing device 10. The information processing device 10 analyzes the image data received from the photographing device 20 and determines whether the operator 70 has made a predetermined gesture with the hand 71. When the information processing device 10 determines that the operator 70 has made a predetermined gesture with the hand 71, it transmits a control signal to the projector 80 and controls the projector 80 to perform an operation according to the detected gesture. This enables intuitive operations such as, for example, switching the image Im projected by the projector 80 to the next image Im by the operator 70 making a gesture of moving the hand 71 to the right, and switching the image Im to the previous image Im by the operator 70 making a gesture of moving the hand 71 to the left.
[0014] <Configuration of information processing system> The image capturing device 20 of the information processing system 1 includes a color camera 30 and a depth camera 40. The color camera 30 captures an image of a shooting range including the operator 70 and the background, and generates color image data 132 (see FIG. 3) related to a two-dimensional color image of the shooting range. Each pixel of the color image data 132 includes color information. In this embodiment, the color information is a combination of gradation values for R (red), G (green), and B (blue). The color camera 30 has, for example, an image sensor (such as a CCD sensor or a CMOS sensor) that detects the intensity of light transmitted through R, G, and B color filters for each pixel, and generates color information for one pixel based on the output of these image sensors. However, the configuration of the color camera 30 is not limited to the above configuration as long as it can generate color image data 132 including color information for each pixel. In addition, the expression format of the color information of the color image data 132 is not limited to the RGB system.
[0015] The depth camera 40 captures an image of the image capturing range including the operator 70 and the background, and generates depth image data 133 (see FIG. 3) related to a depth image including depth information of the image capturing range. In the depth image, each pixel includes depth information related to the depth (distance from the depth camera 40 to the object of distance measurement) of the operator 70 and background structures (hereinafter, referred to as "object of distance measurement"). As the depth camera 40, for example, one that detects distance using a time of flight (TOF) method or one that detects distance using a stereo method can be used. Among these, the TOF method detects the distance to the object of distance measurement based on the time it takes for light irradiated from a light source to be reflected by the object of distance measurement and return to the depth camera 40. In addition, in the stereo method, the object of distance measurement is captured by two cameras provided at different positions, and the distance to the object of distance measurement is detected by the principle of triangulation based on the difference (parallax) between the positions of the object of distance measurement in the images captured by each camera. However, the method of detecting distance by the depth camera 40 is not limited to the TOF method and the stereo method.
[0016] The color camera 30 and the depth camera 40 of the imaging device 20 continuously capture images of an operator 70 positioned in front of the imaging device 20 at a predetermined frame rate. In the imaging device 20 shown in Fig. 1, the color camera 30 and the depth camera 40 are integrally provided, but this configuration is not limited as long as each camera can capture an image of the operator 70. For example, the color camera 30 and the depth camera 40 may be configured separately.
[0017] FIG. 2 is a diagram showing the range of a color image 31 captured by the color camera 30 and the range of a depth image 41 captured by the depth camera 40. As shown in FIG. It is preferable that the color camera 30 and the depth camera 40 have the same shooting range (angle of view). However, as shown in FIG. 2, the shooting range of the color image 31 by the color camera 30 and the shooting range of the depth image 41 by the depth camera 40 may be shifted, as long as there is an overlapping portion (hereinafter, referred to as "overlapping range 51"). That is, the color camera 30 and the depth camera 40 may have a positional relationship and orientation so that the operator 70 can be photographed in the overlapping range 51 where the shooting ranges of the color image 31 and the depth image 41 overlap. In this embodiment, the color image 31 and the depth image 41 correspond to "images obtained by photographing a subject."
[0018] In order to enable the detection process of the hand 71 described later, in the overlapping range 51, the pixels of the color image 31 and the pixels of the depth image 41 are associated with each other. That is, in the overlapping range 51, it is possible to specify the pixels of the depth image 41 corresponding to each pixel of the color image 31, and it is possible to specify the pixels of the color image 31 corresponding to each pixel of the depth image 41. The association of pixels may be performed by specifying corresponding points using a known image analysis technique based on the color image 31 and the depth image 41 photographed simultaneously (including the case where there is a shift of less than the frame period of the photographing), or the association may be performed in advance based on the positional relationship and orientation of the color camera 30 and the depth camera 40. In addition, two or more pixels of the depth image 41 may correspond to one pixel of the color image 31, and two or more pixels of the color image 31 may correspond to one pixel of the depth image 41. Therefore, the resolutions of the color camera 30 and the depth camera 40 do not necessarily have to be the same. Moreover, a first mask image 61 to a fifth mask image 65, which will be described later, are generated with a size that includes the overlapping range 51. In this embodiment, an example will be described in which the positional relationship and orientation of the color camera 30 and the depth camera 40 are adjusted so that the shooting ranges of the color image 31 and the depth image 41 are the same. Therefore, it is assumed that the entire color image 31 and the depth image 41 form an overlapping range 51. It is also assumed that the resolutions of the color camera 30 and the depth camera 40 are the same, and that the pixels of the color image 31 and the pixels of the depth image 41 correspond one-to-one. Therefore, in this embodiment, a first mask image 61 to a fifth mask image 65, which will be described later, are images with the same resolution and size as the color image 31 and the depth image 41.
[0019] FIG. 3 is a block diagram showing the functional configuration of the information processing device 10. As shown in FIG. The information processing device 10 includes a CPU 11 (Central Processing Unit), a RAM 12 (Random Access Memory), a storage unit 13, an operation unit 14, a display unit 15, a communication unit 16, and a bus 17. The various units of the information processing device 10 are connected to each other via the bus 17. In this embodiment, the information processing device 10 is a notebook PC, but is not limited thereto and may be, for example, a stationary PC, a smartphone, or a tablet terminal.
[0020] The CPU 11 is a processor that controls the operation of the information processing device 10 by reading and executing the program 131 stored in the storage unit 13 and performing various arithmetic processing. The CPU 11 corresponds to a "processing unit." The information processing device 10 may have multiple processors (multiple CPUs, etc.), and the multiple processes performed by the CPU 11 of this embodiment may be executed by the multiple processors. In this case, the multiple processors correspond to a "processing unit." Also, in this case, the multiple processors may be involved in a common process, or the multiple processors may independently execute different processes in parallel.
[0021] The RAM 12 provides a working memory space for the CPU 11 and stores temporary data.
[0022] The storage unit 13 is a non-transitory recording medium readable by the CPU 11 as a computer, and stores a program 131 and various data. The storage unit 13 includes a non-volatile memory such as a hard disk drive (HDD) or a solid state drive (SSD). The program 131 is stored in the storage unit 13 in the form of a computer-readable program code. The data stored in the storage unit 13 include color image data 132 and depth image data 133 received from the photographing device 20, and mask image data 134 relating to a first mask image 61 to a fifth mask image 65 generated in a hand detection process described later.
[0023] The operation unit 14 has at least one of an input device such as a touch panel overlaid on the display screen of the display unit 15, a physical button, a pointing device such as a mouse, and a keyboard, and outputs operation information to the CPU 11 in response to an input operation on the input device.
[0024] The display unit 15 includes a display device such as a liquid crystal display, and performs various displays on the display device in accordance with display control signals from the CPU 11.
[0025] The communication unit 16 is configured with a network card or a communication module, and transmits and receives data between the image capturing device 20 and the projector 80 in accordance with a predetermined communication protocol.
[0026] The projector 80 shown in Fig. 1 projects (forms) an image Im on a projection surface by irradiating projection light having an intensity distribution according to image data of the projection image with high directivity. In detail, the projector 80 includes a light source, a display element such as a digital micromirror device (DMD) that adjusts the intensity distribution of the light output from the light source to form an optical image, and a projection lens group that collects the optical image formed by the display element and projects it as an image Im. The projector 80 changes the image Im to be projected and changes settings related to the projection mode (brightness, color, etc.) according to a control signal transmitted from the image capture device 20.
[0027] <Operation of information processing system> Next, the operation of the information processing system 1 will be described. The CPU 11 of the information processing device 10 analyzes a plurality of color images 31 (color image data 132) captured by the color camera 30 over a certain period of time and a plurality of depth images 41 captured by the depth camera 40 over the certain period of time, and determines whether or not the operator 70 shown in each image has made a predetermined gesture with his / her hand 71 (part from the wrist down). When the CPU 11 determines that the operator 70 has made a gesture with his / her hand 71, it transmits a control signal to the projector 80 to cause the projector 80 to perform an operation corresponding to the detected gesture.
[0028] Here, the gesture by the hand 71 is, for example, an action of moving the hand 71 in a certain direction (rightward, leftward, downward, upward, etc.) as seen from the operator 70, or an action of moving the hand 71 so as to draw a trajectory of a predetermined shape (circular, etc.). Each of these gestures is previously associated with one action of the projector 80. For example, an action of switching the projected image Im to the next image Im may be associated with a gesture of moving the hand 71 to the right, and an action of switching the projected image Im to the previous image Im may be associated with a gesture of moving the hand 71 to the left. In this case, the projected image can be switched to the next image / previous image by performing a gesture of moving the hand 71 to the right / left. These are examples of associations between gestures and actions of the projector 80, and any gesture can be associated with any action of the projector 80. In addition, it may be possible to change the association between the gesture and the action of the projector 80 or to generate a new association according to a user operation on the operation unit 14.
[0029] In this way, when operating projector 80 by gestures of hand 71 of operator 70, it is important to accurately detect hand 71 in the image captured by image capture device 20. If hand 71 cannot be detected correctly, gestures cannot be recognized correctly, and operability is significantly reduced.
[0030] Conventionally, a method is known in which the color of an image of an operator 70 is analyzed to detect a hand 71 in the image. However, the color of the hand 71 in the image varies depending on the color and brightness of the lighting, and the way a shadow is cast depending on the positional relationship with the light source, and so detection is likely to be missed if only color information is used. In addition, if the color of the background of the operator 70 is close to the color of the hand 71, the background will be erroneously detected as the hand 71. In this way, the hand 71 cannot be detected with high accuracy using only the color information of the image.
[0031] Therefore, in the information processing system 1 of this embodiment, the detection accuracy of the hand 71 is improved by using the depth image 41 in addition to the color image 31. In detail, the CPU 11 of the information processing device 10 acquires color information of pixels in the color image 31, acquires depth information of pixels in the depth image 41, and detects the hand 71 of the operator 70, which is commonly included in the color image 31 and the depth image 41, based on the color information and the depth information.
[0032] 4 to 8, an operation in which the CPU 11 of the information processing device 10 detects a gesture of the operator 70 and controls the operation of the projector 80 will be described. In order to realize the above operation, the CPU 11 executes a device control process shown in FIG. 4 and a hand detection process shown in FIG.
[0033] FIG. 4 is a flowchart showing a control procedure of the device control process. The device control process is executed, for example, when the information processing device 10, the image capturing device 20, and the projector 80 are powered on and acceptance of a gesture for operating the projector 80 is started.
[0034] When the device control process is started, the CPU 11 transmits a control signal to the photographing device 20 to start photographing by the color camera 30 and the depth camera 40 (step S101). When photographing is started, the CPU 11 executes a hand detection process (step S102).
[0035] FIG. 5 is a flowchart showing a control procedure for the hand detection process. FIG. 6 is a diagram for explaining a method for identifying the first region R1 to the third region R3 in the hand detection process. When the hand detection process starts, the CPU 11 acquires color image data 132 of the color image 31 captured by the color camera 30 and depth image data 133 of the depth image 41 captured by the depth camera 40 (step S201). An example of a color image 31 capturing an image of an operator 70 is shown on the upper left side of Fig. 6. In the color image 31 of Fig. 6, the background of the operator 70 is omitted. An example of a depth image 41 capturing an image of an operator 70 is shown on the upper right side of Fig. 6. In the depth image 41 in Fig. 6, the distance from the depth camera 40 to the object to be measured is represented by density. More specifically, the pixels are drawn so that the farther the distance from the depth camera 40 to the object to be measured, the darker the pixels are.
[0036] The CPU 11 associates pixels of the color image 31 with pixels of the depth image 41 in the overlapping range 51 of the color image 31 and the depth image 41 (step S202). Here, for example, a method of performing a predetermined image analysis process on the color image 31 and the depth image 41 to identify corresponding points can be used. However, if the pixels are previously associated based on the positional relationship and orientation of the color camera 30 and the depth camera 40, this step can be omitted. In this embodiment, as described above, the resolution and shooting range of the color image 31 and the depth image 41 are the same (i.e., the entire color image 31 and the depth image 41 are the overlapping range 51), and the pixels of the color image 31 and the depth image 41 are previously associated one-to-one, so this step is omitted.
[0037] The CPU 11 converts the color information of the color image 31 from the RGB system to the HSV system (step S203). In the HSV system, colors are expressed in a color space represented by three components: hue (H), saturation (S), and brightness (V). Using the HSV system makes it easier to perform threshold processing that identifies skin color. This is because skin color is mainly reflected in hue. Note that conversion to a color system other than the HSV system may also be used. Also, this step may be omitted, and subsequent processing may be performed while keeping the RGB system.
[0038] The CPU 11 identifies a first region R1 in the color image 31 where the color information of the pixel satisfies a first color condition related to the color (skin color) of the hand 71 (step S204). Here, the first color condition is satisfied when the color information of the pixel falls within a first color range including the skin color in the HSV system. The first color range is represented by upper and lower limit values (threshold values) of hue, saturation, and brightness, and is determined in advance before the start of the device control process and stored in the storage unit 13. The first color range can be arbitrarily set by the user. In step S204, the CPU 11 executes threshold processing for each pixel of the color image 31 to determine whether or not the color (hue, saturation, and brightness) represented by the color information of the pixel falls within the first color range. Then, the CPU 11 identifies a region consisting of pixels whose color represented by the color information falls within the first color range as the first region R1. Furthermore, the CPU 11 generates a binary first mask image 61 in which the pixel value of pixels corresponding to the first region R1 is set to "1" and the pixel value of pixels corresponding to regions other than the first region R1 is set to "0." The first mask image 61 is generated with a size corresponding to the overlapping range 51, and the image data is stored in mask image data 134 of the storage unit 13 (the same applies to second mask image 62 to fifth mask image 65 described later).
[0039] The left middle section of Fig. 6 shows a first mask image 61 generated based on the color image 31. In the first mask image 61 in Fig. 6, pixels with a pixel value of "1" are displayed in white, and pixels with a pixel value of "0" are displayed in black (the same applies to second mask image 62 to fifth mask image 65 described below). In the first mask image 61, the pixel value of the face and hands 71, which are the skin color in the color image 31, is "1". Moreover, the pixel value of the parts other than the face and hands 71 is "0".
[0040] When step S204 in FIG. 5 is completed, the CPU 11 specifies a second region R2 in the depth image 41 in which the pixel depth information satisfies a first depth condition related to the depth of the hand 71 (step S205). Here, the second depth condition is satisfied when the depth (distance from the depth camera 40) represented by the pixel depth information is within a first depth range determined in advance. The first depth range is determined so as to include a depth range in which the hand 71 of the operator 70 making a gesture is usually located, and is represented by an upper limit value and a lower limit value (threshold value). As an example, the first depth range can be set to a value such as 50 cm or more and 1 m or less from the depth camera 40. The first depth range is determined in advance and stored in the storage unit 13. The first depth range can be arbitrarily set by the user. In step S204, the CPU 11 executes threshold processing for each pixel of the depth image 41 to determine whether or not the depth represented by the depth information of the pixel falls within the first depth range. Then, the CPU 11 specifies a region consisting of pixels whose depth represented by the depth information falls within the first depth range as a second region R2. The CPU 11 also generates a binary second mask image 62 in which the pixel value of the pixel corresponding to the second region R2 is set to "1" and the pixel value of the pixel corresponding to the region other than the second region R2 is set to "0". The pixels of the first mask image 61 and the pixels of the second mask image 62 correspond one-to-one.
[0041] The middle right side of Fig. 6 shows a second mask image 62 generated based on the depth image 41. In the second mask image 62 shown in Fig. 6, the pixel values of pixels corresponding to a part of the hand 71 in the depth image 41 excluding the thumb and the wrist (part of the sleeve) are "1", and the pixel values of pixels in other parts are "0".
[0042] The first depth condition may be determined by the CPU 11 based on the depth information of the pixels corresponding to the first region R1 identified in step S204 in the depth image 41. For example, the largest area of the first region R1 may be identified, and a depth range of a predetermined width centered on a representative value (average value, median value, etc.) of the depth of the region corresponding to the largest area of the first region R1 in the depth image 41 may be set as the first depth range.
[0043] 5 is completed, the CPU 11 determines whether or not there is a third region R3 that overlaps both the first region R1 and the second region R2 (step S206). That is, the CPU 11 determines whether or not there is a region in which corresponding pixels in the first mask image 61 and the second mask image 62 are both "1". If it is determined that there is a third region R3 ("YES" in step S206), the CPU 11 generates a third mask image 63 representing the third region R3 (step S207).
[0044] 6 shows a third mask image 63 generated based on the first mask image 61 and the second mask image 62 shown in the middle. The pixel value of each pixel in the third mask image 63 corresponds to the logical product of the pixel value of the corresponding pixel in the first mask image 61 and the pixel value of the corresponding pixel in the second mask image 62. That is, the pixel value of a pixel whose corresponding pixels in both the first mask image 61 and the second mask image 62 are "1" is "1", and the pixel value of a pixel whose corresponding pixels in at least one of the first mask image 61 and the second mask image 62 are "0" is "0". Thus, the third region R3 corresponds to a part of the hand 71 excluding the part corresponding to the thumb. At this stage, the third region R3 is detected as a region corresponding to the hand 71 of the operator 70 (hereinafter referred to as the "hand region").
[0045] 5 is completed, the CPU 11 removes noise from the third mask image 63 by a known noise removal process such as morphological transformation (step S208). Note that a similar noise removal process may also be performed on the first mask image 61 and the second mask image 62 described above, and the fourth mask image 64 and the fifth mask image 65 described later.
[0046] In the subsequent steps S209 to S211, the CPU 11 identifies a fourth region R4 from within the first region R1 of the color image 31 (first mask image 61), whose depth is within the second depth range related to the depth of the third region R3, and adds (complements) the fourth region R4 to the hand region.
[0047] In detail, first, the CPU 11 determines the second depth condition based on the depth information of the pixel corresponding to the third region R3 in the depth image 41 (step S209). The second depth condition can be that the depth of the pixel is within a second depth range (predetermined range) including a representative value (for example, an average value or a median value) of the depth of the pixel corresponding to the third region R3. For example, the second depth range can be set within a range of D±d, where D is the representative value. Here, the value d can be set to, for example, 10 cm. Since the size of an adult's hand 71 is about 20 cm, by setting the value d to 10 cm, the width (2d) of the second depth range can be set to about the size of the adult's hand 71, and the range in which the hand 71 is located can be appropriately covered.
[0048] The width (2d) of the second depth range may be determined based on the size (e.g., maximum width) of a region corresponding to the third region R3 in the depth image 41. In detail, the actual size of the third region R3 (corresponding to the size of the hand 71) may be derived from a representative value of the depth of the pixels corresponding to the third region R3 and the size (number of pixels) of the region corresponding to the third region R3 on the depth image 41, and the derived value may be set as the width (2d) of the second depth range.
[0049] Next, the CPU 11 determines whether or not the first region R1 includes a fourth region R4 whose depth satisfies the second depth condition (step S210). In more detail, the CPU 11 determines whether or not the first region R1 of the color image 31 (first mask image 61) includes a fourth region R4 whose pixel depth information corresponds to a region in the depth image 41 that satisfies the second depth condition. Here, the CPU 11 determines that a pixel in the first region R1 of the color image 31 belongs to the fourth region R4 when the depth of the pixel in the corresponding depth image 41 satisfies the second depth condition for the pixel in the first region R1.
[0050] If it is determined that the fourth region R4 is present in the first region R1 ("YES" in step S210), the CPU 11 generates a fourth mask image 64 by adding the fourth region R4 to the hand region at this time (the third region R3 in the third mask image 63) (step S211). At this stage, within the overlapping range 51 (the range of the fourth mask image 64), the area including the third region R3 and the fourth region R4 is detected as the area corresponding to the hand 71 of the operator 70 (hand area).
[0051] FIG. 7 is a diagram illustrating an operation of adding the fourth region R4 in the hand detection process. The depth image 41 is shown in the upper left part of FIG. 7, and the range of pixels in the depth image 41 corresponding to the third region R3 is hatched. In the above step S209, the second depth condition is determined based on the depth information of the pixels in the hatched range. When the second depth condition is determined, the fourth region R4, whose corresponding pixel depth satisfies the second depth condition, is extracted from the first region R1 of the first mask image 61 shown in the lower left part of FIG. 7. In the first mask image 61 of FIG. 7, the extracted fourth region R4 is hatched. In the example shown in FIG. 7, the region of the hand 71, whose depth is similar to that of the third region R3, is extracted as the fourth region R4 from the first region R1, and the region of the face, whose depth is not similar to that of the third region R3, is not extracted as the fourth region R4. When the fourth region R4 is extracted, a fourth mask image 64 (the image in the lower right part of FIG. 7) is generated which corresponds to the logical sum of the third region R3 of the third mask image 63 shown in the upper right part of FIG. 7 and the fourth region R4 of the first mask image 61. It can be seen that in the fourth mask image 64, the portion corresponding to the thumb that was missing in the third region R3 is added from the fourth region R4, and the hand region approaches the region of the actual hand 71.
[0052] In Figure 7, the entire fourth region R4 is continuous with the third region R3 when overlapped with the third region R3, but if there is a part of the fourth region R4 that is not continuous with the third region R3, the part of the fourth region R4 that is continuous with the third region R3 may be added as a hand region. In addition, in FIG. 7, the entire fourth region R4 is shown as a continuous unit, but if the fourth region R4 is divided into multiple regions, only the region with the largest area among the multiple regions may be added to the third region R3 to be designated as the hand region.
[0053] Returning to FIG. 5, when step S211 is completed, or when it is determined in step S210 that the fourth region R4 does not exist ("NO" in step S210), the CPU 11 in steps S212 to S214 identifies a fifth region R5, whose color is within the second color range related to the color of the third region R3, from within the second region R2 of the depth image 41 (second mask image 62), and adds (complements) the fifth region R5 to the hand region.
[0054] In detail, first, the CPU 11 determines a second color condition based on color information of a pixel corresponding to the third region R3 in the color image 31 (step S212). The second color condition can be that the color of the pixel is within a second color range including a representative color of the color of the pixel corresponding to the third region R3. For example, the second color range can be a range in which the hue of the representative color is H, the saturation is S, and the brightness is V, and the hue is within the range of H±h, the saturation is within the range of S±s, and the brightness is within the range of V±v. The values H, S, and V can be the representative value of the hue (average value or median value, etc.), the representative value of the saturation (average value or median value, etc.), and the representative value of the brightness (average value or median value, etc.) of the pixel corresponding to the third region R3, respectively. The values h, s, and v can be set based on the color variation of the hand 71 depending on the person, etc.
[0055] Next, the CPU 11 determines whether or not the second region R2 includes a fifth region R5 whose color satisfies the second color condition (step S213). In more detail, the CPU 11 determines whether or not the second region R2 of the depth image 41 (second mask image 62) includes a fifth region R5 whose color information of pixels in the color image 31 satisfies the second color condition. Here, the CPU 11 determines that a pixel in the second region R2 of the depth image 41 belongs to the fifth region R5 when the chromaticity of the pixel in the corresponding color image 31 satisfies the second color condition.
[0056] If it is determined that the fifth region R5 exists in the second region R2 ("YES" in step S213), the CPU 11 generates a fifth mask image 65 by adding the fifth region R5 to the hand region at this time (the third region R3 and the fourth region R4 in the fourth mask image 64 if the fourth mask image 64 has been generated, or the third region R3 in the third mask image 63 if the fourth mask image 64 has not been generated) (step S214). At this stage, the area of the overlapping range 51 (the range of the fifth mask image 65) including the third region R3, the fourth region R4, and the fifth region R5 (if the fourth mask image 64 has not been generated, the area including the third region R3 and the fifth region R5) is detected as the area corresponding to the hand 71 of the operator 70 (hand area).
[0057] FIG. 8 is a diagram illustrating an operation of adding the fifth region R5 in the hand detection process. The color image 31 is shown in the upper left part of FIG. 8, and the range of pixels in the color image 31 corresponding to the third region R3 is hatched. In the above step S212, the second color condition is determined based on the color information of the pixels in the hatched range. When the second color condition is determined, a fifth region R5 in which the color of the corresponding pixels satisfies the second color condition is extracted from the second region R2 of the second mask image 62 shown in the lower left part of FIG. 8. In the second mask image 62 of FIG. 8, the extracted fifth region R5 is hatched. In the example shown in FIG. 8, the region of the hand 71, which has a color similar to that of the third region R3, is extracted as the fifth region R5 from the second region R2, and the region of the sleeve of the clothes, which has a color not similar to that of the third region R3, is not extracted as the fifth region R5. When the fifth region R5 is extracted, a fifth mask image 65 (the image in the lower right part of FIG. 8) is generated which corresponds to the logical sum of the third region R3 and the fourth region R4 of the fourth mask image 64 shown in the upper right part of FIG. 8 and the fifth region R5 of the second mask image 62. In the fifth mask image 65, a portion corresponding to the outer side of the little finger which was missing in the third region R3 and the fourth region R4 is added, and it can be seen that the hand region becomes closer to the region of the actual hand 71.
[0058] In Figure 8, the entire fifth region R5 is connected to the third region R3 and the fourth region R4 when overlapped with the third region R3 and the fourth region R4. However, if there is a portion of the fifth region R5 that is not connected to the third region R3 and the fourth region R4, the portion of the fifth region R5 that is connected to the third region R3 and the fourth region R4 may be added as a hand region. In addition, in FIG. 8, the entire fifth region R5 is shown as a continuous unit, but if the fifth region R5 is divided into multiple regions, only the region with the largest area among the multiple regions may be added to the third region R3 and the fourth region R4 to form the hand region.
[0059] In addition, when the fourth mask image 64 is not generated, the third mask image 63 is used instead of the fourth mask image 64 in FIG. 8. In this case, a fifth mask image 65 corresponding to the logical sum of the third region R3 of the third mask image 63 and the fifth region R5 of the second mask image 62 is generated. In addition, when the fifth region R5 has a part that is not connected to the third region R3, the part of the fifth region R5 that is connected to the third region R3 may be added as a hand region. In addition, when the fifth region R5 is divided into a plurality of regions, only the region with the largest area among the plurality of regions may be added to the hand region.
[0060] When step S214 in FIG. 5 is completed, when it is determined in step S206 that the third region R3 does not exist ("NO" in step S206), or when it is determined in step S213 that the fifth region does not exist ("NO" in step S213), the CPU 11 ends the hand detection process and returns the process to the device control process. At least one of the process of adding the fourth region R4 to the hand region in steps S209 to S211 and the process of adding the fifth region R5 to the hand region in steps S212 to S214 may be omitted.
[0061] Returning to FIG. 4, when the hand detection process (step S102) is completed, CPU 11 determines whether or not a mask image representing a hand region (hereinafter, referred to as a "hand region mask image") has been generated (step S103). Here, the hand region mask image is the one last generated in the hand detection process of FIG. 5 among the third mask image 63 to the fifth mask image 65. That is, the hand region mask image is the fifth mask image 65 when step S214 is executed, the fourth mask image 64 when step S211 is executed and step S214 is not executed, and the third mask image 63 when step S207 is executed and step S211 and step S214 are not executed.
[0062] When it is determined that a hand region mask image has been generated ("YES" in step S103), CPU 11 determines whether or not a gesture by hand 71 of operator 70 has been detected from a plurality of hand region mask images corresponding to different frames (step S104). Here, the plurality of hand region mask images are the above-mentioned predetermined number of hand region mask images generated based on color images 31 and depth images 41 captured during a period of a predetermined number of frames most recently. Note that, if the number of times the hand detection means in step S102 has been executed has not reached the above-mentioned predetermined number after the start of the device control process, the process may branch to "NO" in step S104. When a movement trajectory of the hand region across the multiple hand region mask images satisfies a predetermined condition for establishing a gesture, the CPU 11 determines that a gesture has been detected from the multiple hand region mask images.
[0063] When it is determined that a gesture has been detected from a plurality of hand region mask images ("YES" in step S104), CPU 11 transmits a control signal to projector 80 to perform an operation corresponding to the detected gesture (step S105). Having received the control signal, projector 80 performs an operation corresponding to the control signal.
[0064] When step S105 is completed, when it is determined in step S103 that a hand region mask has not been generated ("NO" in step S103), or when it is determined in step S104 that a gesture has not been detected from a plurality of hand region mask images ("NO" in step S104), the CPU 11 determines whether or not to end the acceptance of the gesture in the information processing system 1 (step S106). Here, the CPU 11 determines to end the acceptance of the gesture when, for example, an operation to turn off the power of the information processing device 10, the image capturing device 20, or the projector 80 has been performed.
[0065] If it is determined that the acceptance of the gesture is not to be ended ("NO" in step S106), the CPU 11 returns the process to step S102 and executes hand detection processing for detecting the hand 71 based on the color image 31 and the depth image 41 captured in the next frame period. The loop processing of steps S102 to S106 is repeatedly executed, for example, at the frame rate of the image capture by the color camera 30 and the depth camera 40 (i.e., every time the color image 31 and the depth image 41 are generated). Alternatively, the hand detection processing of step S102 may be repeatedly executed at the frame rate of the image capture, and steps S103 to S106 may be executed once every predetermined number of frame periods. When it is determined that the acceptance of the gesture is to be ended ("YES" in step S106), the CPU 11 ends the device control process.
[0066] <Effects> As described above, the information processing device 10 according to the present embodiment includes the CPU 11, and the CPU 11 acquires color information in the color image 31 and the depth image 41 obtained by photographing the operator 70 and depth information related to the depth of the operator 70, and detects the hand 71 as a detection target that is at least a part of the operator 70 included in the color image 31 and the depth image 41 based on the acquired color information and depth information. This makes it possible to complement and detect a part of the hand 71 that is difficult to detect from color information (for example, a dark part in the shadow or a part whose color has changed due to lighting) by using the depth information. Even if there is a part of the same color as the hand 71 in the background, by using the depth information in combination, it is possible to suppress the occurrence of a problem in which the part is erroneously detected as the hand 71. Therefore, the hand 71 can be detected with higher accuracy. As a result, a highly accurate gesture detection can be realized in a man-machine interface that enables non-contact and intuitive operation of a device. For example, by making it possible to accept a highly accurate gesture operation while the projector 80 is projecting an image Im, a display that enables non-contact operation can be realized.
[0067] Moreover, the images obtained by photographing the operator 70 are a plurality of images, and the plurality of images include a color image 31 including color information and a depth image 41 including depth information. According to this, the hand 71 can be detected using the color image 31 photographed by the color camera 30 and the depth image 41 photographed by the depth camera 40.
[0068] In addition, in an overlapping range 51 where the shooting range of the color image 31 and the shooting range of the depth image 41 overlap, the pixels of the color image 31 and the pixels of the depth image 41 are associated with each other, and the CPU 11 specifies a first region R1 in the color image 31 where the color information of the pixels satisfies a first color condition related to the color of the hand 71, specifies a second region R2 in the depth image 41 where the depth information of the pixels satisfies a first depth condition related to the depth of the hand 71, and detects a region in the overlapping range 51 including a third region R3 that overlaps both the region corresponding to the first region R1 and the region corresponding to the second region R2 as the hand 71. As a result, even if the first region R1 specified based on the color information includes a region (such as a face) other than the region of the hand 71 that has a similar color to the hand 71, the overlapping portion with the second region R2 specified based on the depth information can be extracted to accurately exclude the region other than the hand 71. Therefore, the hand 71 can be detected with higher accuracy.
[0069] Furthermore, the CPU 11 determines the first depth condition based on the depth information of the pixels corresponding to the first region R1 in the depth image 41. This makes it possible to specify the second region R2 with higher accuracy based on the first depth condition that reflects the actual depth of the hand 71 at the time of photographing.
[0070] Further, the CPU 11 determines the second depth condition based on the depth information of the pixels corresponding to the third region R3 in the depth image 41, specifies the fourth region R4 in the first region R1 in the color image 31 corresponding to the region in the depth image 41 in which the depth information of the pixels satisfies the second depth condition, and detects the region including the third region R3 and the region corresponding to the fourth region R4 in the color image 31 in the overlapping range 51 as the hand 71. According to this, by using the depth information of the third region R3 extracted as the hand region, it is possible to complement and detect the part of the first region R1 in the color image 31 that is the region of the hand 71 and is not included in the third region R3 with high accuracy. This makes it possible to complement and detect the part of the hand 71 that is difficult to detect from the color information (for example, a dark part in the shade or a part whose color has changed due to lighting). Therefore, it is possible to detect the hand 71 with higher accuracy.
[0071] The second depth condition is that the pixel depth is within a predetermined range including a representative value of the pixel depth corresponding to the third region R3. By using such a second depth condition, the depth range including the hand 71 can be specified with higher accuracy.
[0072] Moreover, the CPU 11 determines the width of the above-mentioned predetermined range based on the size of the area corresponding to the third area R3 in the depth image 41. This makes it possible to appropriately determine the second depth condition according to the size of the photographed hand 71.
[0073] Furthermore, CPU 11 detects, within overlapping range 51, a region including third region R3 and a portion of a region corresponding to fourth region R4 that is continuous with third region R3, as hand 71. This makes it possible to more reliably exclude regions other than hand 71 from fourth region R4.
[0074] Further, the CPU 11 determines a second color condition based on color information of pixels corresponding to the third region R3 in the color image 31, specifies a fifth region R5 in the second region R2 in the depth image 41 that corresponds to a region in the color image 31 where the color information of the pixels satisfies the second color condition, and detects a region in the overlapping range 51 that includes the third region R3 and a region corresponding to the fifth region R5 in the depth image 41 as the hand 71. According to this, by using the color information of the third region R3 extracted as the hand region, it is possible to complement and detect a portion of the second region R2 in the depth image 41 that is the region of the hand 71 and is not included in the third region R3 with high accuracy. Therefore, it is possible to detect the hand 71 with higher accuracy.
[0075] Furthermore, CPU 11 detects, within overlapping range 51, a region including third region R3 and a portion of a region corresponding to fifth region R5 that is continuous with third region R3, as hand 71. This makes it possible to more reliably exclude regions other than hand 71 from fifth region R5.
[0076] Moreover, the information processing method according to the present embodiment is an information processing method executed by the CPU 11 as a computer of the information processing device 10, and acquires color information and depth information related to the depth of the operator 70 in the color image 31 and the depth image 41 obtained by photographing the operator 70, and detects a hand 71 as a detection target that is at least a part of the operator 70 included in the color image 31 and the depth image 41 based on the acquired color information and depth information. According to such a method, the hand 71 can be detected with higher accuracy. Therefore, highly accurate gesture detection can be realized in a man-machine interface that enables non-contact and intuitive operation of a device.
[0077] Moreover, the program 131 according to the present embodiment causes the CPU 11 as the computer of the information processing device 10 to execute a process of acquiring color information in the color image 31 and the depth image 41 obtained by photographing the operator 70 and depth information related to the depth of the operator 70, and a process of detecting a hand 71 as a detection target that is at least a part of the operator 70 included in the color image 31 and the depth image 41 based on the acquired color information and depth information. By causing the CPU 11 to perform processing according to such a program 131, it is possible to detect the hand 71 with higher accuracy. Therefore, it is possible to realize highly accurate gesture detection in a man-machine interface that enables non-contact and intuitive operation of a device.
[0078] <Other> The description of the above embodiment is merely an example of the information processing device, the information processing method, and the program according to the present invention, and the present invention is not limited to this. For example, in the above embodiment, the information processing device 10, the image capturing device 20, and the projector 80 (devices to be operated by gestures) are separate devices, but the present invention is not limited to this. For example, the information processing device 10 and the photographing device 20 may be integrated. As one example, the color camera 30 and the depth camera 40 of the photographing device 20 may be incorporated in the bezel of the display unit 15 of the information processing device 10. Furthermore, the information processing device 10 and the device to be operated may be integrated. For example, the functions of the information processing device 10 may be incorporated into the projector 80 in the above embodiment, and the processing executed by the information processing device 10 may be executed by a CPU (not shown) of the projector 80. In this case, the projector 80 corresponds to the "information processing device", and the CPU of the projector 80 corresponds to the "processing unit". Furthermore, the image capturing device 20 and the device to be operated may be integrated together. For example, the color camera 30 and the depth camera 40 of the image capturing device 20 may be incorporated into the housing of the projector 80 in the above embodiment. In addition, the information processing device 10, the photographing device 20, and the device to be operated may all be integrated together. For example, in a mode in which the color camera 30 and the depth camera 40 are incorporated in the bezel of the display unit 15 of the information processing device 10 as the device to be operated, the operation of the information processing device 10 may be controlled by gestures of the hand 71 of the operator 70.
[0079] In addition, the operator 70 is exemplified as the subject, and the hand 71 is exemplified as the detection target that is at least a part of the subject, but the present invention is not limited thereto. For example, the detection target may be a part of the operator 70 (such as an arm or head) other than the hand 71, and gestures may be made using these parts. Furthermore, the entire subject may be the detection target. Furthermore, the subject is not limited to a person, but may be a robot, an animal, etc. In these cases, if the color of the detection target making the gesture among the robot, the animal, etc. is predetermined, the detection target can be detected by the method of the above embodiment.
[0080] In the above embodiment, an area in the hand area mask image (any of the third mask image 63 to the fifth mask image 65) with a pixel value of "1" is detected as the hand 71, but this is not limiting, and an area including at least an area with a pixel value of "1" may be detected as the hand 71. For example, the hand area may be further complemented by a known method.
[0081] In the above embodiment, the "image obtained by photographing a subject" is described as the color image 31 and the depth image 41, but the present invention is not limited to this. For example, if each pixel in an image contains color information and depth information, the "image obtained by photographing a subject" may be the image.
[0082] In the above description, an example has been disclosed in which the HDD or SSD of the storage unit 13 is used as a computer-readable medium for the program according to the present invention, but the present invention is not limited to this example. As other computer-readable media, information recording media such as flash memory and CD-ROM can be applied. In addition, a carrier wave can also be applied to the present invention as a medium for providing data of the program according to the present invention via a communication line.
[0083] Furthermore, the detailed configurations and operations of the components of the information processing device 10, the image capturing device 20, and the projector 80 in the above embodiment may of course be modified as appropriate without departing from the spirit of the present invention.
[0084] Although the embodiments of the present invention have been described, the scope of the present invention is not limited to the above-described embodiments, but includes the scope of the invention described in the claims and its equivalents. The inventions described in the claims originally attached to this application are set forth below. The claim numbers in the appended claims are the same as those in the claims originally attached to this application. [Additional Notes] <Claim 1> acquiring color information in an image obtained by photographing a subject and depth information relating to the depth of the subject; detecting a detection target that is at least a part of the subject included in the image based on the acquired color information and depth information; An information processing device comprising a processing unit. <Claim 2> the image is a plurality of images, The plurality of images include a color image including the color information and a depth image including the depth information. The information processing device according to claim 1. <Claim 3> In an overlapping range where the imaging range of the color image and the imaging range of the depth image overlap, pixels of the color image correspond to pixels of the depth image, The processing unit includes: identifying a first region in the color image in which color information of pixels satisfies a first color condition related to the color of the detection target; Identifying a second region in the depth image in which pixel depth information satisfies a first depth condition related to the depth of the detection object; a region including a third region that overlaps both the region corresponding to the first region and the region corresponding to the second region is detected as the detection target within the overlapping range; 3. The information processing device according to claim 2. <Claim 4> The information processing device according to claim 3 , wherein the processing unit determines the first depth condition based on depth information of a pixel in the depth image that corresponds to the first region. <Claim 5> The processing unit includes: determining a second depth condition based on depth information of a pixel corresponding to the third region in the depth image; Identifying a fourth region of the first region of the color image, the fourth region corresponding to a region in the depth image where pixel depth information satisfies the second depth condition; detecting, as the detection target, an area of the overlapping range that includes the third area and an area corresponding to the fourth area of the color image; The information processing device according to claim 3. <Claim 6> The information processing device according to claim 5 , wherein the second depth condition is that the depth of a pixel is within a predetermined range including a representative value of the depth of pixels corresponding to the third region. <Claim 7> The information processing device according to claim 6 , wherein the processing unit determines a width of the predetermined range based on a size of a region in the depth image that corresponds to the third region. <Claim 8> The information processing device according to claim 5, wherein the processing unit detects, as the detection target, a region within the overlapping range that includes the third region and a portion of a region corresponding to the fourth region that is continuous with the third region. <Claim 9> The processing unit includes: determining a second color condition based on color information of a pixel in the color image corresponding to the third region; Identifying a fifth region of the second region of the depth image, the fifth region corresponding to a region in the color image where pixel color information satisfies the second color condition; detecting, as the detection target, a region in the overlapping range that includes the third region and a region corresponding to the fifth region in the depth image; 9. The information processing device according to claim 3. <Claim 10> the processing unit detects, as the detection target, a region in the overlapping range that includes the third region and a portion of a region corresponding to the fifth region that is continuous with the third region. The information processing device according to claim 9. <Claim 11> An information processing method executed by a computer of an information processing device, comprising: acquiring color information in an image obtained by photographing a subject and depth information relating to the depth of the subject; detecting a detection target that is at least a part of the subject included in the image based on the acquired color information and depth information; Information processing methods. <Claim 12> The computer of the information processing device A process of acquiring color information in an image obtained by photographing a subject and depth information relating to the depth of the subject; A process of detecting a detection target that is at least a part of the subject included in the image based on the acquired color information and depth information; A program that executes the following. [Explanation of symbols]
[0085] 1. Information Processing Systems 10. Information processing device 11 CPU (one or more processing units) 12 RAM 13 Storage section 131 Programs 132 Color Image Data 133 Depth image data 134 Mask image data 14 Control section 15 Display section 16 Communications Department 17 Bus 20 Imaging Equipment 30 Color Camera 31 Color Images 40 Depth Camera 41 Depth image 51 Overlapped range 61 First mask image 62 2nd mask image 63 3rd mask image 64 4th mask image 65 5th mask image 70 Operator (subject to be photographed) 71 Hands (detection target) 80 Projector Im Images
Claims
1. A subject is photographed to obtain a plurality of color images including color information and a plurality of depth images including depth information; a processing unit that detects a detection target that is at least a part of the subject included in the image based on the acquired color information and depth information, In an overlapping range where the imaging range of the color image and the imaging range of the depth image overlap, pixels of the color image correspond to pixels of the depth image, The processing unit includes: identifying a first region in the color image in which color information of pixels satisfies a first color condition related to the color of the detection target; Identifying a second region in the depth image in which pixel depth information satisfies a first depth condition related to the depth of the detection target; identifying a region including a third region that overlaps both the region corresponding to the first region and the region corresponding to the second region within the overlapping range; determining a second depth condition based on depth information of a pixel corresponding to the third region in the depth image; Identifying a fourth region of the first region of the color image, the fourth region corresponding to a region in the depth image where pixel depth information satisfies the second depth condition; a region including the third region and a region corresponding to the fourth region of the color image in the overlapping range is detected as the detection target; Information processing device.
2. The information processing device according to claim 1 , wherein the processing unit determines the first depth condition based on depth information of a pixel in the depth image that corresponds to the first region.
3. The information processing device according to claim 1 , wherein the second depth condition is that the depth of a pixel is within a predetermined range including a representative value of the depth of pixels corresponding to the third region.
4. The information processing device according to claim 3 , wherein the processing unit determines a width of the predetermined range based on a size of a region in the depth image that corresponds to the third region.
5. the processing unit detects, as the detection target, a region including the third region and a portion of a region corresponding to the fourth region that is continuous with the third region within the overlapping range. The information processing device according to claim 1 .
6. The processing unit includes: determining a second color condition based on color information of a pixel in the color image corresponding to the third region; Identifying a fifth region of the second region of the depth image, the fifth region corresponding to a region in the color image in which color information of pixels satisfies the second color condition; detecting, as the detection target, a region in the overlapping range that includes the third region and a region corresponding to the fifth region of the depth image; The information processing device according to any one of claims 1 to 5.
7. the processing unit detects, as the detection target, a region including the third region and a portion of a region corresponding to the fifth region that is continuous with the third region within the overlapping range. The information processing device according to claim 6.
8. An information processing method executed by a computer of an information processing device, comprising: A subject is photographed to obtain a plurality of color images including color information and a plurality of depth images including depth information; Based on the acquired color information and depth information, a small amount of the object included in the image is detected. A detection step of detecting at least a part of a detection target, In an overlapping range where the imaging range of the color image and the imaging range of the depth image overlap, pixels of the color image correspond to pixels of the depth image, In the detection step, identifying a first region in the color image in which color information of pixels satisfies a first color condition related to the color of the detection target; Identifying a second region in the depth image in which pixel depth information satisfies a first depth condition related to the depth of the detection target; identifying a region including a third region that overlaps both the region corresponding to the first region and the region corresponding to the second region within the overlapping range; determining a second depth condition based on depth information of a pixel corresponding to the third region in the depth image; Identifying a fourth region of the first region of the color image, the fourth region corresponding to a region in the depth image where pixel depth information satisfies the second depth condition; a region including the third region and a region corresponding to the fourth region of the color image in the overlapping range is detected as the detection target; Information processing methods.
9. The computer of the information processing device A process of photographing a subject to obtain a plurality of color images including color information and a plurality of depth images including depth information; Based on the acquired color information and depth information, a small amount of the object included in the image is detected. A detection process for detecting at least a part of a detection target, In an overlapping range where the imaging range of the color image and the imaging range of the depth image overlap, pixels of the color image correspond to pixels of the depth image, In the detection process, identifying a first region in the color image in which color information of pixels satisfies a first color condition related to the color of the detection target; Identifying a second region in the depth image in which pixel depth information satisfies a first depth condition related to the depth of the detection target; identifying a region including a third region that overlaps both the region corresponding to the first region and the region corresponding to the second region within the overlapping range; determining a second depth condition based on depth information of a pixel corresponding to the third region in the depth image; Identifying a fourth region of the first region of the color image, the fourth region corresponding to a region in the depth image where pixel depth information satisfies the second depth condition; a program for detecting, as the detection target, an area of the overlapping range that includes the third area and an area corresponding to the fourth area of the color image.
Citation Information
Patent Citations
Hand and object interactive segmentation method and device based on depth camera
CN109272513A
Method and system for mouse alternatve operation for projector image
JP2008250482A
Information processing apparatus and method
JP2011175347A
Movement information processing device and method
JP2015042241A
Information processor, information processing method, and program
JP2017084319A
