Image processing device, system of image processing device, control method of image processing device, and program

The image processing apparatus accurately separates the user's hand and attached devices by setting a third region where CG is not superimposed, addressing the challenge of incorrect superimposition and maintaining immersion in mixed reality experiences.

JP2024148296AInactive Publication Date: 2024-10-18CANON KK
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2023061310
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-04-05
Publication Date
2024-10-18
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing image processing systems struggle to accurately extract and separate the user's hand and attached devices of different colors, leading to incorrect superimposition of virtual objects, which affects the sense of immersion in mixed reality experiences.

Method used

An image processing apparatus that includes an acquisition unit to acquire images, a first area detection for user's hand color range, a second area detection for device color range, and a determination unit to set a third region where CG is not superimposed by ensuring the distance between the hand and device areas is within a predetermined number of pixels.

Benefits of technology

Effectively extracts the user's hand and attached devices, ensuring correct superimposition of virtual objects, thereby maintaining the sense of immersion in mixed reality environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024148296000001_ABST
    Figure 2024148296000001_ABST
Patent Text Reader

Abstract

To provide an image processing device which extracts a hand and a device to set a region on which a CG is not superimposed, even when attaching the device having a color different from that of the hand to the hand or grasping the device by the hand.SOLUTION: An image processing device comprises: acquisition means which acquires an image; first region detection means which detects a first region which has a pixel of color included in a first color range including the color of a predetermined portion of a user, from the image; second region detection means which detects a second region which has a pixel of color included in a second color range including color of an operation unit from the image; determination means which determines the second region as a third region, when distance between the first region and the second region is within a predetermined pixel number; and extraction means which extracts the first region and the third region.SELECTED DRAWING: Figure 7
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a technique for processing captured images. [Background technology]

[0002] There is a technology called Mixed Reality (MR) that presents computer graphics (hereinafter referred to as CG) over a real-life landscape as a background, allowing the user to experience as if a virtual object were actually present in the place. To realize a richly immersive experience using this MR technology, it is important to not simply overlay and display CG on the real-life landscape, but to have the user actually interact with a virtual object (hereinafter simply referred to as a virtual object) that is drawn by CG. To realize such an interaction, it is necessary to display the user's hand (hereinafter referred to as a subject) that operates the virtual object in front of the virtual object (foreground). This is because if the subject that should be in front of the virtual object is hidden by the virtual object, a problem occurs in the sense of distance to the virtual object, and the sense of immersion is lost. For example, the front-to-back relationship between the subject and the virtual object can be expressed by extracting the area of ​​the subject that should be in front of the virtual object, cutting it out from the CG, and overlaying it.

[0003] Patent Document 1 discloses a technique for reducing loss of an object or erroneous detection even when a shadow is cast on the object, such as a hand. [Prior art documents] [Patent documents]

[0004] [Patent Document 1] Patent Publication No. 2021-93049 Summary of the Invention [Problem to be solved by the invention]

[0005] However, when a device of a different color from the hand is worn or held in the hand, there is a possibility that the hand and the device will not be extracted as subjects. Therefore, an object of the present invention is to provide an image processing device that extracts the hand and the device and sets an area where CG is not superimposed, even when a device of a different color from the hand is worn or held in the hand. [Means for solving the problem]

[0006] One aspect of the present invention is an image processing device comprising: an acquisition means for acquiring an image; a first area detection means for detecting from the image a first area having pixels of a color included in a first color range including the color of a specified part of a user; a second area detection means for detecting from the image a second area having pixels of a color included in a second color range including the color of an operating unit; a determination means for determining the second area as a third area if the distance between the first area and the second area is within a specified number of pixels; and an extraction means for extracting the first area and the third area. Effect of the Invention

[0007] According to the present invention, it is possible to provide an image processing device that extracts the hand and device and sets an area where CG is not superimposed, even if the hand is worn or held by a device of a different color from the hand. [Brief description of the drawings]

[0008] [Figure 1] FIG. 1 is a diagram for explaining an image processing system according to a first embodiment and an external view of a head mounted display according to the first embodiment. [Diagram 2] 1A and 1B are a functional block diagram showing a functional configuration of an image processing apparatus according to a first embodiment and a diagram showing an example of a hardware configuration of the image processing apparatus according to the first embodiment. [Diagram 3] 1 is an example of a captured image according to the first embodiment (a state in which a user wears the device on his / her hand). [Figure 4] FIG. 2 is an explanatory diagram of an image obtained by carrying out a first masking step according to the first embodiment. [Diagram 5] FIG. 2 is an explanatory diagram of an image obtained by carrying out a first masking means and a second masking means according to the first embodiment. [Figure 6] FIG. 13 is an explanatory diagram of an image in which the first masking means and the second masking means according to the first embodiment have been applied, in which an object 800 is not extracted. [Figure 7] FIG. 4 is a diagram showing a control flow of a first masking means and a second masking means according to the first embodiment. [Figure 8] FIG. 11 is an explanatory diagram of an image obtained by carrying out a second masking step according to the first embodiment. [Figure 9] FIG. 4 is an explanatory diagram of a filter that checks the colors of adjacent pixels according to the first embodiment. [Figure 10] FIG. 2 is an explanatory diagram of a proximity investigation region according to the first embodiment. [Figure 11] 1 is an example of a captured image according to the first embodiment (a state in which a user wears the device on his / her hand). [Figure 12] FIG. 2 is an explanatory diagram of an image obtained by carrying out a first masking means and a second masking means according to the first embodiment. [Figure 13] 1 is an example of a captured image according to the first embodiment (a state in which a user wears the device on his / her hand). [Figure 14] FIG. 11 is a diagram showing a control flow of a first mask means and a second mask means according to another embodiment. [Figure 15] FIG. 11 is a diagram showing a control flow of a first mask means and a second mask means according to another embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0009] Hereinafter, the embodiments will be described in detail with reference to the attached drawings. Note that the following embodiments do not limit the invention according to the claims. Although the embodiments describe a number of features, not all of these features are essential to the invention, and the features may be combined in any manner. Furthermore, in the attached drawings, the same reference numbers are used for the same or similar configurations, and duplicated descriptions are omitted.

