WO2019015249A1 - Virtual-reality-based image display method and apparatus, and virtual reality helmet device - Google Patents

Virtual-reality-based image display method and apparatus, and virtual reality helmet device Download PDF

Info

Publication number
WO2019015249A1
WO2019015249A1 PCT/CN2017/117556 CN2017117556W WO2019015249A1 WO 2019015249 A1 WO2019015249 A1 WO 2019015249A1 CN 2017117556 W CN2017117556 W CN 2017117556W WO 2019015249 A1 WO2019015249 A1 WO 2019015249A1
Authority
WO
WIPO (PCT)
Prior art keywords
view
image
virtual
field
horizontal
Prior art date
Application number
PCT/CN2017/117556
Other languages
French (fr)
Chinese (zh)
Inventor
夏钦展
Original Assignee
歌尔科技有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 歌尔科技有限公司 filed Critical 歌尔科技有限公司
Publication of WO2019015249A1 publication Critical patent/WO2019015249A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N13/00Stereoscopic video systems; Multi-view video systems; Details thereof

Definitions

  • the present invention relates to the field of human-computer interaction technologies, and in particular, to a virtual reality-based image display method and apparatus, and a virtual reality helmet device.
  • Virtual reality technology is a technology that combines computer graphics systems and various control interface devices to generate immersive virtual scenes in an interactive, three-dimensional environment on a computer.
  • the virtual scene can be converted into a virtual stereo scene in combination with a computer graphics system, so that the virtual stereo scene is presented in the real scene.
  • the virtual scene is linearly converted into a virtual stereo scene by using a fixed conversion parameter, which may result in the virtual stereo scene not being well adapted to the real scene, that is, the user is virtual.
  • the visual perception of the scene is inconsistent with the visual perception in the real scene, so that the better stereoscopic display effect can not be achieved, and the user's true immersion is reduced.
  • the present invention provides an image display method and apparatus based on virtual reality, and an electronic device, which can achieve consistency between visual perception of a virtual scene and visual perception in a real scene, and improve the adaptation of the virtual stereo scene and the real scene. Matching.
  • the invention provides an image display method based on virtual reality, comprising:
  • the two images are displayed on the virtual display screen according to the horizontal width and the vertical direction width of the two images on the virtual display screen.
  • the horizontal field of view and the vertical field of view when the image is captured are saved to the metadata of the corresponding image to obtain the horizontal field of view and the vertical field of view of the image from the metadata of the image.
  • the vertical width of the image on the virtual display screen is calculated according to the vertical field of view of the image and the distance between the virtual display device and the corresponding virtual imaging device.
  • the method includes:
  • two optical imaging devices are disposed corresponding to the left and right eyes, including two lenses corresponding to the left and right eyes, a first lens and a second lens, and the two lenses are symmetrically mounted on the virtual reality device, and the hardware parameters of the two lenses are the same. And the lay length between the two lenses is 6.5 cm.
  • the invention also provides an image display device based on virtual reality, comprising:
  • an acquiring module configured to respectively acquire a horizontal field of view and a vertical field of view of the left eye image and a horizontal field of view and a vertical field of view of the right eye image, wherein the left eye image and the right eye image are respectively the first camera and An image captured by the second camera for the same object;
  • a calculation module configured to calculate a horizontal width and a vertical width of the two images on the virtual display screen according to the horizontal field of view and the vertical field of view of the two images;
  • a display module configured to display the two images on the virtual display screen according to the horizontal direction width and the vertical direction width of the two images on the virtual display screen.
  • the device further includes:
  • a recording module configured to record a horizontal field of view and a vertical field of view when the first camera and the second camera respectively capture images for the same object when the left eye image and the right eye image are captured ;
  • a saving module for saving a horizontal field of view and a vertical field of view when capturing an image into metadata of a corresponding image, so as to obtain a horizontal field of view and a vertical field of view when the image is captured from the metadata of the image .
  • the computing module is specifically configured to:
  • the vertical width of the image on the virtual display screen is calculated according to the vertical field of view of the image and the distance between the virtual display device and the corresponding virtual imaging device.
  • the computing module is specifically configured to:
  • B 2A*tg ⁇ , where A is the distance between the virtual imaging device corresponding to the preset virtual display screen distance, when ⁇ is the image When the horizontal field of view is angle, then B is the horizontal width of the image on the virtual display screen, or when ⁇ is the vertical field of view of the image, then B is the vertical width of the image on the virtual display screen.
  • two optical imaging devices are disposed corresponding to the left and right eyes, including two lenses corresponding to the left and right eyes, a first lens and a second lens, and the two lenses are symmetrically mounted on the virtual reality device, and the hardware parameters of the two lenses are the same. And the lay length between the two lenses is 6.5 cm.
  • the invention provides a virtual reality helmet device, comprising: a processor and a memory;
  • the memory is for storing one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the following steps:
  • the two images are displayed on the virtual display screen according to the horizontal width and the vertical direction width of the two images on the virtual display screen.
  • the present invention provides a non-volatile computer storage medium having stored thereon computer program instructions that, when executed by a processor, implement the aforementioned virtual reality-based image display method.
  • two optical imaging devices are arranged on the virtual reality device corresponding to the left and right eyes.
  • two cameras are shooting for the same object, two different images are generated for the left and right eyes, and the horizontal fields of the two images are respectively recorded.
  • the angular and vertical field of view angles are saved to the metadata of the corresponding image, so that the horizontal width and vertical of the two images displayed on the virtual display screen can be calculated based on the horizontal field of view and the vertical field of view of the two images.
  • Direction width when displayed in virtual The two images on the display are projected into the human eye, and the human eye acquires the two images to create a stereoscopic effect in the brain.
  • the display image on the virtual display screen is consistent with the object ratio in the real scene, so that The user's visual perception of the virtual scene is consistent with the visual perception in the real scene, which can improve the user's true immersion.
  • FIG. 1 is a schematic flow chart of an image display method based on virtual reality according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of a virtual scene arrangement according to an embodiment of the present invention.
  • FIG. 3 is a schematic diagram of a lens arrangement according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of an image display device based on virtual reality according to an embodiment of the present invention.
  • FIG. 5 shows a schematic diagram of the internal configuration of the virtual reality helmet device 100 in some embodiments.
  • FIG. 1 is a schematic flowchart of a virtual reality-based image display method according to an embodiment of the present invention. As shown in FIG. 1 , the method includes:
  • the left eye image and the right eye image are images respectively taken by the first camera and the second camera for the same object;
  • one image is an image taken by the first camera for the right eye (referred to as a right eye image)
  • One image is an image taken by a second camera for the left eye (referred to as a left eye image).
  • the first camera when the first camera When the second camera generates an image corresponding to the left and right eyes (the left eye image and the right eye image) for the same object, the horizontal angle of view and the vertical angle of view of the two images are respectively recorded, that is, the first camera captures an image of the same object.
  • two images can be
  • the horizontal field of view and the vertical field of view are respectively saved into the metadata of the corresponding image, so that the virtual reality device obtains the horizontal field of view and the vertical field of view of the image from the metadata of the image before the virtual display;
  • the horizontal field of view and the vertical field of view saved in the metadata can be a string of strings.
  • FIG. 2 is a schematic diagram of a virtual scene arrangement according to an embodiment of the present invention.
  • two virtual cameras are arranged in a virtual scene, and a virtual camera on the left corresponds to the left eye, and a virtual camera on the right corresponds to the right eye.
  • a virtual display is placed at a distance in front of the virtual camera (the distance is variable), wherein one virtual display is used to display a virtual image for the right eye and the other virtual display is used to display a virtual image for the left eye. image.
  • the right can be calculated.
  • the horizontal direction width of the eye image on the virtual display screen; the vertical field of view angle of the right eye image acquired in the above step 101, and the distance between the virtual imaging devices corresponding to the virtual display screen distance preset according to FIG. the vertical width of the right eye image on the virtual display can be calculated.
  • the horizontal width and the vertical width of the left eye image on the virtual display screen can be obtained.
  • A is a virtual imaging corresponding to the virtual display screen distance.
  • B is the horizontal width of the image on the virtual display, or when ⁇ is the vertical field of view of the image, then B The width of the image in the vertical direction on the virtual display.
  • the corresponding image has a horizontal width or a vertical width B2 on the virtual display screen.
  • the human eye When two images displayed on the virtual display are projected into the human eye, the human eye acquires the two images to create a stereoscopic effect in the brain.
  • FIG. 3 is a schematic diagram of a lens arrangement according to an embodiment of the present invention, as shown in FIG.
  • the first lens (lens 1) and the second lens (lens 2) are respectively disposed corresponding to the left and right eyes, such as lens 1 for the left eye, lens 2 for the right eye, and two lenses symmetrically mounted on the virtual reality device (such as virtual reality On the headgear, the hardware parameters of the two lenses are the same, and the lay length between the two lenses is 6.5 cm.
  • the horizontal width or vertical width of the corresponding image on the virtual display screen is also proportionally smaller; when the virtual display screen is far away from the virtual imaging device (or virtual camera), the corresponding image
  • the horizontal width or vertical width of the image on the virtual display is also proportionally larger. That is to say, regardless of the distance between the virtual display screen and the virtual imaging device (or virtual camera), the user's visual perception in the virtual scene is that the object size ratio does not change, that is, the user's visual perception and reality in the virtual scene. The visual perception in the scene is consistent. Therefore, the image display of the embodiment of the invention can achieve a better display effect, and the real immersion of the user is greatly improved.
  • the distance between the virtual display screen and the virtual imaging device (or virtual camera) is far or near, and the image is on the virtual display screen, regardless of the horizontal field of view and the vertical field of view when the image is taken.
  • the size above does not change, so when the virtual display screen is closer to the virtual imaging device (or virtual camera), the user's visual perception of the virtual scene is that the object feels great; when the virtual display screen is away from the virtual imaging device ( When the virtual camera is relatively far away, the user's visual perception in the virtual scene is that the object feels very small. Therefore, the prior art image display cannot achieve a better display effect, and the user's true immersion is greatly reduced.
  • FIG. 4 is a schematic structural diagram of an image display device based on virtual reality according to an embodiment of the present invention. As shown in FIG. 4, the method includes:
  • an acquiring module configured to respectively acquire a horizontal field of view and a vertical field of view of the left eye image and a horizontal field of view and a vertical field of view of the right eye image, wherein the left eye image and the right eye image are respectively the first camera and An image captured by the second camera for the same object;
  • a calculation module configured to calculate a horizontal width and a vertical width of the two images on the virtual display screen according to the horizontal field of view and the vertical field of view of the two images;
  • a display module configured to display the two images on the virtual display screen according to the horizontal direction width and the vertical direction width of the two images on the virtual display screen.
  • the device further includes:
  • a recording module configured to record, when the left eye image and the right eye image are captured, a horizontal angle of view and a horizontal angle of view when the first camera and the second camera respectively capture images for the same object Vertical field of view;
  • a saving module for saving a horizontal field of view and a vertical field of view when capturing an image into metadata of a corresponding image, so as to obtain a horizontal field of view and a vertical field of view when the image is captured from the metadata of the image .
  • the computing module is specifically configured to:
  • the vertical width of the image on the virtual display screen is calculated according to the vertical field of view of the image and the distance between the virtual display device and the corresponding virtual imaging device.
  • the computing module is specifically configured to:
  • B 2A*tg ⁇ , where A is the distance between the virtual imaging device corresponding to the preset virtual display screen distance, when ⁇ is the image When the horizontal field of view is angle, then B is the horizontal width of the image on the virtual display screen, or when ⁇ is the vertical field of view of the image, then B is the vertical width of the image on the virtual display screen.
  • the device in the embodiment of the present invention can perform the method shown in FIG. 1 , and the implementation principle and technical effects thereof are not described again.
  • the foregoing apparatus includes a processor and a memory, where the memory is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the following steps. :
  • the two images are displayed on the virtual display screen according to the horizontal width and the vertical direction width of the two images on the virtual display screen.
  • the processor is further configured to perform all or part of the steps in the foregoing embodiments.
  • the embodiment of the present invention further provides a non-volatile computer storage medium on which computer program instructions are stored, and when the computer program instructions are executed by the processor, the virtual reality-based image display method provided by the foregoing embodiments is implemented.
  • the method of the embodiment of the present invention is not limited to the image display method based on virtual reality, and the video display based on virtual reality can also be realized, because the video is a continuous image collection of time frames, when two cameras are aimed at the human eye.
  • the vertical angles of view of the right-eye image and the left-eye image of each time frame can be recorded and saved to the corresponding
  • the right eye image of each time frame can be calculated based on the horizontal field of view and the vertical field of view of the right eye image and the left eye image of each time frame.
  • the left eye image displays the horizontal width and the vertical width on the virtual display screen
  • the right eye image and the left eye image of each time frame displayed on the virtual display are projected into the human eye
  • the human eye acquires the video.
  • the user's visual perception in the virtual video scene is consistent with the visual perception in the real video scene. Therefore, the video image display of the embodiment of the present invention can achieve a better display effect, and the real immersion of the user is greatly improved.
  • the present invention can be provided as a method, a system, or a computer program. product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
  • the electronic device may be an external head mounted display device or an integrated head mounted display device, wherein the external head mounted display device needs to be used in conjunction with an external processing system (eg, a computer processing system).
  • an external processing system eg, a computer processing system
  • FIG. 5 shows a schematic diagram of the internal configuration of the virtual reality helmet device 100 in some embodiments.
  • the display unit 101 may include a display panel disposed on a side surface of the virtual reality helmet device 100 facing the user's face, which may be a whole panel or respectively corresponding to the user's left eye and The left and right panels of the right eye.
  • the display panel may be an electroluminescence (EL) element, a liquid crystal display or a microdisplay having a similar structure, or a laser-scanned display in which the retina may be directly displayed or similar.
  • EL electroluminescence
  • the virtual image optical unit 102 photographs the image displayed by the display unit 101 in an enlarged manner, and allows the user to observe the displayed image in the enlarged virtual image.
  • the display image outputted to the display unit 101 it may be an image of a virtual scene supplied from a content reproduction device (a Blu-ray disc or a DVD player) or a streaming server, or an image of a real scene photographed using the external camera 110.
  • virtual image optical unit 102 can include a lens unit, such as a spherical lens, an aspheric lens, a Fresnel lens, and the like.
  • the input operation unit 103 includes at least one operation member for performing an input operation, such as a button, a button, a switch, or other similarly functioned component, receives a user instruction through the operation member, and outputs an instruction to the control unit 107.
  • an input operation such as a button, a button, a switch, or other similarly functioned component
  • the status information acquisition unit 104 is configured to acquire status information of the user wearing the virtual reality helmet device 100.
  • the status information acquisition unit 104 may include various types of sensors for detecting status information by itself, and may acquire status information from an external device such as a smartphone, a wristwatch, and other multi-function terminals worn by the user through the communication unit 105.
  • the status information acquisition unit 104 can acquire location information and/or posture information of the user's head.
  • the status information acquisition unit 104 may include one or more of a gyro sensor, an acceleration sensor, a global positioning system (GPS) sensor, a geomagnetic sensor, a Doppler effect sensor, an infrared sensor, and a radio frequency field intensity sensor.
  • GPS global positioning system
  • the state information acquisition unit 104 acquires state information of the user wearing the virtual reality helmet device 100, for example, acquires, for example, an operation state of the user (whether the user wears the virtual reality helmet device 100), an action state of the user (such as still, walking, running) And the state of movement such as the state of the hand or fingertip, the open or closed state of the eye, the direction of the line of sight, the size of the pupil, the mental state (whether the user is immersed in observing the displayed image, and the like), or even the physiological state.
  • an operation state of the user whether the user wears the virtual reality helmet device 100
  • an action state of the user such as still, walking, running
  • the state of movement such as the state of the hand or fingertip, the open or closed state of the eye, the direction of the line of sight, the size of the pupil, the mental state (whether the user is immersed in observing the displayed image, and the like), or even the physiological state.
  • the communication unit 105 performs communication processing, modulation and demodulation processing with an external device, and encoding and decoding processing of the communication signal.
  • the control unit 107 can transmit transmission data from the communication unit 105 to an external device.
  • Communication can be wired or wireless, such as mobile HD links (MHL) or Universal Serial Bus (USB), High Definition Multimedia Interface (HDMI), Wireless Fidelity (Wi-Fi), Bluetooth communication or Bluetooth low energy communication, and the mesh network of the IEEE 802.11s standard.
  • communication unit 105 can be a cellular wireless transceiver that operates in accordance with Wideband Code Division Multiple Access (W-CDMA), Long Term Evolution (LTE), and the like.
  • W-CDMA Wideband Code Division Multiple Access
  • LTE Long Term Evolution
  • the virtual reality helmet device 100 can also include a storage unit, which is a mass storage device configured to have a solid state drive (SSD) or the like.
  • storage unit 106 can store applications or various types of data. For example, content viewed by a user using the virtual reality helmet device 100 may be stored in the storage unit 106.
  • the virtual reality helmet device 100 may further include a control unit, and the control unit 107 may include a computer processing unit (CPU) or other device having similar functions.
  • control unit 107 may be used to execute an application stored by storage unit 106, or control unit 107 may also be used to perform the methods, functions, and operations disclosed in some embodiments of the present application.
  • the image processing unit 108 is for performing signal processing such as image quality correction related to the image signal output from the control unit 107, and converting its resolution into a resolution according to the screen of the display unit 101. Then, the display driving unit 109 sequentially selects each line of pixels of the display unit 101, and sequentially scans each line of pixels of the display unit 101 line by line, thereby providing a pixel signal based on the signal-processed image signal.
  • the virtual reality helmet device 100 can also include an external camera.
  • the external camera 110 may be disposed on a front surface of the main body of the virtual reality helmet device 100, and the external camera 110 may be one or more.
  • the external camera 110 can acquire three-dimensional information and can also be used as a distance sensor.
  • a position sensitive detector (PSD) or other type of distance sensor that detects reflected signals from the object can be used with the external camera 110.
  • PSD position sensitive detector
  • the external camera 110 and the distance sensor can be used to detect the body position, posture, and shape of the user wearing the virtual reality helmet device 100.
  • the user can directly view or preview the real scene through the external camera 110.
  • the virtual reality helmet device 100 may further include a sound processing unit, and the sound processing unit 111 may perform sound quality correction or sound of the sound signal output from the control unit 107. Sound amplification, and signal processing of input sound signals. Then, the sound input/output unit 112 outputs the sound to the outside and the sound from the microphone after the sound processing.
  • the structure or component shown by the dotted line in FIG. 5 may be independent of the virtual reality helmet device 100, for example, may be disposed in an external processing system (such as a computer system) for use with the virtual reality helmet device 100; or The structure or components shown in dashed boxes may be disposed inside or on the surface of the virtual reality helmet device 100.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
  • a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
  • processors CPUs
  • input/output interfaces network interfaces
  • memory volatile and non-volatile memory
  • the memory may include non-persistent memory, random access memory (RAM), and/or non-volatile memory in a computer readable medium, such as read only memory (ROM) or flash memory (flash) RAM). Memory is an example of a computer readable medium.
  • RAM random access memory
  • ROM read only memory
  • flash flash memory
  • Computer readable media includes both permanent and non-persistent, removable and non-removable media.
  • Information storage can be implemented by any method or technology.
  • the information can be computer readable instructions, data structures, modules of programs, or other data.
  • Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory. (ROM), electrically erasable programmable read only memory (EEPROM), flash memory or other memory technology, compact disk read only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, Magnetic tape cartridges, magnetic tape storage or other magnetic storage devices or any other non-transportable media can be used to store information that can be accessed by a computing device.
  • computer readable media does not include temporary storage of computer readable media, such as modulated data signals and carrier waves.
  • embodiments of the present application can be provided as a method, system, or computer program product.
  • the present application can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment in combination of software and hardware.
  • the application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.

