Information processing system, information processing method, and program
By generating virtual objects based on real space conditions and performing masking processes to align real and virtual objects, the technique addresses misalignment issues in MR, improving user immersion.
Patent Information
- Application Number
- JP2023060057
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-03
- Publication Date
- 2024-10-16
AI Technical Summary
The combination of objects in real and virtual spaces in mixed reality (MR) technology can cause discomfort due to misalignment when the position of objects in real space changes during rendering, leading to a sense of immersion loss.
A technique that generates a virtual object based on real space conditions, acquires depth information, determines the range of real objects in front of the virtual object, performs a masking process to make that range transparent or remove it, and composites the virtual and real images to create a seamless mixed reality image.
This approach reduces user discomfort by aligning the virtual and real objects accurately, enhancing the immersive experience in MR environments.
Smart Images

Figure 2024147198000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to an information processing system, an information processing method, and a program. [Background technology]
[0002] In recent years, mixed reality technology, or MR (Mixed Reality) technology, has become known as a technology that seamlessly fuses real space and virtual worlds in real time. MR technology uses a video see-through HMD (Head Mounted Display). For example, there is a technology that combines a virtual object (Computer Graphics) with an image captured by a video camera or the like of a subject observed from the user's pupil position.
[0003] In this technology, the position and orientation of the HMD is obtained using multiple cameras and various sensors, and the position information of the space experienced by the user is calculated. Then, virtual objects are rendered based on this position information, and the user can see an MR image in which the virtual image is synthesized with the image of the real space. Here, it is important that the user is immersed in the MR image.
[0004] Therefore, in Patent Document 1, the control device removes the range of the virtual space object in the overlapping portion between the real space object and the virtual space object, and then synthesizes the virtual space object with the real space object. In this way, the control device provides an image that is three-dimensionally consistent. In addition, Patent Document 2 describes a device technology that performs a reprojection process of the synthesized virtual space in accordance with the frame rate of the camera that captures the real space, so that the user does not feel an image delay. [Prior art documents] [Patent documents]
[0005] [Patent Document 1] JP 2002-157606 A [Patent Document 2] Patent No. 2019-095916 Summary of the Invention [Problem to be solved by the invention]
[0006] However, in the above-mentioned technology, when a real-space object and a virtual-space object are synthesized, the position of the real-space object moves during the period in which the virtual-space object is rendered. If the position of the real-space object changes during that period, the position of the object in the image captured in the real space does not match the position where the area is removed in the virtual image. This impairs the immersive feeling in the MR image and gives the user a sense of discomfort.
[0007] Therefore, an object of the present invention is to provide a technique for reducing the discomfort felt by the user when displaying MR images. [Means for solving the problem]
[0008] One aspect of the present invention is a method for producing a composition comprising the steps of: a generating means for generating a first virtual object based on a state of the real space at a first time; An acquisition means for acquiring depth information which is information regarding distance in a depth direction; Based on the depth information of a real object that is an object in the real space at a second time point that is later than the first time point and the depth information of the first virtual object, a determination means for determining a first range in which the physical object is located in front of the first virtual object; a masking means for performing a masking process on the first virtual object, the masking process being a process of making the first range transparent or a process of removing the first range; a synthesis means for synthesizing the first virtual object on which the masking process has been performed with an image of the real space at a third time point that is after the second time point to generate a synthetic image; a control means for controlling a display means to display the composite image; The information processing system is characterized by having the following features.
[0009] One aspect of the present invention is a method for producing a composition comprising the steps of: A generation step of generating a first virtual object based on a state of real space at a first time; An acquisition step of acquiring depth information which is information regarding distance in a depth direction; a determining step of determining a first range in which the real object is located in front of the first virtual object, based on the depth information of a real object that is an object in the real space at a second time point that is later than the first time point and the depth information of the first virtual object; a masking step of performing a masking process on the first virtual object, the masking process being a process of making the first range transparent or removing the first range; a synthesis step of synthesizing the first virtual object on which the masking process has been performed with an image of the real space at a third time point that is after the second time point to generate a synthetic image; a control step of controlling a display means to display the composite image; The information processing method is characterized by having the following features. Effect of the Invention
[0010] According to the present invention, it is possible to provide a technique for reducing the discomfort felt by a user when an MR image is displayed. [Brief description of the drawings]
[0011] [Figure 1] 1 is a configuration diagram of an information processing system according to a first embodiment. [Diagram 2] FIG. 2 is a functional block diagram of an HMD and an image processing device according to the first embodiment. [Diagram 3] 4A to 4C are diagrams illustrating the operations of a masking unit and a synthesis unit according to the first embodiment. [Figure 4] FIG. 13 is a diagram for explaining a problem associated with a comparative example of the first embodiment. [Diagram 5] 1A to 1C are diagrams for explaining a method for generating an MR image according to the first embodiment. [Figure 6] FIG. 13 is a diagram for explaining a problem associated with a comparative example of the second embodiment. [Figure 7] FIG. 11 is a functional block diagram of an HMD and an image processing device according to a second embodiment. [Figure 8] 11A to 11C are diagrams for explaining a method for generating an MR image according to the second embodiment. [Figure 9] FIG. 11 is a functional block diagram of an HMD and an image processing device according to a third embodiment. [Figure 10] 11A to 11C are diagrams for explaining a method for generating an MR image according to the third embodiment. [Figure 11] FIG. 13 is a functional block diagram of an HMD and an image processing device according to a fourth embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0012] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
[0013] <Embodiment 1> 1 is a diagram showing the configuration of an information processing system 1 (image display device) according to embodiment 1. The information processing system 1 includes an HMD 100 (Head Mounted Display) and an image processing device 200.
[0014] The HMD 100 is a display device that can be worn on the user's head. The HMD 100 displays appropriate images on the display, allowing the user to experience mixed reality (MR). It is a device that allows people to experience the "lity."
[0015] The HMD 100 has an imaging unit (camera; imaging device) capable of capturing an image of the real space. The HMD 100 acquires an image of the real space captured by the imaging unit (hereinafter referred to as a "real image"). The HMD 100 then displays a mixed reality image (hereinafter referred to as an "MR image") that combines the real image and the virtual image on a display.
[0016] The image processing device 200 generates an image to be displayed by the HMD 100. The image processing device 200 is, for example, a PC. The image processing device 200 may be connected to a server or the like via a network. The image processing device 200 may also be a portable device that can be carried around together with the HMD 100.
[0017] The image processing device 200 calculates the drawing position of the virtual object based on the real image and tracking data (past real image). The image processing device 200 performs rendering of the virtual object to be drawn at the drawing position. For example, in order to obtain an appropriate position of the virtual object in the real space, a method can be used in which a camera captures an image of the marker 500 placed in the real space and the position of the marker 500 in the real space is detected based on the captured image. As a result, for example, a virtual object corresponding to a coordinate P1 that is uniquely determined based on the marker 500 placed on the floor is generated, and an MR image is generated by combining the virtual object and the real image.
[0018] The interface 300 is, for example, a wired cable that connects the HMD 100 and the image processing device 200. The interface 300 realizes mutual data communication between the HMD 100 and the image processing device 200. The data to be communicated is not limited to image data, and may include sensor data (sensor data acquired by an acceleration sensor or an angular velocity sensor), audio data, control data (data for controlling the HMD 100), and the like. In the first embodiment, the interface 300 may realize communication wirelessly.
[0019] FIG. 2 is a functional block diagram showing the functions of the HMD 100 and the image processing device 200.
[0020] The HMD 100 includes an imaging unit 101 , a display unit 102 , and a synthesis unit 103 .
[0021] The imaging unit 101 captures a real image of a real space. The imaging unit 101 captures an image of a range according to the direction of the user's head (the direction of the imaging unit 101).
[0022] The display unit 102 is a display that displays MR images. By displaying the MR images on the display unit 102, the user of the HMD 100 can experience mixed reality.
[0023] The synthesis unit 103 synthesizes the real image acquired by the imaging unit 101 with the virtual image in which a part of the area is masked by the image processing device 200, to generate an MR image (synthetic image). Note that "masking" refers to a process of making the target range transparent, or a process of removing the range. In the first embodiment, the process of making the target range transparent is called "masking". At this time, the masked image (hereinafter referred to as "masking image") holds semi-transparent information (information indicating whether or not it is made transparent) for each pixel. The synthesis unit 103 synthesizes the real image and the virtual image by alpha blending (mixing images using a weighted average). By such synthesis, it is possible to generate an MR image in which the real and the virtual are fused. The synthesis unit 103 controls the display unit 102 to display the MR image by outputting the MR image to the display unit 102.
[0024] The image processing device 200 includes a position calculation unit 201 , a rendering unit 202 , a content DB 203 , an object detection unit 204 , and a masking unit 205 .
[0025] The position calculation unit 201 detects a reference (hereinafter, referred to as a "synthesis reference") for accurately synthesizing a virtual object in a real image. For example, the position calculation unit 201 detects the marker 500 from a real image in which the marker 500 arranged in real space is captured. Then, the position calculation unit 201 specifies the position of the marker 500 in the real image. After that, the position calculation unit 201 converts the coordinates of the position of the marker 500 in the real image into coordinates P1 in the camera coordinate system of the HMD 100 (a coordinate system based on the position and orientation of the HMD 100) and acquires the coordinates P1 as a synthesis reference. Here, since the marker 500 in the real space does not move, even if the user of the HMD 100 moves around, the coordinates of the position of the marker 500 in the real image can always be converted into the camera coordinate system of the HMD 100. This allows the position calculation unit 201 to grasp the coordinates P1 in the camera coordinate system of the HMD 100 according to the relative positional relationship between the HMD 100 and the marker 500 in the real space.
[0026] The position calculation unit 201 may use any method as long as it can calculate the synthesis reference in the camera coordinate system. For example, a method may be used in which the position of a feature point of an object fixed in real space, instead of the marker 500, is acquired and the acquired position is converted into the camera coordinate system. An optical sensor attached to the HMD 100 may be detected by a tracking system arranged in real space, and the position of the optical sensor may be detected as the synthesis reference. In this way, either an inside-out method (a method in which a position is determined by a sensor mounted on the HMD 100) or an outside-in method (a method in which a position is determined by a sensor outside the HMD 100) may be used.
[0027] The rendering unit 202 is a generating unit that generates a virtual object (virtual image) to be combined with a real image. First, the rendering unit 202 renders a three-dimensional virtual object (a virtual object based on a content read from a content DB 203) according to the position of the coordinates P1 detected by the position calculation unit 201. In the following, it is assumed that the algorithm for rendering the virtual object is a polygon-based calculation method (polygon rendering) that is widely used in a field called real-time rendering. This calculation method is widely known and is executed by a rendering engine, so a detailed description will be omitted.
[0028] In this way, the rendering unit 202 generates a virtual object based on the coordinate P1. The content used to generate the virtual object (content read from the content DB 203) may include size information (information on the lengths of the virtual object in three directions) or semi-transparent information in addition to shape information and color information. The rendering unit 202 generates a two-dimensional image representing the virtual object as seen from the HMD 100 as a virtual image by referring to these pieces of information. Specifically, the rendering unit 202 generates a virtual image (renders a virtual image) based on the coordinate P1 in the camera coordinate system of the HMD 100 and on the color information, size information, and semi-transparent information of the content. Each pixel of the generated virtual image includes color information (RGB data), semi-transparent information (α channel), and depth information (information on the distance in the depth direction in the image: depth channel). The rendering unit 202 calculates the depth information based on the positional relationship between the coordinate P1 and the virtual object and the size information.
[0029] The content DB 203 stores the contents of virtual objects.
[0030] The object detection unit 204 detects an object (real object) in real space and calculates the depth information of the object (distance in the depth direction in the image). For example, the object detection unit 204 can use a distance measurement method using real images acquired by a stereo camera having two or more cameras. This distance measurement method estimates depth information based on information on the physical positions of two cameras and the image displacement of the same subject in two real images. This distance measurement method makes it possible to obtain depth information for each pixel of a real image.
[0031] Other methods for obtaining depth information of an object in real space include a method of projecting a known pattern into real space with infrared light and calculating depth information based on distortion information of the pattern, or a method of irradiating a laser beam and then calculating depth information based on the reflection time of the light from an object in real space (a method using ToF (Time of Flight)).
[0032] In the first embodiment, a method (also called a passive method) for calculating depth information of an object in real space from a real image using a stereo camera will be described, but the method is not particularly limited to this. In the first embodiment, the object detection unit 204 obtains depth information of an object based on the difference in the positions of the same subject in a plurality of real images. For this reason, depth information (depth channel) is assigned to each pixel of the real image.
[0033] When an object in real space is closer than the virtual object, the masking unit 205 generates a virtual image (masked image) by masking a part of the virtual image. In the first embodiment, the masking unit 205 compares depth information of the object in real space detected by the object detection unit 204 with depth information of the virtual image generated by the rendering unit 202. Then, for example, the masking unit 205 changes the semi-transparent information (alpha channel) of the virtual image only in a portion where the object in real space is closer than the virtual object (a portion where the object in real space is superimposed on the virtual object). In addition, when the real image and the virtual image are synthesized using a chromakey technique, the masking unit 205 may rewrite only a portion where the object in real space is closer than the virtual object to a specific color.
[0034] The operations of masking section 205 and synthesis section 103 will be described in detail with reference to FIGS. 3A to 3D.
[0035] 3A shows a real image captured by the imaging unit 101 of the real space. The real image shows a marker 500 for determining a reference (synthesis reference) for the position of a virtual object, an object OB1 which is the user's left hand, and an object OB2 which is an object placed in the real space. As described above, the position calculation unit 201 calculates coordinates P1 obtained by converting the coordinates of the marker 500 in the real image shown in FIG. 3A into the camera coordinate system of the HMD 100. The rendering unit 202 draws a virtual object based on the coordinates P1. At this time, the position of the virtual object relative to the coordinates P1 can be arbitrarily set by the user.
[0036] FIG. 3B shows a virtual image showing a virtual object CG1 (a virtual object generated by the rendering unit 202) to be synthesized with the image shown in FIG. 3A. The virtual object CG1 expresses the appearance of an automobile. The virtual object CG1 is disposed so that the user of the HMD 100 can see the front left side of the automobile. At this time, the virtual object CG1 is 3DCG (three-dimensional CG). Based on the size information of the 3DCG and the arrangement position (or coordinate P1) of the 3DCG in the camera coordinate system, the depth information of the virtual object CG1 in the real space can be calculated. The depth information of the virtual object CG1 in the real space is obtained for each pixel constituting the virtual object CG1. After rendering, the virtual object CG1 holds color information, depth information, and semi-transparency information for each pixel.
[0037] The object detection unit 204 detects an object (real object) from the real image shown in Fig. 3A. Then, the object detection unit 204 calculates depth information of the detected object. For example, in the real image shown in Fig. 3A, as viewed from the HMD 100, the object OB1 is placed at the forefront, the marker 500 is placed next to it, and the object OB2 is placed at the back. The object detection unit 204 detects the distance between these objects in the depth direction (front-to-back relationship) and stores the distance as depth information for each pixel.
[0038] The masking unit 205 compares the depth information of the object in the real image with the depth information of the virtual object. Then, the masking unit 205 determines an area in the virtual image where the object in the real space is placed in front of the virtual object (hereinafter, referred to as a "mask area"), and changes the mask area to a transparent state (performs masking). In this way, the masking unit 205 generates a masked image.
[0039] Fig. 3C is an image in which a part of the virtual image is made transparent based on a comparison result between the depth information of the real image shown in Fig. 3A and the depth information of the virtual image shown in Fig. 3B. In the real image shown in Fig. 3A, object OB1 is located at the forefront, and marker 500 is located next to it. Since virtual object CG1 is generated based on marker 500, it should be located further back than object OB1. Furthermore, object OB2 is located further back than marker 500, so it should be located further back than virtual object CG1.
[0040] Therefore, in FIG. 3C, the virtual object CG1 is missing (removed) only in the mask region MR1 having the shape of the object OB1 that should be placed in the foreground. As described above, the virtual object CG1 includes color information (RGB data), semi-transparent information (α channel), and depth information (depth channel) for each pixel. The masking unit 205 changes the mask region MR1 in the virtual image to a transparent state by replacing the value of the semi-transparent information (α channel) of the mask region MR1 in the virtual image. In FIG. 3C, the semi-transparent information (α channel) of the pixels in the virtual object CG1 is changed to a value indicating transparency only in the mask region MR1 (the range corresponding to the object OB1 placed in front of the virtual object CG1).
[0041] The synthesis unit 103 generates an MR image (synthetic image) by synthesizing the real image and the masked image. FIG. 3D shows an MR image obtained by synthesizing the real image shown in FIG. 3A and the masked image shown in FIG. 3C. The synthesis unit 103 synthesizes two images using alpha blending according to the semi-transparent information (α channel) of the masked image. In the masked image shown in FIG. 3C, the semi-transparent information (α channel) shows transparency in the area where the background is white. In the MR image, in the area where the semi-transparent information (α channel) shows transparency, the virtual object is transparent, so that the real image is drawn in front of the virtual object. In this way, when the real image and the virtual image are synthesized, an MR image is generated in which the left hand of the real image is located in front of the virtual object, so that an immersive image in which the virtual object is fused into the real space can be generated.
[0042] (Issues in Comparative Examples) The following describes the problems of an example (comparative example) compared with the first embodiment. In the comparative example, it is considered that the rendering unit 202 updates the virtual image by rendering the virtual object at the same refresh rate (display rate) as the imaging frame rate of the imaging unit 101. However, due to various factors (such as the processing performance of the image processing device 200, the refresh rate of the device, the resolution of the real image, or the data amount of the content of the virtual object), it takes time to update the virtual image and perform the masking process. This causes a difference in the imaging timing of the real image used as a reference between the synthesized real image and the masking image in the MR image.
[0043] For this reason, when a masking image and a real image are synthesized, the change in the real space during this difference period cannot be reflected in the generation of the virtual image. For example, when an object in the real space is moving, even if a masking image is generated based on the position of the detected object, the position of the object in the real image and the position of the mask area are not reflected in the synthesis. As a result, an MR image that gives a sense of discomfort to the user is generated.
[0044] The problem associated with the comparative example will be described in detail with reference to FIG. 4. (a) to (d) of FIG. 4 are images of real space for each refresh rate of the real image. (a) of FIG. 4 shows an image of real space captured at time T1, and (b) of FIG. 4 shows an image of real space captured at time T2. (c) of FIG. 4 shows an image of real space captured at time T3, and (d) of FIG. 4 shows an image of real space captured at time T4. Hereinafter, an "image of real space captured at time Tn (n is an integer)" will be referred to as a "frame image fn."
[0045] The object OB1 is the left hand of the user of the HMD 100. The object OB1 moves from left to right within the real image (within the imaging field of view) over time.
[0046] At this time, it is assumed that a latency (processing time) of two frames occurs from when a real image is input to the image processing device 200 until a virtual image is generated through processing by the position calculation unit 201 and the rendering unit 202. In the comparative example, the object detection unit 204 and the masking unit 205 perform processing using the same frame image as that used when the rendering unit 202 renders the virtual object. That is, after a delay of two frames from when a real image is input to the image processing device 200, a masking image is generated.
[0047] 4(e) shows a state in which a masking image is generated based on frame image f1 at the timing when the imaging unit 101 is capturing an image at time T3. That is, a virtual object CG1 is generated based on frame image f1. In the virtual image (virtual object CG), a mask area MR1, which is an area corresponding to the range of object OB1 in frame image f1, is made transparent.
[0048] The synthesis unit 103 synthesizes two images (frame image and masking image) that have been generated by the time T3 processing is completed. That is, the frame image f3 shown in FIG. 4(c) and the masking image shown in FIG. 4(e) are synthesized. FIG. 4(f) shows an MR image in which the two images are synthesized. In the masking image, the mask region MR1 is disposed at the position of the object OB1 (left hand) in the real space at the time T1. Therefore, in the MR image, a difference occurs between the position of the mask region MR1 and the position of the object OB1 by the amount of movement of the object OB1 in the real space during the period from time T1 to time T3. The left hand in the real image should be in front of the virtual object, but in FIG. 4(f), it is hidden behind the virtual object. In addition, the floor is visible at the position of the mask region MR1, so an MR image that gives a sense of incongruity to the user is generated.
[0049] (MR image generating method according to the first embodiment) Therefore, in the first embodiment, the object detection unit 204 and the rendering unit 202 use frame images acquired at different times. As described above, updating a masking image takes time due to various factors. The main reason why updating a masking image takes time is that the load of rendering a virtual object is dominant, while the load of other processes is lighter than that of the rendering unit 202. In other words, when the object detection unit 204 calculates depth information of an object from a frame image at a certain time, the rendering unit 202 has not completed rendering of the virtual object based on the frame image at that time. However, at this point in time, rendering of the virtual object based on a frame image at a past time has been completed. In the first embodiment, this relationship is utilized so that the object detection unit 204 and the rendering unit 202 use frame images at different times, which reduces the time required for synthesis. The difference in the positions is reduced.
[0050] (a) to (d) of Fig. 5 are the same as (a) to (d) of Fig. 4, and show frame images f1 to f4 for each refresh rate. Also, it is assumed that a latency (processing time) of two frames occurs before a virtual image is generated through processing by the position calculation unit 201 and the rendering unit 202. Meanwhile, it is assumed that a latency of one frame occurs before the object detection unit 204 calculates depth information of an object in real space. Here, the rendering unit 202 generates a virtual image including a virtual object CG1 based on a frame image f1 that represents the state of real space at time T1.
[0051] 5(e) shows a masked image generated by the masking unit 205. The masking unit 205 compares the depth information of the virtual object CG1 (depth information based on the coordinate P1 calculated from the frame image f1) with the depth information of each object in the frame image f2 to determine the positional relationship between the virtual object CG1 and each object. Then, the masking unit 205 makes transparent a mask area MR2 corresponding to the range of an object (object OB1 in the frame image f2) located in front of the virtual object CG1, of the virtual object CG1 generated based on the frame image f1. In this way, the masking unit 205 generates a masked image.
[0052] The synthesis unit 103 synthesizes two images (frame image and masking image) that have been generated by the time the process at time T3 is completed. That is, the frame image f3 shown in FIG. 5(c) and the masking image shown in FIG. 5(e) are synthesized. FIG. 5(f) shows an MR image in which the two images are synthesized. In the MR image, a mask region MR2 is disposed at the position of an object OB1 (left hand) in the real space at time T2. Therefore, the difference between the position of the object OB1 and the position of the mask region MR2 can be reduced to the time difference between time T3 and time T2. As a result, in the first embodiment, the difference between the position where masking is performed and the position of the object in the real space in the MR image can be reduced more than in the comparative example.
[0053] In this way, in the first embodiment, it is possible to reduce the sense of discomfort felt by the user by the MR image obtained by combining the real image and the masking image, and therefore it is possible to provide the user with an MR image (mixed reality image) that provides a high level of immersion.
[0054] Note that all or part of the configuration of the HMD 100 may be included in the image processing device 200. All or part of the configuration of the image processing device 200 may be included in the HMD 100. Also, for example, in the first embodiment, the object detection unit 204 and the masking unit 205 are included in the image processing device 200. However, the configuration is not limited to this, and a configuration other than the image processing device 200 may have the object detection unit 204 or the masking unit 205.
[0055] <Embodiment 2> In the first embodiment, the generation of an MR image when an object in real space moves has been described. In the second embodiment, a case will be described in which the HMD 100 moves in addition to the object in real space moving.
[0056] When the HMD 100 (user's head) is moving, if the rendering time of the virtual object is long (the latency until display is large), the virtual object appears to follow the change in the head position with a delay in the MR image. This phenomenon can cause the user to feel very uncomfortable. Therefore, the sensor (sensor that detects the position and orientation) installed in the HMD 100 is used to sense the movement of the HMD 100 in real time. Conventionally, a reprojection process is performed to correct the image based on the results of the projection.
[0057] However, the operation of the HMD 100 and the operation of the object in the real space are asynchronous. Therefore, unless the reprojection process and the masking process are appropriately performed, a difference is likely to occur between the position of the object in the real space and the position of the mask area in the MR image.
[0058] (Issues in Comparative Examples) The problem of the comparative example according to the second embodiment will be described in detail with reference to Fig. 6. Here, as in Fig. 4, a case will be described in which frame images f1 to f4 are used for each refresh rate of a real image captured by the imaging unit 101. Fig. 6 (a) to (d) show a state in which the user of the HMD 100 moves his / her left hand to the left in accordance with the rotation of his / her head to the left (horizontal direction).
[0059] In the frame image f1 shown in (a) of Fig. 6, a marker 500 that determines a synthesis reference for the position of a virtual object is placed on the floor. An object OB2 is placed behind the marker 500. In addition, in the frame image f1, an object OB1, which is the left hand of the user of the HMD 100, is shown in the foreground.
[0060] In the frame image f2 shown in (b) of Fig. 6, the marker 500 placed on the floor and the object OB2 are moving to the right. This is because the user of the HMD 100 is in the process of turning his / her head to the left. As time passes, the object OB2 moves to the right, and finally moves to the right edge of the frame image f4.
[0061] Moreover, object OB1 (user's left hand) moves independently of the movement of the user's head. In the example of FIG. 6, in real space, object OB1 moves leftward in accordance with the rotation of the user's head to the left. However, the moving speed of object OB1 is slower than the movement speed of the head. Therefore, object OB1 moves to the right relative to the head. That is, as shown in (a) to (d) of FIG. 6, the position of object OB1 changes to the right side in the frame image (imaging angle of view) over time.
[0062] In this case, the rendering of the virtual image based on the frame image f1 is completed at the rendering unit 202 at time T3. (e) of Fig. 6 shows a masked image generated by the masking unit 205 using the virtual object CG1 generated based on the frame image f1 and the mask area MR2 determined based on the frame image f2, as in the first embodiment.
[0063] Here, the position of the marker 500 at time T3 has moved to the right in the imaging angle of view, as shown in (c) of FIG. 6. Then, the virtual object CG1 should be rendered at the position of the CG area CR3 shown in (e) of FIG. 6. Therefore, (f) of FIG. 6 shows an image resulting from reprojection processing of the masking image shown in (e) of FIG. 6 in accordance with the change in the position and orientation of the HMD 100 from time T1 to time T3. Since it is detected that the HMD 100 is moving to the left, the masking image shown in (e) of FIG. 6 is shifted to the right, which is the opposite direction to the movement direction of the HMD 100. As a result, the virtual object CG1 is rendered at an appropriate position.
[0064] Finally, the synthesis unit 103 synthesizes the frame image f3 shown in (c) of FIG. 6 with the masking image that has been subjected to the reprojection processing shown in (f) of FIG. 6 to generate the MR image shown in (g) of FIG.
[0065] However, in the MR image shown in FIG. 6(g), due to the influence of the reprojection process, the position of the object OB1 and the position of the mask region MR2 are significantly misaligned, and the object OB1 is hidden behind the virtual object CG1.
[0066] In the second embodiment, therefore, a technique for providing an MR image that gives the user little discomfort even when the user's head moves (rotates) will be described.
[0067] (System according to the second embodiment) Fig. 7 is a functional block diagram of the HMD 100 and the image processing device 200 according to the second embodiment. The HMD 100 and the image processing device 200 basically have the same configuration as that shown in Fig. 2. In the second embodiment, the HMD 100 further includes a posture detection unit 104, and the image processing device 200 further includes a reprojection unit 301.
[0068] The attitude detection unit 104 detects position information (information on the position of the HMD 100) and attitude information (information on the attitude of the HMD 100, such as the rotation angle or inclination). The attitude detection unit 104 is realized by appropriately combining an acceleration sensor, an angular velocity sensor, a geomagnetic sensor, and the like. The attitude detection unit 104 can sense (measure; detect) the movement of the HMD 100 in real time.
[0069] The reprojection unit 301 acquires the latest position information and orientation information of the HMD 100 from the orientation detection unit 104. In addition, the reprojection unit 301 can grasp (track) changes in the position information and orientation information by storing the position information and orientation information at multiple past times. The reprojection unit 301 performs a reprojection process that cancels out the delay of the virtual image relative to the real space, based on the information sensed in real time and the time required to generate the virtual image.
[0070] The reprojection process is a process of regenerating a real image, a virtual image, or an MR image so as to match the position and orientation of the HMD 100 (so as to match the line of sight of the user). In the second embodiment, the reprojection unit 301 generates a virtual image in which the position and orientation of a virtual object are controlled in accordance with a change in the position and orientation of the HMD 100. The reprojection process is a generally well-known process, and details thereof will be omitted. In the second embodiment, for the sake of simplicity of explanation, the head movement is limited to the horizontal direction (left and right direction), and a method of shifting the reprojection process in the opposite direction to the movement direction of the head movement will be described.
[0071] In the second embodiment, a process by the reprojection unit 301 is performed between the process by the rendering unit 202 and the process by the masking unit 205. The difference between the latency caused by drawing a virtual object and the latency caused by the object detection unit 204 is reduced by the reprojection process by the reprojection unit 301. This makes it possible to generate an MR image in which a real image and a virtual image are seamlessly combined, even when the HMD 100 and the real object are operating asynchronously.
[0072] The MR image generating method according to the second embodiment will be described in detail with reference to Fig. 8. (a) to (d) of Fig. 8 show frame images f1 to f4 similar to (a) to (d) of Fig. 6. For this reason, detailed illustration of these images is omitted in Fig. 8.
[0073] FIG. 8(e) shows a virtual image generated based on frame image f1 by processing of the position calculation unit 201 and rendering unit 202. The actual time when the virtual image shown in FIG. 8(e) is generated is time T3. At time T3, the change in the position and orientation of the HMD 100 is detected (tracked) in real time by the orientation detection unit 104. The reprojection unit 301 calculates the change during the time required to generate the virtual image (=T3-T1). Based on the change in the position and orientation of the HMD 100, the reprojection process of the virtual image is performed (the position and orientation of the virtual object are controlled).
[0074] FIG. 8(f) shows a virtual image regenerated by performing a reprojection process on the virtual image shown in FIG. 8(e). This virtual image is an image after a reprojection process (a process for controlling the position and orientation of a virtual object) is performed on the virtual image shown in FIG. 8(e) so as to reflect the change in the position and orientation of the HMD 100 during the period from time T1 to time T3 on the virtual object. The HMD 100 moves leftward between time T1 and time T3. In this case, the reprojection unit 301 reflects the influence of the movement of the HMD 100 on the virtual object by moving the virtual object in the opposite direction to the movement of the HMD 100. Therefore, the virtual object CG1' after the reprojection process moves to the right from the position of the virtual object CG1.
[0075] When the processing of the reprojection unit 301 is completed, the masking unit 205 then performs masking processing. The masking unit 205 determines a mask area MR2 based on depth information of the virtual object CG1' (virtual object after the reprojection processing) in the virtual image shown in (f) of Fig. 8 and depth information of the object in the frame image f2. Then, the masking unit 205 makes transparent the mask area MR2 corresponding to the range of the object OB1 in the frame image f2 in the virtual image shown in (f) of Fig. 8, to generate a masked image. (g) of Fig. 8 shows the generated masked image.
[0076] The synthesis unit 103 synthesizes the frame image f3 and the masking image that have already been generated by the time the processing at time T3 is completed. That is, the synthesis unit 103 synthesizes the frame image f3 and the masking image shown in (g) of Fig. 8. (h) of Fig. 8 shows an MR image in which the two images are synthesized. According to the second embodiment, the deviation between the position of the object OB1 and the position of the mask region MR2 in the MR image can be reduced compared to the comparative example (the example of Fig. 6).
[0077] In this way, by performing the masking process after the reprojection process of the virtual image, it is possible to reduce the "deviation between the real image and the virtual image" and the "deviation between the real image and the mask area."
[0078] <Embodiment 3> In the first embodiment, the image processing device 200 has been described which synthesizes a masking image in which a mask area MR2 is arranged at the position of an object in a frame image f2 with a frame image f3. At this time, since the masking is based on the frame image f2, a difference occurs between the position of the mask area MR2 and the position of the object OB1 by the amount that the object OB1 has moved during the time between time T3 and time T2.
[0079] In the third embodiment, an image processing device 200 will be described that uses the frame image f2 instead of the frame image f3 when combining the frame image and the masking image in order to eliminate the above difference.
[0080] (Generation of MR images according to the third embodiment) 9 is a functional block diagram of the HMD 100 and the image processing device 200 according to the third embodiment. The HMD 100 and the image processing device 200 basically have the same configuration as that shown in FIG. 2, but further have a holding unit 401. The holding unit 401 holds (stores) a real image acquired by the imaging unit 101 of the HMD 100.
[0081] A method for generating an MR image according to the third embodiment will be described in detail with reference to FIG. 10. (a) to (d) of FIG. 10 are frame images f1 to f4 for each refresh rate of a real image acquired by the imaging unit 101, similar to (a) to (d) of FIG. 4. In addition, at this time, It is assumed that a latency (processing time) of two frames occurs before the position calculation unit 201 and the rendering unit 202 generate a virtual image based on a real image. On the other hand, it is assumed that a latency of one frame occurs before the object detection unit 204 calculates depth information of a real object. Furthermore, the holding unit 401 holds frame images of a plurality of frames in accordance with these latencies.
[0082] 10(e) shows a masking image including a virtual object CG1. The virtual object CG1 is a virtual object generated based on the frame image f1. The masking image is an image generated by the masking unit 205. As in the first embodiment, the masking unit 205 generates the masking image by changing the mask area MR2 in the virtual object CG1 that corresponds to the range of the object OB1 in the frame image f2 to a transparent state.
[0083] Since the actual time at the time when the masking image is generated is time T3, the frame image f3 at time T3 is acquired. However, as described above, the mask region MR2 is a region determined based on the frame image f2 at time T2. Therefore, the synthesis unit 103 synthesizes the frame image f2 stored in the storage unit 401 with the masking image. That is, the synthesis unit 103 synthesizes the frame image f2 shown in (b) of FIG. 10 with the masking image shown in (e) of FIG. 10. This can further reduce the difference between the position of the mask region MR2 and the position of the object OB1 in the MR image. (f) of FIG. 10 shows an MR image in which the two images are synthesized.
[0084] In this way, in the third embodiment, the same frame image is used for determining the mask area and for the image to be combined with the masking image in the MR image. This allows the position of the mask area to be approximately the same as the position of the object placed in front of the virtual object. This reduces the sense of discomfort felt by the user in the MR image, and makes it possible to provide the user with a highly immersive MR image.
[0085] <Embodiment 4> In the first embodiment, the HMD 100 is described which synthesizes a masking image in which a mask region is arranged at the position of an object at time T2 with a frame image f3 at time T3. At this time, the frame image f3 at time T3 close to the current time T4 is used as the frame image used for synthesis in the MR image. In the third embodiment, the HMD 100 is described which synthesizes a masking image in which a mask region is arranged at the position of an object at time T2 with a frame image f2 at time T2.
[0086] Here, when the user rotates his / her head (shakes his / her head) to change the line of sight, the real image changes significantly. In this case, as in the first embodiment, when an MR image obtained by combining a masking image with the latest frame image is displayed, it is expected that the sense of discomfort felt by the user from the MR image is reduced compared to when the MR image according to the third embodiment is displayed. Or, even when the user is not looking at the object but at something other than the object, it is expected that the sense of discomfort felt by the user from the MR image obtained by combining the latest frame image with the masking image is reduced more.
[0087] Therefore, in the fourth embodiment, in certain cases (specific cases based on at least one of a change in the position of the user's head and gaze information), the HMD 100 selects a frame image to be used for synthesis from among multiple frame images from a certain time onwards.
[0088] 11 is a functional block diagram of the HMD 100 and the image processing device 200 according to the fourth embodiment. The HMD 100 and the image processing device 200 basically have the same configuration as that shown in FIG. 9. On the other hand, the HMD 100 according to the fourth embodiment includes an image selection unit 402, a posture detection unit 104, and , and further includes a gaze detection unit 105.
[0089] In the following, as in the first and third embodiments, a case will be described in which a masking image in which a mask region is arranged at a position based on the frame image f2 is synthesized with a real image (frame image).
[0090] The orientation detection unit 104 has a sensor that detects the orientation of the HMD 100 (the orientation of the imaging unit 101; the orientation of the user's head). The orientation detection unit 104 detects (determines) whether the user has rotated the HMD 100 (head) (whether the user has shook his / her head).
[0091] The gaze detection unit 105 has a sensor that detects the user's gaze (the position at which the user is looking in the MR image).
[0092] The image selection unit 402 selects either frame image f3 (the latest frame image acquired at the start of the current time T4) or frame image f2 (a frame image temporarily stored in the storage unit 401). The image selection unit 402 outputs the selected frame image to the synthesis unit 103. The image selection unit 402 selects a frame image based on posture information indicating the position of the user's head output by the posture detection unit 104, or on the user's line of sight information output by the line of sight detection unit 105.
[0093] For example, when it is determined that the change in the orientation of the HMD 100 (imaging unit 101) is greater than a threshold (when a change in the head position is detected), the image selection unit 402 outputs frame image f3 to the synthesis unit 103. When it is determined that the position (viewpoint position) at which the user is looking is away from the mask region MR by a predetermined distance, the image selection unit 402 outputs frame image f3 to the synthesis unit 103. For example, in cases other than these, the image selection unit 402 outputs frame image f2 to the synthesis unit 103.
[0094] In the fourth embodiment, a technique for switching a frame image to be used for synthesis (to be synthesized with a masking image) according to a change in the position of the user's head or line of sight information has been described. By switching the frame image to be synthesized with the masking image, it is possible to reduce the sense of discomfort of the MR image given to the user even if the user's viewing position changes.
[0095] 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. Parts of the above-described embodiments may be combined as appropriate.
[0096] Also, in the above, "If A is equal to or greater than B, proceed to step S1, and if A is smaller (lower) than B, proceed to step S2" may be read as "If A is greater (higher) than B, proceed to step S1, and if A is equal to or less than B, proceed to step S2." Conversely, "If A is greater (higher) than B, proceed to step S1, and if A is equal to or less than B, proceed to step S2" may be read as "If A is greater (higher) than B, proceed to step S1, and if A is smaller (lower) than B, proceed to step S2." Therefore, unless a contradiction occurs, "equal to or greater than A" may be read as "equal to or greater than A (high; long; many)," and "equal to or less than A" may be read as "equal to or less than A (low; short; few)." And, "equal to or greater than A" may be read as "equal to or greater than A," and "equal to or less than A" may be read as "equal to or less than A."
[0097] Each functional unit in each of the above embodiments (variations) may or may not be an individual piece of hardware. Each of the functions of one functional unit may be realized by individual hardware. Two or more functions of one functional unit may be realized by common hardware. Furthermore, each functional unit may or may not be realized by hardware such as an ASIC, FPGA, or DSP. For example, the device may have a processor and a memory (storage medium) in which a control program is stored. Then, the functions of at least some of the functional units of the device may be realized by the processor reading and executing the control program from the memory.
[0098] (Other embodiments) 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) for implementing one or more of the functions.
[0099] The disclosure of the above embodiments includes the following configurations, methods, and programs. (Configuration 1) a generating means for generating a first virtual object based on a state of the real space at a first time; An acquisition means for acquiring depth information which is information regarding distance in a depth direction; a determination means for determining a first range in which the real object is located in front of the first virtual object based on the depth information of a real object that is an object in the real space at a second time point that is later than the first time point and the depth information of the first virtual object; a masking means for performing a masking process on the first virtual object, the masking process being a process of making the first range transparent or a process of removing the first range; a synthesis means for synthesizing the first virtual object on which the masking process has been performed with an image of the real space at a third time point that is after the second time point to generate a synthetic image; a control means for controlling a display means to display the composite image; An information processing system comprising: (Configuration 2) The third time is a time later than the second time. 2. The information processing system according to configuration 1. (Configuration 3) The third time is the same as the second time. 2. The information processing system according to configuration 1. (Configuration 4) The image of the real space is an image of the real space captured by an imaging means. 4. The information processing system according to any one of configurations 1 to 3. (Configuration 5) a selection means for selecting an image of the real space at the third time from an image of the real space at the second time and an image of the real space at a time later than the second time, based on at least one of a change in an orientation of an imaging means and a position in the composite image where a user is looking, The image of the real space is an image of the real space captured by the imaging means. 2. The information processing system according to configuration 1. (Configuration 6) the selection means selects, when a change in orientation of the imaging means is greater than a threshold, an image of the real space at a time later than the second time as the image of the real space at the third time. 6. The information processing system according to configuration 5. (Configuration 7) the selection means, when a position in the composite image where the user is looking is away from the first range by a predetermined distance, selects an image of the real space at a time later than the second time as the image of the real space at the third time. 6. The information processing system according to configuration 5. (Configuration 8) a reprojection unit that controls a position and an orientation of the first virtual object in response to a movement of the imaging unit between the first time point and the third time point, the determining means determines the first range based on the depth information of the first virtual object and the depth information of the physical object after the position and orientation have been controlled by the reprojection means; the masking means performs the masking process, which is a process of making the first range transparent or a process of removing the first range, on the first virtual object after the position and orientation have been controlled by the reprojection means; 8. The information processing system according to any one of configurations 4 to 7. (Configuration 9) the acquiring means acquires the depth information of the first virtual object based on a position of a marker captured in the image of the real space at the first time. 9. The information processing system according to any one of configurations 1 to 8. (Configuration 10) A generation step of generating a first virtual object based on a state of real space at a first time; An acquisition step of acquiring depth information which is information regarding distance in a depth direction; a determining step of determining a first range in which the real object is located in front of the first virtual object, based on the depth information of a real object that is an object in the real space at a second time point that is later than the first time point and the depth information of the first virtual object; a masking step of performing a masking process on the first virtual object, the masking process being a process of making the first range transparent or removing the first range; a synthesis step of synthesizing the first virtual object on which the masking process has been performed with an image of the real space at a third time point that is after the second time point to generate a synthetic image; a control step of controlling a display means to display the composite image; 13. An information processing method comprising: (Configuration 11) A program for causing a computer to function as each of the means of the information processing system according to any one of configurations 1 to 9. [Explanation of symbols]
[0100] 1: Information processing system, 100: HMD, 200: Image processing device, 102:Display section, 103:Composition section, 201: position calculation unit, 202: rendering unit, 204: Object detection unit, 205: Masking unit
Claims
1. a generating means for generating a first virtual object based on a state of the real space at a first time; An acquisition means for acquiring depth information which is information regarding distance in a depth direction; a determination means for determining a first range in which the real object is located in front of the first virtual object based on the depth information of a real object that is an object in the real space at a second time point that is later than the first time point and the depth information of the first virtual object; a masking means for performing a masking process on the first virtual object, the masking process being a process of making the first range transparent or a process of removing the first range; a synthesis means for synthesizing the first virtual object on which the masking process has been performed with an image of the real space at a third time point that is after the second time point, to generate a synthetic image; a control means for controlling a display means to display the composite image; An information processing system comprising:
2. The third time is a time later than the second time.
2. The information processing system according to claim 1 .
3. The third time is the same as the second time.
2. The information processing system according to claim 1 .
4. The image of the real space is an image of the real space captured by an imaging means.
2. The information processing system according to claim 1 .
5. a selection unit that selects an image of the real space at the third time from an image of the real space at the second time and an image of the real space at a time later than the second time, based on at least one of a change in an orientation of an imaging unit and a position in the composite image where a user is looking, The image of the real space is an image of the real space captured by the imaging means.
2. The information processing system according to claim 1 .
6. the selection means selects, when a change in orientation of the imaging means is greater than a threshold, an image of the real space at a time later than the second time as the image of the real space at the third time.
6. The information processing system according to claim 5.
7. the selection means, when a position in the composite image where the user is looking is away from the first range by a predetermined distance, selects an image of the real space at a time later than the second time as the image of the real space at the third time.
6. The information processing system according to claim 5.
8. a reprojection unit that controls a position and an orientation of the first virtual object in response to a movement of the imaging unit between the first time point and the third time point, the determining means determines the first range based on the depth information of the first virtual object and the depth information of the physical object after the position and orientation have been controlled by the reprojection means; the masking means performs the masking process, which is a process of making the first range transparent or a process of removing the first range, on the first virtual object after the position and orientation have been controlled by the reprojection means; 8. The information processing system according to claim 4, wherein:
9. the acquiring means acquires the depth information of the first virtual object based on a position of a marker captured in the image of the real space at the first time.
8. The information processing system according to claim 1, wherein the information processing system is a data processing system.
10. a generation step of generating a first virtual object based on a state of real space at a first time; An acquisition step of acquiring depth information which is information regarding distance in a depth direction; a determining step of determining a first range in which the real object is located in front of the first virtual object, based on the depth information of a real object that is an object in the real space at a second time point that is later than the first time point, and the depth information of the first virtual object; a masking step of performing a masking process on the first virtual object, the masking process being a process of making the first range transparent or removing the first range; a synthesis step of synthesizing the first virtual object on which the masking process has been performed with an image of the real space at a third time point that is after the second time point to generate a synthetic image; a control step of controlling a display means to display the composite image; 13. An information processing method comprising:
11. A program for causing a computer to function as each of the means of the information processing system according to any one of claims 1 to 7.
Citation Information
Patent Citations
JP157606A
Image generation device, head-mounted display, image generation system, image generation method, and program
JP2019095916A
Cited By
Image processing device, image processing system, control method and program for image processing device
JP2026153395A
