CN106598250B - A VR display method, device and electronic equipment - Google Patents
A VR display method, device and electronic equipment Download PDFInfo
- Publication number
- CN106598250B CN106598250B CN201611179850.8A CN201611179850A CN106598250B CN 106598250 B CN106598250 B CN 106598250B CN 201611179850 A CN201611179850 A CN 201611179850A CN 106598250 B CN106598250 B CN 106598250B
- Authority
- CN
- China
- Prior art keywords
- view
- image
- selected state
- perspective
- original
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 75
- 238000012545 processing Methods 0.000 claims abstract description 70
- 230000009467 reduction Effects 0.000 claims description 37
- 230000015654 memory Effects 0.000 claims description 18
- 230000003321 amplification Effects 0.000 claims 13
- 238000003199 nucleic acid amplification method Methods 0.000 claims 13
- 238000004891 communication Methods 0.000 abstract description 10
- 238000004364 calculation method Methods 0.000 abstract description 7
- 230000000694 effects Effects 0.000 description 30
- 230000008569 process Effects 0.000 description 19
- 238000010586 diagram Methods 0.000 description 9
- 230000009286 beneficial effect Effects 0.000 description 7
- 230000003993 interaction Effects 0.000 description 7
- 230000006870 function Effects 0.000 description 6
- 238000004590 computer program Methods 0.000 description 5
- 210000004556 brain Anatomy 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 230000010365 information processing Effects 0.000 description 3
- 238000010295 mobile communication Methods 0.000 description 3
- 230000000007 visual effect Effects 0.000 description 3
- 238000013500 data storage Methods 0.000 description 2
- 238000003384 imaging method Methods 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 238000013459 approach Methods 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 239000002360 explosive Substances 0.000 description 1
- 239000011521 glass Substances 0.000 description 1
- 238000007654 immersion Methods 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008447 perception Effects 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/011—Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
- G06F3/013—Eye tracking input arrangements
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/04815—Interaction with a metaphor-based environment or interaction object displayed as three-dimensional, e.g. changing the user viewpoint with respect to the environment or object
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2203/00—Indexing scheme relating to G06F3/00 - G06F3/048
- G06F2203/01—Indexing scheme relating to G06F3/01
- G06F2203/012—Walk-in-place systems for allowing a user to walk in a virtual environment while constraining him to a given position in the physical environment
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2203/00—Indexing scheme relating to G06F3/00 - G06F3/048
- G06F2203/048—Indexing scheme relating to G06F3/048
- G06F2203/04802—3D-info-object: information is displayed on the internal or external surface of a three dimensional manipulable object, e.g. on the faces of a cube that can be rotated by the user
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)
- Processing Or Creating Images (AREA)
Abstract
本发明涉及图像处理技术领域,具体公开了一种VR显示方法、装置和电子设备,所述方法包括:确定原始视图中处于选中态的图像,其中,所述原始视图中包含至少一张图像,所述图像为二维图像;将所述原始视图中处于选中态的图像向右水平偏移预定距离获得第一视角视图,将所述原始视图中处于选中态的图像向左水平偏移预定距离获得第二视角视图;根据所述第一视角视图和所述第二视角视图进行VR显示。通过上述方式,本发明实施例能够在VR显示时,向用户呈现出二维图像的立体空间层次感,且无需嵌入3D引擎编程,减少应用程序间的通信和计算量,节约智能终端的处理资源。
The present invention relates to the technical field of image processing, and specifically discloses a VR display method, device, and electronic equipment. The method includes: determining an image in a selected state in an original view, wherein the original view contains at least one image, The image is a two-dimensional image; horizontally shifting the image in the selected state in the original view to the right by a predetermined distance to obtain a first perspective view, and shifting the image in the selected state in the original view to the left by a predetermined distance Obtain a second perspective view; perform VR display according to the first perspective view and the second perspective view. Through the above method, the embodiment of the present invention can present the three-dimensional spatial layering of two-dimensional images to the user during VR display, without embedding 3D engine programming, reducing the amount of communication and calculation between applications, and saving the processing resources of smart terminals .
Description
技术领域technical field
本发明实施例涉及图像处理技术领域,尤其涉及一种VR(Virtual Reality,虚拟现实)显示方法、装置和电子设备。Embodiments of the present invention relate to the technical field of image processing, and in particular, to a VR (Virtual Reality, virtual reality) display method, device and electronic equipment.
背景技术Background technique
虚拟现实(Virtual Reality),简称VR技术,其利用电脑或其它智能计算设备模拟产生一个三维空间的虚拟世界,提供用户关于视觉、听觉、触觉等感官的模拟,让用户如同身临其境一般。由于VR技术能够提供非常沉浸感的体验,其非常适合游戏、影视、交互等多种领域。而随着VR技术的发展和VR硬件的爆发式增长,VR应用越来越多,人们对VR的关注显著增加,对VR应用也提出了越来越高的需求。Virtual Reality, referred to as VR technology, uses computers or other intelligent computing devices to simulate a three-dimensional virtual world, providing users with simulations of vision, hearing, touch and other senses, making users feel as if they were there. Because VR technology can provide a very immersive experience, it is very suitable for various fields such as games, film and television, and interaction. With the development of VR technology and the explosive growth of VR hardware, there are more and more VR applications, people's attention to VR has increased significantly, and the demand for VR applications has also become higher and higher.
目前,用户在体验VR应用时经常需要浏览二维图像,例如,浏览UI(UserInterface,用户界面)交互界面图像。而用户在使用VR应用浏览二维图像时,也希望体验到二维图像的立体空间层次感,从而进一步增强沉浸感。然而,二维图像本身不具有立体感,为了实现VR应用中二维图像的立体呈现,现有技术中,多采用3D(Three Dimensional,3维)引擎,例如:在Android或ios的VR应用程序中嵌入Unity 3D,通过Unity 3D编程来实现二维图像的立体空间层次感的呈现。Currently, a user often needs to browse a two-dimensional image when experiencing a VR application, for example, browse a UI (User Interface, user interface) interactive interface image. When users use VR applications to browse two-dimensional images, they also hope to experience the three-dimensional spatial layering of two-dimensional images, so as to further enhance the sense of immersion. However, the two-dimensional image itself does not have a three-dimensional effect. In order to realize the three-dimensional presentation of the two-dimensional image in the VR application, in the prior art, a 3D (Three Dimensional, 3-dimensional) engine is mostly used, for example: in the VR application program of Android or ios Embed Unity 3D in it, and realize the presentation of the three-dimensional space layering of two-dimensional images through Unity 3D programming.
然而,在实现本发明过程中,发明人发现相关技术存在以下问题:现有的技术方案虽然能够满足用户通过VR应用观看图像空间层次感的需求,但嵌入3D引擎增加了编程软件与应用程序之间的通讯过程,增加了应用程序的复杂性,同时,应用程序运行终端的信息处理量变大,消耗增加。However, in the process of realizing the present invention, the inventors found that the related technologies have the following problems: Although the existing technical solutions can meet the needs of users to view the spatial layering of images through VR applications, the embedding of the 3D engine increases the gap between the programming software and the application program. The inter-communication process increases the complexity of the application program. At the same time, the amount of information processing on the terminal where the application program runs increases and the consumption increases.
发明内容Contents of the invention
本发明实施例提供一种VR显示方法、装置和电子设备,能够降低VR应用程序的复杂性,有效减少消耗,解决通过嵌入3D引擎实现二维图像的立体空间层次感的呈现时增加应用程序的复杂性以及应用程序运行终端的信息处理量变大,消耗增加的问题。Embodiments of the present invention provide a VR display method, device, and electronic equipment, which can reduce the complexity of VR application programs, effectively reduce consumption, and solve the problem of increasing application programs when embedding a 3D engine to realize the three-dimensional spatial layering of two-dimensional images. The complexity and the amount of information processing on the terminal where the application program is running become larger and the consumption increases.
第一方面,本发明实施例提供一种VR显示方法,包括:In a first aspect, an embodiment of the present invention provides a VR display method, including:
确定原始视图中处于选中态的图像,其中,所述原始视图中包含至少一张图像,所述图像为二维图像;determining the selected image in the original view, wherein the original view contains at least one image, and the image is a two-dimensional image;
将所述原始视图中处于选中态的图像向右水平偏移预定距离获得第一视角视图,将所述原始视图中处于选中态的图像向左水平偏移预定距离获得第二视角视图;horizontally shifting the selected image in the original view to the right by a predetermined distance to obtain a first perspective view, and horizontally shifting the selected image in the original view to the left by a predetermined distance to obtain a second perspective view;
根据所述第一视角视图和所述第二视角视图进行VR显示。VR display is performed according to the first perspective view and the second perspective view.
其中,可选的,所述将所述原始视图中处于选中态的图像向右水平偏移预定距离获得第一视角视图,将所述原始视图中处于选中态的图像向左水平偏移预定距离获得第二视角视图包括:Wherein, optionally, the first perspective view is obtained by horizontally shifting the image in the selected state in the original view by a predetermined distance to the right, and shifting the image in the selected state in the original view horizontally by a predetermined distance to the left Obtaining a second-person view includes:
将所述原始视图中处于选中态的图像向右水平偏移预定距离且按照预设的缩放倍数进行缩放处理从而获得第一视角视图,将所述原始视图中处于选中态的图像向左水平偏移预定距离且按照预设的缩放倍数进行缩放处理从而获得第二视角视图。Shifting the image in the selected state in the original view to the right by a predetermined distance and performing scaling processing according to a preset zoom factor to obtain a first perspective view, and shifting the image in the selected state in the original view horizontally to the left Move a predetermined distance and perform zoom processing according to a preset zoom factor to obtain a second perspective view.
具体的,上述缩放处理为放大处理。Specifically, the above zooming processing is zooming in processing.
其中,可选的:Among them, optional:
所述原始视图中包含有至少两张图像;The original view contains at least two images;
所述将所述原始视图中处于选中态的图像向右水平偏移预定距离且按照预设的缩放倍数进行缩放处理从而获得第一视角视图,将所述原始视图中处于选中态的图像向左水平偏移预定距离且按照预设的缩放倍数进行缩放处理从而获得第二视角视图,包括:The image in the selected state in the original view is shifted horizontally by a predetermined distance to the right and zoomed according to a preset zoom factor to obtain a first perspective view, and the image in the selected state in the original view is moved to the left Horizontally offset a predetermined distance and perform zoom processing according to a preset zoom factor to obtain a second perspective view, including:
将所述原始视图中处于选中态的图像向右水平偏移预定距离且按照预设的放大倍数进行放大处理,并且将所述原始视图中处于选中态的图像之外的图像按照预设的缩小倍数进行缩小处理从而获得第一视角视图,将所述原始视图中处于选中态的图像向左水平偏移预定距离且按照预设的放大倍数进行放大处理,并且将所述原始视图中处于选中态的图像之外的图像按照预设的缩小倍数进行缩小处理从而获得第二视角视图;Shifting the image in the selected state in the original view to the right by a predetermined distance and zooming in according to a preset magnification, and reducing the images other than the image in the selected state in the original view according to a preset multiple times to perform zoom-out processing to obtain the first perspective view, shift the image in the selected state in the original view horizontally to the left by a predetermined distance and perform zoom-in processing according to the preset magnification, and select the image in the original view The images other than the image are reduced according to the preset reduction factor to obtain the second perspective view;
或者,or,
将所述原始视图中处于选中态的图像向右水平偏移预定距离且按照预设的缩小倍数进行缩小处理,并且将所述原始视图中处于选中态的图像之外的图像按照预设的放大倍数进行放大处理从而获得第一视角视图,将所述原始视图中处于选中态的图像向左水平偏移预定距离且按照预设的缩小倍数进行缩小处理,并且将所述原始视图中处于选中态的图像之外的图像按照预设的放大倍数进行放大处理从而获得第二视角视图。Shifting the image in the selected state in the original view to the right by a predetermined distance and performing reduction processing according to a preset reduction factor, and zooming in on images other than the image in the selected state in the original view according to a preset Multiply to zoom in to obtain the first perspective view, shift the image in the selected state in the original view horizontally to the left by a predetermined distance and perform reduction processing according to the preset reduction factor, and make the image in the selected state in the original view The images other than the image are enlarged according to the preset magnification to obtain the second perspective view.
其中,可选的:Among them, optional:
在所述确定原始视图中处于选中态的图像后,获取所述第一视角视图和所述第二视角视图之前,所述方法还包括:After the image in the selected state in the original view is determined, before acquiring the first perspective view and the second perspective view, the method further includes:
对所述原始视图中处于选中态的图像按照预设的放大倍数进行放大处理,获取第三视角视图;Enlarging the image in the selected state in the original view according to a preset magnification factor to obtain a third perspective view;
根据所述第三视角视图进行VR显示;performing VR display according to the third perspective view;
所述将所述原始视图中处于选中态的图像向右水平偏移预定距离获得第一视角视图,将所述原始视图中处于选中态的图像向左水平偏移预定距离获得第二视角视图包括:The step of horizontally shifting the selected image in the original view by a predetermined distance to the right to obtain a first perspective view, and shifting the selected image in the original view horizontally by a predetermined distance to the left to obtain a second perspective view includes :
将所述第三视角视图中所述处于选中态的图像向右水平偏移预定距离获得第一视角视图,将所述第三视角视图中所述处于选中态的图像向左水平偏移预定距离获得第二视角视图;shifting the image in the selected state in the third perspective view horizontally by a predetermined distance to the right to obtain a first perspective view, and shifting the image in the selected state in the third perspective view horizontally by a predetermined distance to the left Obtain a second perspective view;
或者,or,
在所述确定原始视图中处于选中态的图像后,获取所述第一视角视图和所述第二视角视图之前,所述方法还包括:After the image in the selected state in the original view is determined, before acquiring the first perspective view and the second perspective view, the method further includes:
对所述原始视图中处于选中态的图像之外的图像按照预设的缩小倍数进行缩小处理,获取第四视角视图;performing reduction processing on images other than the selected image in the original view according to a preset reduction factor to obtain a fourth perspective view;
根据所述第四视角视图进行VR显示;performing VR display according to the fourth perspective view;
所述将所述原始视图中处于选中态的图像向右水平偏移预定距离获得第一视角视图,将所述原始视图中处于选中态的图像向左水平偏移预定距离获得第二视角视图包括:The step of horizontally shifting the selected image in the original view by a predetermined distance to the right to obtain a first perspective view, and shifting the selected image in the original view horizontally by a predetermined distance to the left to obtain a second perspective view includes :
将所述第四视角视图中所述处于选中态的图像向右水平偏移预定距离获得第一视角视图,将所述第四视角视图中所述处于选中态的图像向左水平偏移预定距离获得第二视角视图。shifting the image in the selected state in the fourth perspective view horizontally by a predetermined distance to the right to obtain a first perspective view, and shifting the image in the selected state in the fourth perspective view horizontally by a predetermined distance to the left Get a second-person view.
其中,可选的,所述根据所述第一视角视图和所述第二视角视图进行VR显示,包括:Wherein, optionally, performing VR display according to the first perspective view and the second perspective view includes:
发送所述第一视角视图和所述第二视角视图,以使接收端根据所述第一视角视图和所述第二视角视图进行VR显示。Sending the first perspective view and the second perspective view, so that the receiving end performs VR display according to the first perspective view and the second perspective view.
其中,可选的,所述确定原始视图中处于选中态的图像,包括:Wherein, optionally, the determining the selected image in the original view includes:
接收用户的图像选择指令;Receive the user's image selection instruction;
根据所述图像选择指令,确定原始视图中处于选中态的图像。According to the image selection instruction, the selected image in the original view is determined.
第二方面,本发明实施例提供一种VR显示装置,包括:In a second aspect, an embodiment of the present invention provides a VR display device, including:
图像选取单元,用于确定原始视图中处于选中态的图像,其中,所述原始视图中包含至少一张图像,所述图像为二维图像;An image selection unit, configured to determine the selected image in the original view, wherein the original view contains at least one image, and the image is a two-dimensional image;
双目视图获取单元,用于将所述原始视图中处于选中态的图像向右水平偏移预定距离获得第一视角视图,将所述原始视图中处于选中态的图像向左水平偏移预定距离获得第二视角视图;A binocular view acquisition unit, configured to horizontally shift the image in the selected state in the original view by a predetermined distance to the right to obtain a first perspective view, and shift the image in the selected state in the original view horizontally by a predetermined distance to the left Obtain a second perspective view;
显示单元,用于根据所述第一视角视图和所述第二视角视图进行VR显示。A display unit, configured to perform VR display according to the first perspective view and the second perspective view.
其中,可选的,所述双目视图获取单元具体用于:Wherein, optionally, the binocular view acquisition unit is specifically used for:
将所述原始视图中处于选中态的图像向右水平偏移预定距离且按照预设的缩放倍数进行缩放处理从而获得第一视角视图,将所述原始视图中处于选中态的图像向左水平偏移预定距离且按照预设的缩放倍数进行缩放处理从而获得第二视角视图。Shifting the image in the selected state in the original view to the right by a predetermined distance and performing scaling processing according to a preset zoom factor to obtain a first perspective view, and shifting the image in the selected state in the original view horizontally to the left Move a predetermined distance and perform zoom processing according to a preset zoom factor to obtain a second perspective view.
其中,可选的:Among them, optional:
所述原始视图中包含有至少两张图像;The original view contains at least two images;
所述双目视图获取单元具体用于:The binocular view acquisition unit is specifically used for:
将所述原始视图中处于选中态的图像向右水平偏移预定距离且按照预设的放大倍数进行放大处理,并且将所述原始视图中处于选中态的图像之外的图像按照预设的缩小倍数进行缩小处理从而获得第一视角视图,将所述原始视图中处于选中态的图像向左水平偏移预定距离且按照预设的放大倍数进行放大处理,并且将所述原始视图中处于选中态的图像之外的图像按照预设的缩小倍数进行缩小处理从而获得第二视角视图;Shifting the image in the selected state in the original view to the right by a predetermined distance and zooming in according to a preset magnification, and reducing the images other than the image in the selected state in the original view according to a preset multiple times to perform zoom-out processing to obtain the first perspective view, shift the image in the selected state in the original view horizontally to the left by a predetermined distance and perform zoom-in processing according to the preset magnification, and select the image in the original view The images other than the image are reduced according to the preset reduction factor to obtain the second perspective view;
或者,or,
将所述原始视图中处于选中态的图像向右水平偏移预定距离且按照预设的缩小倍数进行缩小处理,并且将所述原始视图中处于选中态的图像之外的图像按照预设的放大倍数进行放大处理从而获得第一视角视图,将所述原始视图中处于选中态的图像向左水平偏移预定距离且按照预设的缩小倍数进行缩小处理,并且将所述原始视图中处于选中态的图像之外的图像按照预设的放大倍数进行放大处理从而获得第二视角视图。Shifting the image in the selected state in the original view to the right by a predetermined distance and performing reduction processing according to a preset reduction factor, and zooming in on images other than the image in the selected state in the original view according to a preset Multiply to zoom in to obtain the first perspective view, shift the image in the selected state in the original view horizontally to the left by a predetermined distance and perform reduction processing according to the preset reduction factor, and make the image in the selected state in the original view The images other than the image are enlarged according to the preset magnification to obtain the second perspective view.
其中,可选的:Among them, optional:
所述装置还包括第一缩放处理单元,用于在所述确定原始视图中处于选中态的图像后,获取所述第一视角视图和所述第二视角视图之前,对所述原始视图中处于选中态的图像按照预设的放大倍数进行放大处理,获取第三视角视图;The device further includes a first scaling processing unit, configured to, after determining the image in the selected state in the original view, and before acquiring the first perspective view and the second perspective view, The selected image is enlarged according to the preset magnification factor to obtain a third perspective view;
所述显示单元还用于根据所述第三视角视图进行VR显示;The display unit is further configured to perform VR display according to the third perspective view;
所述双目视图获取单元具体用于:The binocular view acquisition unit is specifically used for:
将所述第三视角视图中所述处于选中态的图像向右水平偏移预定距离获得第一视角视图,将所述第三视角视图中所述处于选中态的图像向左水平偏移预定距离获得第二视角视图;shifting the image in the selected state in the third perspective view horizontally by a predetermined distance to the right to obtain a first perspective view, and shifting the image in the selected state in the third perspective view horizontally by a predetermined distance to the left Obtain a second perspective view;
或者,or,
所述装置还包括第二缩放处理单元,用于在所述确定原始视图中处于选中态的图像后,获取所述第一视角视图和所述第二视角视图之前,对所述原始视图中处于选中态的图像之外的图像按照预设的缩小倍数进行缩小处理,获取第四视角视图;The device further includes a second scaling processing unit, configured to, after determining the selected image in the original view and before acquiring the first perspective view and the second perspective view, The images other than the selected image are reduced according to the preset reduction factor to obtain the fourth perspective view;
所述显示单元还用于根据所述第四视角视图进行VR显示;The display unit is further configured to perform VR display according to the fourth perspective view;
所述双目视图获取单元具体用于:The binocular view acquisition unit is specifically used for:
将所述第四视角视图中所述处于选中态的图像向右水平偏移预定距离获得第一视角视图,将所述第四视角视图中所述处于选中态的图像向左水平偏移预定距离获得第二视角视图。shifting the image in the selected state in the fourth perspective view horizontally by a predetermined distance to the right to obtain a first perspective view, and shifting the image in the selected state in the fourth perspective view horizontally by a predetermined distance to the left Get a second-person view.
其中,可选的,所述显示单元具体用于:Wherein, optionally, the display unit is specifically used for:
发送所述第一视角视图和所述第二视角视图,以使接收端根据所述第一视角视图和所述第二视角视图进行VR显示。Sending the first perspective view and the second perspective view, so that the receiving end performs VR display according to the first perspective view and the second perspective view.
其中,可选的,所述图像选取单元具体用于:Wherein, optionally, the image selection unit is specifically used for:
接收用户的图像选择指令;Receive the user's image selection instruction;
根据所述图像选择指令,确定原始视图中处于选中态的图像。According to the image selection instruction, the selected image in the original view is determined.
第三方面,本发明实施例提供一种电子设备,包括:In a third aspect, an embodiment of the present invention provides an electronic device, including:
至少一个处理器;以及,at least one processor; and,
与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein,
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行如上所述的VR显示方法。The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor, so that the at least one processor can execute the aforementioned VR display method.
第四方面,本发明实施例提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机可执行指令,所述计算机可执行指令用于使计算机执行如上所述的VR显示方法。In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to cause a computer to execute the above-mentioned VR display method.
第五方面,本发明实施例还提供了一种计算机程序产品,所述计算机程序产品包括存储在计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行如上所述的VR显示方法。In the fifth aspect, an embodiment of the present invention further provides a computer program product, the computer program product includes a computer program stored on a computer-readable storage medium, the computer program includes program instructions, and when the program instructions are executed by a computer When executing, the computer is made to execute the above-mentioned VR display method.
本发明实施例的有益效果是,区别于现有技术的情况,本发明实施例提供的VR显示方法、装置和电子设备,通过确定原始视图中处于选中态的图像,并将所述原始视图中处于选中态的图像向右水平偏移预定距离获得第一视角视图,将所述原始视图中处于选中态的图像向左水平偏移预定距离获得第二视角视图,然后根据所述第一视角视图和所述第二视角视图进行VR显示,能够实现VR显示中二维图像的立体显示效果,在该过程中无需嵌入3D引擎编程,减少应用程序间的通信和计算量,节约应用程序运行终端的处理资源。The beneficial effect of the embodiments of the present invention is that, different from the situation of the prior art, the VR display method, device and electronic equipment provided by the embodiments of the present invention determine the image in the selected state in the original view, and convert the image in the original view to The image in the selected state is shifted horizontally by a predetermined distance to the right to obtain a first perspective view, and the image in the selected state in the original view is horizontally shifted by a predetermined distance to the left to obtain a second perspective view, and then according to the first perspective view Performing VR display with the second perspective view can realize the stereoscopic display effect of the two-dimensional image in the VR display. In this process, there is no need to embed 3D engine programming, which reduces the amount of communication and calculation between applications, and saves the cost of the application program running terminal. Process resources.
附图说明Description of drawings
为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例中所需要使用的附图作简单地介绍。显而易见地,下面所描述的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions of the embodiments of the present invention more clearly, the following will briefly introduce the drawings that are used in the embodiments of the present invention. Apparently, the drawings described below are only some embodiments of the present invention, and those skilled in the art can obtain other drawings according to these drawings without creative efforts.
图1是本发明实施例一提供的一种VR显示方法的流程示意图;FIG. 1 is a schematic flowchart of a VR display method provided by Embodiment 1 of the present invention;
图2(a)--(c)是本发明实施例二提供的VR显示方法中的视图示意图;2(a)-(c) are schematic views of the VR display method provided by Embodiment 2 of the present invention;
图3是本发明实施例三提供的一种VR显示方法的流程示意图;FIG. 3 is a schematic flowchart of a VR display method provided by Embodiment 3 of the present invention;
图4是本发明实施例四提供的一种VR显示装置的结构示意图;FIG. 4 is a schematic structural diagram of a VR display device provided by Embodiment 4 of the present invention;
图5是本发明实施例五提供的一种VR显示装置的结构示意图;FIG. 5 is a schematic structural diagram of a VR display device provided by Embodiment 5 of the present invention;
图6是本发明实施例六提供的一种电子设备的结构示意图;以及,FIG. 6 is a schematic structural diagram of an electronic device provided by Embodiment 6 of the present invention; and,
图7是本发明实施例一中所述的立体成像的两点透视法的原理示意图。FIG. 7 is a schematic diagram of the principle of the two-point perspective method of stereoscopic imaging described in Embodiment 1 of the present invention.
具体实施方式Detailed ways
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本发明,并不用于限定本发明。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.
需要说明的是,如果不冲突,本发明实施例中的各个特征可以相互结合,均在本发明的保护范围之内。另外,虽然在装置示意图中进行了功能模块划分,在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于装置中的模块划分,或流程图中的顺序执行所示出或描述的步骤。It should be noted that, if there is no conflict, various features in the embodiments of the present invention may be combined with each other, and all of them are within the protection scope of the present invention. In addition, although the functional modules are divided in the schematic diagram of the device, and the logical order is shown in the flowchart, in some cases, the division of modules in the device or the sequence shown in the flowchart can be performed in different ways. or the steps described.
人们之所以能看到物体的空间位置,而不是像照片一样平面的感觉,原因在于人的左眼和右眼看到的图像并不相同,它们之间细微的差别被大脑识别后,能够产生远近的深度,从而产生立体感。The reason why people can see the spatial position of objects, rather than a flat feeling like a photo, is that the images seen by the left and right eyes of people are not the same. After the subtle differences between them are recognized by the brain, they can produce distance depth, resulting in a three-dimensional effect.
基于上述原理,本发明实施例提供的VR显示方法、装置和电子设备能够对由二维图像构成的视图进行处理,通过移动视图中的二维图像形成用于VR显示的左右眼视图(第一视角视图和第二视角视图),进而利用VR显示设备进行VR显示,用户可以感受到二维图像之间的空间距离对比,进而感受到视图中的二维图像的立体层次效果,可以广泛应用于游戏、视频、交互、地图、阅读教育等领域。例如,在一些实施例中,可以将游戏的整体画面拆分为场景和人设两种类型的二维图像,利用本发明实施例提供的方法对上述二维图像进行处理,可以获得该画面的左眼视图图像和右眼视图图像,进而将其呈现在VR显示设备中即可使用户观看到具有空间立体层次感的游戏画面;或者,在另一些实施例中,在人机交互时,利用本发明实施例提供的方法对二维显示画面中的图像进行处理,可以使用户选中的图像“向前移动”,与其他未被选中的图像形成空间立体层次感。进一步地,在又一些实施例中,还可以多次重复本发明实施例提供的VR显示方法中的步骤,获得具有多种层次感的立体画面。Based on the above principles, the VR display method, device, and electronic equipment provided by the embodiments of the present invention can process the view composed of two-dimensional images, and form left and right eye views for VR display by moving the two-dimensional images in the view (the first perspective view and second perspective view), and then use the VR display device for VR display, users can feel the spatial distance contrast between the two-dimensional images, and then feel the three-dimensional effect of the two-dimensional images in the view, which can be widely used in Games, video, interaction, maps, reading education and other fields. For example, in some embodiments, the overall picture of the game can be split into two types of two-dimensional images of scenes and characters, and the above-mentioned two-dimensional images can be processed by using the method provided by the embodiment of the present invention, and the image of the picture can be obtained. The left-eye view image and the right-eye view image, and then presenting them in the VR display device can enable the user to watch the game screen with a three-dimensional sense of space; or, in some other embodiments, during human-computer interaction, use The method provided by the embodiment of the present invention processes the images in the two-dimensional display screen, which can make the image selected by the user "move forward" and form a three-dimensional sense of hierarchy with other unselected images. Furthermore, in still some embodiments, the steps in the VR display method provided by the embodiments of the present invention may also be repeated multiple times to obtain stereoscopic images with various layers.
下面结合附图,对本发明实施例作进一步阐述。The embodiments of the present invention will be further described below in conjunction with the accompanying drawings.
实施例一Embodiment one
图1是本发明实施例一提供的一种VR显示方法的流程示意图,请参阅图1,该方法包括:Fig. 1 is a schematic flowchart of a VR display method provided by Embodiment 1 of the present invention, please refer to Fig. 1, the method includes:
110、确定原始视图中处于选中态的图像。110. Determine the selected image in the original view.
在本实施例中,所述“原始视图”是指最初的视图,其包括至少一张图像,且所述图像为二维图像,将从这个视图中选中一张图像,本发明实施例的VR显示方式,即为了呈现原始视图中的二维图像从未选到被选中的过程,从而使用户感知到立体层次效果。In this embodiment, the "original view" refers to the initial view, which includes at least one image, and the image is a two-dimensional image, and an image will be selected from this view. The VR of the embodiment of the present invention The display mode is a process from unselected to selected in order to present the two-dimensional image in the original view, so that the user perceives a three-dimensional layered effect.
举例说明,“原始视图”可如图2(a)所示,包括A、B、C三张二维图像。例如,原始视图可以为一人机交互界面视图,其中包含有若干个(即至少一个)二维控件图像,用户可通过外设输入、头瞄等方式执行选择操作,下发选择指示,选择其中的一个二维控件,本步骤中将根据用户的选择操作确定出用户选择的图像,即处于选中态的图像。For example, the "original view" may be shown in Figure 2(a), including three two-dimensional images A, B, and C. For example, the original view can be a human-computer interaction interface view, which contains several (that is, at least one) two-dimensional control images. The user can perform selection operations through peripheral input, head-pointing, etc., issue selection instructions, and select one of them. A two-dimensional control, in this step, the image selected by the user will be determined according to the user's selection operation, that is, the image in the selected state.
所述“处于选中态的图像”是指原始视图中被终端系统或者用户选中的图像,相应地,没有被终端系统或者用户选中的图像,即未选中的图像,为处于选中态的图像之外的图像。其中,当所述原始视图仅包括一张二维图像时,可以默认该二维图像即处于选中态的图像;或者,所述处于选中态的图像也可以是该二维图像中的一部分,可通过抠图的方式使其与其他部分分离,例如:原始视图1为一张多人的合照,该原始视图1包括:背景X以及人物A、B、C和D,若系统需选中人物A,则可以将人物A标记为选中态,并将其进行抠图处理。在一些实施例中,原始视图可以包括N张二维图像,所述N为大于1的正整数,其中,所述N张二维图像可以是按照一定规则排列的,也可以是乱序排列的,或者,该N张二维图像的大小不一样时还可以是重叠排列的。在该实施例中,处于选中态的图像可以是N张二维图像中的一张或者n张,其中,n≤N。在该实施例中,仅对原始视图中的二维图像进行简单处理即可呈现出立体空间层次感,简单方便,减少应用程序运行终端对原始图像的处理量。The "image in the selected state" refers to the image selected by the terminal system or the user in the original view. Correspondingly, the image not selected by the terminal system or the user, that is, the unselected image, is an image other than the image in the selected state. Image. Wherein, when the original view only includes a two-dimensional image, the two-dimensional image can be defaulted to be the image in the selected state; or, the image in the selected state can also be a part of the two-dimensional image, which can be selected by The way of drawing separates it from other parts. For example: the original view 1 is a group photo of multiple people. The original view 1 includes: background X and characters A, B, C and D. If the system needs to select character A, you can Mark character A as selected, and cut it out. In some embodiments, the original view may include N two-dimensional images, where N is a positive integer greater than 1, wherein the N two-dimensional images may be arranged according to a certain rule, or arranged in random order, or, the When the sizes of the N two-dimensional images are different, they may also be arranged in an overlapping manner. In this embodiment, the selected image may be one or n of N two-dimensional images, where n≤N. In this embodiment, only simple processing is performed on the two-dimensional image in the original view to present a three-dimensional spatial layering, which is simple and convenient, and reduces the amount of processing of the original image by the application running terminal.
在本实施例中,首先确定原始视图中处于选中态的图像,该选中态的图像可以通过系统按照预设的规则自动选取,比如:若系统需要选取原始视图1中的人物A:可以首先预设人物A、B、C和D在原始视图1中的位置坐标信息,输入人物A的位置坐标信息即可将人物A标记为选中态。或者,在一些实施例中,还可以通过接收用户的图像选择指令后,根据所述图像选择指令确定原始视图中处于选中态的图像,比如:用户通过蓝牙手柄或者触摸操作向终端发送图像选择指令,终端根据该图像选择指令选择与之对应的一张或多张图像作为选中态的图像。其中,接收用户的图像选择指令,根据所述图像选择指令确定原始视图中处于选中态的图像的方式,能够提供更好的人机交互体验。In this embodiment, first determine the selected image in the original view, the selected image can be automatically selected by the system according to the preset rules, for example: if the system needs to select the character A in the original view 1: you can first pre-select Assuming the position coordinate information of characters A, B, C and D in the original view 1, input the position coordinate information of character A to mark character A as selected. Or, in some embodiments, after receiving the user's image selection instruction, the image in the selected state in the original view can be determined according to the image selection instruction, for example: the user sends an image selection instruction to the terminal through a Bluetooth handle or touch operation , according to the image selection instruction, the terminal selects one or more corresponding images as selected images. Wherein, the way of receiving the user's image selection instruction and determining the selected image in the original view according to the image selection instruction can provide a better human-computer interaction experience.
120、将原始视图中处于选中态的图像向右水平偏移预定距离获得第一视角视图,将原始视图中处于选中态的图像向左水平偏移预定距离获得第二视角视图。120. Shift the selected image in the original view horizontally by a predetermined distance to the right to obtain a first perspective view, and shift the selected image in the original view horizontally by a predetermined distance to the left to obtain a second perspective view.
在本实施例中,所述“第一视角视图”和所述“第二视角视图”是对原始视图进行调整得到的一对双目视图,包括:用于向用户的左眼呈现的左眼视图和用于向用户的右眼呈现的右眼视图,在进行VR显示时,通常将在VR显示设备的左屏幕上显示左眼视图,在VR显示设备的右屏幕上显示右眼视图。In this embodiment, the "first perspective view" and the "second perspective view" are a pair of binocular views obtained by adjusting the original view, including: a left eye for presenting to the user's left eye view and the right-eye view for presenting to the user's right eye. During VR display, the left-eye view is usually displayed on the left screen of the VR display device, and the right-eye view is displayed on the right screen of the VR display device.
本发明实施例中,对原始视图调整后,得到左眼视图和所述右眼视图,通过分别向用户的左眼和右眼呈现所述左眼视图和所述右眼视图,可以在用户的大脑中形成与该原始视图对应的立体图像。In the embodiment of the present invention, after the original view is adjusted, the left-eye view and the right-eye view are obtained, and by presenting the left-eye view and the right-eye view to the user's left eye and right eye respectively, the A stereoscopic image corresponding to this original view is formed in the brain.
其中,所述“预定距离”是指预设好的将处于选中态的图像分别在所述原始视图中向右或向左水平偏移的距离,该预定距离可以预先固定设置好,也可以根据预设的立体效果动态调整,例如,在预设的立体效果中选中态的图像和未选中的图像在空间上的距离差值越大,则,在本步骤中选中态的图像所需偏移的距离越大,而预设的立体效果可以由系统设定,也可以由用户自主选择。在一些实施例中,所述原始视图包括N张规则排列的二维图像,所述N为大于1的正整数,为了在获得的观看效果中靠近人眼的图像不会遮挡到远离人眼的图像,可以根据所述N张二维图像之间的位置关系进一步调整该预定距离。Wherein, the "predetermined distance" refers to the preset distance to horizontally shift the image in the selected state to the right or to the left in the original view. The predetermined distance can be fixed in advance, or can be set according to Dynamic adjustment of the preset stereoscopic effect, for example, the greater the spatial distance difference between the selected image and the unselected image in the preset stereoscopic effect, the required offset of the selected image in this step The greater the distance, the preset stereoscopic effect can be set by the system, and can also be selected by the user. In some embodiments, the original view includes N regularly arranged two-dimensional images, where N is a positive integer greater than 1, so that images close to the human eye will not be blocked by images far away from the human eye in the obtained viewing effect. images, the predetermined distance may be further adjusted according to the positional relationship between the N two-dimensional images.
根据立体成像的两点透视法可知,场景对象通过不同的左右两眼透视投影到同一个屏幕上,在这一过程中,左眼视图中距离用户近的物体投影在屏幕上的像比距离用户远的物体偏右,而右眼视图中距离用户近的物体投影在屏幕上的像比距离用户远的物体偏左,原理可参见图7。基于此,本发明实施例中,想要实现使用户感知被选中的图像距离用户近,即向用户靠近。因此,可将原始视图中被选中的图像在原来的位置基础上向右移动一定距离,得到左眼视图,可将原始视图中被选中的图像在原来的位置基础上向左移动一定距离,得到右眼视图,这样,在根据该左眼视图和右眼视图进行VR显示时,被选中的图像具有空间上向用户移动的感觉,即用户在浏览图像时在视觉上感觉到的选中态的图像比未选中态的图像离自己更近。当然,可以理解的是,若想要达到被选中的图像在用户视觉上远离用户离用户更远,则反向移动,即可将原始视图中被选中的图像在原来的位置基础上向右移动一定距离,得到右眼视图,可将原始视图中被选中的图像在原来的位置基础上向右移动一定距离,得到左眼视图。According to the two-point perspective method of stereoscopic imaging, the scene objects are projected onto the same screen through different perspectives of the left and right eyes. Objects that are far away are shifted to the right, while objects that are closer to the user in the view of the right eye are projected on the screen to the left than objects that are farther away from the user. The principle can be seen in Figure 7. Based on this, in the embodiment of the present invention, it is intended to enable the user to perceive that the selected image is closer to the user, that is, to approach the user. Therefore, the selected image in the original view can be moved to the right by a certain distance based on the original position to obtain the left-eye view, and the selected image in the original view can be moved to the left by a certain distance based on the original position to obtain Right-eye view, in this way, when performing VR display according to the left-eye view and right-eye view, the selected image has the feeling of spatially moving to the user, that is, the image in the selected state that the user visually feels when browsing the image Closer to yourself than the unselected image. Of course, it is understandable that if you want the selected image to be visually farther away from the user than the user, move in the opposite direction, that is, move the selected image in the original view to the right based on the original position At a certain distance, the right-eye view can be obtained, and the selected image in the original view can be moved to the right by a certain distance based on the original position to obtain the left-eye view.
也就是说,在本实施例中,可以固定原始视图中未选中的图像不动,将所述原始视图中处于选中态的图像向右水平偏移预定距离获得第一视角视图,将所述原始视图中处于选中态的图像向左水平偏移预定距离获得第二视角视图:若希望在获得的观看效果中,处于选中态的图像相较于未选中的图像离用户的眼睛更近,则,将所述第一视角视图作为左眼视图,将所述第二视角视图作为右眼视图;反之,若希望在获得的观看效果中,选中态的图像相较于未选中的图像离用户的眼睛更远,则,将所述第一视角视图作为右眼视图,将所述第二视角视图作为左眼视图。That is to say, in this embodiment, the unselected image in the original view can be fixed, and the selected image in the original view can be shifted horizontally by a predetermined distance to the right to obtain the first perspective view, and the original The selected image in the view is shifted horizontally by a predetermined distance to the left to obtain the second perspective view: if you want the selected image to be closer to the user's eyes than the unselected image in the obtained viewing effect, then, Use the first viewing angle view as the left eye view, and use the second viewing angle view as the right eye view; conversely, if you want the selected image to be farther away from the user's eyes than the unselected image in the obtained viewing effect If it is further away, the view from the first perspective is taken as the view for the right eye, and the view from the second perspective is taken as the view for the left eye.
此外,根据“近大远小”的视觉原理可知,若对处于选中态的图像进行放大处理,能够使用户在视觉上感受到处于选中态的图像距离自己更近;若对处于选中态的图像进行缩小处理,则能够使用户在视觉上感受到处于选中态的图像距离自己更远。因此,为了更好地建立二维图像之间的空间立体层次感,在一些实施例中,在对处于选中态的图像进行偏移处理的同时,按照预设的缩放倍数对所述处于选中态的图像进行缩放处理,即:将所述原始视图中处于选中态的图像向右水平偏移预定距离且按照预设的缩放倍数进行缩放处理从而获得第一视角视图;将所述原始视图中处于选中态的图像向左水平偏移预定距离且按照预设的缩放倍数进行缩放处理从而获得第二视角视图。其中,所述缩放倍数包括放大倍数和缩小倍数,可以预先固定设置好,也可以根据预设的立体效果动态调整:在预设的立体效果中处于选中态的图像和未选中的图像在空间上的距离差值越大,则该缩放倍数的数值越大。另外,对处于选中态的图像进行缩放处理和偏移处理是相辅相成、相互协调的过程,其实施顺序可以是先放大后偏移,也可以是先偏移后放大,还可以是同时进行偏移和放大;而偏移的方向和缩放的模式均由预设的立体效果决定。例如:想要呈现出处于选中态的图像距离用户的眼睛更近的视觉效果,就需要将处于选中态的图像放大,并且,将分屏中对应左眼的屏幕视图(左眼视图)中处于选中态的放大的图像在原来位置的基础上向右水平移动预定距离,将对应右眼的屏幕视图(右眼视图)中处于选中态的放大的图像在原来位置的基础上向左水平移动预定距离,即,将在本步骤中获得的第一视角视图作为左眼视图,将第二视角视图作为右眼视图。由此,用户在浏览时能够在视觉上感觉到处于选中态的图像比未选中的图像离自己更近。In addition, according to the visual principle of "near large, far small", if the image in the selected state is zoomed in, the user can visually feel that the image in the selected state is closer to him; The reduction processing can make the user visually feel that the image in the selected state is farther away from the user. Therefore, in order to better establish the spatial three-dimensional sense of hierarchy between two-dimensional images, in some embodiments, while performing offset processing on the image in the selected state, the image in the selected state is imaged according to a preset zoom factor. The image in the original view is zoomed, that is, the image in the selected state in the original view is shifted horizontally by a predetermined distance to the right and zoomed in accordance with the preset zoom factor to obtain the first perspective view; the image in the original view in the The image in the selected state is shifted horizontally by a predetermined distance to the left and zoomed according to a preset zoom factor to obtain a second perspective view. Wherein, the zoom factor includes a zoom factor and a zoom factor, which can be fixed and set in advance, or can be dynamically adjusted according to the preset stereoscopic effect: in the preset stereoscopic effect, the images in the selected state and the unselected images are spaced The larger the distance difference, the larger the value of the zoom factor. In addition, scaling and offsetting the image in the selected state are complementary and coordinated processes. The order of implementation can be zooming in first and then offsetting, or offsetting first and then zooming in, or offsetting at the same time. and magnification; while the offset direction and scaling mode are determined by the preset stereo effect. For example: if you want to show the visual effect that the selected image is closer to the user's eyes, you need to enlarge the selected image, and make the screen view (left eye view) corresponding to the left eye in the split screen in the The enlarged image in the selected state moves horizontally to the right by a predetermined distance based on the original position, and the enlarged image in the selected state in the screen view corresponding to the right eye (right eye view) moves horizontally to the left by a predetermined distance based on the original position distance, that is, the first perspective view obtained in this step is taken as the left-eye view, and the second perspective view is taken as the right-eye view. Thus, the user can visually feel that the selected image is closer to the user than the unselected image when browsing.
需要强调的是,为了突出空间上有运动的观感,上述缩放和偏移这两种处理无论谁先谁后,在VR显示时,显示也可与处理对应,即每进行一次处理都进行显示。比如,若首先对选中态的图像进行放大处理,得到放大处理后的视图,根据该视图进行VR显示,然后,对选中态的图像进行偏移处理得到第一和第二两张视图,根据这两张视图进行VR显示,从而使用户观看到被选中的图像有一个运动的感觉。It should be emphasized that, in order to highlight the perception of movement in space, regardless of which of the above-mentioned zoom and offset processes comes first, the display can also correspond to the processing during VR display, that is, it will be displayed every time the processing is performed. For example, if the image in the selected state is zoomed in first to obtain the zoomed-in view, VR display is performed based on the view, and then the image in the selected state is shifted to obtain the first and second views. The two views are displayed in VR, so that the user has a sense of movement when watching the selected image.
进一步地,当原始视图包括至少两张图像时,为了突出立体层次效果,在一些实施例中,还可以按照预设的缩放倍数对处于选中态的图像之外的图像进行与处于选中态的图像相反的缩放处理,即达到选中的图像和未选中的图像一个靠近用户运动,一个远离用户运动的效果,亦即:将所述原始视图中处于选中态的图像向右水平偏移预定距离且按照预设的放大倍数进行放大处理,并且将所述原始视图中处于选中态的图像之外的图像按照预设的缩小倍数进行缩小处理从而获得第一视角视图,将所述原始视图中处于选中态的图像向左水平偏移预定距离且按照预设的放大倍数进行放大处理,并且将所述原始视图中处于选中态的图像之外的图像按照预设的缩小倍数进行缩小处理从而获得第二视角视图;或者,将所述原始视图中处于选中态的图像向右水平偏移预定距离且按照预设的缩小倍数进行缩小处理,并且将所述原始视图中处于选中态的图像之外的图像按照预设的放大倍数进行放大处理从而获得第一视角视图,将所述原始视图中处于选中态的图像向左水平偏移预定距离且按照预设的缩小倍数进行缩小处理,并且将所述原始视图中处于选中态的图像之外的图像按照预设的放大倍数进行放大处理从而获得第二视角视图。Furthermore, when the original view includes at least two images, in order to highlight the stereoscopic effect, in some embodiments, the images other than the selected image may be compared with the selected image according to a preset zoom factor. The opposite scaling process, that is, to achieve the effect that one of the selected image and the unselected image moves closer to the user and the other moves away from the user, that is, the image in the selected state in the original view is horizontally shifted to the right by a predetermined distance and according to The preset magnification is enlarged, and the image other than the selected image in the original view is reduced according to the preset reduction to obtain the first perspective view, and the original view is selected The image is shifted horizontally by a predetermined distance to the left and zoomed in according to a preset magnification factor, and the images other than the selected image in the original view are reduced in accordance with a preset zoom factor to obtain a second viewing angle or, shifting the image in the selected state in the original view horizontally to the right by a predetermined distance and performing reduction processing according to a preset reduction factor, and reducing the images other than the image in the selected state in the original view according to performing magnification processing at a preset magnification factor to obtain a view from a first perspective; shifting the image in the selected state in the original view horizontally to the left by a predetermined distance and performing reduction processing according to a preset magnification factor; and converting the original view The images other than the selected image are enlarged according to the preset magnification to obtain the second perspective view.
130、根据所述第一视角视图和所述第二视角视图进行VR显示。130. Perform VR display according to the first perspective view and the second perspective view.
在本实施例中,首先根据预期的VR显示效果确定所述第一视角视图和所述第二视角视图的左右眼视图类型:若在预期的VR显示效果中,处于选中态的图像离人眼更近,则确定所述第一视角视图为左眼视图而所述第二视角视图为右眼视图,反之,若在预期的VR显示效果中处于选中态的图像离人眼更远,则确定所述第一视角视图为右眼视图而所述第二视角视图为左眼视图。然后,根据标记好左右眼视图类型的所述第一视角视图和所述第二视角视图进行VR显示,从而呈现出图像的VR显示效果。In this embodiment, firstly, the left and right eye view types of the first perspective view and the second perspective view are determined according to the expected VR display effect: if in the expected VR display effect, the selected image is far from the human eye If it is closer, it is determined that the first perspective view is a left-eye view and the second perspective view is a right-eye view; on the contrary, if the image in the selected state is farther away from the human eye in the expected VR display effect, then it is determined that The first perspective view is a right eye view and the second perspective view is a left eye view. Then, VR display is performed according to the first perspective view and the second perspective view marked with left and right eye view types, so as to present a VR display effect of the image.
此外,在一些实施例中,可以通过外部的VR显示设备根据所述第一视角视图和所述第二视角视图进行VR显示。因此,在该实施例中,本步骤包括:发送所述第一视角视图和所述第二视角视图,以使接收端根据所述第一视角视图和所述第二视角视图进行VR显示。其中,所述“接收端”是指能够对双目视图(即所述第一视角视图和所述第二视角视图)进行处理并分别将对应的左眼视图和右眼视图呈现给用户的左眼和右眼观看的终端,如:VR眼镜。可以通过网络对所述第一视角视图和所述第二视角视图进行传输,也可以借助HDMI、SDI等物理连接进行传输。进一步地,在另一些实施例中,还可以在确定了所述第一视角视图和所述第二视角视图的左右眼视图类型后,将其左眼视图和右眼视图从左到右并列合成一张左右视图图像,然后将该左右视图图像发送给接收端。通过将所述第一视角视图和所述第二视角视图按照既定的规则合并成一张左右视图图像后发送给接收端,能够方便接收端直接呈现所述原始视图的VR显示效果。In addition, in some embodiments, an external VR display device may be used for VR display according to the first perspective view and the second perspective view. Therefore, in this embodiment, this step includes: sending the first perspective view and the second perspective view, so that the receiving end performs VR display according to the first perspective view and the second perspective view. Wherein, the "receiving end" refers to the left-hand side that can process the binocular view (that is, the first perspective view and the second perspective view) and present the corresponding left-eye view and right-eye view to the user respectively. The terminal viewed by the right eye and the right eye, such as: VR glasses. The first perspective view and the second perspective view may be transmitted through a network, or through physical connections such as HDMI and SDI. Furthermore, in some other embodiments, after the left and right eye view types of the first perspective view and the second perspective view are determined, the left eye view and right eye view can be synthesized side by side from left to right A left and right view image, and then send the left and right view images to the receiving end. By merging the first perspective view and the second perspective view into a left and right view image according to predetermined rules and sending it to the receiving end, it is convenient for the receiving end to directly present the VR display effect of the original view.
通过上述技术方案可知,本发明实施例的有益效果在于:通过确定原始视图中处于选中态的图像,并将所述原始视图中处于选中态的图像向右水平偏移预定距离获得第一视角视图,将所述原始视图中处于选中态的图像向左水平偏移预定距离获得第二视角视图,然后根据所述第一视角视图和所述第二视角视图进行VR显示,能够实现二维图像之间的空间距离对比,进而呈现出二维图像的空间层次效果,在该过程中无需嵌入3D引擎编程,减少应用程序间的通信和计算量,节约应用程序运行终端的处理资源。此外,通过在对处于选中态的图像进行偏移处理的同时按照预设的缩放倍数对其进行缩放处理,能够更好地建立二维图像之间的空间立体层次感,增强VR显示效果。From the above technical solutions, it can be seen that the beneficial effect of the embodiments of the present invention is that the first perspective view is obtained by determining the image in the selected state in the original view, and shifting the image in the selected state in the original view to the right by a predetermined distance The selected image in the original view is shifted horizontally by a predetermined distance to the left to obtain a second perspective view, and then VR display is performed according to the first perspective view and the second perspective view, which can realize the two-dimensional image In this process, there is no need to embed 3D engine programming, which reduces the amount of communication and calculation between applications, and saves the processing resources of the application program running terminal. In addition, by performing offset processing on the image in the selected state and scaling it according to a preset zoom factor, it is possible to better establish a spatial three-dimensional layering between two-dimensional images and enhance the VR display effect.
实施例二Embodiment two
在本实施例中,以用户使用VR应用浏览UI交互界面的二维图像为例,对本发明实施例一提供的VR显示方法进行进一步的具体说明。其中,在本实施例中,达到的效果是使得被用户选中的二维图像在视觉感受上距离人眼更近。In this embodiment, the VR display method provided in Embodiment 1 of the present invention is further described in detail by taking a user using a VR application to browse a two-dimensional image of a UI interface as an example. Wherein, in this embodiment, the effect achieved is to make the two-dimensional image selected by the user closer to human eyes in terms of visual experience.
图2(a)--(c)是本实施例中的VR显示过程中的视图示意图。参考图2(a)--(c)所示,本实施例的VR显示方法中,首先根据原始视图进行VR显示,即左眼视图和右眼视图均为原始视图。原始视图请参见图2(a),该原始视图20为用户浏览的UI交互界面视图,在该原始视图20中包括三张二维图像A、B和C。此时,若用户选中二维图像B,例如通过外设设备输入或者头瞄等方式选择图像B,则可以根据用户选择确认二维图像B即为该原始视图中处于选中态的图像,接下来按照预设的放大倍数对原始视图中的二维图像B进行放大处理,放大处理后得到的视图(第三视角视图23)如图2(b)所示,根据第三视角视图23进行VR显示,即左眼视图和右眼视图均为第三视角视图23;随后,如图2(c)所示,将第三视角视图23中放大的二维图像B向右水平偏移预定距离获得第一视角视图21,将放大的二维图像B向左水平偏移预定距离获得第二视角视图22;最后根据第一视角视图21和第二视角视图22进行VR显示:将第一视角视图21呈现给用户的左眼观看,将第二视角视图22呈现给用户的右眼观看,即可在用户的大脑中获得二维图像B相较于二维图像A和C距离人眼更近的立体层次效果。2(a)-(c) are schematic diagrams of views during the VR display process in this embodiment. Referring to Fig. 2(a)-(c), in the VR display method of this embodiment, VR display is first performed according to the original view, that is, both the left-eye view and the right-eye view are original views. Please refer to FIG. 2( a ) for the original view. The original view 20 is a UI interface view browsed by the user. The original view 20 includes three two-dimensional images A, B and C. At this time, if the user selects the 2D image B, for example, through peripheral device input or head-sighting, etc., it can be confirmed that the 2D image B is the selected image in the original view according to the user's selection, and then According to the preset magnification factor, the two-dimensional image B in the original view is enlarged, and the view obtained after the enlargement processing (third perspective view 23) is shown in FIG. 2(b), and VR display is performed according to the third perspective view 23 , that is, both the left-eye view and the right-eye view are third perspective views 23; then, as shown in FIG. First perspective view 21, shift the enlarged two-dimensional image B horizontally by a predetermined distance to the left to obtain a second perspective view 22; finally perform VR display according to the first perspective view 21 and the second perspective view 22: present the first perspective view 21 For the user's left eye to view, present the second perspective view 22 to the user's right eye to view, and the user's brain can obtain the three-dimensional level of the two-dimensional image B that is closer to the human eye than the two-dimensional images A and C Effect.
在本实施例中,通过对原始视图中的二维图像进行简单的处理即可实现二维图像之间的空间距离对比,进而呈现出二维视图的VR显示效果,在该过程中无需嵌入3D引擎编程,减少应用程序间的通信和计算量,节约应用程序运行终端的处理资源。In this embodiment, by simply processing the two-dimensional images in the original view, the spatial distance comparison between the two-dimensional images can be realized, and then the VR display effect of the two-dimensional view can be presented. In this process, there is no need to embed 3D Engine programming reduces the amount of communication and calculation between applications and saves the processing resources of the terminal where the application is running.
当然可以理解的是,基于近大远小的原理,若想要实现被用户选中的二维图像在视觉感受上距离人眼更近,一种替代方式是不对选中态的图像进行放大,而是对未选中态的图像进行缩小,即获取第四视角视图,然后在第四视角视图的基础上,对选中的图像进行与上述相同的处理,这里不再赘述。Of course, it is understandable that, based on the principle of near-large and far-small, if the two-dimensional image selected by the user is to be visually closer to the human eye, an alternative way is not to zoom in on the selected image, but to The unselected image is zoomed out, that is, the fourth perspective view is acquired, and then the selected image is processed in the same way as above based on the fourth perspective view, which will not be repeated here.
实施例三Embodiment three
图3是本发明实施例三提供的VR显示方法的流程示意图,请参阅图3,该方法包括:Fig. 3 is a schematic flowchart of a VR display method provided by Embodiment 3 of the present invention, please refer to Fig. 3, the method includes:
310、接收第一视角视图和第二视角视图。310. Receive a first perspective view and a second perspective view.
在本实施例中,所述“第一视角视图”和“第二视角视图”是原始视图的双目视图,包括左眼视图和右眼视图。所述第一视角视图通过将原始视图中处于选中态的图像向右水平偏移预定距离获得,所述第二视角视图通过将原始视图中处于选中态的图像向左水平偏移预定距离获得。其中,该原始视图包括至少一张图像,且所述图像为二维视图;所述处于选中态的图像是指原始视图中被终端系统或者用户选中的图像。根据预期的VR显示效果,可以确定该第一视角视图和第二视角视图的左右眼视图的类型。In this embodiment, the "first perspective view" and "second perspective view" are binocular views of the original view, including a left-eye view and a right-eye view. The first perspective view is obtained by horizontally shifting the selected image in the original view by a predetermined distance to the right, and the second perspective view is obtained by horizontally shifting the selected image in the original view by a predetermined distance to the left. Wherein, the original view includes at least one image, and the image is a two-dimensional view; the selected image refers to an image selected by the terminal system or the user in the original view. According to the expected VR display effect, the types of the left and right eye views of the first perspective view and the second perspective view may be determined.
在本实施例中,第一视角视图和第二视角视图可通过实施例一提供的VR显示方法获得,与实施例一中所述的第一视角视图和第二视角视图具有相同的技术特征,此处便不再详述。In this embodiment, the first perspective view and the second perspective view can be obtained through the VR display method provided in the first embodiment, and have the same technical features as the first perspective view and the second perspective view described in the first embodiment, It will not be described in detail here.
320、根据所述第一视角视图和所述第二视角视图进行VR显示。320. Perform VR display according to the first perspective view and the second perspective view.
在本实施例中,确认了所述第一视角视图和所述第二视角视图的左右眼视图类型后,根据所述左眼视图和所述右眼视图进行VR显示,从而呈现出图像的空间立体层次。例如:确认第一视角视图为左眼视图,第二视角视图为右眼视图,则将所述第一视角视图呈现给用户的左眼观看,将所述第二视角视图呈现给用户的右眼观看,从而实现VR显示,在用户的大脑中呈现出图像的空间立体层次感。In this embodiment, after confirming the left and right eye view types of the first perspective view and the second perspective view, VR display is performed according to the left eye view and the right eye view, thereby presenting the space of the image three-dimensional layer. For example: after confirming that the first perspective view is a left-eye view and the second perspective view is a right-eye view, the first perspective view is presented to the user's left eye, and the second perspective view is presented to the user's right eye Watching, so as to realize VR display, and present the spatial three-dimensional layering of the image in the user's brain.
通过上述技术方案可知,本发明实施例的有益效果在于:通过确定原始视图中处于选中态的图像,并将所述原始视图中处于选中态的图像向右水平偏移预定距离获得第一视角视图,将所述原始视图中处于选中态的图像向左水平偏移预定距离获得第二视角视图,再在VR显示设备中呈现所述第一视角视图和所述第二视角视图,能够实现二维图像之间的空间距离对比,进而呈现出二维视图的VR显示效果,在该过程中无需嵌入3D引擎编程,减少应用程序间的通信和计算量,节约应用程序运行终端的处理资源。From the above technical solutions, it can be seen that the beneficial effect of the embodiments of the present invention is that the first perspective view is obtained by determining the image in the selected state in the original view, and shifting the image in the selected state in the original view to the right by a predetermined distance The selected image in the original view is shifted horizontally by a predetermined distance to the left to obtain a second perspective view, and then the first perspective view and the second perspective view are presented on the VR display device, which can realize two-dimensional The spatial distance between the images is compared, and then the VR display effect of the two-dimensional view is presented. In this process, there is no need to embed 3D engine programming, which reduces the amount of communication and calculation between applications, and saves the processing resources of the application running terminal.
实施例四Embodiment Four
图4是本发明实施例四提供的VR显示装置的结构示意图,请参阅图4,装置4包括:Fig. 4 is a schematic structural diagram of a VR display device provided by Embodiment 4 of the present invention, please refer to Fig. 4, the device 4 includes:
图像选取单元41,用于确定原始视图中处于选中态的图像,其中,所述原始视图中包含至少一张图像,所述图像为二维图像;其中,为了便于对原始视图进行处理以及减少应用程序运行终端的信息处理量,在一些实施例中,所述原始视图包括N张二维图像,所述N为大于1的正整数;The image selection unit 41 is configured to determine the image in the selected state in the original view, wherein the original view contains at least one image, and the image is a two-dimensional image; wherein, in order to facilitate processing of the original view and reduce application The information processing capacity of the program running terminal. In some embodiments, the original view includes N two-dimensional images, and N is a positive integer greater than 1;
双目视图获取单元42,用于将所述原始视图中处于选中态的图像向右水平偏移预定距离获得第一视角视图,将所述原始视图中处于选中态的图像向左水平偏移预定距离获得第二视角视图;以及,The binocular view acquisition unit 42 is configured to horizontally shift the image in the selected state in the original view to the right by a predetermined distance to obtain a first perspective view, and to shift the image in the selected state in the original view to the left by a predetermined distance. distance to obtain a second-person view; and,
显示单元43,用于根据所述第一视角视图和所述第二视角视图进行VR显示。The display unit 43 is configured to perform VR display according to the first perspective view and the second perspective view.
在本实施例中,首先通过图像选取单元41确定原始视图中处于选中态的图像,其中,所述原始视图中包含至少一张图像,所述图像为二维图像;然后利用双目视图获取单元42将所述原始视图中处于选中态的图像向右水平偏移预定距离获得第一视角视图,将所述原始视图中处于选中态的图像向左水平偏移预定距离获得第二视角视图;最后在显示单元43中根据所述第一视角视图和所述第二视角视图进行VR显示。In this embodiment, the image in the selected state in the original view is first determined by the image selection unit 41, wherein at least one image is included in the original view, and the image is a two-dimensional image; then the binocular view acquisition unit is used 42. Shifting the image in the selected state in the original view horizontally by a predetermined distance to the right to obtain a first perspective view, and shifting the image in the selected state in the original view horizontally by a predetermined distance to the left to obtain a second perspective view; finally VR display is performed on the display unit 43 according to the first perspective view and the second perspective view.
其中,在一些实施例中,为了提供更好的人机交互体验,图像选取单元41具体用于:接收用户的图像选择指令;根据所述图像选择指令,确定原始视图中处于选中态的图像。Wherein, in some embodiments, in order to provide a better human-computer interaction experience, the image selection unit 41 is specifically configured to: receive a user's image selection instruction; and determine the selected image in the original view according to the image selection instruction.
其中,在一些实施例中,双目视图获取单元42具体用于:将所述原始视图中处于选中态的图像向右水平偏移预定距离且按照预设的缩放倍数进行缩放处理从而获得第一视角视图,将所述原始视图中处于选中态的图像向左水平偏移预定距离且按照预设的缩放倍数进行缩放处理从而获得第二视角视图。进一步地,当所述原始视图包括至少两张图像时,上述实施步骤包括:将所述原始视图中处于选中态的图像向右水平偏移预定距离且按照预设的放大倍数进行放大处理,并且将所述原始视图中处于选中态的图像之外的图像按照预设的缩小倍数进行缩小处理从而获得第一视角视图,将所述原始视图中处于选中态的图像向左水平偏移预定距离且按照预设的放大倍数进行放大处理,并且将所述原始视图中处于选中态的图像之外的图像按照预设的缩小倍数进行缩小处理从而获得第二视角视图;或者,将所述原始视图中处于选中态的图像向右水平偏移预定距离且按照预设的缩小倍数进行缩小处理,并且将所述原始视图中处于选中态的图像之外的图像按照预设的放大倍数进行放大处理从而获得第一视角视图,将所述原始视图中处于选中态的图像向左水平偏移预定距离且按照预设的缩小倍数进行缩小处理,并且将所述原始视图中处于选中态的图像之外的图像按照预设的放大倍数进行放大处理从而获得第二视角视图。Among them, in some embodiments, the binocular view acquisition unit 42 is specifically configured to: shift the image in the selected state in the original view to the right by a predetermined distance and perform scaling processing according to a preset zoom factor so as to obtain the first For a perspective view, the selected image in the original view is shifted horizontally by a predetermined distance to the left and zoomed according to a preset zoom factor to obtain a second perspective view. Further, when the original view includes at least two images, the above implementation steps include: shifting the selected image in the original view horizontally by a predetermined distance to the right and performing magnification processing according to a preset magnification factor, and shrinking images other than the selected image in the original view according to a preset reduction factor to obtain a first perspective view, shifting the selected image in the original view horizontally by a predetermined distance to the left and Enlargement processing is performed according to a preset magnification factor, and the image other than the selected image in the original view is reduced according to a preset reduction factor to obtain a second perspective view; or, the original view is obtained The image in the selected state is shifted horizontally by a predetermined distance to the right and reduced according to a preset reduction factor, and the images other than the image in the selected state in the original view are enlarged according to a preset zoom factor to obtain For the first perspective view, the image in the selected state in the original view is shifted horizontally by a predetermined distance to the left and reduced according to a preset reduction factor, and the images other than the image in the selected state in the original view are reduced Zoom in according to a preset magnification to obtain a view from a second perspective.
其中,在一些实施例中,所述显示单元43具体用于:发送所述第一视角视图和所述第二视角视图,以使接收端根据所述第一视角视图和所述第二视角视图进行VR显示。Wherein, in some embodiments, the display unit 43 is specifically configured to: send the first perspective view and the second perspective view, so that the receiving end Perform VR display.
其中,在一些实施例中,所述装置还包括第一缩放处理单元,用于在所述确定原始视图中处于选中态的图像后,获取所述第一视角视图和所述第二视角视图之前,对所述原始视图中处于选中态的图像按照预设的放大倍数进行放大处理,获取第三视角视图;Wherein, in some embodiments, the device further includes a first scaling processing unit, configured to obtain the first perspective view and the second perspective view after the image in the selected state in the original view is determined. , enlarging the image in the selected state in the original view according to a preset magnification factor to obtain a third perspective view;
显示单元43还用于根据所述第三视角视图进行VR显示;The display unit 43 is also configured to perform VR display according to the third perspective view;
双目视图获取单元42具体用于:The binocular view acquisition unit 42 is specifically used for:
将所述第三视角视图中所述处于选中态的图像向右水平偏移预定距离获得第一视角视图,将所述第三视角视图中所述处于选中态的图像向左水平偏移预定距离获得第二视角视图。shifting the image in the selected state in the third perspective view horizontally by a predetermined distance to the right to obtain a first perspective view, and shifting the image in the selected state in the third perspective view horizontally by a predetermined distance to the left Get a second-person view.
其中,在一些实施例中,所述装置还包括第二缩放处理单元,用于在所述确定原始视图中处于选中态的图像后,获取所述第一视角视图和所述第二视角视图之前,对所述原始视图中处于选中态的图像之外的图像按照预设的缩小倍数进行缩小处理,获取第四视角视图;Wherein, in some embodiments, the device further includes a second scaling processing unit, configured to acquire the first perspective view and the second perspective view after determining the selected image in the original view performing reduction processing on images other than the selected image in the original view according to a preset reduction factor to obtain a fourth perspective view;
显示单元43还用于根据所述第四视角视图进行VR显示;The display unit 43 is also configured to perform VR display according to the fourth perspective view;
双目视图获取单元42具体用于:The binocular view acquisition unit 42 is specifically used for:
将所述第四视角视图中所述处于选中态的图像向右水平偏移预定距离获得第一视角视图,将所述第四视角视图中所述处于选中态的图像向左水平偏移预定距离获得第二视角视图。shifting the image in the selected state in the fourth perspective view horizontally by a predetermined distance to the right to obtain a first perspective view, and shifting the image in the selected state in the fourth perspective view horizontally by a predetermined distance to the left Get a second-person view.
通过上述技术方案可知,本发明实施例的有益效果在于:通过图像选取单元41确定原始视图中处于选中态的图像,并利用双目视图获取单元42将所述原始视图中处于选中态的图像向右水平偏移预定距离获得第一视角视图,将所述原始视图中处于选中态的图像向左水平偏移预定距离获得第二视角视图,然后在显示单元43中根据所述第一视角视图和所述第二视角视图进行VR显示,能够实现二维图像之间的空间距离对比,进而呈现出二维图像的立体层次效果,在该过程中无需嵌入3D引擎编程,减少应用程序间的通信和计算量,节约应用程序运行终端的处理资源。It can be known from the above technical solution that the beneficial effect of the embodiment of the present invention is that the image in the selected state in the original view is determined by the image selection unit 41, and the image in the selected state in the original view is transferred to the binocular view acquisition unit 42. The first perspective view is obtained by horizontally shifting the predetermined distance to the right, and the second perspective view is obtained by shifting the image in the selected state in the original view to the left by a predetermined distance, and then in the display unit 43 according to the first perspective view and the The VR display of the second perspective view can realize the spatial distance comparison between two-dimensional images, and then present the three-dimensional layered effect of two-dimensional images. In this process, there is no need to embed 3D engine programming, which reduces the communication and communication between applications. The calculation amount saves the processing resources of the application running terminal.
实施例五Embodiment five
图5是本发明实施例四提供的VR显示装置的结构示意图,请参阅图5,装置5包括:Fig. 5 is a schematic structural diagram of a VR display device provided by Embodiment 4 of the present invention, please refer to Fig. 5, the device 5 includes:
双目视图接收单元51,用于接收第一视角视图和第二视角视图。其中,所述第一视角视图通过将原始视图中处于选中态的图像向右水平偏移预定距离获得,所述第二视角视图通过将原始视图中处于选中态的图像向左水平偏移预定距离获得,所述原始视图包括至少一张图像,所述图像为二维视图;以及,The binocular view receiving unit 51 is configured to receive a first perspective view and a second perspective view. Wherein, the first perspective view is obtained by horizontally shifting the selected image in the original view by a predetermined distance to the right, and the second perspective view is obtained by horizontally shifting the selected image in the original view by a predetermined distance to the left obtained, the original view includes at least one image, the image is a two-dimensional view; and,
VR显示单元52,用于根据所述第一视角视图和所述第二视角视图进行VR显示。The VR display unit 52 is configured to perform VR display according to the first perspective view and the second perspective view.
在本实施例中,首先通过双目视图接收单元51接收构成VR显示图像的第一视角视图和第二视角视图,其中,所述第一视角视图通过将原始视图中处于选中态的图像向右水平偏移预定距离获得,所述第二视角视图通过将原始视图中处于选中态的图像向左水平偏移预定距离获得,所述原始视图包括至少一张图像,所述图像为二维视图;然后在VR显示单元52中根据所述第一视角视图和所述第二视角视图进行VR显示,从而呈现出图像的空间立体层次效果。In this embodiment, the binocular view receiving unit 51 first receives the first perspective view and the second perspective view constituting the VR display image, wherein the first perspective view moves the selected image in the original view to the right Obtained by horizontally shifting a predetermined distance, the second perspective view is obtained by horizontally shifting the selected image in the original view by a predetermined distance to the left, the original view includes at least one image, and the image is a two-dimensional view; Then, VR display is performed in the VR display unit 52 according to the first perspective view and the second perspective view, so as to present the spatial three-dimensional layering effect of the image.
通过上述技术方案可知,本发明实施例的有益效果在于:通过双目视图接收单元51接收由对原始视图中处于选中态的图像进行偏移处理获得的第一视角视图和第二视角视图,并在VR显示单元52中呈现所述第一视角视图和所述第二视角视图构成的VR图像,能够实现二维图像之间的空间距离对比,进而呈现出二维图像的立体层次效果,在该过程中无需嵌入3D引擎编程,减少应用程序间的通信和计算量,节约智能终端的处理资源。It can be seen from the above technical solution that the beneficial effect of the embodiment of the present invention is that: the binocular view receiving unit 51 receives the first perspective view and the second perspective view obtained by offset processing the image in the selected state in the original view, and Presenting the VR image composed of the first perspective view and the second perspective view on the VR display unit 52 can realize the spatial distance comparison between the two-dimensional images, and then present the three-dimensional layering effect of the two-dimensional image. There is no need to embed 3D engine programming in the process, reducing the amount of communication and calculation between applications, and saving the processing resources of smart terminals.
需要说明的是,由于上述VR显示装置4和5分别与实施例一和三中的VR显示方法基于相同的发明构思,因此,方法实施例一和三的相应内容同样适用于装置实施例四和五,此处不再详述。It should be noted that since the aforementioned VR display devices 4 and 5 are based on the same inventive concepts as the VR display methods in Embodiments 1 and 3 respectively, the corresponding contents of method embodiments 1 and 3 are also applicable to device embodiments 4 and 3. Five, no more details here.
实施例六Embodiment six
图6是本发明实施例六提供的一种电子设备的结构示意图,请参阅图6,该电子设备600包括:Fig. 6 is a schematic structural diagram of an electronic device provided by Embodiment 6 of the present invention, please refer to Fig. 6, the electronic device 600 includes:
一个或多个处理器610以及存储器620,图6中以一个处理器610为例。One or more processors 610 and memory 620, one processor 610 is taken as an example in FIG. 6 .
处理器610和存储器620可以通过总线或者其他方式连接,图6中以通过总线连接为例。The processor 610 and the memory 620 may be connected through a bus or in other ways, and connection through a bus is taken as an example in FIG. 6 .
存储器620作为一种非暂态计算机可读存储介质,可用于存储非暂态软件程序、非暂态性计算机可执行程序以及模块,如本发明实施例一中的VR显示方法对应的程序指令/模块(例如,附图4所示的图像选取单元41、双目视图生成单元42和显示单元43)。处理器610通过运行存储在存储器620中的非暂态软件程序、指令以及模块,从而执行系统的各种功能应用以及数据处理,即实现上述方法实施例一中的VR显示方法。The memory 620, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs, non-transitory computer-executable programs and modules, such as program instructions/programs corresponding to the VR display method in Embodiment 1 of the present invention. Modules (for example, image selection unit 41, binocular view generation unit 42 and display unit 43 shown in FIG. 4). The processor 610 executes various functional applications and data processing of the system by running non-transitory software programs, instructions and modules stored in the memory 620, that is, implements the VR display method in the first method embodiment above.
存储器620可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据VR显示装置的使用所创建的数据等。此外,存储器620可以包括高速随机存取存储器,还可以包括非暂态存储器,例如至少一个磁盘存储器件、闪存器件、或其他非暂态固态存储器件。在一些实施例中,存储器620可选包括相对于处理器610远程设置的存储器,这些远程存储器可以通过网络连接至VR显示装置。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 620 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application program required by at least one function; the data storage area may store data created according to the use of the VR display device, and the like. In addition, the memory 620 may include a high-speed random access memory, and may also include a non-transitory memory, such as at least one magnetic disk storage device, a flash memory device, or other non-transitory solid-state storage devices. In some embodiments, the memory 620 may optionally include a memory that is remotely located relative to the processor 610, and these remote memories may be connected to the VR display device through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
所述一个或者多个模块存储在所述存储器620中,当被所述一个或者多个处理器610执行时,可执行实施例一中描述的如图1所示的方法步骤110至步骤130,实现图4中的单元41-43的功能。The one or more modules are stored in the memory 620, and when executed by the one or more processors 610, the method steps 110 to 130 shown in FIG. 1 described in Embodiment 1 may be executed, The functions of units 41-43 in FIG. 4 are realized.
电子设备600可执行本发明实施例一所提供的方法,具备执行方法相应的功能模块和有益效果。未在本实施例中详尽描述的技术细节,可参见本发明实施例一所提供的方法。The electronic device 600 can execute the method provided in Embodiment 1 of the present invention, and has corresponding functional modules and beneficial effects for executing the method. For technical details not described in detail in this embodiment, refer to the method provided in Embodiment 1 of the present invention.
在本发明实施例中,电子设备600可以以多种形式存在,包括但不限于:In the embodiment of the present invention, the electronic device 600 may exist in various forms, including but not limited to:
(1)移动通信设备:这类设备的特点是具备移动通信功能,并且以提供话音、数据通信为主要目标。这类终端包括:智能手机(例如iPhone)、多媒体手机、功能性手机,以及低端手机等。(1) Mobile communication equipment: This type of equipment is characterized by mobile communication functions, and its main goal is to provide voice and data communication. Such terminals include: smart phones (such as iPhone), multimedia phones, feature phones, and low-end phones.
(2)超移动个人计算机设备:这类设备属于个人计算机的范畴,有计算和处理功能,一般也具备移动上网特性。这类终端包括:PDA、MID和UMPC设备等,例如iPad。(2) Ultra-mobile personal computer equipment: This type of equipment belongs to the category of personal computers, with computing and processing functions, and generally also has the characteristics of mobile Internet access. Such terminals include: PDA, MID and UMPC equipment, such as iPad.
(3)便携式娱乐设备:这类设备可以显示和播放多媒体内容。该类设备包括:音频、视频播放器(例如iPod),掌上游戏机,电子书,以及智能玩具和便携式车载导航设备。(3) Portable entertainment equipment: This type of equipment can display and play multimedia content. Such devices include: audio and video players (such as iPod), handheld game consoles, e-books, as well as smart toys and portable car navigation devices.
(4)服务器:提供计算服务的设备,服务器的构成包括处理器、硬盘、内存、系统总线等,服务器和通用的计算机架构类似,但是由于需要提供高可靠的服务,因此在处理能力、稳定性、可靠性、安全性、可扩展性、可管理性等方面要求较高。(4) Server: A device that provides computing services. The composition of a server includes processors, hard disks, memory, and system buses. , Reliability, security, scalability, manageability and other aspects have high requirements.
(5)其他具有数据交互功能的电子装置。(5) Other electronic devices with data interaction function.
实施例七Embodiment seven
本发明实施例提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机可执行指令,该计算机可执行指令被一个或多个处理器执行,例如图6中的一个处理器610,可使得上述一个或多个处理器可执行上述方法实施例一中的VR显示方法,例如,执行以上描述的图1中的方法步骤110至步骤130,实现图4中的单元41-43的功能。An embodiment of the present invention provides a computer-readable storage medium, the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are executed by one or more processors, such as a processor in FIG. 6 610, the above-mentioned one or more processors can execute the VR display method in the above-mentioned method embodiment 1, for example, execute the method steps 110 to 130 in FIG. 1 described above, and realize the units 41-43 in FIG. 4 function.
上述产品可执行本发明实施例所提供的方法,具备执行方法相应的功能模块和有益效果。未在本实施例中详尽描述的技术细节,可参见本发明实施例所提供的方法。The above-mentioned products can execute the methods provided by the embodiments of the present invention, and have corresponding functional modules and beneficial effects for executing the methods. For technical details that are not exhaustively described in this embodiment, refer to the method provided in the embodiment of the present invention.
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The device embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in One place, or it can be distributed to multiple network elements. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
通过以上的实施方式的描述,本领域普通技术人员可以清楚地了解到各实施方式可借助软件加通用硬件平台的方式来实现,当然也可以通过硬件。本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a general hardware platform, and of course also by hardware. Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing related hardware through computer programs, and the programs can be stored in a computer-readable storage medium. During execution, it may include the processes of the embodiments of the above-mentioned methods. Wherein, the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM) or a random access memory (Random Access Memory, RAM), etc.
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;在本发明的思路下,以上实施例或者不同实施例中的技术特征之间也可以进行组合,步骤可以以任意顺序实现,并存在如上所述的本发明的不同方面的许多其它变化,为了简明,它们没有在细节中提供;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, not to limit them; under the idea of the present invention, the technical features in the above embodiments or different embodiments can also be combined, The steps may be performed in any order, and there are many other variations of the different aspects of the invention as described above, which have not been presented in detail for the sake of brevity; although the invention has been described in detail with reference to the preceding examples, those of ordinary skill in the art The skilled person should understand that it is still possible to modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the various implementations of the present invention. The scope of technical solutions.
Claims (12)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611179850.8A CN106598250B (en) | 2016-12-19 | 2016-12-19 | A VR display method, device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611179850.8A CN106598250B (en) | 2016-12-19 | 2016-12-19 | A VR display method, device and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106598250A CN106598250A (en) | 2017-04-26 |
CN106598250B true CN106598250B (en) | 2019-10-25 |
Family
ID=58601854
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611179850.8A Expired - Fee Related CN106598250B (en) | 2016-12-19 | 2016-12-19 | A VR display method, device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106598250B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107168672A (en) * | 2017-05-15 | 2017-09-15 | 上海驹旗网络科技有限公司 | Display methods and device |
CN107302694B (en) * | 2017-05-22 | 2019-01-18 | 歌尔科技有限公司 | Method, equipment and the virtual reality device of scene are presented by virtual reality device |
CN108287676A (en) * | 2018-01-24 | 2018-07-17 | 重庆爱奇艺智能科技有限公司 | Picture display method, device and electronic equipment |
CN111193919B (en) * | 2018-11-15 | 2023-01-13 | 中兴通讯股份有限公司 | 3D display method, device, equipment and computer readable medium |
CN109584148A (en) * | 2018-11-27 | 2019-04-05 | 重庆爱奇艺智能科技有限公司 | A kind of method and apparatus handling two-dimentional interface in VR equipment |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101895781A (en) * | 2010-07-23 | 2010-11-24 | 深圳超多维光电子有限公司 | Stereoscopic display method and stereoscopic display device |
CN102438161A (en) * | 2011-08-19 | 2012-05-02 | 四川长虹电器股份有限公司 | Method for converting two-dimensional image into three-dimensional image |
-
2016
- 2016-12-19 CN CN201611179850.8A patent/CN106598250B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101895781A (en) * | 2010-07-23 | 2010-11-24 | 深圳超多维光电子有限公司 | Stereoscopic display method and stereoscopic display device |
CN102438161A (en) * | 2011-08-19 | 2012-05-02 | 四川长虹电器股份有限公司 | Method for converting two-dimensional image into three-dimensional image |
Also Published As
Publication number | Publication date |
---|---|
CN106598250A (en) | 2017-04-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106598250B (en) | A VR display method, device and electronic equipment | |
CN106251403B (en) | A kind of methods, devices and systems of virtual three-dimensional Scene realization | |
CN106157359B (en) | Design method of virtual scene experience system | |
TWI523488B (en) | A method of processing parallax information comprised in a signal | |
EP2648414B1 (en) | 3d display apparatus and method for processing image using the same | |
CN108282648B (en) | A VR rendering method, device, wearable device and readable storage medium | |
WO2017113681A1 (en) | Video image processing method and apparatus based on virtual reality technology | |
JP7392105B2 (en) | Methods, systems, and media for rendering immersive video content using foveated meshes | |
CN106296781B (en) | Special effect image generation method and electronic equipment | |
CN113891060B (en) | Free viewpoint video reconstruction method, play processing method, device and storage medium | |
CN106228530B (en) | A kind of stereography method, device and stereo equipment | |
US12100106B2 (en) | Stereoscopic rendering of virtual 3D objects | |
CN103294453B (en) | Image processing method and image processing device | |
WO2015100490A1 (en) | Reconfiguration of stereoscopic content and distribution for stereoscopic content in a configuration suited for a remote viewing environment | |
CN102905141A (en) | Two-dimensional to three-dimensional conversion device and method thereof | |
JP5920911B2 (en) | Information processing apparatus, information processing method, and program | |
CN113206993A (en) | Method for adjusting display screen and display device | |
US20180247457A1 (en) | System and method of providing a virtual environment | |
WO2013024847A1 (en) | Stereoscopic image generating device, stereoscopic image display device, stereoscopic image generating method, and program | |
CN106993179A (en) | A method for converting a 3D model into a stereoscopic dual-viewpoint view | |
CN116610213A (en) | Interactive display method and device in virtual reality, electronic equipment and storage medium | |
US9547933B2 (en) | Display apparatus and display method thereof | |
KR20210027918A (en) | Method of making 3D image FOR HMD from 2D image | |
CN115457200B (en) | Method, device, equipment and storage medium for automatic true stereo display of 2.5-dimensional image | |
RU2523980C2 (en) | Method and system for displaying set of multimedia objects on 3d display |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20191025 |
|
CF01 | Termination of patent right due to non-payment of annual fee |