Abstract

Disclosed are a virtual-reality-based image display method and apparatus, and a virtual reality helmet device. The method comprises: when two cameras photograph the same object, respectively recording horizontal angles of field of view and vertical angles of field of view of two images and saving same in metadata of the corresponding images, so that based on the horizontal angles of field of view and the vertical angles of field of view of the two images, horizontal widths and vertical widths of the two images displayed on a virtual display screen can be calculated; and when the two images displayed on the virtual display screen are projected into human eyes, the human eyes acquiring the two images and then producing a stereoscopic impression in the brain. Since an actual horizontal angle of field of view and an actual vertical angle of field of view during imaging for a left eye and a right eye are considered when an image is displayed on a virtual display screen, the image displayed on the virtual display screen has a scale consistent with that of an object in a real scene, so that the visual perception of a user for a virtual scene is consistent with the visual perception for the real scene, and the sense of realism and immersion for the user can be improved.

Description

基于虚拟现实的图像显示方法和装置、虚拟现实头盔设备Virtual reality based image display method and device, virtual reality helmet device
交叉引用cross reference
本申请引用于2017年07月18日递交的名称为“基于虚拟现实的图像显示方法和装置”的第201710587489.0号中国专利申请,其通过引用被全部并入本申请。The present application is hereby incorporated by reference in its entirety in its entirety in its entirety in the the the the the the the the the the the the the
技术领域Technical field
本发明涉及人机交互技术领域,尤其涉及一种基于虚拟现实的图像显示方法和装置、虚拟现实头盔设备。The present invention relates to the field of human-computer interaction technologies, and in particular, to a virtual reality-based image display method and apparatus, and a virtual reality helmet device.
背景技术Background technique
虚拟现实技术是结合计算机图形学系统以及各种控制接口设备,在计算机上生成可交互的三维环境中提供沉浸式虚拟场景的技术。Virtual reality technology is a technology that combines computer graphics systems and various control interface devices to generate immersive virtual scenes in an interactive, three-dimensional environment on a computer.
对于用户而言,对于虚拟场景的视觉感知是提供真实沉浸感的基础。为了实现虚拟场景的立体显示,可以结合计算机图像学系统将虚拟场景转换为虚拟立体场景,从而将虚拟立体场景呈现在真实场景中。For the user, visual perception of the virtual scene is the basis for providing true immersion. In order to realize the stereoscopic display of the virtual scene, the virtual scene can be converted into a virtual stereo scene in combination with a computer graphics system, so that the virtual stereo scene is presented in the real scene.
但是在现有技术中,通过是利用固定的转换参数将虚拟场景线性的转换为虚拟立体场景,可能会导致虚拟立体场景不能与真实场景中具有较好的适配,也就是说,用户对于虚拟场景的视觉感知与真实场景中的视觉感知是不一致的,从而无法达到较佳的立体显示效果,降低了用户的真实沉浸感。 However, in the prior art, the virtual scene is linearly converted into a virtual stereo scene by using a fixed conversion parameter, which may result in the virtual stereo scene not being well adapted to the real scene, that is, the user is virtual. The visual perception of the scene is inconsistent with the visual perception in the real scene, so that the better stereoscopic display effect can not be achieved, and the user's true immersion is reduced.
发明内容Summary of the invention
为了解决上述问题,本发明提供一种基于虚拟现实的图像显示方法和装置、电子设备,可以实现虚拟场景的视觉感知与真实场景中的视觉感知的一致性,提高虚拟立体场景与真实场景的适配性。In order to solve the above problems, the present invention provides an image display method and apparatus based on virtual reality, and an electronic device, which can achieve consistency between visual perception of a virtual scene and visual perception in a real scene, and improve the adaptation of the virtual stereo scene and the real scene. Matching.
本发明提供一种基于虚拟现实的图像显示方法,包括:The invention provides an image display method based on virtual reality, comprising:
分别获取左眼图像的水平视场角和垂直视场角以及右眼图像的水平视场角和垂直视场角,其中,左眼图像和右眼图像分别为第一摄像机和第二摄像机针对同一物体各自拍摄的图像;Obtaining a horizontal field of view and a vertical field of view of the left eye image and a horizontal field of view and a vertical field of view of the right eye image, wherein the left eye image and the right eye image are respectively the same for the first camera and the second camera An image taken by each object;
根据所述两个图像的水平视场角和垂直视场角,分别计算两个图像在虚拟显示屏上的水平方向宽度和垂直方向宽度;Calculating a horizontal width and a vertical width of the two images on the virtual display screen according to the horizontal field of view and the vertical field of view of the two images;
根据所述两个图像在虚拟显示屏上的水平方向宽度和垂直方向宽度,对所述两个图像在虚拟显示屏上进行显示。The two images are displayed on the virtual display screen according to the horizontal width and the vertical direction width of the two images on the virtual display screen.
可选地,分别获取两个图像的水平视场角和垂直视场角之前,包括:Optionally, before acquiring the horizontal field of view and the vertical field of view of the two images, respectively:
在拍摄所述左眼图像和所述右眼图像时,分别记录所述第一摄像机和所述第二摄像机针对同一物体各自拍摄图像时的水平视场角和垂直视场角;When photographing the left eye image and the right eye image, respectively recording a horizontal field of view angle and a vertical field of view angle when the first camera and the second camera respectively capture images for the same object;
将拍摄图像时的水平视场角和垂直视场角保存到对应图像的元数据中,以便从图像的元数据中获取拍摄该图像时的水平视场角和垂直视场角。The horizontal field of view and the vertical field of view when the image is captured are saved to the metadata of the corresponding image to obtain the horizontal field of view and the vertical field of view of the image from the metadata of the image.
可选地,根据所述两个图像的水平视场角和垂直视场角,分别计算两个图像在虚拟显示屏上的水平方向宽度和垂直方向宽度,包括:Optionally, calculating a horizontal width and a vertical width of the two images on the virtual display screen according to the horizontal field of view and the vertical field of view of the two images, respectively:
根据图像的水平视场角,以及预设的虚拟显示屏距离对应的虚拟成像设备之间的距离,计算得到图像在虚拟显示屏上的水平方向宽度;Calculating the horizontal width of the image on the virtual display screen according to the horizontal field of view angle of the image and the distance between the virtual imaging device corresponding to the preset virtual display screen distance;
根据图像的垂直视场角,以及预设的虚拟显示屏距离对应的虚拟成像设备之间的距离,计算得到图像在虚拟显示屏上的垂直方向宽度。The vertical width of the image on the virtual display screen is calculated according to the vertical field of view of the image and the distance between the virtual display device and the corresponding virtual imaging device.
可选地,所述的方法包括:Optionally, the method includes:
根据计算公式B=2A*tgα,计算图像在虚拟显示屏上的水平方向宽度和 垂直方向宽度,其中,A为预设的虚拟显示屏距离对应的虚拟成像设备之间的距离,当α为图像的水平视场角时,则B为图像在虚拟显示屏上的水平方向宽度,或当α为图像的垂直视场角时,则B为图像在虚拟显示屏上的垂直方向宽度。Calculate the horizontal width of the image on the virtual display screen according to the calculation formula B=2A*tgα The vertical direction width, where A is the distance between the virtual display device corresponding to the preset virtual display screen distance, and when α is the horizontal field of view angle of the image, then B is the horizontal width of the image on the virtual display screen. Or when α is the vertical field of view of the image, then B is the vertical width of the image on the virtual display.
可选地,对应左右眼设置两个光学成像设备包括对应左右眼设置的两个透镜,第一透镜和第二透镜,且两个透镜对称安装在虚拟现实设备上,两个透镜的硬件参数相同,且两个透镜之间的瞳距为6.5cm。Optionally, two optical imaging devices are disposed corresponding to the left and right eyes, including two lenses corresponding to the left and right eyes, a first lens and a second lens, and the two lenses are symmetrically mounted on the virtual reality device, and the hardware parameters of the two lenses are the same. And the lay length between the two lenses is 6.5 cm.
本发明还提供一种基于虚拟现实的图像显示装置,包括:The invention also provides an image display device based on virtual reality, comprising:
获取模块,用于分别获取左眼图像的水平视场角和垂直视场角以及右眼图像的水平视场角和垂直视场角,其中,左眼图像和右眼图像分别为第一摄像机和第二摄像机针对同一物体各自拍摄的图像;And an acquiring module, configured to respectively acquire a horizontal field of view and a vertical field of view of the left eye image and a horizontal field of view and a vertical field of view of the right eye image, wherein the left eye image and the right eye image are respectively the first camera and An image captured by the second camera for the same object;
计算模块,用于根据所述两个图像的水平视场角和垂直视场角,分别计算两个图像在虚拟显示屏上的水平方向宽度和垂直方向宽度;a calculation module, configured to calculate a horizontal width and a vertical width of the two images on the virtual display screen according to the horizontal field of view and the vertical field of view of the two images;
显示模块,用于根据所述两个图像在虚拟显示屏上的水平方向宽度和垂直方向宽度,对所述两个图像在虚拟显示屏上进行显示。And a display module, configured to display the two images on the virtual display screen according to the horizontal direction width and the vertical direction width of the two images on the virtual display screen.
可选地,所述的装置还包括:Optionally, the device further includes:
记录模块,用于在拍摄所述左眼图像和所述右眼图像时,分别记录所述第一摄像机和所述第二摄像机针对同一物体各自拍摄图像时的水平视场角和垂直视场角;a recording module, configured to record a horizontal field of view and a vertical field of view when the first camera and the second camera respectively capture images for the same object when the left eye image and the right eye image are captured ;
保存模块,用于将拍摄图像时的水平视场角和垂直视场角保存到对应图像的元数据中,以便从图像的元数据中获取拍摄该图像时的水平视场角和垂直视场角。a saving module for saving a horizontal field of view and a vertical field of view when capturing an image into metadata of a corresponding image, so as to obtain a horizontal field of view and a vertical field of view when the image is captured from the metadata of the image .
可选地,所述计算模块具体用于:Optionally, the computing module is specifically configured to:
根据图像的水平视场角,以及预设的虚拟显示屏距离对应的虚拟成像设备之间的距离,计算得到图像在虚拟显示屏上的水平方向宽度;Calculating the horizontal width of the image on the virtual display screen according to the horizontal field of view angle of the image and the distance between the virtual imaging device corresponding to the preset virtual display screen distance;
根据图像的垂直视场角,以及预设的虚拟显示屏距离对应的虚拟成像设备之间的距离,计算得到图像在虚拟显示屏上的垂直方向宽度。 The vertical width of the image on the virtual display screen is calculated according to the vertical field of view of the image and the distance between the virtual display device and the corresponding virtual imaging device.
可选地,所述计算模块具体用于:Optionally, the computing module is specifically configured to:
根据计算公式B=2A*tgα,计算图像在虚拟显示屏上的水平方向宽度和垂直方向宽度,其中,A为预设的虚拟显示屏距离对应的虚拟成像设备之间的距离,当α为图像的水平视场角时,则B为图像在虚拟显示屏上的水平方向宽度,或当α为图像的垂直视场角时,则B为图像在虚拟显示屏上的垂直方向宽度。Calculate the horizontal width and vertical width of the image on the virtual display screen according to the calculation formula B=2A*tgα, where A is the distance between the virtual imaging device corresponding to the preset virtual display screen distance, when α is the image When the horizontal field of view is angle, then B is the horizontal width of the image on the virtual display screen, or when α is the vertical field of view of the image, then B is the vertical width of the image on the virtual display screen.
可选地,对应左右眼设置两个光学成像设备包括对应左右眼设置的两个透镜,第一透镜和第二透镜,且两个透镜对称安装在虚拟现实设备上,两个透镜的硬件参数相同,且两个透镜之间的瞳距为6.5cm。Optionally, two optical imaging devices are disposed corresponding to the left and right eyes, including two lenses corresponding to the left and right eyes, a first lens and a second lens, and the two lenses are symmetrically mounted on the virtual reality device, and the hardware parameters of the two lenses are the same. And the lay length between the two lenses is 6.5 cm.
本发明提供一种虚拟现实头盔设备,包括:处理器和存储器;The invention provides a virtual reality helmet device, comprising: a processor and a memory;
所述存储器用于存储一条或多条计算机指令,其中,所述一条或多条计算机指令被所述处理器执行时实现如下步骤:The memory is for storing one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the following steps:
分别获取左眼图像的水平视场角和垂直视场角以及右眼图像的水平视场角和垂直视场角,其中,左眼图像和右眼图像分别为第一摄像机和第二摄像机针对同一物体各自拍摄的图像;Obtaining a horizontal field of view and a vertical field of view of the left eye image and a horizontal field of view and a vertical field of view of the right eye image, wherein the left eye image and the right eye image are respectively the same for the first camera and the second camera An image taken by each object;
根据所述两个图像的水平视场角和垂直视场角,分别计算两个图像在虚拟显示屏上的水平方向宽度和垂直方向宽度;Calculating a horizontal width and a vertical width of the two images on the virtual display screen according to the horizontal field of view and the vertical field of view of the two images;
根据所述两个图像在虚拟显示屏上的水平方向宽度和垂直方向宽度,对所述两个图像在虚拟显示屏上进行显示。The two images are displayed on the virtual display screen according to the horizontal width and the vertical direction width of the two images on the virtual display screen.
本发明提供一种非易失性计算机存储介质,其上储存有计算机程序指令,所述计算机程序指令被处理器执行时实现前述的基于虚拟现实的图像显示方法。The present invention provides a non-volatile computer storage medium having stored thereon computer program instructions that, when executed by a processor, implement the aforementioned virtual reality-based image display method.
本发明实施例通过将两个光学成像设备对应左右眼设置在虚拟现实设备上,当两个摄像机针对同一物体拍摄时,针对左右眼生成两个不同的图像,分别记录两个图像的水平视场角和垂直视场角并保存到对应图像的元数据中,从而可以基于两个图像的水平视场角和垂直视场角,计算该两个图像显示在虚拟显示屏上的水平方向宽度和垂直方向宽度,当显示在虚拟 显示屏上的两个图像投射到人眼中,人眼获取该两个图像后在脑中产生立体感。由于在虚拟显示屏上显示图像时考虑到了实际针对左右眼成像时的水平视场角和垂直视场角,从而使得在虚拟显示屏上的显示图像与真实场景中的物体比例是一致的,这样使得用户对于虚拟场景的视觉感知与真实场景中的视觉感知是一致的,可以提高用户的真实沉浸感。In the embodiment of the present invention, two optical imaging devices are arranged on the virtual reality device corresponding to the left and right eyes. When two cameras are shooting for the same object, two different images are generated for the left and right eyes, and the horizontal fields of the two images are respectively recorded. The angular and vertical field of view angles are saved to the metadata of the corresponding image, so that the horizontal width and vertical of the two images displayed on the virtual display screen can be calculated based on the horizontal field of view and the vertical field of view of the two images. Direction width when displayed in virtual The two images on the display are projected into the human eye, and the human eye acquires the two images to create a stereoscopic effect in the brain. Since the horizontal field angle and the vertical field angle when actually imaging the left and right eyes are taken into account when displaying the image on the virtual display screen, the display image on the virtual display screen is consistent with the object ratio in the real scene, so that The user's visual perception of the virtual scene is consistent with the visual perception in the real scene, which can improve the user's true immersion.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, a brief description of the drawings used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any creative work.
图1为本发明一实施例提供的基于虚拟现实的图像显示方法流程示意图;1 is a schematic flow chart of an image display method based on virtual reality according to an embodiment of the present invention;
图2为本发明实施例提供的虚拟场景布置的示意图;2 is a schematic diagram of a virtual scene arrangement according to an embodiment of the present invention;
图3为本发明实施例提供的一种透镜布置示意图;FIG. 3 is a schematic diagram of a lens arrangement according to an embodiment of the present invention; FIG.
图4为本发明一实施例提供的基于虚拟现实的图像显示装置结构示意图;4 is a schematic structural diagram of an image display device based on virtual reality according to an embodiment of the present invention;
图5示出了一些实施例中虚拟现实头盔设备100的内部配置结构示意图。FIG. 5 shows a schematic diagram of the internal configuration of the virtual reality helmet device 100 in some embodiments.
具体实施方式Detailed ways
为使本申请的目的、技术方案和优点更加清楚,下面将结合本申请具体实施例及相应的附图对本申请技术方案进行清楚、完整地描述。显然,所描述的实施例仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。 The technical solutions of the present application will be clearly and completely described in the following with reference to the specific embodiments of the present application and the corresponding drawings. It is apparent that the described embodiments are only a part of the embodiments of the present application, and not all of them. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope are the scope of the present application.
图1为本发明一实施例提供的基于虚拟现实的图像显示方法流程示意图,如图1所示,包括:FIG. 1 is a schematic flowchart of a virtual reality-based image display method according to an embodiment of the present invention. As shown in FIG. 1 , the method includes:
101、分别获取左眼图像的水平视场角和垂直视场角以及右眼图像的水平视场角和垂直视场角。101. Obtain a horizontal field of view and a vertical field of view of the left eye image and a horizontal field of view and a vertical field of view of the image of the right eye, respectively.
其中,左眼图像和右眼图像分别为第一摄像机和第二摄像机针对同一物体各自拍摄的图像;Wherein, the left eye image and the right eye image are images respectively taken by the first camera and the second camera for the same object;
当第一摄像机和第二摄像机针对同一物体各自拍摄图像时,可以针对左右眼生成两个不同的图像,例如,一个图像是针对右眼的第一摄像机拍摄的图像(简称右眼图像),另一个图像是针对左眼的第二摄像机拍摄的图像(简称左眼图像)。When the first camera and the second camera respectively capture images for the same object, two different images may be generated for the left and right eyes, for example, one image is an image taken by the first camera for the right eye (referred to as a right eye image), and One image is an image taken by a second camera for the left eye (referred to as a left eye image).
为了能够实现虚拟显示屏上的显示图像与真实场景中的物体比例是一致的,从而使得用户对于虚拟场景的视觉感知与真实场景中的视觉感知保持一致,本发明实施例中,当第一摄像机和第二摄像机对同一物体各自生成对应左右眼的图像(左眼图像和右眼图像)时,分别记录两个图像的水平视场角和垂直视场角,即第一摄像机对同一物体拍摄图像时的水平视场角和垂直视场角,和第二摄像机对同一物体拍摄图像时的水平视场角和垂直视场角,之后,为了节约虚拟现实设备的内存资源,可以将两个图像的水平视场角和垂直视场角分别保存到对应图像的元数据中,以便虚拟现实设备在虚拟显示之前从图像的元数据中获取拍摄该图像时的水平视场角和垂直视场角;其中,保存到元数据中的水平视场角和垂直视场角可以为一串字符串。In order to enable the display image on the virtual display screen to be consistent with the ratio of the objects in the real scene, so that the visual perception of the virtual scene is consistent with the visual perception in the real scene, in the embodiment of the present invention, when the first camera When the second camera generates an image corresponding to the left and right eyes (the left eye image and the right eye image) for the same object, the horizontal angle of view and the vertical angle of view of the two images are respectively recorded, that is, the first camera captures an image of the same object. The horizontal field of view and the vertical field of view, and the horizontal field of view and the vertical field of view when the second camera captures an image of the same object. Thereafter, in order to save memory resources of the virtual reality device, two images can be The horizontal field of view and the vertical field of view are respectively saved into the metadata of the corresponding image, so that the virtual reality device obtains the horizontal field of view and the vertical field of view of the image from the metadata of the image before the virtual display; The horizontal field of view and the vertical field of view saved in the metadata can be a string of strings.
102、根据两个图像的水平视场角和垂直视场角,分别计算两个图像在虚拟显示屏上的水平方向宽度和垂直方向宽度;102. Calculate a horizontal width and a vertical width of the two images on the virtual display screen according to the horizontal field of view and the vertical field of view of the two images;
图2为本发明实施例提供的虚拟场景布置的示意图,如图2所示,在虚拟场景里布置两个虚拟摄像头,左边的虚拟摄像头对应左眼,右边的虚拟摄像头对应右眼,在两个虚拟摄像头前面的一定距离(该距离是可以变化的)放置两个虚拟显示屏,其中,一个虚拟显示屏用来显示针对右眼的虚拟图像,另一个虚拟显示屏用来显示针对左眼的虚拟图像。 2 is a schematic diagram of a virtual scene arrangement according to an embodiment of the present invention. As shown in FIG. 2, two virtual cameras are arranged in a virtual scene, and a virtual camera on the left corresponds to the left eye, and a virtual camera on the right corresponds to the right eye. A virtual display is placed at a distance in front of the virtual camera (the distance is variable), wherein one virtual display is used to display a virtual image for the right eye and the other virtual display is used to display a virtual image for the left eye. image.
步骤102具体实现时,例如根据上述步骤101中获取的右眼图像的水平视场角,以及根据图3所示预设的虚拟显示屏距离对应的虚拟成像设备之间的距离,可以计算得到右眼图像在虚拟显示屏上的水平方向宽度;根据上述步骤101中获取的右眼图像的垂直视场角,以及根据图3所示预设的虚拟显示屏距离对应的虚拟成像设备之间的距离,可以计算得到右眼图像在虚拟显示屏上的垂直方向宽度。同理,可以得到左眼图像在虚拟显示屏上的水平方向宽度和垂直方向宽度。When the step 102 is specifically implemented, for example, according to the horizontal angle of view of the right eye image acquired in the above step 101, and the distance between the virtual imaging devices corresponding to the virtual display screen distance preset according to FIG. 3, the right can be calculated. The horizontal direction width of the eye image on the virtual display screen; the vertical field of view angle of the right eye image acquired in the above step 101, and the distance between the virtual imaging devices corresponding to the virtual display screen distance preset according to FIG. , the vertical width of the right eye image on the virtual display can be calculated. In the same way, the horizontal width and the vertical width of the left eye image on the virtual display screen can be obtained.
在本发明一种可选的实施方式中,可以根据计算公式B=2A*tgα,计算图像在虚拟显示屏上的水平方向宽度和垂直方向宽度;其中,A为虚拟显示屏距离对应的虚拟成像设备(或虚拟摄像头)之间的距离,当α为图像的水平视场角时,则B为图像在虚拟显示屏上的水平方向宽度,或当α为图像的垂直视场角时,则B为图像在虚拟显示屏上的垂直方向宽度。In an optional implementation manner of the present invention, the horizontal width and the vertical width of the image on the virtual display screen may be calculated according to the calculation formula B=2A*tgα; wherein A is a virtual imaging corresponding to the virtual display screen distance. The distance between the device (or virtual camera), when α is the horizontal field of view of the image, then B is the horizontal width of the image on the virtual display, or when α is the vertical field of view of the image, then B The width of the image in the vertical direction on the virtual display.
当虚拟显示屏距离对应的虚拟成成像设备(或虚拟摄像头)之间的距离A为i1时,对应的图像在虚拟显示屏上的水平方向宽度或者垂直方向宽度B1;虚拟显示屏距离对应的虚拟成成像设备(或虚拟摄像头)之间的距离A为i2时,对应的图像在虚拟显示屏上的水平方向宽度或者垂直方向宽度B2。When the distance A between the virtual imaging device (or virtual camera) corresponding to the virtual display screen distance is i1, the horizontal width or vertical width B1 of the corresponding image on the virtual display screen; the virtual virtual display distance corresponding to the virtual When the distance A between the imaging devices (or virtual cameras) is i2, the corresponding image has a horizontal width or a vertical width B2 on the virtual display screen.
103、根据两个图像在虚拟显示屏上的水平方向宽度和垂直方向宽度,对两个图像在虚拟显示屏上进行显示。103. Display the two images on the virtual display screen according to the horizontal width and the vertical width of the two images on the virtual display screen.
当显示在虚拟显示屏上的两个图像投射到人眼中,人眼获取该两个图像后在脑中产生立体感。When two images displayed on the virtual display are projected into the human eye, the human eye acquires the two images to create a stereoscopic effect in the brain.
需要说明的是,本发明实施例中,为了减少左右眼的视觉误差和提高用户对虚拟场景的真实沉浸感,图3为本发明实施例提供的一种透镜布置示意图,如图3所示,第一透镜(透镜1)和第二透镜(透镜2)分别对应左右眼而设置,如透镜1针对左眼,透镜2针对右眼布置,两个透镜对称安装在虚拟现实设备(如虚拟现实的头戴设备)上,两个透镜的硬件参数相同,且两个透镜之间的瞳距为6.5cm。It should be noted that, in the embodiment of the present invention, in order to reduce the visual error of the left and right eyes and improve the real immersion of the user on the virtual scene, FIG. 3 is a schematic diagram of a lens arrangement according to an embodiment of the present invention, as shown in FIG. The first lens (lens 1) and the second lens (lens 2) are respectively disposed corresponding to the left and right eyes, such as lens 1 for the left eye, lens 2 for the right eye, and two lenses symmetrically mounted on the virtual reality device (such as virtual reality On the headgear, the hardware parameters of the two lenses are the same, and the lay length between the two lenses is 6.5 cm.
由此可知,本发明实施例中,当虚拟显示屏距离虚拟成像设备(或虚拟 摄像头)比较近的时候,对应的图像在虚拟显示屏上的水平方向宽度或者垂直方向宽度也成比例的变小;当虚拟显示屏距离虚拟成像设备(或虚拟摄像头)比较远的时候,对应的图像在虚拟显示屏上的水平方向宽度或者垂直方向宽度也成比例的变大。也就是说,无论虚拟显示屏与虚拟成像设备(或虚拟摄像头)之间的距离远近,用户对于虚拟场景中的视觉感知是该物体大小比例没有变化,即用户对于虚拟场景中的视觉感知与真实场景中的视觉感知是一致的。因此,本发明实施例的图像显示可以达到较佳的显示效果,大大提高了用户的真实沉浸感。It can be seen that, in the embodiment of the present invention, when the virtual display screen is away from the virtual imaging device (or virtual When the camera is relatively close, the horizontal width or vertical width of the corresponding image on the virtual display screen is also proportionally smaller; when the virtual display screen is far away from the virtual imaging device (or virtual camera), the corresponding image The horizontal width or vertical width of the image on the virtual display is also proportionally larger. That is to say, regardless of the distance between the virtual display screen and the virtual imaging device (or virtual camera), the user's visual perception in the virtual scene is that the object size ratio does not change, that is, the user's visual perception and reality in the virtual scene. The visual perception in the scene is consistent. Therefore, the image display of the embodiment of the invention can achieve a better display effect, and the real immersion of the user is greatly improved.
而现有技术中,由于不考虑拍摄图像时的水平视场角和垂直视场角,虚拟显示屏与虚拟成像设备(或虚拟摄像头)之间的距离无论是远或近,图像在虚拟显示屏上的大小不变,因此,当虚拟显示屏距离虚拟成像设备(或虚拟摄像头)比较近的时候,用户对于虚拟场景中的视觉感知是该物体感觉很大;当虚拟显示屏距离虚拟成像设备(或虚拟摄像头)比较远的时候,用户对于虚拟场景中的视觉感知是该物体感觉很小,因此,现有技术的图像显示无法达到较佳的显示效果,大大降低了用户的真实沉浸感。In the prior art, the distance between the virtual display screen and the virtual imaging device (or virtual camera) is far or near, and the image is on the virtual display screen, regardless of the horizontal field of view and the vertical field of view when the image is taken. The size above does not change, so when the virtual display screen is closer to the virtual imaging device (or virtual camera), the user's visual perception of the virtual scene is that the object feels great; when the virtual display screen is away from the virtual imaging device ( When the virtual camera is relatively far away, the user's visual perception in the virtual scene is that the object feels very small. Therefore, the prior art image display cannot achieve a better display effect, and the user's true immersion is greatly reduced.
图4为本发明一实施例提供的基于虚拟现实的图像显示装置结构示意图,如图4所示,包括:4 is a schematic structural diagram of an image display device based on virtual reality according to an embodiment of the present invention. As shown in FIG. 4, the method includes:
获取模块,用于分别获取左眼图像的水平视场角和垂直视场角以及右眼图像的水平视场角和垂直视场角,其中,左眼图像和右眼图像分别为第一摄像机和第二摄像机针对同一物体各自拍摄的图像;And an acquiring module, configured to respectively acquire a horizontal field of view and a vertical field of view of the left eye image and a horizontal field of view and a vertical field of view of the right eye image, wherein the left eye image and the right eye image are respectively the first camera and An image captured by the second camera for the same object;
计算模块,用于根据所述两个图像的水平视场角和垂直视场角,分别计算两个图像在虚拟显示屏上的水平方向宽度和垂直方向宽度;a calculation module, configured to calculate a horizontal width and a vertical width of the two images on the virtual display screen according to the horizontal field of view and the vertical field of view of the two images;
显示模块,用于根据所述两个图像在虚拟显示屏上的水平方向宽度和垂直方向宽度,对所述两个图像在虚拟显示屏上进行显示。And a display module, configured to display the two images on the virtual display screen according to the horizontal direction width and the vertical direction width of the two images on the virtual display screen.
可选地,所述的装置还包括:Optionally, the device further includes:
记录模块,用于在拍摄所述左眼图像和所述右眼图像时,分别记录所述第一摄像机和所述第二摄像机针对同一物体各自拍摄图像时的水平视场角和 垂直视场角;a recording module, configured to record, when the left eye image and the right eye image are captured, a horizontal angle of view and a horizontal angle of view when the first camera and the second camera respectively capture images for the same object Vertical field of view;
保存模块,用于将拍摄图像时的水平视场角和垂直视场角保存到对应图像的元数据中,以便从图像的元数据中获取拍摄该图像时的水平视场角和垂直视场角。a saving module for saving a horizontal field of view and a vertical field of view when capturing an image into metadata of a corresponding image, so as to obtain a horizontal field of view and a vertical field of view when the image is captured from the metadata of the image .
可选地,所述计算模块具体用于:Optionally, the computing module is specifically configured to:
根据图像的水平视场角,以及预设的虚拟显示屏距离对应的虚拟成像设备之间的距离,计算得到图像在虚拟显示屏上的水平方向宽度;Calculating the horizontal width of the image on the virtual display screen according to the horizontal field of view angle of the image and the distance between the virtual imaging device corresponding to the preset virtual display screen distance;
根据图像的垂直视场角,以及预设的虚拟显示屏距离对应的虚拟成像设备之间的距离,计算得到图像在虚拟显示屏上的垂直方向宽度。The vertical width of the image on the virtual display screen is calculated according to the vertical field of view of the image and the distance between the virtual display device and the corresponding virtual imaging device.
可选地,所述计算模块具体用于:Optionally, the computing module is specifically configured to:
根据计算公式B=2A*tgα,计算图像在虚拟显示屏上的水平方向宽度和垂直方向宽度,其中,A为预设的虚拟显示屏距离对应的虚拟成像设备之间的距离,当α为图像的水平视场角时,则B为图像在虚拟显示屏上的水平方向宽度,或当α为图像的垂直视场角时,则B为图像在虚拟显示屏上的垂直方向宽度。Calculate the horizontal width and vertical width of the image on the virtual display screen according to the calculation formula B=2A*tgα, where A is the distance between the virtual imaging device corresponding to the preset virtual display screen distance, when α is the image When the horizontal field of view is angle, then B is the horizontal width of the image on the virtual display screen, or when α is the vertical field of view of the image, then B is the vertical width of the image on the virtual display screen.
本发明实施例所述的装置可以执行图1所示的方法,其实现原理和技术效果不再赘述。The device in the embodiment of the present invention can perform the method shown in FIG. 1 , and the implementation principle and technical effects thereof are not described again.
本发明实施例中,上述装置的结构中包括处理器和存储器,所述存储器用于存储一条或多条计算机指令,其中,所述一条或多条计算机指令被所述处理器执行时实现如下步骤:In the embodiment of the present invention, the foregoing apparatus includes a processor and a memory, where the memory is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the following steps. :
分别获取左眼图像的水平视场角和垂直视场角以及右眼图像的水平视场角和垂直视场角,其中,左眼图像和右眼图像分别为第一摄像机和第二摄像机针对同一物体各自拍摄的图像;Obtaining a horizontal field of view and a vertical field of view of the left eye image and a horizontal field of view and a vertical field of view of the right eye image, wherein the left eye image and the right eye image are respectively the same for the first camera and the second camera An image taken by each object;
根据所述两个图像的水平视场角和垂直视场角,分别计算两个图像在虚拟显示屏上的水平方向宽度和垂直方向宽度;Calculating a horizontal width and a vertical width of the two images on the virtual display screen according to the horizontal field of view and the vertical field of view of the two images;
根据所述两个图像在虚拟显示屏上的水平方向宽度和垂直方向宽度,对所述两个图像在虚拟显示屏上进行显示。 The two images are displayed on the virtual display screen according to the horizontal width and the vertical direction width of the two images on the virtual display screen.
可选地,所述处理器还用于执行前述实施例中的全部或部分步骤。Optionally, the processor is further configured to perform all or part of the steps in the foregoing embodiments.
本发明实施例还提供了一种非易失性计算机存储介质,其上储存有计算机程序指令,所述计算机程序指令被处理器执行时实现前述实施例提供的基于虚拟现实的图像显示方法。The embodiment of the present invention further provides a non-volatile computer storage medium on which computer program instructions are stored, and when the computer program instructions are executed by the processor, the virtual reality-based image display method provided by the foregoing embodiments is implemented.
需要说明的是,本发明实施例的方法并不限于基于虚拟现实的图像显示方法,还可以实现基于虚拟现实的视频显示,因为视频是时间帧连续的图像集合,当两个摄像机针对人眼左右眼的视场方向拍摄每个时间帧的右眼图像和左眼图像时,均可以记录每个时间帧的右眼图像和左眼图像的水平视场角和垂直视场角,并保存到对应时间帧的右眼图像和左眼图像的元数据中,因此可以基于每个时间帧的右眼图像和左眼图像的水平视场角和垂直视场角,计算每个时间帧的右眼图像和左眼图像显示在虚拟显示屏上的水平方向宽度和垂直方向宽度,当显示在虚拟显示屏上的每个时间帧的右眼图像和左眼图像投射到人眼中,人眼获取该段视频在脑中产生立体感。且用户对于虚拟视频场景中的视觉感知与真实视频场景中的视觉感知是一致的。因此,本发明实施例的视频图像显示可以达到较佳的显示效果,大大提高了用户的真实沉浸感本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。It should be noted that the method of the embodiment of the present invention is not limited to the image display method based on virtual reality, and the video display based on virtual reality can also be realized, because the video is a continuous image collection of time frames, when two cameras are aimed at the human eye. When the right-eye image and the left-eye image of each time frame are taken in the field of view of the eye, the horizontal and vertical angles of view of the right-eye image and the left-eye image of each time frame can be recorded and saved to the corresponding In the metadata of the right eye image and the left eye image of the time frame, the right eye image of each time frame can be calculated based on the horizontal field of view and the vertical field of view of the right eye image and the left eye image of each time frame. And the left eye image displays the horizontal width and the vertical width on the virtual display screen, and when the right eye image and the left eye image of each time frame displayed on the virtual display are projected into the human eye, the human eye acquires the video. Create a three-dimensional sense in the brain. And the user's visual perception in the virtual video scene is consistent with the visual perception in the real video scene. Therefore, the video image display of the embodiment of the present invention can achieve a better display effect, and the real immersion of the user is greatly improved. Those skilled in the art should understand that embodiments of the present invention can be provided as a method, a system, or a computer program. product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
本发明一些实施例提供的电子设备可以为外接式头戴显示设备或者一体式头戴显示设备,其中外接式头戴显示设备需要与外部处理系统(例如计算机处理系统)配合使用。The electronic device provided by some embodiments of the present invention may be an external head mounted display device or an integrated head mounted display device, wherein the external head mounted display device needs to be used in conjunction with an external processing system (eg, a computer processing system).
图5示出了一些实施例中虚拟现实头盔设备100的内部配置结构示意图。FIG. 5 shows a schematic diagram of the internal configuration of the virtual reality helmet device 100 in some embodiments.
显示单元101可以包括显示面板,显示面板设置在虚拟现实头盔设备100上面向用户面部的侧表面,可以为一整块面板、或者为分别对应用户左眼和 右眼的左面板和右面板。显示面板可以为电致发光(EL)元件、液晶显示器或具有类似结构的微型显示器、或者视网膜可直接显示或类似的激光扫描式显示器。The display unit 101 may include a display panel disposed on a side surface of the virtual reality helmet device 100 facing the user's face, which may be a whole panel or respectively corresponding to the user's left eye and The left and right panels of the right eye. The display panel may be an electroluminescence (EL) element, a liquid crystal display or a microdisplay having a similar structure, or a laser-scanned display in which the retina may be directly displayed or similar.
虚拟图像光学单元102以放大方式拍摄显示单元101所显示的图像,并允许用户按放大的虚拟图像观察所显示的图像。作为输出到显示单元101上的显示图像,可以是从内容再现设备(蓝光光碟或DVD播放器)或流媒体服务器提供的虚拟场景的图像、或者使用外部相机110拍摄的现实场景的图像。一些实施例中,虚拟图像光学单元102可以包括透镜单元,例如球面透镜、非球面透镜、菲涅尔透镜等。The virtual image optical unit 102 photographs the image displayed by the display unit 101 in an enlarged manner, and allows the user to observe the displayed image in the enlarged virtual image. As the display image outputted to the display unit 101, it may be an image of a virtual scene supplied from a content reproduction device (a Blu-ray disc or a DVD player) or a streaming server, or an image of a real scene photographed using the external camera 110. In some embodiments, virtual image optical unit 102 can include a lens unit, such as a spherical lens, an aspheric lens, a Fresnel lens, and the like.
输入操作单元103包括至少一个用来执行输入操作的操作部件,例如按键、按钮、开关或者其他具有类似功能的部件,通过操作部件接收用户指令,并且向控制单元107输出指令。The input operation unit 103 includes at least one operation member for performing an input operation, such as a button, a button, a switch, or other similarly functioned component, receives a user instruction through the operation member, and outputs an instruction to the control unit 107.
状态信息获取单元104用于获取穿戴虚拟现实头盔设备100的用户的状态信息。状态信息获取单元104可以包括各种类型的传感器,用于自身检测状态信息,并可以通过通信单元105从外部设备(例如智能手机、腕表和用户穿戴的其它多功能终端)获取状态信息。状态信息获取单元104可以获取用户的头部的位置信息和/或姿态信息。状态信息获取单元104可以包括陀螺仪传感器、加速度传感器、全球定位系统(GPS)传感器、地磁传感器、多普勒效应传感器、红外传感器、射频场强度传感器中的一个或者多个。此外,状态信息获取单元104获取穿戴虚拟现实头盔设备100的用户的状态信息,例如获取例如用户的操作状态(用户是否穿戴虚拟现实头盔设备100)、用户的动作状态(诸如静止、行走、跑动和诸如此类的移动状态,手或指尖的姿势、眼睛的开或闭状态、视线方向、瞳孔尺寸)、精神状态(用户是否沉浸在观察所显示的图像以及诸如此类的),甚至生理状态。The status information acquisition unit 104 is configured to acquire status information of the user wearing the virtual reality helmet device 100. The status information acquisition unit 104 may include various types of sensors for detecting status information by itself, and may acquire status information from an external device such as a smartphone, a wristwatch, and other multi-function terminals worn by the user through the communication unit 105. The status information acquisition unit 104 can acquire location information and/or posture information of the user's head. The status information acquisition unit 104 may include one or more of a gyro sensor, an acceleration sensor, a global positioning system (GPS) sensor, a geomagnetic sensor, a Doppler effect sensor, an infrared sensor, and a radio frequency field intensity sensor. Further, the state information acquisition unit 104 acquires state information of the user wearing the virtual reality helmet device 100, for example, acquires, for example, an operation state of the user (whether the user wears the virtual reality helmet device 100), an action state of the user (such as still, walking, running) And the state of movement such as the state of the hand or fingertip, the open or closed state of the eye, the direction of the line of sight, the size of the pupil, the mental state (whether the user is immersed in observing the displayed image, and the like), or even the physiological state.
通信单元105执行与外部装置的通信处理、调制和解调处理、以及通信信号的编码和解码处理。另外,控制单元107可以从通信单元105向外部装置发送传输数据。通信方式可以是有线或者无线形式,例如移动高清链接 (MHL)或通用串行总线(USB)、高清多媒体接口(HDMI)、无线保真(Wi-Fi)、蓝牙通信或低功耗蓝牙通信,以及IEEE802.11s标准的网状网络等。另外,通信单元105可以是根据宽带码分多址(W-CDMA)、长期演进(LTE)和类似标准操作的蜂窝无线收发器。The communication unit 105 performs communication processing, modulation and demodulation processing with an external device, and encoding and decoding processing of the communication signal. In addition, the control unit 107 can transmit transmission data from the communication unit 105 to an external device. Communication can be wired or wireless, such as mobile HD links (MHL) or Universal Serial Bus (USB), High Definition Multimedia Interface (HDMI), Wireless Fidelity (Wi-Fi), Bluetooth communication or Bluetooth low energy communication, and the mesh network of the IEEE 802.11s standard. Additionally, communication unit 105 can be a cellular wireless transceiver that operates in accordance with Wideband Code Division Multiple Access (W-CDMA), Long Term Evolution (LTE), and the like.
一些实施例中,虚拟现实头盔设备100还可以包括存储单元,存储单元106是配置为具有固态驱动器(SSD)等的大容量存储设备。一些实施例中,存储单元106可以存储应用程序或各种类型的数据。例如,用户使用虚拟现实头盔设备100观看的内容可以存储在存储单元106中。In some embodiments, the virtual reality helmet device 100 can also include a storage unit, which is a mass storage device configured to have a solid state drive (SSD) or the like. In some embodiments, storage unit 106 can store applications or various types of data. For example, content viewed by a user using the virtual reality helmet device 100 may be stored in the storage unit 106.
一些实施例中,虚拟现实头盔设备100还可以包括控制单元,控制单元107可以包括计算机处理单元(CPU)或者其他具有类似功能的设备。一些实施例中,控制单元107可以用于执行存储单元106存储的应用程序,或者控制单元107还可以用于执行本申请一些实施例公开的方法、功能和操作的电路。In some embodiments, the virtual reality helmet device 100 may further include a control unit, and the control unit 107 may include a computer processing unit (CPU) or other device having similar functions. In some embodiments, control unit 107 may be used to execute an application stored by storage unit 106, or control unit 107 may also be used to perform the methods, functions, and operations disclosed in some embodiments of the present application.
图像处理单元108用于执行信号处理,比如与从控制单元107输出的图像信号相关的图像质量校正,以及将其分辨率转换为根据显示单元101的屏幕的分辨率。然后,显示驱动单元109依次选择显示单元101的每行像素,并逐行依次扫描显示单元101的每行像素,因而提供基于经信号处理的图像信号的像素信号。The image processing unit 108 is for performing signal processing such as image quality correction related to the image signal output from the control unit 107, and converting its resolution into a resolution according to the screen of the display unit 101. Then, the display driving unit 109 sequentially selects each line of pixels of the display unit 101, and sequentially scans each line of pixels of the display unit 101 line by line, thereby providing a pixel signal based on the signal-processed image signal.
一些实施例中,虚拟现实头盔设备100还可以包括外部相机。外部相机110可以设置在虚拟现实头盔设备100主体前表面,外部相机110可以为一个或者多个。外部相机110可以获取三维信息,并且也可以用作距离传感器。另外,探测来自物体的反射信号的位置灵敏探测器(PSD)或者其他类型的距离传感器可以与外部相机110一起使用。外部相机110和距离传感器可以用于检测穿戴虚拟现实头盔设备100的用户的身体位置、姿态和形状。另外,一定条件下用户可以通过外部相机110直接观看或者预览现实场景。In some embodiments, the virtual reality helmet device 100 can also include an external camera. The external camera 110 may be disposed on a front surface of the main body of the virtual reality helmet device 100, and the external camera 110 may be one or more. The external camera 110 can acquire three-dimensional information and can also be used as a distance sensor. Additionally, a position sensitive detector (PSD) or other type of distance sensor that detects reflected signals from the object can be used with the external camera 110. The external camera 110 and the distance sensor can be used to detect the body position, posture, and shape of the user wearing the virtual reality helmet device 100. In addition, under certain conditions, the user can directly view or preview the real scene through the external camera 110.
一些实施例中,虚拟现实头盔设备100还可以包括声音处理单元,声音处理单元111可以执行从控制单元107输出的声音信号的声音质量校正或声 音放大,以及输入声音信号的信号处理等。然后,声音输入/输出单元112在声音处理后向外部输出声音以及输入来自麦克风的声音。In some embodiments, the virtual reality helmet device 100 may further include a sound processing unit, and the sound processing unit 111 may perform sound quality correction or sound of the sound signal output from the control unit 107. Sound amplification, and signal processing of input sound signals. Then, the sound input/output unit 112 outputs the sound to the outside and the sound from the microphone after the sound processing.
需要说明的是,图5中虚线框示出的结构或部件可以独立于虚拟现实头盔设备100之外,例如可以设置在外部处理系统(例如计算机系统)中与虚拟现实头盔设备100配合使用;或者,虚线框示出的结构或部件可以设置在虚拟现实头盔设备100内部或者表面上。It should be noted that the structure or component shown by the dotted line in FIG. 5 may be independent of the virtual reality helmet device 100, for example, may be disposed in an external processing system (such as a computer system) for use with the virtual reality helmet device 100; or The structure or components shown in dashed boxes may be disposed inside or on the surface of the virtual reality helmet device 100.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash  RAM)。内存是计算机可读介质的示例。The memory may include non-persistent memory, random access memory (RAM), and/or non-volatile memory in a computer readable medium, such as read only memory (ROM) or flash memory (flash) RAM). Memory is an example of a computer readable medium.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer readable media includes both permanent and non-persistent, removable and non-removable media. Information storage can be implemented by any method or technology. The information can be computer readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory. (ROM), electrically erasable programmable read only memory (EEPROM), flash memory or other memory technology, compact disk read only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, Magnetic tape cartridges, magnetic tape storage or other magnetic storage devices or any other non-transportable media can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary storage of computer readable media, such as modulated data signals and carrier waves.
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It is also to be understood that the terms "comprises" or "comprising" or "comprising" or any other variations are intended to encompass a non-exclusive inclusion, such that a process, method, article, Other elements not explicitly listed, or elements that are inherent to such a process, method, commodity, or equipment. An element defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in the process, method, item, or device including the element.
本领域技术人员应明白,本申请的实施例可提供为方法、系统或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present application can be provided as a method, system, or computer program product. Thus, the present application can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment in combination of software and hardware. Moreover, the application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
以上所述仅为本申请的实施例而已,并不用于限制本申请。对于本领域技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。 The above description is only an embodiment of the present application and is not intended to limit the application. Various changes and modifications can be made to the present application by those skilled in the art. Any modifications, equivalents, improvements, etc. made within the spirit and scope of the present application are intended to be included within the scope of the appended claims.