[0010] (Embodiment 1) 1(A), an image processing system 1 according to embodiment 1 will be described. The image processing system 1 includes an HMD (head mounted display) 100, a PC (personal computer) 110, and a controller 120.

[0011] The HMD 100 is a head-mounted display device (electronic device) that is worn on the head of a user. The HMD 100 displays a composite image that combines a captured image of the area in front of the user captured by the HMD 100 with content such as CG (computer graphics) in a form that corresponds to the posture of the HMD 100.

[0012] The PC 110 controls the HMD 100. The PC 110 is connected to the HMD 100 via a wired connection 210 such as a USB cable, or wirelessly such as Bluetooth (registered trademark) or Wi-Fi (Wireless Fidelity) (registered trademark). The PC 110 generates a composite image by combining a captured image with CG, and transmits the composite image to the HMD 100. Note that, although a PC is described here as an example of an image processing device, the image processing device is not limited to this. For example, the image processing device may be a smartphone or a tablet terminal, and each component of the PC 110 may be included in the HMD 100.

[0013] The controller 120 is an operation unit that performs various controls of the HMD 100. If the PC 110 is in a specific control mode, when a user operates the controller 120, the HMD 100 is controlled in response to the user's operation. As shown in FIG. 1, the controller 120 may be in the shape of a finger ring that can be supported or worn by the user, or in the shape of a handheld type that can be held in the hand. The controller 120 is also an operation unit that has physical buttons 121 that perform a decision operation or a selection operation on a display. The controller 120 performs wireless communication with the PC 110 via Bluetooth.

[0014] The user can perform a menu decision operation or selection operation by pressing the button 121. Although the controller 120 has been described as being ring-shaped or handheld, the shape is not limited to this as long as it can be supported by a finger, hand, or arm. Although the buttons have been described as being physical buttons, they may be operable in the manner of a trackpad, touch panel, wheel, or trackball, and may be operated by a slide operation, a flick operation, or a touch-on operation in addition to pressing a button. Although the controller has been described as having one button, it may have multiple buttons.

[0015] The controller may be attached to at least one of a finger, a hand, and an arm.

[0016] FIG. 1B shows an HMD 100, which is an example of the video see-through means according to the first embodiment. The HMD 100 includes a mounting system 200 and an imaging unit 101. The user can observe an image of the HMD 100 by mounting the mounting system 200 on the head. The HMD 100 is a video see-through HMD that displays an image in which CG or the like is superimposed on a real image in front of the user's eyes captured by the imaging unit 101, using a display system (not shown). The user can experience a mixed reality through the HMD. The user may be able to experience AR (Augmented Reality) by observing an image in which the real world is augmented by CG or the like. The HMD 100 is connected to a wired connection 210 such as a USB cable, and is connected to a PC 110. The HMD 100 may have a wireless function and be realized in cooperation with separate hardware. The image processing executed by the synthesis unit that superimposes CG or the like on the captured real image and the masking means that sets the area where CG is not superimposed may be realized by the HMD 100 or by separate hardware connected by cable 210. When superimposing another image on a background image in CG drawing processing or the like, the process of protecting the area where the background is to be transparent from being painted over is called mask processing or masking. Here, the means that performs the mask processing is called the masking means.

[0017] FIG. 2(A) is a functional block diagram showing the functional configuration of a PC 110 which is an application example of an image processing device according to the first embodiment of the present invention, and FIG. 2(B) is a diagram showing an example of the hardware configuration of the PC 110 of this embodiment.

[0018] Hereinafter, a functional configuration of a PC (personal computer) 110 according to the first embodiment will be described with reference to Fig. 2(A). An imaging unit 101, an input unit 102, and a display unit 103 are connected to the PC 110 of this embodiment, which constitute a system that presents mixed reality.

[0019] The imaging unit 101 is an imaging device such as a video camera or a video camera mounted on a video see-through type HMD.

[0020] The input unit 102 is configured in the controller 120 of the HMD, and acquires instructions from a user. The input unit 102 may be a mouse or a keyboard, and may acquire instructions from a user such as a system operator. The input unit 102 may be a controller that is held in the hand and used, or may be a controller that is worn on the finger or arm and used.

