The present invention relates to a virtual object display control device, a virtual object display control method and a virtual object display control program for performing control for displaying an image of a virtual object, and to a virtual object display system including the virtual object display control device.
There has been proposed a device that displays an image of a real object and an image of a virtual object superimposed on the former image on a screen of a display device (see Patent Reference 1, for example). The image of the virtual object is an augmented reality (AR) image, for example.
Patent Reference 1: Japanese Patent Application Publication No. 2015-49039
In the aforementioned conventional device, the image of the virtual object is displayed at a position shifted from a position where the image should originally be displayed, by taking into account the occlusion in the real space (i.e., so that the image of the virtual object is not hidden by the image of the real object). In this case, however, an observer cannot learn the position where the image of the virtual object should originally be displayed. Accordingly, when the image of the virtual object is an image including an annotation on a real object, it is unclear to which real object the annotation relates.
An object of the present invention is to provide a virtual object display control device, a virtual object display system, a virtual object display control method, and a virtual object display control program capable of allowing the observer to recognize the position of the image of the virtual object by means of animation display even when the image of the virtual object is displayed at a position invisible from the observer.
A virtual object display control device according to an aspect of the present invention includes a recognition unit to receive real space information indicating a real space; a viewpoint position judgment unit to judge a position of a viewpoint of an observer based on the real space information; a real object judgment unit to judge a position and a shape of a real object based on the real space information; an image control unit to receive image information on a virtual object and to process the image information on the virtual object, thereby generating image information for displaying an animation of the virtual object; a display setting unit to judge whether to display the animation of the virtual object or not, based on the position of the viewpoint, the position and the shape of the real object, and the image information on the virtual object, and to set image information including any one of the image information on the virtual object and the image information for displaying the animation of the virtual object, as display image information, based on a result of the judgment; and a drawing unit to output the display image information.
A virtual object display system according to another aspect of the present invention includes a space information acquisition unit to acquire real space information indicating a real space; a recognition unit to receive the real space information; a viewpoint position judgment unit to judge a position of a viewpoint of an observer based on the real space information; a real object judgment unit to judge a position and a shape of a real object based on the real space information; an image control unit to receive image information on a virtual object and to process the image information on the virtual object, thereby generating image information for displaying an animation of the virtual object; a display setting unit to judge whether to display the animation of the virtual object or not, based on the position of the viewpoint, the position and the shape of the real object, and the image information on the virtual object and to set image information including any one of the image information on the virtual object and the image information for displaying the animation of the virtual object, as display image information based on a result of the judgment; a drawing unit to output the display image information; and a display device to display an image based on the display image information.
According to the present invention, even when the image of the virtual object is displayed at a position invisible from the observer, it is possible to allow the observer to recognize the position of the image of the virtual object by means of animation display.
Virtual object display control devices, virtual object display systems, virtual object display control methods and virtual object display control programs according to embodiments of the present invention will be described below with reference to the accompanying drawings. The following embodiments are just examples and a variety of modifications are possible within the scope of the present invention.
Incidentally, an xyz orthogonal coordinate system is shown in the drawings. In the xyz orthogonal coordinate system, the x-axis represents a transverse direction (i.e., horizontal transverse direction) in the real space, the y-axis represents a depth direction (i.e., horizontal depth direction) in the real space, and the z-axis represents a height direction (i.e., vertical direction) in the real space.
First, a configuration of a virtual object display system 1 and a virtual object display control device 10 will be described below.
The space information acquisition unit 20 includes, for example, one or more image capturing units 21 for acquiring image information A1 on the real space and one or more depth detection units 22 for acquiring depth information A2 on a real object (i.e., object) existing in the real space. The space information acquisition unit 20 may be configured to include one of the image capturing unit 21 and the depth detection unit 22. The image capturing unit 21 is, for example, a color camera (referred to also as an “RGB camera”) that acquires a color image, a stereo camera that simultaneously captures images of a real object from a plurality of different directions, or the like. The depth detection unit 22 is, for example, a depth camera (referred to also as a “camera with a depth sensor”) having a function of detecting the depth (deepness) of a real object, or the like. In the first embodiment, the real space information includes the image information A1 on the real space and the depth information A2 on the real object.
The virtual object display control device 10 includes a CPU (Central Processing Unit) 11 as an information processing unit, a GPU (Graphics Processing Unit) 12 as an image processing unit, and a memory 13 as a storage unit for storing information. The GPU 12 is a graphics drawing unit and writes image data as a result of drawing to the memory 13 (i.e., performs the drawing) based on a drawing command received from the CPU 11. The image data written to the memory 13 is transferred to the display device 30. Functions of the GPU 12 may be executed by the CPU 11. The virtual object display control device 10 is, for example, a personal computer (PC), a smartphone, a tablet terminal, or the like. The memory 13 may store a virtual object display control program according to the first embodiment. The CPU 11 is capable of controlling a display operation of the display device 30 by executing the virtual object display control program.
The display device 30 is, for example, a device having a display screen (i.e., display), such as a PC monitor, a smartphone or a tablet terminal.
The recognition unit 110 includes, for example, a space recognition unit 111 that receives the image information A1 on the real space (i.e., object space), performs a recognition process for recognizing at which position in the real space the real object exists, and supplies the result of the process to the display control unit 120 and a real object recognition unit 112 that receives the depth information A2 on the real object, performs a recognition process for recognizing what the real object is, and supplies the result of the process to the display control unit 120. The real object recognition unit 112 may output data in which the real object has been replaced with a model of the real object (i.e., previously stored image information). The model of the real object, as previously stored image information, may be image information on a desk, a chair or the like, or a typical three-dimensional shape such as a cylinder, a rectangular prism, a triangular pyramid or a sphere. However, the configuration and the functions of the recognition unit 110 are not limited to the above-described examples.
The display control unit 120 includes a viewpoint position judgment unit 121 that judges the position 91 of the viewpoint of the observer 90 based on the real space information supplied from the recognition unit 110 and a real object judgment unit 122 that judges the position and the shape of the real object 311 based on the real space information supplied from the recognition unit 110. The viewpoint position judgment unit 121 calculates the position 91 of the viewpoint of the observer 90 observing the virtual object displayed in the real space based on position information received from the space recognition unit 111 and generates viewpoint position information indicating the position of the viewpoint. The real object judgment unit 122 is an occluding object judgment unit that calculates the position of an occluding object hiding the virtual object displayed in the real space based on real object information received from the real object recognition unit 112 and generates occluding object judgment information indicating the occluding object.
Further, the display control unit 120 includes an image control unit 123 that receives the image information on the virtual object and generates the image information for displaying the animation of the virtual object by processing the image information on the virtual object. The image information on the virtual object is comment information on the real object 311, for example. The image control unit 123 may either previously store the image information on the virtual object or acquire the image information on the virtual object from an external storage device (not shown) or the memory 13 (
The image control unit 123 may select the scaling display or the moving display as the method of displaying the animation of the virtual object according to a condition. For example, the image control unit 123 employs the scaling display as the animation display when the virtual object exists at a position at a distance greater than a predetermined reference distance from the observer 90, and employs the moving display as the animation display when the virtual object exists within the reference distance. Alternatively, the image control unit 123 may select the moving display as the animation display when the virtual object is a comment including letters, and select the scaling display as the animation display when the virtual object is not a comment. Further, the image control unit 123 may select the moving display as the animation display when the real object occluding the virtual object is larger than a predetermined reference size, and select the scaling display as the animation display when the real object occluding the virtual object is smaller than or equal to the reference size. The animation display selection method is not limited to these examples.
The display control unit 120 includes the display setting unit 124 that judges whether to display the image of the animation of the virtual object or not, based on the position 91 of the viewpoint, the position and the shape of the real object 311, and the image information B1 and sets image information including the image information on the virtual object or the image information for displaying the animation of the virtual object as display image information B2 based on the result of the judgment, and a drawing unit 125 that outputs the display image information B2 to the display device 30 by writing the display image information B2 to the memory 13.
The display setting unit 124 may set the image information for displaying the animation of the virtual object as the display image information B2 when the whole or part of the virtual object is hidden by the real object as viewed from the position of the viewpoint. The display setting unit 124 may judge that the animation display of the virtual object is necessary when a predetermined certain proportion or more (e.g., 50% or more) of the virtual object is hidden by the real object as viewed from the position 91 of the viewpoint.
It is also possible for the display setting unit 124 to set synthetic image information obtained by combining the image information on the virtual object or the image information for displaying the animation of the virtual object with the image information A1 on the real space, as the display image information B2.
Next, the operation of the virtual object display control device 10 will be described below.
Subsequently, the virtual object display control device 10 in step S5 judges whether to display the animation of the virtual object or not, based on the position 91 of the viewpoint, the position and the shape of the real object 311, and the image information on the virtual object. In other words, the virtual object display control device 10 judges whether or not the image 322 of the virtual object 312 is hidden by the image 321 of the real object 311 as viewed from the position 91 of the viewpoint.
When the image 322 of the virtual object 312 is not hidden (NO in the step S5), the virtual object display control device 10 in step S6 draws the image 321 of the real object based on the image information on the real space and draws the image 322 of the virtual object. Then, the virtual object display control device 10 in step S7 makes the display device 30 display the image 321 of the real object and the image 322 of the virtual object.
When the image 322 of the virtual object 312 is hidden (YES in the step S5), the virtual object display control device 10 determines the method of the animation display in step S8, and draws the image 321 of the real object based on the image information on the real space and draws the image 321 of the virtual object and the animation display image 322 of the virtual object in step S9. Then, as shown in
As described above, with the virtual object display system 1 and the virtual object display control device 10 according to the first embodiment, even when the image of the virtual object is displayed at a position invisible from the observer 90 such as behind the real object, the image of the virtual object is displayed to be visible from the observer 90 by means of the animation display image 322 of the virtual object, and thus it is possible to allow the observer 90 to recognize the position of the image 322 of the virtual object.
Further, with the virtual object display system 1 and the virtual object display control device 10 according to the first embodiment, the animation display image 322 is displayed at the original position of the virtual object, and thus the observer 90 can correctly recognize about which real object the animation display image 322 of the virtual object is.
The virtual object display system 2 shown in
In the virtual object display system 2, the virtual object display control device 10 may receive the position 91 of the viewpoint of the observer 90 from the display device 40.
Further, in the virtual object display system 2, the image capturing unit 42 of the display device 40 may be used as the image capturing unit of the space information acquisition unit 20.
As described above, with the virtual object display system 2 and the virtual object display control device 10 according to the second embodiment, even when the display image of the virtual object is displayed at a position invisible from the observer 90, it is possible to allow the observer 90 to recognize the virtual object by means of the animation display image of the virtual object.
Except for the above-described features, the virtual object display system 2 shown in
The virtual object display system 3 shown in
As described above, with the virtual object display system 3 and a virtual object display control device 10a according to the third embodiment, even when the display image 332 of the virtual object is displayed at a position invisible from the observer 90, it is possible to allow the observer 90 to recognize the virtual object by means of the animation display images 332 and 332a of the virtual object.
Further, with the virtual object display system 3 and the virtual object display control device 10a according to the third embodiment, the position of the animation display image 332, 332a of the virtual object is moved repeatedly, and thus the observer 90 can correctly recognize about which real object the animation display images 332 and 332a of the virtual object are.
Furthermore, the intention of guidance becomes easier to understand since a guidance display 333 is directly projected onto the real world and the space information on the real world is usable without change.
Except for the above-described features, the virtual object display system 3 shown in
1, 2, 3: virtual object display system, 10, 10a: virtual object display control device, 20: space information acquisition unit, 21, 21a, 21b: image capturing unit, 22: depth detection unit, 30, 40: display device, 31, 41: display screen, 42: image capturing unit, 43: synthesis unit, 50: display device (projector), 90: observer, 91: position of viewpoint, 110: recognition unit, 120: display control unit, 121: viewpoint position judgment unit, 122: real object judgment unit, 123: image control unit, 124: display setting unit, 125: drawing unit, 311: real object, 312: virtual object, 321: image of real object, 322: animation display image (at time of normal size), 322a: animation display image (at time of enlarged size), 322b: animation display image (at time of movement), 332: animation display image, 332a: animation display image (at time of movement), A1: image information on real space, A2: depth information on real object, B2: display image information.
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/JP2018/006957 | 2/26/2018 | WO | 00 |