Claims (12)

  1. 一种基于虚拟现实的图像显示方法,其特征在于,包括:An image display method based on virtual reality, comprising:
    分别获取左眼图像的水平视场角和垂直视场角以及右眼图像的水平视场角和垂直视场角,其中,左眼图像和右眼图像分别为第一摄像机和第二摄像机针对同一物体各自拍摄的图像;Obtaining a horizontal field of view and a vertical field of view of the left eye image and a horizontal field of view and a vertical field of view of the right eye image, wherein the left eye image and the right eye image are respectively the same for the first camera and the second camera An image taken by each object;
    根据所述两个图像的水平视场角和垂直视场角,分别计算两个图像在虚拟显示屏上的水平方向宽度和垂直方向宽度;Calculating a horizontal width and a vertical width of the two images on the virtual display screen according to the horizontal field of view and the vertical field of view of the two images;
    根据所述两个图像在虚拟显示屏上的水平方向宽度和垂直方向宽度,对所述两个图像在虚拟显示屏上进行显示。The two images are displayed on the virtual display screen according to the horizontal width and the vertical direction width of the two images on the virtual display screen.
  2. 根据权利要求1所述的方法,其特征在于,分别获取两个图像的水平视场角和垂直视场角之前,包括:The method according to claim 1, wherein before acquiring the horizontal field of view and the vertical field of view of the two images, respectively, comprising:
    在拍摄所述左眼图像和所述右眼图像时,分别记录所述第一摄像机和所述第二摄像机针对同一物体各自拍摄图像时的水平视场角和垂直视场角;When photographing the left eye image and the right eye image, respectively recording a horizontal field of view angle and a vertical field of view angle when the first camera and the second camera respectively capture images for the same object;
    将拍摄图像时的水平视场角和垂直视场角保存到对应图像的元数据中,以便从图像的元数据中获取拍摄该图像时的水平视场角和垂直视场角。The horizontal field of view and the vertical field of view when the image is captured are saved to the metadata of the corresponding image to obtain the horizontal field of view and the vertical field of view of the image from the metadata of the image.
  3. 根据权利要求1所述的方法,其特征在于,根据所述两个图像的水平视场角和垂直视场角,分别计算两个图像在虚拟显示屏上的水平方向宽度和垂直方向宽度,包括:The method according to claim 1, wherein the horizontal width and the vertical width of the two images on the virtual display screen are respectively calculated according to the horizontal angle of view and the vertical field of view of the two images, including :
    根据图像的水平视场角,以及预设的虚拟显示屏距离对应的虚拟成像设备之间的距离,计算得到图像在虚拟显示屏上的水平方向宽度;Calculating the horizontal width of the image on the virtual display screen according to the horizontal field of view angle of the image and the distance between the virtual imaging device corresponding to the preset virtual display screen distance;
    根据图像的垂直视场角,以及预设的虚拟显示屏距离对应的虚拟成像设备之间的距离,计算得到图像在虚拟显示屏上的垂直方向宽度。The vertical width of the image on the virtual display screen is calculated according to the vertical field of view of the image and the distance between the virtual display device and the corresponding virtual imaging device.
  4. 根据权利要求3所述的方法,其特征在于:The method of claim 3 wherein:
    根据计算公式B=2A*tgα,计算图像在虚拟显示屏上的水平方向宽度和垂直方向宽度,其中,A为预设的虚拟显示屏距离对应的虚拟成像设备之间的距离,当α为图像的水平视场角时,则B为图像在虚拟显示屏上的水平方向 宽度,或当α为图像的垂直视场角时,则B为图像在虚拟显示屏上的垂直方向宽度。Calculate the horizontal width and vertical width of the image on the virtual display screen according to the calculation formula B=2A*tgα, where A is the distance between the virtual imaging device corresponding to the preset virtual display screen distance, when α is the image When the horizontal field of view is angle, then B is the horizontal direction of the image on the virtual display Width, or when α is the vertical field of view of the image, then B is the vertical width of the image on the virtual display.
  5. 根据权利要求1所述的方法,其特征在于,对应左右眼设置两个光学成像设备包括对应左右眼设置的两个透镜,第一透镜和第二透镜,且两个透镜对称安装在虚拟现实设备上,两个透镜的硬件参数相同,且两个透镜之间的瞳距为6.5cm。The method according to claim 1, wherein the two optical imaging devices are disposed corresponding to the left and right eyes, including two lenses corresponding to the left and right eyes, the first lens and the second lens, and the two lenses are symmetrically mounted on the virtual reality device Above, the hardware parameters of the two lenses are the same, and the lay length between the two lenses is 6.5 cm.
  6. 一种基于虚拟现实的图像显示装置,其特征在于,包括:An image display device based on virtual reality, comprising:
    获取模块,用于分别获取左眼图像的水平视场角和垂直视场角以及右眼图像的水平视场角和垂直视场角,其中,左眼图像和右眼图像分别为第一摄像机和第二摄像机针对同一物体各自拍摄的图像;And an acquiring module, configured to respectively acquire a horizontal field of view and a vertical field of view of the left eye image and a horizontal field of view and a vertical field of view of the right eye image, wherein the left eye image and the right eye image are respectively the first camera and An image captured by the second camera for the same object;
    计算模块,用于根据所述两个图像的水平视场角和垂直视场角,分别计算两个图像在虚拟显示屏上的水平方向宽度和垂直方向宽度;a calculation module, configured to calculate a horizontal width and a vertical width of the two images on the virtual display screen according to the horizontal field of view and the vertical field of view of the two images;
    显示模块,用于根据所述两个图像在虚拟显示屏上的水平方向宽度和垂直方向宽度,对所述两个图像在虚拟显示屏上进行显示。And a display module, configured to display the two images on the virtual display screen according to the horizontal direction width and the vertical direction width of the two images on the virtual display screen.
  7. 根据权利要求6所述的装置,其特征在于,还包括:The device according to claim 6, further comprising:
    记录模块,用于在拍摄所述左眼图像和所述右眼图像时,分别记录所述第一摄像机和所述第二摄像机针对同一物体各自拍摄图像时的水平视场角和垂直视场角;a recording module, configured to record a horizontal field of view and a vertical field of view when the first camera and the second camera respectively capture images for the same object when the left eye image and the right eye image are captured ;
    保存模块,用于将拍摄图像时的水平视场角和垂直视场角保存到对应图像的元数据中,以便从图像的元数据中获取拍摄该图像时的水平视场角和垂直视场角。a saving module for saving a horizontal field of view and a vertical field of view when capturing an image into metadata of a corresponding image, so as to obtain a horizontal field of view and a vertical field of view when the image is captured from the metadata of the image .
  8. 根据权利要求6所述的装置,其特征在于,所述计算模块具体用于:The device according to claim 6, wherein the calculation module is specifically configured to:
    根据图像的水平视场角,以及预设的虚拟显示屏距离对应的虚拟成像设备之间的距离,计算得到图像在虚拟显示屏上的水平方向宽度;Calculating the horizontal width of the image on the virtual display screen according to the horizontal field of view angle of the image and the distance between the virtual imaging device corresponding to the preset virtual display screen distance;
    根据图像的垂直视场角,以及预设的虚拟显示屏距离对应的虚拟成像设备之间的距离,计算得到图像在虚拟显示屏上的垂直方向宽度。The vertical width of the image on the virtual display screen is calculated according to the vertical field of view of the image and the distance between the virtual display device and the corresponding virtual imaging device.
  9. 根据权利要求8所述的装置,其特征在于,所述计算模块具体用于: The device according to claim 8, wherein the calculation module is specifically configured to:
    根据计算公式B=2A*tgα,计算图像在虚拟显示屏上的水平方向宽度和垂直方向宽度,其中,A为预设的虚拟显示屏距离对应的虚拟成像设备之间的距离,当α为图像的水平视场角时,则B为图像在虚拟显示屏上的水平方向宽度,或当α为图像的垂直视场角时,则B为图像在虚拟显示屏上的垂直方向宽度。Calculate the horizontal width and vertical width of the image on the virtual display screen according to the calculation formula B=2A*tgα, where A is the distance between the virtual imaging device corresponding to the preset virtual display screen distance, when α is the image When the horizontal field of view is angle, then B is the horizontal width of the image on the virtual display screen, or when α is the vertical field of view of the image, then B is the vertical width of the image on the virtual display screen.
  10. 根据权利要求6所述的装置,其特征在于,对应左右眼设置两个光学成像设备包括对应左右眼设置的两个透镜,第一透镜和第二透镜,且两个透镜对称安装在虚拟现实设备上,两个透镜的硬件参数相同,且两个透镜之间的瞳距为6.5cm。The apparatus according to claim 6, wherein the two optical imaging devices are disposed corresponding to the left and right eyes, including two lenses corresponding to the left and right eyes, the first lens and the second lens, and the two lenses are symmetrically mounted on the virtual reality device Above, the hardware parameters of the two lenses are the same, and the lay length between the two lenses is 6.5 cm.
  11. 一种虚拟现实头盔设备,其特征在于,包括:处理器和存储器;A virtual reality helmet device, comprising: a processor and a memory;
    所述存储器用于存储一条或多条计算机指令,其中,所述一条或多条计算机指令被所述处理器执行时实现如下步骤:The memory is for storing one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the following steps:
    分别获取左眼图像的水平视场角和垂直视场角以及右眼图像的水平视场角和垂直视场角,其中,左眼图像和右眼图像分别为第一摄像机和第二摄像机针对同一物体各自拍摄的图像;Obtaining a horizontal field of view and a vertical field of view of the left eye image and a horizontal field of view and a vertical field of view of the right eye image, wherein the left eye image and the right eye image are respectively the same for the first camera and the second camera An image taken by each object;
    根据所述两个图像的水平视场角和垂直视场角,分别计算两个图像在虚拟显示屏上的水平方向宽度和垂直方向宽度;Calculating a horizontal width and a vertical width of the two images on the virtual display screen according to the horizontal field of view and the vertical field of view of the two images;
    根据所述两个图像在虚拟显示屏上的水平方向宽度和垂直方向宽度,对所述两个图像在虚拟显示屏上进行显示。The two images are displayed on the virtual display screen according to the horizontal width and the vertical direction width of the two images on the virtual display screen.
  12. 一种非易失性计算机存储介质,其特征在于:其上储存有计算机程序指令,所述计算机程序指令被处理器执行时实现如权利要求1至5中任一项所述的基于虚拟现实的图像显示方法。 A non-volatile computer storage medium having stored thereon computer program instructions, the computer program instructions being executed by a processor to implement virtual reality based implementation according to any one of claims 1 to 5. Image display method.