[0021] The display unit 103 is a display of an HMD or a PC, and displays images for presenting mixed reality, images of a GUI (Graphical User Interface), and the like.

[0022] The PC 110 is configured to include an image acquisition unit 111, a memory unit 112, a mask area setting unit 113, a color extraction unit 114, a color registration unit 115, a subject color determination unit 116, a controller color determination unit 117, a synthesis unit 118, and an output unit 119.

[0023] The image acquisition unit 111 acquires captured images for each frame of a moving image from the imaging unit 101 .

[0024] The storage unit 112 stores data such as object data (CG) in a virtual space generated by a CG generation unit (not shown), captured images acquired by the image acquisition unit 111, and data such as the color range of the subject and the color range of the controller input from the color registration unit 115. In this embodiment, the color range of the subject is the first color range, and the color range of the controller is the second color range.

[0025] The mask area setting unit 113 acquires captured image data from the storage unit 112. When a user inputs an instruction to specify a range for a subject and a controller included in the captured image via the input unit 102, the mask area setting unit 113 sets an image area of ​​the specified range as a color extraction area.

[0026] The color extraction unit 114 extracts color information of pixels in the color extraction region set by the mask region setting unit 113. Here, in this embodiment, the color information is information in a color space that can be divided into a luminance component (brightness component) and a color difference component (color component), such as so-called YCbCr or L*a*b*, but is not limited to this in this embodiment.

[0027] The color registration unit 115 sets the color range of the subject (first color range) from the color information input from the color extraction unit 114, sets the color range of the controller (second color range), and stores them in the storage unit 112 as information on the registered color range. For example, if the subject is a hand, a color range (skin color range) corresponding to the skin color of the hand is registered as the color range of the subject. In addition, a color range corresponding to the exterior of the controller (second color range) is registered. Note that the color range in this embodiment is not limited to a color range such as skin color, and a fixed value that is not linked to the color information of the subject may be used. Note that the color range does not have to be the color range corresponding to the exterior of the controller, but may be the color range of a cover that covers the controller, or may be the color range of a part of the controller's parts. Note that the color of the controller may be a chromatic color that is assumed to be unlikely to be included in the background part of the image, and in that case, a unique effect of speeding up the mask processing is achieved. Note that, when the saturation range of the chromatic color is expressed as 0 to 1, it is preferable that the saturation of the chromatic color is 0.4 or more. In addition, although the color registration is performed by the user, the color based on which the second mask area 620 is set may be set by the user in the system according to the color of the device used by the user. Furthermore, in order to reduce the effort of registering in the system, the color based on which the second mask area is set may be registered in advance in the system.

[0028] The subject color determination unit 116 acquires data on the captured image and the color range of the subject from the storage unit 112, and determines whether or not a pixel of interest in the captured image is a pixel of a color included in the color range of the subject. If the subject color determination unit 116 determines that the pixel of interest is a pixel of a color included in the color range of the subject, it determines that the pixel of interest is a pixel of an image constituting the subject. The subject color determination unit extracts an image region consisting of the pixels constituting the subject as a first region (first mask region), i.e., a subject region. That is, region detection is performed for the first mask region. The subject is a specific part of the user, and examples of the user's hand, finger, arm, etc. in the image.

[0029] The controller color determination unit 117 acquires data on the captured image and the color range of the controller from the storage unit 112, and determines whether or not a pixel of interest in the captured image is a pixel of a color included in the color range of the controller. If the controller color determination unit 117 determines that the pixel of interest is a pixel of a color included in the color range of the controller, it determines an image area consisting of each pixel included in the color range of the controller as a second mask area. The controller color determination unit 117 also counts the number of second mask areas. Furthermore, the controller color determination unit 117 determines whether the distance between the second mask area and the first mask area is within a predetermined number of pixels. If the controller color determination unit 117 determines that the distance between the second mask area and the first mask area is within a predetermined number of pixels, it extracts the second mask area as an area where CG is not superimposed, that is, a third area (third mask area). That is, area detection is performed as the second mask area. If there are multiple areas that are determined to be second mask areas, the controller color determination unit 117 determines whether the distance between the second mask area and the first mask area is within a predetermined number of pixels for each area, and repeats the same process as described above. This makes it possible to extract the image area corresponding to the controller from the areas determined to be second mask areas.

[0030] The synthesis unit 118 synthesizes the captured image by superimposing an extraction area obtained by performing a color range determination process and a mask area determination process by the subject color determination unit 116 and the controller color determination unit 117 on the CG image input from the storage unit 112. Here, the extraction area corresponds to the first area and the third area. The synthesis unit 118 also changes the shape and position of the CG image according to the shape and position of the subject and the controller, that is, sets an area where the CG image is not superimposed. Then, data of the synthesis image output from the synthesis unit 118 is sent to the display unit 103 via the output unit 119. This allows the user to view a realistic mixed reality image without missing parts in the subject and the controller. In this embodiment, the synthesis unit 118 also has a function of generating a GUI image, which will be described later.

[0031] FIG. 2B is a diagram showing an example of the hardware configuration of the PC 110 of this embodiment.

[0032] In Fig. 2(B), the control unit 151 is a CPU that performs overall control of each device connected via the bus 150. The control unit 151 reads out and executes processing steps and programs stored in a ROM 152 that is a read-only memory. Note that instead of the control unit 151 controlling the entire device, the entire device may be controlled by a plurality of hardware devices sharing the processing. The ROM 152 stores an operating system (OS), each processing program according to this embodiment, device drivers, etc., which are temporarily stored in a RAM 153 that is a random access memory, and are executed by the control unit 151 as appropriate.

[0033] The I / F 155 is an interface unit for outputting each image, such as a captured image, a mixed reality image, and a GUI image, to the display unit 103 described above.

[0034] The I / F 156 is an interface unit to which the captured image from the imaging unit 101 described above is input.

[0035] The I / F 157 is an interface unit to which user instructions and the like are input from the above-mentioned input unit 102 .

[0036] Storage medium 154 is a storage medium built into PC 110. In PC 110 of this embodiment, the medium for storing data in storage unit 112 described above may be included in storage medium 154. Note that storage medium 154 does not need to be built in, and may be external.

[0037] Each functional unit of the PC 110 shown in Fig. 2(A) is realized by the control unit 151 in the hardware configuration shown in Fig. 2(B) expanding a program stored in the ROM 152 into the RAM 153 and executing the processing according to the flowchart in Fig. 2. Also, for example, when configuring hardware as an alternative to software processing using the control unit 151, it is sufficient to configure a calculation unit and a circuit corresponding to the processing of each functional unit described in this embodiment.

[0038] 3 is an example of an image captured by imaging unit 101, and assumes a case in which a user's hand 400 is wearing controller 120 of a different color from hand 400. Also assumes a case in which an object 800 of a color that is determined to be within the same color range as the color of controller 120 is placed.

[0039] The controller 120 has an input unit 102 and may be responsible for an interaction function when the user experiences mixed reality. The controller 120 may be worn on the user's hand 400 or may be held by the user's hand 400.

[0040] Next, a method for setting an area where a CG image is not to be superimposed will be described. In the following description, the means for setting an area where a CG image is not to be superimposed will be described as a masking means. In the first embodiment, the masking means is composed of a first masking means and a second masking means.

[0041] FIG. 4 is an image obtained by performing the first masking process on the captured image shown in FIG. 3. That is, it is assumed that an area consisting of colors in a color range including the color of the user's hand 400 is extracted as an area where CG is not superimposed. The first masking process sets a first masking area 610, which is an area where CG is not superimposed, that is, an area where CG is cut out, based on the color of the user's hand 400 acquired in the captured image. The black part in FIG. 4 is an area where CG is drawn if there is CG to be superimposed by the CG synthesis means, and the white part in FIG. 4 is an area where CG is not superimposed even if there is CG to be superimposed by the CG synthesis means, and the captured image is displayed as it is. The similar white and black parts shown in the figures described later are also similar. The first masking area 610 does not include the area where the controller 120 is attached. That is, since the controller 120 cannot be extracted as a masking area, CG is drawn in the area of ​​the controller 120, and the front-to-back relationship between the subject and the CG cannot be expressed.

[0042] FIG. 5 is an image obtained by performing the first masking means and the second masking means on the captured image shown in FIG. 3. That is, it is assumed that an area consisting of a color range including the color of the user's hand 400 and an area consisting of a color range including the color of the controller 120 are extracted as areas where CG is not superimposed. The second masking means sets a second masking area in which the CG to be superimposed is not drawn based on the color of a device different from the color of the hand acquired in the captured image. Due to the existence of the second masking area 620, the hand 400 of the user wearing the controller 120 can be correctly extracted, but the object 800 is unnecessarily included in the second masking area 620. Therefore, even if the CG is superimposed by the CG synthesis means, the anteroposterior relationship between the real image and the CG image is not correctly expressed. That is, it is not possible to correctly set an area where CG is not superimposed by extracting only the shape of the hand 400 of the user wearing the controller 120.

[0043] FIG. 6 is an image obtained by performing the first masking means and the second masking means on the captured image shown in FIG. 3, but assumes a case where the object 800 is not extracted. That is, assumes a case where a region consisting of a color range including the color of the user's hand 400 and a region corresponding to the controller 120 among the regions consisting of a color range including the color of the controller 120 are extracted as regions where CG is not superimposed. Here, the first masking means is performed in the same manner as described above. In addition, the second masking means sets the second mask region in which the distance between the first mask region 610 and the second mask region 620 is determined to be within a predetermined number of pixels as the third mask region to be extracted. In FIG. 6, in addition to the hand 400 of the user wearing the controller 120 being correctly extracted, the object 800 is not included in the second mask region 620. That is, the shape of the hand 400 of the user wearing the controller 120 is correctly extracted and the region where CG is not superimposed can be correctly set.

[0044] Next, the control flow of this embodiment will be described with reference to Fig. 7. The control flow shown in Fig. 7 is processed within the control unit 151 which performs processing such as compositing the camera image with CG.

[0045] The processing of this flowchart is realized by the control unit 151 reading a predetermined program from memory, developing it in a volatile memory, and executing it.