PCT/CN2017/117556 2017-07-18 2017-12-20 Virtual-reality-based image display method and apparatus, and virtual reality helmet device WO2019015249A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710587489.0A CN107277485B (en) 2017-07-18 2017-07-18 Image display method and device based on virtual reality
CN201710587489.0 2017-07-18

Publications (1)

Publication Number Publication Date
WO2019015249A1 true WO2019015249A1 (en) 2019-01-24

Family

ID=60079268

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/117556 WO2019015249A1 (en) 2017-07-18 2017-12-20 Virtual-reality-based image display method and apparatus, and virtual reality helmet device

Country Status (2)

Country Link
CN (1) CN107277485B (en)
WO (1) WO2019015249A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107277485B (en) * 2017-07-18 2019-06-18 歌尔科技有限公司 Image display method and device based on virtual reality
CN108124150B (en) * 2017-12-26 2019-11-05 歌尔科技有限公司 The method that virtual reality wears display equipment and observes real scene by it
CN108665525B (en) * 2018-05-15 2022-04-01 福建天晴数码有限公司 Method for calculating virtual camera field angle based on engine and storage medium
CN112985770B (en) * 2019-12-17 2024-04-16 宁波舜宇光电信息有限公司 Module detecting equipment
CN117632318A (en) * 2022-08-11 2024-03-01 北京字跳网络技术有限公司 Display method and device for virtual display interface in augmented reality space
CN115774335A (en) * 2022-11-11 2023-03-10 Oppo广东移动通信有限公司 Virtual image display device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090065695A1 (en) * 2007-09-11 2009-03-12 Demarco Robert Infrared camera for locating a target using at least one shaped light source
CN101950550A (en) * 2010-09-28 2011-01-19 冠捷显示科技(厦门)有限公司 Display device for displaying pictures at different angles based on visual angle of viewer
CN102521876A (en) * 2011-11-29 2012-06-27 康佳集团股份有限公司 Method and system for realizing three dimensional (3D) stereoscopic effect of user interface
CN102980517A (en) * 2012-11-15 2013-03-20 天津市亚安科技股份有限公司 Monitoring measurement method
CN105204618A (en) * 2015-07-22 2015-12-30 深圳多新哆技术有限责任公司 Projection display method and device for virtual object in virtual space
CN106358034A (en) * 2016-10-19 2017-01-25 深圳市麦极客图像技术有限公司 Device and equipment for recording and watching VR videos and VR video recording and playing system
CN107277485A (en) * 2017-07-18 2017-10-20 歌尔科技有限公司 Method for displaying image and device based on virtual reality

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010095081A1 (en) * 2009-02-18 2010-08-26 Koninklijke Philips Electronics N.V. Transferring of 3d viewer metadata
US10078218B2 (en) * 2016-01-01 2018-09-18 Oculus Vr, Llc Non-overlapped stereo imaging for virtual reality headset tracking
CN106228530B (en) * 2016-06-12 2017-10-10 深圳超多维光电子有限公司 A kind of stereography method, device and stereo equipment
CN107844190B (en) * 2016-09-20 2020-11-06 腾讯科技(深圳)有限公司 Image display method and device based on virtual reality VR equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090065695A1 (en) * 2007-09-11 2009-03-12 Demarco Robert Infrared camera for locating a target using at least one shaped light source
CN101950550A (en) * 2010-09-28 2011-01-19 冠捷显示科技(厦门)有限公司 Display device for displaying pictures at different angles based on visual angle of viewer
CN102521876A (en) * 2011-11-29 2012-06-27 康佳集团股份有限公司 Method and system for realizing three dimensional (3D) stereoscopic effect of user interface
CN102980517A (en) * 2012-11-15 2013-03-20 天津市亚安科技股份有限公司 Monitoring measurement method
CN105204618A (en) * 2015-07-22 2015-12-30 深圳多新哆技术有限责任公司 Projection display method and device for virtual object in virtual space
CN106358034A (en) * 2016-10-19 2017-01-25 深圳市麦极客图像技术有限公司 Device and equipment for recording and watching VR videos and VR video recording and playing system
CN107277485A (en) * 2017-07-18 2017-10-20 歌尔科技有限公司 Method for displaying image and device based on virtual reality