[0046] In step S701, the control unit 151 determines whether the acquired captured image includes a second mask area 620, which is an area having pixels included in a predetermined color range including the color of the controller 120. If the control unit 151 determines that the second mask area 620 is included, the process proceeds to step S703, and if the control unit 151 determines that the second mask area 620 is not included, the process proceeds to step S702.

[0047] In step S702, the control unit 151 extracts a first mask area, which is an area consisting of pixels falling within a predetermined color range including the color of the subject, the user's hand, as an area where CG is not superimposed, and ends the mask determination, i.e., ends this control.

[0048] Next, in step S703, the control unit 151 counts the number of independent second mask regions 620 in the captured image obtained. The control unit 151 sets the result of counting the number of independent second mask regions 620 as N_MAX, and proceeds to step S704. For example, in FIG. 3, the controller 120 and the object 800 are counted as two independent second mask regions. For example, in FIG. 11, the controller 120 and the object 800 overlap in the image, so they are counted as one second mask region. Note that when there are multiple second mask regions, numbers may be assigned to the independent second mask regions 620 in any order.

[0049] In step S704, control unit 151 assigns 1 to variable N, and proceeds to step S705.

[0050] In step S705, the control unit 151 determines whether the distance between the Nth second mask region and the first mask region 610 is within a predetermined number of pixels. If the control unit 151 determines that the distance between the Nth second mask region and the first mask region 610 is within the predetermined number of pixels, the process proceeds to step S706. If the control unit 151 determines that the distance between the Nth second mask region and the first mask region 610 is not within the predetermined number of pixels, the process proceeds to step S707.

[0051] In step S707, the control unit 151 invalidates the Nth second mask region, that is, if the Nth second mask region is a region on which CG is to be superimposed, the control unit 151 sets the region on which CG is to be superimposed. After that, the control unit 151 proceeds to step S706.

[0052] In step S706, the control unit 151 determines whether N=N_MAX. That is, the control unit 151 determines whether the variable N is the same as N_MAX counted in step S703. If the control unit 151 determines that N=N_MAX is not true, the control unit 151 proceeds to step S708, and if the control unit 151 determines that N=N_MAX is true, the control unit 151 proceeds to step S709.

[0053] In step S708, the control unit 151 performs a process of N=N+1, and proceeds to step S705. Also, in step S706, the process is repeated until it is determined that N=N_MAX. For example, if the variable N is 1 and N_MAX counted in step S703 is 2, in step S708, the control unit 151 sets the variable N to 2 by the process of N=N+1, and proceeds to step S705.

[0054] In step S709, control unit 151 extracts first mask area 610 and non-invalid second mask area, sets them as areas where CG is not superimposed, i.e., areas where CG is cut out, and completes the process. This flowchart makes it possible to obtain an image as shown in Fig. 6, in which the shape of user's hand 400 wearing controller 120 is correctly extracted and an area where CG is not superimposed is correctly set.

[0055] The above describes a flowchart in which the second mask area 620 is invalidated when it is not close to the first mask area 610 by a predetermined number of pixels or less, and the first mask area 610 is masked by the second mask area 620 that is not invalidated. That is, the flowchart in which the second mask area is set as an area where CG is not superimposed when the distance between the second mask area and the first mask area 610 is within a predetermined number of pixels has been described. However, the specific method is not limited to this as long as the second mask area 620 is invalidated when it is not close to the first mask area 610 by a predetermined number of pixels or less. In addition, the flowchart is a flowchart in which the second mask area 620 to be invalidated by the proximity determination after the second mask area 620 is set, but the proximity determination with the first mask area 610 may be performed before the second mask area 620 is set. The former is a process for checking whether there are any second mask areas 620 that will become invalid due to proximity determination among all second mask areas 620 that have been set as valid, while the latter is a process for not setting second mask areas 620 that will become invalid later as second mask areas 620 in advance proximity determination.

[0056] A method for determining whether the pixels are close to each other within a predetermined number of pixels will be described with reference to FIG. 8 and FIG. 9. FIG. 8 shows an image obtained by applying the second masking means to the captured image shown in FIG. 3. A filter is applied to all pixels forming the contour of the second mask area 620 to check whether the pixels are close to each other within a predetermined number of pixels. FIG. 9 shows a proximity check filter when the predetermined number of pixels is 2. A 5×5 filter is used to check the colors of pixels that are close to the pixel 700 to be checked within ±2 pixels. If the first mask area 610 is included in the pixels in this 5×5 proximity check filter, the pixel 700 to be checked can be determined to be close to the pixel. If the pixels are determined to be close to each other even once, there is no need to check all the pixels forming the contour of the second mask area 620 to be checked, so the check to see whether the pixels are close to each other may be stopped.

[0057] While the method of determining whether adjacent pixels are within a predetermined number of pixels has been described above, the specific method is not limited thereto as long as it is possible to check whether adjacent pixels are within a predetermined number of pixels.

[0058] 10 is an explanatory diagram of the proximity search area 710 that is searched by applying the proximity search filter shown in FIG. 9 to all pixels forming the contour line of the second mask area 620 shown in FIG. 8. When the proximity search area 710 based on the object 800 is focused on, it is processed as invalid because it does not include the first mask 610. Next, when the proximity search area 710 based on the controller 120 is focused on, it is not processed as invalid because it includes the first mask area 610. Therefore, as shown in FIG. 6, in addition to the hand 400 of the user wearing the controller 120 being correctly extracted, the object 800 is not included in the second mask area 620.

[0059] As described above, with the above configuration, it is possible to correctly extract the shape of hand 400 of a user wearing controller 120 and correctly set an area where CG is not to be superimposed.

[0060] Regarding the value of the predetermined number of pixels, it is considered that the calculation processing speed may be slowed down if the value is set to a large value of 8. On the other hand, if the value of the predetermined number of pixels is set to a small value of 2, the influence of the shadows and the like described above may not be completely eliminated, and all the second mask regions 620 may be invalidated. For these reasons, the predetermined number of pixels is preferably 5. If the calculation processing speed is given top priority, the predetermined number of pixels may be set to 1, or the user may set the number of pixels as desired. If a proximity determination is made, the area in which the CG is superimposed between the first mask region 610 and the second mask region 620 is set to a predetermined number of pixels or less. Therefore, the predetermined number of pixels may be set based on the length of the real object captured in the captured image. For example, depending on the specifications of the imaging unit 101, if the imaging angle of view is 100 deg and the distance of the user's hand 400 is assumed to be 300 mm on the close-distance side where it is captured, the length of the real object of about 715 mm will be captured. If the number of pixels of the captured image is 1920 pixels, one pixel is captured at about 0.37 mm. The predetermined number of pixels may be set at a length that the user finds unnoticeable, but since it is believed that many users will find it difficult to notice a length of 2 mm or less, the predetermined number of pixels is preferably 5. Note that the predetermined number of pixels may be set depending on factors such as the angle of view, the expected imaging distance, the number of pixels of the imaging element, and a length that is expected to be difficult for users to notice in the real world.

[0061] The color based on which the second mask region 620 is set may be set by the user in the system according to the color of the device used by the user. Furthermore, in order to reduce the effort of registering the color in the system, the color based on which the second mask region is set may be registered in advance in the system.

[0062] Since it is assumed that the user's hand 400 may be captured not only one hand but also both hands, the number of first mask regions 610 is not limited to one. In other words, multiple parts of the user may be captured. In addition, it is only necessary to determine whether the second mask region 620 is adjacent to any of the multiple first mask regions 610.

[0063] Regarding colors, the color range may be set based on colors in the real world, or based on colors in a captured image.

[0064] (Other embodiments) Next, other embodiments will be described with reference to Figures 11 to 13. Note that the same reference numerals as in the first embodiment are used for the configurations common to the first embodiment, and the description thereof will be omitted.

[0065] Fig. 11 is an example of an image captured by imaging unit 101, in which controller 120 of embodiment 1 is worn on user's hand 400 and overlaps with object 800. When the flowchart shown in Fig. 7 is applied to Fig. 11, the result shown in Fig. 12 is obtained. In this way, when the color of controller 120 is the same as the color of the background information and overlaps with it, user's hand 400 wearing controller 120 cannot be correctly extracted.

[0066] Therefore, the device 550 of the second embodiment is configured with chromatic colors that are unlikely to be set if they have the same color range as the background information. In other words, the color on which the second mask area 620 is set includes chromatic colors. FIG. 13 is an example of an image captured by the imaging unit 101, in which the device 550 is attached to the user's hand 400 and overlaps with the object 800. When the flowchart shown in FIG. 6 is applied to FIG. 12, the shape of the user's hand 400 wearing the device 550 can be correctly extracted and the area where CG is not superimposed can be correctly set, as in the state shown in FIG. 6. With the above configuration, a system that is unlikely to be affected by the color of the background information can be configured.

[0067] Note that since colors with higher saturation are less susceptible to the color of the background information, it is preferable that the second mask includes colors with a saturation of 40 or more. Note that the colors of device 550 are configured as chromatic colors, but the chromatic colors may be realized by a separate removable cover.

[0068] In order to make the masking means less susceptible to the influence of background information, the masking means may add the following judgment.

[0069] A flow when an element for determining the case where it is known that the controller 120 is smaller than the user's hand 400 is added will be described with reference to the control flow shown in Fig. 14. Note that explanations of parts that overlap with the above content will be omitted.

[0070] In step S705, the control unit 151 determines whether the distance between the Nth second mask region and the first mask region 610 is within a predetermined number of pixels. If the control unit 151 determines that the distance between the Nth second mask region and the first mask region 610 is within the predetermined number of pixels, the process proceeds to step S1401. If the control unit 151 determines that the distance between the Nth second mask region and the first mask region 610 is not within the predetermined number of pixels, the process proceeds to step S707.

[0071] In step S1401, the control unit 151 determines whether the Nth second mask region is smaller than the first mask region. If the control unit 151 determines that the Nth second mask region is smaller than the first mask region, the process proceeds to step S706. If the control unit 151 determines that the Nth second mask region is equal to or larger than the first mask region, the process proceeds to step S707.

[0072] When the size of the controller 120 is known, a flow when an element for determining whether the second mask area 620 occupies a predetermined ratio or more on the captured image is added will be described with reference to the control flow shown in Fig. 15. Note that explanations of parts that overlap with the above content will be omitted.