Also Published As

Publication number Publication date
CN107277485B (en) 2019-06-18
CN107277485A (en) 2017-10-20

Similar Documents

Publication Publication Date Title
WO2019015249A1 (en) Virtual-reality-based image display method and apparatus, and virtual reality helmet device
US11533489B2 (en) Reprojecting holographic video to enhance streaming bandwidth/quality
CN110908503B (en) Method of tracking the position of a device
TWI712918B (en) Method, device and equipment for displaying images of augmented reality
CN108762492B (en) Method, device and equipment for realizing information processing based on virtual scene and storage medium
US11398008B2 (en) Systems and methods for modifying image distortion (curvature) for viewing distance in post capture
US11563886B2 (en) Automated eyewear device sharing system
CN109002164B (en) Display method and device of head-mounted display equipment and head-mounted display equipment
WO2020140758A1 (en) Image display method, image processing method, and related devices
WO2018223663A1 (en) Vr image processing method, device, and apparatus
US10997741B2 (en) Scene camera retargeting
WO2019019232A1 (en) Method for playing video based on vr head-mounted device, and vr head-mounted device
WO2019033446A1 (en) Virtual reality device and content adjusting method therefor
WO2020042494A1 (en) Method for screenshot of vr scene, device and storage medium
WO2023169283A1 (en) Method and apparatus for generating binocular stereoscopic panoramic image, device, storage medium, and product
WO2018121401A1 (en) Splicing method for panoramic video images, and panoramic camera
JP2018033107A (en) Video distribution device and distribution method
CN109696959B (en) Picture display method, equipment and storage medium
WO2018214492A1 (en) Method and apparatus for processing user experience data, electronic device, and computer storage medium
CN107426522B (en) Video method and system based on virtual reality equipment
JP6031016B2 (en) Video display device and video display program
WO2019085109A1 (en) Image writing control method and apparatus, and electronic device
US11838486B1 (en) Method and device for perspective correction using one or more keyframes
US20220180473A1 (en) Frame Rate Extrapolation
US20170155892A1 (en) Wearable stereoscopic camera system for 3d virtual reality imaging and networked area learning

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17918401

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17918401

Country of ref document: EP

Kind code of ref document: A1