[0073] In step S705, the control unit 151 determines whether the distance between the Nth second mask region and the first mask region 610 is within a predetermined number of pixels. If the control unit 151 determines that the distance between the Nth second mask region and the first mask region 610 is within the predetermined number of pixels, the process proceeds to step S1501. If the control unit 151 determines that the distance between the Nth second mask region and the first mask region 610 is not within the predetermined number of pixels, the process proceeds to step S707.

[0074] In step S1501, the control unit 151 determines whether the Nth second mask region occupies a predetermined ratio or more on the captured image. If the control unit 151 determines that the Nth second mask region occupies a predetermined ratio or more on the captured image, the control unit 151 proceeds to step S706. If the control unit 151 determines that the Nth second mask region does not occupy a predetermined ratio or more on the captured image, the control unit 151 proceeds to step S707.

[0075] The predetermined ratio varies depending on the specifications of the imaging unit 101 and the size of the device 550. For example, assuming that the imaging angle of view is 100 deg and the reach of the user's hand 400 is 700 mm, approximately 1668 mm will be reflected. If the size of the device 550 is 15 mm, the second mask area 620 will occupy approximately 0.9% of the captured image. In this embodiment, the user's hand 400 may approach the imaging unit 101 more than the assumed distance, but will not move away from it. Therefore, a lower limit of the size of the device 550 can also be set. Considering that the size reflected in the captured image becomes smaller depending on the orientation of the device 550, it is preferable to set a value smaller than 0.9% in the above-mentioned case, and it is preferable to set it to approximately half, 0.5%. The predetermined ratio may be set by the user in the system according to the size of the device 550 used by the user.

[0076] The present invention can also be realized by executing the following process. That is, software (programs) that realize the functions of the above-mentioned embodiments are supplied to a system or device via a network or various storage media, and the computer (or control unit, MPU, etc.) of the system or device reads and executes the program code. In this case, the program and the storage medium storing the program constitute the present invention.

[0077] The various controls described above as being performed by the control unit may be performed by a single piece of hardware, or multiple pieces of hardware may share the processing to control the entire device.

[0078] In addition, although the present invention has been described in detail based on the preferred embodiments, the present invention is not limited to these specific embodiments, and various forms within the scope of the gist of the present invention are also included in the present invention. Furthermore, each of the above-mentioned embodiments merely shows one embodiment of the present invention, and each embodiment can be appropriately combined.

[0079] The present invention can also be realized by a process in which a program for implementing one or more of the functions of the above-described embodiments is supplied to a system or device via a network or a storage medium, and one or more processors in a computer of the system or device read and execute the program. The present invention can also be realized by a circuit (e.g., ASIC) that implements one or more of the functions.

[0080] [Configuration 1] An acquisition means for acquiring an image; a first area detection means for detecting a first area having pixels of a color included in a first color range including the color of a predetermined part of a user from the image; a second area detection means for detecting a second area having pixels of a color included in a second color range including a color of the operation unit from the image; a determining means for determining, when a distance between the first region and the second region is within a predetermined number of pixels, that the second region is a third region; an extraction means for extracting the first region and the third region; 13. An image processing device comprising:

[0081] [Configuration 2] The area extracted by the extraction means is an area on which CG is not superimposed. 2. The image processing device according to claim 1,

[0082] [Configuration 3] The image processing device further includes a synthesis unit that cuts out the area extracted by the extraction unit from the CG image and synthesizes the area with a real image. 3. The image processing device according to configuration 1 or 2.

[0083] [Configuration 4] the first color range and the second color range are color ranges based on colors in an image; 4. The image processing device according to any one of configurations 1 to 3.

[0084] [Configuration 5] When the second area is smaller than the first area, the determination means determines the second area as a third area. 5. The image processing device according to any one of configurations 1 to 4.

[0085] [Configuration 6] the determining means determines the second region as a third region when a proportion of the second region in the image exceeds a predetermined proportion; 6. The image processing device according to any one of configurations 1 to 5.

[0086] [Configuration 7] The predetermined part is at least one of a finger, a hand, and a part of an arm. 7. The image processing device according to any one of configurations 1 to 6,

[0087] [Configuration 8] The image is acquired by an imaging unit, The imaging unit is provided in a head mounted display. 8. The image processing device according to any one of configurations 1 to 7,

[0088] [Configuration 9] The operation unit is either a ring-type controller that can be worn on a finger or an arm, or a controller that can be held and operated by hand. 9. The image processing device according to any one of configurations 1 to 8.

[0089] [Configuration 10] The second color range is registered in advance. 10. The image processing device according to any one of configurations 1 to 9.

[0090] [Configuration 11] The second color range is set by the user as a predetermined color range. 11. The image processing device according to any one of configurations 1 to 10.

[0091] [Configuration 12] The color of the operation unit is a chromatic color. 12. The image processing device according to any one of configurations 1 to 11,

[0092] [Configuration 13] When the saturation range of the chromatic color is expressed as 0 to 1, The saturation of the chromatic color is 0.4 or more. 13. The image processing device according to claim 12,

[0093] [Configuration 14] The operation unit can attach and detach a cover having a color different from the first color range. 14. The image processing device according to any one of configurations 1 to 13,

[0094] [Configuration 15] The predetermined number of pixels is user-configurable. 15. The image processing device according to any one of configurations 1 to 14.

[0095] [Configuration 16] The predetermined percentage is 0.5%. 16. The image processing device according to any one of configurations 6 to 15,

[0096] [Configuration 17] the predetermined number of pixels is 5; 17. The image processing device according to any one of configurations 1 to 16,

[0097] [method] An acquisition step of acquiring an image; a first area detection step of detecting a first area having pixels of a color included in a first color range including the color of a predetermined part of the user from the image; a second area detection step of detecting a second area having pixels of a color included in a second color range including a color of the operation unit from the image; a determining step of determining the second region as a third region when a distance between the first region and the second region is within a predetermined number of pixels; an extraction step of extracting the first region and the third region; 13. A method for controlling an image processing apparatus comprising the steps of:

[0098] [program] A program for causing a computer to function as each of the means of the image processing device according to any one of configurations 1 to 17.

[0099] [system] An acquisition device for acquiring an image; a first area detection device that detects a first area having pixels of a color included in a first color range including the color of a predetermined part of a user from the image; a second area detection device that detects a second area having pixels of a color included in a second color range including a color of the operation unit from the image; a determination device that determines the second area as a third area when a distance between the first area and the second area is within a predetermined number of pixels; an extraction device that extracts the first region and the third region; 1. An image processing system comprising:

Claims

1. An acquisition means for acquiring an image; a first area detection means for detecting a first area having pixels of a color included in a first color range including the color of a predetermined part of a user from the image; a second area detection means for detecting a second area having pixels of a color included in a second color range including a color of the operation unit from the image; a determining means for determining, when a distance between the first region and the second region is within a predetermined number of pixels, that the second region is a third region; an extraction means for extracting the first region and the third region; 13. An image processing device comprising:

2. The area extracted by the extraction means is an area on which CG is not superimposed.

2. The image processing device according to claim 1,

3. The image processing device further includes a synthesis unit that cuts out the area extracted by the extraction unit from the CG image and synthesizes the area with a real image.

3. The image processing device according to claim 1, wherein the first and second inputs are input to the image processing device.

4. the first color range and the second color range are color ranges based on colors in an image; 3. The image processing device according to claim 1, wherein the first and second inputs are input to the image processing device.

5. When the second area is smaller than the first area, the determination means determines the second area as a third area.

3. The image processing device according to claim 1, wherein the first and second inputs are input to the image processing device.

6. the determining means determines the second region as a third region when a proportion of the second region in the image exceeds a predetermined proportion; 3. The image processing device according to claim 1, wherein the first and second inputs are input to the image processing device.

7. The predetermined part is at least one of a finger, a hand, and a part of an arm.

3. The image processing device according to claim 1, wherein the first and second inputs are input to the image processing device.

8. The image is acquired by an imaging unit, The imaging unit is provided in a head mounted display.

3. The image processing device according to claim 1, wherein the first and second inputs are input to the image processing device.

9. The operation unit is either a ring-type controller that can be worn on a finger or an arm, or a controller that can be held and operated by hand.

3. The image processing device according to claim 1, wherein the first and second inputs are input to the image processing device.

10. The second color range is registered in advance.

3. The image processing device according to claim 1, wherein the first and second inputs are input to the image processing device.

11. The second color range is set by the user as a predetermined color range.

3. The image processing device according to claim 1, wherein the first and second inputs are input to the image processing device.

12. The color of the operation unit is a chromatic color.

3. The image processing device according to claim 1, wherein the first and second inputs are input to the image processing device.

13. When the saturation ranges from 0 to 1, the chromatic color is expressed as follows: The chroma of the chromatic color is 0.4 or more. The image processing device according to claim 12 .

14. The operation unit can attach and detach a cover having a color different from the first color range.

3. The image processing device according to claim 1, wherein the first and second inputs are input to the image processing device.

15. The predetermined number of pixels is user-configurable.

3. The image processing device according to claim 1, wherein the first and second inputs are input to the image processing device.

16. The predetermined percentage is 0.5%.

7. The image processing device according to claim 6,

17. the predetermined number of pixels is 5; 3. The image processing device according to claim 1, wherein the first and second inputs are input to the image processing device.

18. An acquisition step of acquiring an image; a first area detection step of detecting a first area having pixels of a color included in a first color range including the color of a predetermined part of the user from the image; a second area detection step of detecting a second area having pixels of a color included in a second color range including a color of the operation unit from the image; a determining step of determining the second region as a third region when a distance between the first region and the second region is within a predetermined number of pixels; an extraction step of extracting the first region and the third region; 13. A method for controlling an image processing apparatus comprising the steps of:

19. A program for causing a computer to function as each of the means of the image processing apparatus according to claim 1.

20. An acquisition device for acquiring an image; a first area detection device that detects a first area having pixels of a color included in a first color range including the color of a predetermined part of a user from the image; a second area detection device that detects a second area having pixels of a color included in a second color range including a color of the operation unit from the image; a determination device that determines the second area as a third area when a distance between the first area and the second area is within a predetermined number of pixels; an extraction device that extracts the first region and the third region; An image processing system comprising:

Citation Information

Patent Citations

  • JP93049A