CN107610044A - Image processing method, computer-readable recording medium and virtual reality helmet - Google Patents

Image processing method, computer-readable recording medium and virtual reality helmet Download PDF

Info

Publication number
CN107610044A
CN107610044A CN201710758206.4A CN201710758206A CN107610044A CN 107610044 A CN107610044 A CN 107610044A CN 201710758206 A CN201710758206 A CN 201710758206A CN 107610044 A CN107610044 A CN 107610044A
Authority
CN
China
Prior art keywords
image
field
displayed
view
virtual reality
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710758206.4A
Other languages
Chinese (zh)
Inventor
王明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Goertek Optical Technology Co Ltd
Original Assignee
Goertek Techology Co Ltd
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 Goertek Techology Co Ltd filed Critical Goertek Techology Co Ltd
Priority to CN201710758206.4A priority Critical patent/CN107610044A/en
Publication of CN107610044A publication Critical patent/CN107610044A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a kind of image processing method, computer-readable recording medium and virtual reality helmet, this method to include:Obtain image to be displayed corresponding to first angle of visual field, virtual reality helmet optical component second angle of visual field and second angle of visual field corresponding to, the second field range size on the screen of the virtual reality helmet;Using first angle of visual field, second angle of visual field and the second field range size, it is calculated corresponding to first angle of visual field, the first field range size on the screen of the virtual reality helmet;Using the first field range size, the size of the image to be displayed is calculated;According to the size of the image to be displayed, optic aberrance revising processing is carried out to the image to be displayed.According to one embodiment of present invention, the experience of user is improved.

Description

图像处理方法、计算机可读存储介质及虚拟现实头戴设备Image processing method, computer-readable storage medium, and virtual reality head-mounted device

技术领域technical field

本发明涉及虚拟现实技术领域,更具体地,涉及一种图像处理方法、计算机可读存储介质及虚拟现实头戴设备。The present invention relates to the technical field of virtual reality, and more specifically, to an image processing method, a computer-readable storage medium, and a virtual reality head-mounted device.

背景技术Background technique

虚拟现实设备都配备有光学透镜。光学透镜都有特定的FOV(Field of View,视场角),再结合虚拟现实设备的结构设计,决定了用户通过该光学透镜在虚拟现实设备的屏幕上的视野范围。图1示出了用户通过光学透镜观看到的虚拟现实设备的屏幕上的视野范围的示意图。Virtual reality devices are equipped with optical lenses. The optical lens has a specific FOV (Field of View, field of view), combined with the structural design of the virtual reality device, determines the user's field of view on the screen of the virtual reality device through the optical lens. Fig. 1 shows a schematic diagram of a field of view on a screen of a virtual reality device viewed by a user through an optical lens.

为了提高用户体验的真实性,在开发VR(Virtual Reality,虚拟现实)应用时,会根据光学透镜的FOV设计VR场景,这样使得在VR设备的屏幕的显示区域与光学透镜的视野范围吻合,调节显示区域时结合畸变色差校正,保证了VR场景与光学透镜的一致性。In order to improve the authenticity of user experience, when developing VR (Virtual Reality, virtual reality) applications, the VR scene will be designed according to the FOV of the optical lens, so that the display area of the screen of the VR device matches the field of view of the optical lens, and the adjustment Combined with distortion and chromatic aberration correction when displaying the area, it ensures the consistency between the VR scene and the optical lens.

当输入至VR设备的画面的FOV与VR设备的光学透镜不一致时,就会严重影响用户的体验。例如当VR设备外接camera时,需要将camera的画面输入至VR设备以进行显示,而不同camera拥有不同的FOV,且不能确保与VR设备的光学透镜的FOV一致,此时,若将camera的内容显示到透镜的视野范围内的话就会造成通过透镜观察的内容与透镜的FOV不符,影响体验。When the FOV of the image input to the VR device is inconsistent with the optical lens of the VR device, it will seriously affect the user experience. For example, when a VR device is connected to an external camera, the image of the camera needs to be input to the VR device for display, but different cameras have different FOVs, and cannot be guaranteed to be consistent with the FOV of the optical lens of the VR device. At this time, if the content of the camera If it is displayed within the field of view of the lens, the content observed through the lens will not match the FOV of the lens, which will affect the experience.

因此,需要提供一种新的技术方案,针对上述现有技术中的技术问题进行改进。Therefore, it is necessary to provide a new technical solution to improve the above-mentioned technical problems in the prior art.

发明内容Contents of the invention

本发明的一个目的是提供一种图像处理方法的新技术方案。An object of the present invention is to provide a new technical solution for an image processing method.

根据本发明的第一方面,提供了一种图像处理方法,包括:According to a first aspect of the present invention, an image processing method is provided, comprising:

获取待显示图像对应的第一视场角、虚拟现实头戴设备的光学部件的第二视场角和所述第二视场角对应的、在所述虚拟现实头戴设备的屏幕上的第二视野范围大小;Obtaining the first viewing angle corresponding to the image to be displayed, the second viewing angle of the optical components of the virtual reality head-mounted device, and the second viewing angle corresponding to the second viewing angle on the screen of the virtual reality head-mounted device. Second, the size of the field of view;

利用所述第一视场角、所述第二视场角和所述第二视野范围大小,计算得到所述第一视场角对应的、在所述虚拟现实头戴设备的屏幕上的第一视野范围大小;Using the first field of view, the second field of view and the size of the second field of view, calculate and obtain the first field of view corresponding to the first field of view on the screen of the virtual reality head-mounted device - the size of the field of view;

利用所述第一视野范围大小,计算得到所述待显示图像的大小;calculating the size of the image to be displayed by using the size of the first field of view;

根据所述待显示图像的大小,对所述待显示图像进行光学畸变校正处理。Perform optical distortion correction processing on the image to be displayed according to the size of the image to be displayed.

可选地,所述待显示图像对应的第一视场角为所述虚拟现实头戴设备的外接设备的光学部件的视场角。Optionally, the first viewing angle corresponding to the image to be displayed is the viewing angle of an optical component of an external device of the virtual reality headset.

可选地,获取待显示图像对应的第一视场角,包括:在所述虚拟现实头戴设备与所述外接设备建立连接时,所述虚拟现实头戴设备获取所述外接设备的设备参数,其中,所述设备参数包括所述外接设备的光学部件的视场角。Optionally, obtaining the first viewing angle corresponding to the image to be displayed includes: when the virtual reality head-mounted device establishes a connection with the external device, the virtual reality head-mounted device obtains device parameters of the external device , wherein the device parameters include the viewing angle of the optical components of the external device.

可选地,利用所述第一视场角、所述第二视场角和所述第二视野范围大小,计算得到所述第一视场角对应的、在所述虚拟现实头戴设备的屏幕上的第一视野范围大小,包括:Optionally, using the first field of view, the second field of view, and the size of the second field of view, calculate and obtain a value corresponding to the first field of view in the virtual reality head-mounted device. The size of the first field of view on the screen, including:

基于以下计算式计算得到所述第一视野范围大小,The size of the first field of view is calculated based on the following formula,

r=R*[tan(FOV1/2)/tan(FOV2/2)],其中,r为所述第一视野范围对应的区域半径大小,R为所述第二视野范围对应的区域半径大小,FOV1为所述第一视场角,FOV2为所述第二视场角。r=R*[tan(FOV 1 /2)/tan(FOV 2 /2)], where r is the area radius corresponding to the first field of view, and R is the area radius corresponding to the second field of view Size, FOV 1 is the first viewing angle, FOV 2 is the second viewing angle.

可选地,利用所述第一视野范围大小,计算得到所述待显示图像的大小,包括:Optionally, using the size of the first field of view to calculate the size of the image to be displayed includes:

基于以下计算式计算得到所述待显示图像的大小,The size of the image to be displayed is calculated based on the following formula,

r=K0+K1*h+K2*h2+K3*h3+…+Kn*hn,其中,h为所述待显示图像对应的正方形区域的边长,r为所述第一视野范围对应的区域半径大小,K0、K1、K2、K3、……Kn为所述虚拟现实头戴设备的光学部件对应的系数。r=K 0 +K 1 *h+K 2 *h 2 +K 3 *h 3 +...+K n *h n , where h is the side length of the square area corresponding to the image to be displayed, r is the The size of the area radius corresponding to the first field of view, K 0 , K 1 , K 2 , K 3 , ... K n are coefficients corresponding to the optical components of the virtual reality head-mounted device.

可选地,根据所述待显示图像的大小,对所述待显示图像进行光学畸变校正处理,包括:Optionally, performing optical distortion correction processing on the image to be displayed according to the size of the image to be displayed includes:

从所述待显示图像中确定多个特征点,根据所述待显示图像的大小,确定各特征点到所述待显示图像的中心点的距离;Determining a plurality of feature points from the image to be displayed, and determining the distance from each feature point to the center point of the image to be displayed according to the size of the image to be displayed;

基于以下计算式对所述待显示图像进行光学畸变校正处理,Performing optical distortion correction processing on the image to be displayed based on the following calculation formula,

l'=K0+K1*l+K2*l2+K3*l3+…+Kn*ln,其中,l为特征点到所述待显示图像的中心点的距离,K0、K1、K2、K3、……Kn为所述虚拟现实头戴设备的光学部件对应的系数,l’为所述特征点经过光学畸变校正处理后到所述待显示图像的中心点的距离。l'=K 0 +K 1 *l+K 2 *l 2 +K 3 *l 3 +...+K n *l n , wherein, l is the distance from the feature point to the center point of the image to be displayed, K 0 , K 1 , K 2 , K 3 , ... K n are the coefficients corresponding to the optical components of the virtual reality head-mounted device, and l' is the conversion of the feature points to the image to be displayed after optical distortion correction processing The distance from the center point.

可选地,所述方法还包括:Optionally, the method also includes:

将光学畸变校正处理后的待显示图像在所述虚拟现实头戴设备的屏幕上进行显示。The image to be displayed after optical distortion correction is displayed on the screen of the virtual reality head-mounted device.

可选地,将光学畸变校正处理后的待显示图像在所述虚拟现实头戴设备的屏幕上进行显示之后,在所述第一视场角小于所述第二视场角的情况下,用户通过所述虚拟现实头戴设备的光学部件观看到的所述光学畸变校正处理后的待显示图像的区域为所述第一视场角对应的、在所述虚拟现实头戴设备的屏幕上的第一视野范围大小;Optionally, after the image to be displayed after optical distortion correction is displayed on the screen of the virtual reality head-mounted device, when the first viewing angle is smaller than the second viewing angle, the user The region of the image to be displayed after the optical distortion correction processed by the optical components of the virtual reality head-mounted device is the area corresponding to the first viewing angle on the screen of the virtual reality head-mounted device The size of the first field of view;

在所述第一视场角大于所述第二视场角的情况下,用户通过所述虚拟现实头戴设备的光学部件观看到的所述光学畸变校正处理后的待显示图像的区域为所述第二视场角对应的、在所述虚拟现实头戴设备的屏幕上的第二视野范围大小;In the case where the first viewing angle is greater than the second viewing angle, the area of the image to be displayed after the optical distortion correction process viewed by the user through the optical components of the virtual reality head-mounted device is the set The size of the second field of view on the screen of the virtual reality head-mounted device corresponding to the second field of view;

在所述第一视场角等于所述第二视场角的情况下,用户通过所述虚拟现实头戴设备的光学部件观看到的所述光学畸变校正处理后的待显示图像的区域为所述第二视场角对应的、在所述虚拟现实头戴设备的屏幕上的第二视野范围大小。In the case where the first viewing angle is equal to the second viewing angle, the area of the image to be displayed after the optical distortion correction process viewed by the user through the optical components of the virtual reality head-mounted device is the set The size of the second field of view range on the screen of the virtual reality head-mounted device corresponding to the second field of view angle.

根据本发明的第二方面,提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被一个或者多个处理器执行以实现上述任一项所述的图像处理方法。According to a second aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium stores a computer program, and the computer program is executed by one or more processors to implement any of the above-mentioned image processing method.

根据本发明的第三方面,提供了一种虚拟现实头戴设备,包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如上述任一项所述的图像处理方法。According to a third aspect of the present invention, a virtual reality head-mounted device is provided, including: a memory, a processor, and a computer program stored in the memory and operable on the processor, and the processor executes the When the above computer program is used, the image processing method as described in any one of the above is realized.

本发明提供的图像处理方法、计算机可读存储介质及虚拟现实头戴设备,通过利用待显示图像对应的第一视场角、虚拟现实头戴设备的光学部件的第二视场角和第二视场角对应的、在虚拟现实头戴设备的屏幕上的第二视野范围大小,得到第一视场角对应的、在虚拟现实头戴设备的屏幕上的第一视野范围大小,然后,利用第一视野范围大小,计算得到待显示图像的大小,最后,根据待显示图像的大小,对待显示图像进行光学畸变校正处理,使得待显示图像传递的场景与第二视场角匹配,提高了体验的真实性。The image processing method, computer-readable storage medium, and virtual reality head-mounted device provided by the present invention use the first viewing angle corresponding to the image to be displayed, the second viewing angle and the second viewing angle of the optical components of the virtual reality head-mounted device The size of the second field of view on the screen of the virtual reality head-mounted device corresponding to the field of view is obtained, and the size of the first field of view on the screen of the virtual reality head-mounted device corresponding to the first field of view is obtained, and then, using The size of the first field of view is calculated to obtain the size of the image to be displayed. Finally, according to the size of the image to be displayed, optical distortion correction is performed on the image to be displayed, so that the scene transmitted by the image to be displayed matches the second field of view, which improves the experience. authenticity.

通过以下参照附图对本发明的示例性实施例的详细描述,本发明的其它特征及其优点将会变得清楚。Other features of the present invention and advantages thereof will become apparent from the following detailed description of exemplary embodiments of the present invention with reference to the accompanying drawings.

附图说明Description of drawings

被结合在说明书中并构成说明书的一部分的附图示出了本发明的实施例,并且连同其说明一起用于解释本发明的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention.

图1示出了用户通过光学透镜观看到的虚拟现实设备的屏幕上的视野范围的示意图。Fig. 1 shows a schematic diagram of a field of view on a screen of a virtual reality device viewed by a user through an optical lens.

图2示出了根据本发明一个实施例的图像处理方法的处理流程图。Fig. 2 shows a processing flowchart of an image processing method according to an embodiment of the present invention.

图3示出了根据本发明一个实施例的光学畸变校正过程的示意图。Fig. 3 shows a schematic diagram of an optical distortion correction process according to an embodiment of the present invention.

图4示出了根据本发明一个实施例的第一视场角和第二视场角分别对应的显示区域的示意图。Fig. 4 shows a schematic diagram of display areas respectively corresponding to a first viewing angle and a second viewing angle according to an embodiment of the present invention.

图5示出了根据本发明一个实施例的第一视场角和第二视场角分别对应的显示区域的另一种示意图。FIG. 5 shows another schematic diagram of display areas respectively corresponding to the first viewing angle and the second viewing angle according to an embodiment of the present invention.

图6示出了根据本发明一个实施例的第一视场角和第二视场角分别对应的显示区域的另一种示意图。FIG. 6 shows another schematic diagram of display areas respectively corresponding to the first viewing angle and the second viewing angle according to an embodiment of the present invention.

图7示出了根据本发明一个实施例的虚拟现实头戴设备的结构示意图。Fig. 7 shows a schematic structural diagram of a virtual reality headset according to an embodiment of the present invention.

具体实施方式detailed description

现在将参照附图来详细描述本发明的各种示例性实施例。应注意到:除非另外具体说明,否则在这些实施例中阐述的部件和步骤的相对布置、数字表达式和数值不限制本发明的范围。Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that the relative arrangements of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless specifically stated otherwise.

以下对至少一个示例性实施例的描述实际上仅仅是说明性的,决不作为对本发明及其应用或使用的任何限制。The following description of at least one exemplary embodiment is merely illustrative in nature and in no way taken as limiting the invention, its application or uses.

对于相关领域普通技术人员已知的技术、方法和设备可能不作详细讨论,但在适当情况下,所述技术、方法和设备应当被视为说明书的一部分。Techniques, methods and devices known to those of ordinary skill in the relevant art may not be discussed in detail, but where appropriate, such techniques, methods and devices should be considered part of the description.

在这里示出和讨论的所有例子中,任何具体值应被解释为仅仅是示例性的,而不是作为限制。因此,示例性实施例的其它例子可以具有不同的值。In all examples shown and discussed herein, any specific values should be construed as exemplary only, and not as limitations. Therefore, other instances of the exemplary embodiment may have different values.

应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步讨论。It should be noted that like numbers and letters denote similar items in the following figures, therefore, once an item is defined in one figure, it does not require further discussion in subsequent figures.

本发明的一个实施例提供了一种图像处理方法。图2示出了根据本发明一个实施例的图像处理方法的处理流程图。参见图2,该方法至少包括步骤S201至步骤S204。An embodiment of the present invention provides an image processing method. Fig. 2 shows a processing flowchart of an image processing method according to an embodiment of the present invention. Referring to Fig. 2, the method at least includes steps S201 to S204.

步骤S201,获取待显示图像对应的第一视场角、虚拟现实头戴设备的光学部件的第二视场角和第二视场角对应的、在虚拟现实头戴设备的屏幕上的第二视野范围大小;Step S201, acquiring the first field of view corresponding to the image to be displayed, the second field of view of the optical components of the virtual reality head-mounted device, and the second field of view corresponding to the second field of view on the screen of the virtual reality head-mounted device. field of view size;

步骤S202,利用第一视场角、第二视场角和第二视野范围大小,计算得到第一视场角对应的、在虚拟现实头戴设备的屏幕上的第一视野范围大小;Step S202, using the first field of view, the second field of view and the size of the second field of view to calculate the size of the first field of view on the screen of the virtual reality head-mounted device corresponding to the first field of view;

步骤S203,利用第一视野范围大小,计算得到待显示图像的大小;Step S203, using the size of the first field of view to calculate the size of the image to be displayed;

步骤S204,根据待显示图像的大小,对待显示图像进行光学畸变校正处理。Step S204, performing optical distortion correction processing on the image to be displayed according to the size of the image to be displayed.

本发明的一个实施例中,待显示图像是由虚拟现实头戴设备外接设备输入至虚拟现实头戴设备的,待显示图像对应的第一视场角为虚拟现实头戴设备的外接设备的光学部件的视场角。虚拟现实头戴设备的外接设备可为照相机、摄像机中任一种。在虚拟现实头戴设备与其外接设备建立连接时,虚拟现实头戴设备可获取该外接设备的设备参数,其中,设备参数至少包括外接设备的光学部件的视场角。以摄像机为例,在摄像机将拍摄得到的视频发送至虚拟现实头戴设备之前,摄像机需要与虚拟现实头戴设备建立连接,当摄像机与虚拟现实头戴设备建立连接后,虚拟现实头戴设备可获取摄像机的相关参数,例如,摄像机中的透镜的视场角。In an embodiment of the present invention, the image to be displayed is input to the virtual reality head-mounted device by an external device of the virtual reality head-mounted device, and the first field of view corresponding to the image to be displayed is the optical angle of the external device of the virtual reality head-mounted device. The field of view of the part. The external device of the virtual reality head-mounted device can be any one of a camera and a video camera. When the virtual reality head-mounted device establishes a connection with its external device, the virtual reality head-mounted device can acquire device parameters of the external device, wherein the device parameters at least include the field of view angle of the optical components of the external device. Taking the camera as an example, before the camera sends the captured video to the VR headset, the camera needs to establish a connection with the VR headset. After the camera and the VR headset are connected, the VR headset can Obtain the relevant parameters of the camera, for example, the field of view of the lens in the camera.

用户通过虚拟现实头戴设备的光学部件观看到的图像会出现畸变,例如,枕形畸变。为了使用户通过虚拟现实头戴设备的光学部件观看到的图像与原始图像一致,在对原始图像进行显示之前,对原始图像进行光学畸变校正处理。此处涉及的原始图像为待显示图像。The image viewed by the user through the optical components of the virtual reality headset will appear distorted, for example, pincushion distortion. In order to make the image viewed by the user through the optical components of the virtual reality head-mounted device consistent with the original image, optical distortion correction processing is performed on the original image before the original image is displayed. The original image involved here is the image to be displayed.

本发明的一个实施例中,上述步骤S102具体为,利用第一视场角、第二视场角和第二视野范围大小,基于下述计算式(1)计算得到第一视场角对应的、在虚拟现实头戴设备的屏幕上的第一视野范围大小,In one embodiment of the present invention, the above-mentioned step S102 is specifically, using the first viewing angle, the second viewing angle and the size of the second viewing range, and calculating the corresponding value of the first viewing angle based on the following calculation formula (1): , the size of the first field of view on the screen of the virtual reality head-mounted device,

r=R*[tan(FOV1/2)/tan(FOV2/2)]—计算式(1),r=R*[tan(FOV 1 /2)/tan(FOV 2 /2)]—calculation formula (1),

其中,r为第一视野范围对应的区域半径大小,R为第二视野范围对应的区域半径大小,FOV1为第一视场角,FOV2为第二视场角。Among them, r is the radius of the area corresponding to the first field of view, R is the radius of the area corresponding to the second field of view, FOV 1 is the first field of view, and FOV 2 is the second field of view.

在计算得到第一视野范围对应的区域半径大小后,本发明的一个实施例中,基于下述计算式(2),计算得到待显示图像的大小,After the radius of the area corresponding to the first field of view is calculated, in one embodiment of the present invention, the size of the image to be displayed is calculated based on the following calculation formula (2):

r=K0+K1*h+K2*h2+K3*h3+…+Kn*hn—计算式(2),r=K 0 +K 1 *h+K 2 *h 2 +K 3 *h 3 +...+K n *h n —calculation formula (2),

h为待显示图像对应的正方形区域的边长,r为第一视野范围对应的区域半径大小,K0、K1、K2、K3…Kn为虚拟现实头戴设备的光学部件对应的系数。h is the side length of the square area corresponding to the image to be displayed, r is the radius of the area corresponding to the first field of view, and K 0 , K 1 , K 2 , K 3 ... K n are the areas corresponding to the optical components of the virtual reality headset. coefficient.

需要说明地是,待显示图像在经过光学畸变校正处理之前,待显示图像为一正方形图像,其对应的边长为h。待显示图像在经过光学畸变校正处理之后,待显示图像变为半径为r的桶形,此处的半径r即为上述基于上述计算式(1)计算得到的第一视野范围对应的区域半径大小。另外,K0、K1、K2、K3…Kn作为虚拟现实头戴设备的光学部件对应的系数,是由光学部件本身决定的,当光学部件的型号发生变化时,其对应的系数相应地发生变化,其中,K0、K1、K2、K3…Kn可通过拟合实验测试得到。It should be noted that, before the image to be displayed undergoes optical distortion correction processing, the image to be displayed is a square image, and its corresponding side length is h. After the image to be displayed undergoes optical distortion correction processing, the image to be displayed becomes a barrel shape with a radius of r, where the radius r is the radius of the area corresponding to the first field of view calculated based on the above calculation formula (1) . In addition, K 0 , K 1 , K 2 , K 3 . Change accordingly, wherein, K 0 , K 1 , K 2 , K 3 . . . K n can be obtained through fitting experiments.

在计算得到待显示图像的大小之后,根据待显示图像的大小,对待显示图像进行光学畸变校正处理,具体地,首先,从待显示图像中确定多个特征点,然后,根据待显示图像的大小,确定各特征点到待显示图像的中心点的距离,接着,基于下述计算式(3)对待显示图像进行光学畸变校正处理,After calculating the size of the image to be displayed, according to the size of the image to be displayed, perform optical distortion correction processing on the image to be displayed, specifically, first, determine a plurality of feature points from the image to be displayed, and then, according to the size of the image to be displayed , determine the distance from each feature point to the center point of the image to be displayed, and then perform optical distortion correction processing on the image to be displayed based on the following calculation formula (3),

l'=K0+K1*l+K2*l2+K3*l3+…+Kn*ln—计算式(3),l'=K 0 +K 1 *l+K 2 *l 2 +K 3 *l 3 +...+K n *l n —calculation formula (3),

其中,l为特征点到待显示图像的中心点的距离,K0、K1、K2、K3、……Kn为虚拟现实头戴设备的光学部件对应的系数,l'为特征点经过光学畸变校正处理后到待显示图像的中心点的距离。本发明实施例中,从待显示图像中确定出的多个特征点优选为均匀分布在待显示图像的特征点,将确定出的每个特征点均按照上述计算式(3)进行光学畸变校正处理。Among them, l is the distance from the feature point to the center point of the image to be displayed, K 0 , K 1 , K 2 , K 3 , ... K n are the coefficients corresponding to the optical components of the virtual reality head-mounted device, and l' is the feature point The distance from the center point of the image to be displayed after optical distortion correction processing. In the embodiment of the present invention, the multiple feature points determined from the image to be displayed are preferably uniformly distributed in the feature points of the image to be displayed, and each of the determined feature points is corrected for optical distortion according to the above calculation formula (3) deal with.

图3示出了根据本发明一个实施例的光学畸变校正过程的示意图。参见图3,图3的左半部分示出了光学畸变校正处理之前的两个待显示图像(图像a和图像b),图3的右半部分示出了两个光学畸变校正处理之后的两个桶形图像(图像c和图像d)。图像c为图像a经过光学畸变校正处理后得到的图像。图像b为图像d经过光学畸变校正处理后得到的图像。从图像a中确定其中心点和一个特征点,根据图像a的大小,确定该特征点到图像a的中心点的距离,进而基于上述计算式(3),对该特征点进行光学畸变校正处理,得到光学畸变校正处理后的该特征点到中心点的距离。从图像b中确定其中心点和一个特征点,根据图像b的大小,确定该特征点到图像的中心点的距离,进而基于上述计算式(3),对该特征点进行光学畸变校正处理,得到光学畸变校正处理后的该特征点到中心点的距离。需要说明地是,上述示例仅仅示出了从待显示图像中确定出一个特征点,但是对本发明并不造成任何限定。从待显示图像中确定出的特征点的数量可为几个、几十个、几百个、甚至更多。从待显示图像中确定出的特征点的数量越多,得到光学畸变校正处理后的图像越精确。Fig. 3 shows a schematic diagram of an optical distortion correction process according to an embodiment of the present invention. Referring to FIG. 3, the left half of FIG. 3 shows two images to be displayed (image a and image b) before the optical distortion correction processing, and the right half of FIG. 3 shows the two images after the two optical distortion correction processing. barrel images (image c and image d). Image c is the image obtained after image a is processed by optical distortion correction. Image b is the image obtained from image d after optical distortion correction processing. Determine its center point and a feature point from the image a, determine the distance from the feature point to the center point of the image a according to the size of the image a, and then perform optical distortion correction processing on the feature point based on the above calculation formula (3) , to obtain the distance from the feature point to the center point after optical distortion correction processing. Determine its center point and a feature point from the image b, determine the distance from the feature point to the center point of the image according to the size of the image b, and then perform optical distortion correction processing on the feature point based on the above calculation formula (3), The distance from the feature point to the center point after optical distortion correction processing is obtained. It should be noted that the above example only shows that a feature point is determined from the image to be displayed, but does not impose any limitation on the present invention. The number of feature points determined from the image to be displayed may be several, dozens, hundreds, or even more. The larger the number of feature points determined from the image to be displayed, the more accurate the image after optical distortion correction processing is obtained.

在对待显示图像进行光学畸变校正处理后,将光学畸变校正处理后的待显示图像在虚拟现实头戴设备的屏幕上进行显示。光学畸变校正处理后的待显示图像在虚拟现实头戴设备的屏幕上的显示区域为第一视场角对应的、在虚拟现实头戴设备的屏幕上的第一视野范围大小。待显示图像对应的第一视场角与虚拟现实头戴设备的光学部件的第二视场角的大小会出现以下三种情况:第一视场角小于第二视场角;第一视场角大于第二视场角;第一视场角等于第二视场角。After optical distortion correction processing is performed on the image to be displayed, the image to be displayed after optical distortion correction processing is displayed on the screen of the virtual reality head-mounted device. The display area of the image to be displayed after optical distortion correction processing on the screen of the virtual reality head-mounted device is the size of the first field of view range on the screen of the virtual reality head-mounted device corresponding to the first field of view angle. The size of the first field of view corresponding to the image to be displayed and the second field of view of the optical components of the virtual reality head-mounted device will appear in the following three situations: the first field of view is smaller than the second field of view; the first field of view The angle is greater than the second viewing angle; the first viewing angle is equal to the second viewing angle.

在待显示图像对应的第一视场角小于虚拟现实头戴设备的光学部件的第二视场角的情况下,参见图4,显示区域a为第一视场角对应的、在虚拟现实头戴设备的屏幕上的第一视野范围大小,显示区域b为第二视场角对应的、在虚拟现实头戴设备的屏幕上的第二视野范围大小。光学畸变校正处理后的待显示图像在虚拟现实头戴设备的屏幕上的显示区域为第一视场角对应的、在虚拟现实头戴设备的屏幕上的视野范围大小。用户通过虚拟现实头戴设备的光学部件观看到的光学畸变校正处理后的待显示图像的区域为第一视场角对应的、在虚拟现实头戴设备的屏幕上的第一视野范围大小。When the first viewing angle corresponding to the image to be displayed is smaller than the second viewing angle of the optical components of the virtual reality head-mounted device, referring to FIG. The size of the first field of view on the screen of the wearable device, and the display area b is the size of the second field of view on the screen of the virtual reality head-mounted device corresponding to the second field of view. The display area of the image to be displayed after optical distortion correction processing on the screen of the virtual reality head-mounted device is the size of the field of view on the screen of the virtual reality head-mounted device corresponding to the first viewing angle. The region of the image to be displayed after the optical distortion correction processed by the user through the optical components of the virtual reality head-mounted device is the size of the first field of view on the screen of the virtual reality head-mounted device corresponding to the first field of view.

在待显示图像对应的第一视场角大于虚拟现实头戴设备的光学部件的第二视场角的情况下,参见图5,显示区域c为第一视场角对应的、在虚拟现实头戴设备的屏幕上的第一视野范围大小,显示区域b为第二视场角对应的、在虚拟现实头戴设备的屏幕上的第二视野范围大小。光学畸变校正处理后的待显示图像在虚拟现实头戴设备的屏幕上的显示区域为第一视场角对应的、在虚拟现实头戴设备的屏幕上的视野范围大小。用户通过虚拟现实头戴设备的光学部件观看到的光学畸变校正处理后的待显示图像的区域为第二视场角对应的、在虚拟现实头戴设备的屏幕上的第二视野范围大小。When the first viewing angle corresponding to the image to be displayed is larger than the second viewing angle of the optical components of the virtual reality head-mounted device, referring to FIG. The size of the first field of view on the screen of the wearable device, and the display area b is the size of the second field of view on the screen of the virtual reality head-mounted device corresponding to the second field of view. The display area of the image to be displayed after optical distortion correction processing on the screen of the virtual reality head-mounted device is the size of the field of view on the screen of the virtual reality head-mounted device corresponding to the first viewing angle. The region of the image to be displayed after the optical distortion correction processed by the user through the optical components of the virtual reality head-mounted device is the size of the second field of view on the screen of the virtual reality head-mounted device corresponding to the second field of view.

在待显示图像对应的第一视场角等于虚拟现实头戴设备的光学部件的第二视场角的情况下,参见图6,第一视场角对应的、在虚拟现实头戴设备的屏幕上的第一视野范围大小,与第二视场角对应的、在虚拟现实头戴设备的屏幕上的第二视野范围大小相等。光学畸变校正处理后的待显示图像在虚拟现实头戴设备的屏幕上的显示区域为第一视场角对应的、在虚拟现实头戴设备的屏幕上的视野范围大小。用户通过虚拟现实头戴设备的光学部件观看到的光学畸变校正处理后的待显示图像的区域为第二视场角对应的、在虚拟现实头戴设备的屏幕上的第二视野范围大小。In the case where the first viewing angle corresponding to the image to be displayed is equal to the second viewing angle of the optical components of the virtual reality head-mounted device, see FIG. The size of the first field of view on the above is equal to the size of the second field of view on the screen of the virtual reality head-mounted device corresponding to the second field of view. The display area of the image to be displayed after optical distortion correction processing on the screen of the virtual reality head-mounted device is the size of the field of view on the screen of the virtual reality head-mounted device corresponding to the first viewing angle. The region of the image to be displayed after the optical distortion correction processed by the user through the optical components of the virtual reality head-mounted device is the size of the second field of view on the screen of the virtual reality head-mounted device corresponding to the second field of view.

基于同一发明构思,本发明提供了一种计算机可读存储介质。计算机可读存储介质存储有计算机程序,该计算机程序可被一个或者多个处理器执行以实现如上述任一实施例提供的图像处理方法。Based on the same inventive concept, the present invention provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and the computer program can be executed by one or more processors to implement the image processing method provided by any one of the above embodiments.

基于同一发明构思,本发明提供了一种虚拟现实头戴设备。图7示出了根据本发明一个实施例的虚拟现实头戴设备的结构示意图。参见图7,虚拟现实头戴设备700包括显示单元701、虚拟图像光学单元702、输入操作单元703、状态信息获取单元704、通信单元705、存储器706、处理器707、图像处理单元708、显示驱动单元709、声音处理单元710、声音输入/输出单元711。Based on the same inventive concept, the present invention provides a virtual reality head-mounted device. Fig. 7 shows a schematic structural diagram of a virtual reality headset according to an embodiment of the present invention. Referring to FIG. 7, a virtual reality headset 700 includes a display unit 701, a virtual image optical unit 702, an input operation unit 703, a state information acquisition unit 704, a communication unit 705, a memory 706, a processor 707, an image processing unit 708, a display driver unit 709, a sound processing unit 710, and a sound input/output unit 711.

存储器706是配置为具有固态驱动器等的大容量存储设备。存储器706可以存储应用程序或各种类型的数据。例如,处理器707执行本发明提供的图像处理方法的计算机程序,或者,用户使用虚拟现实头戴设备700观看的内容可以存储在存储器706中,等等。The memory 706 is a mass storage device configured with a solid-state drive or the like. The memory 706 may store application programs or various types of data. For example, the processor 707 executes the computer program of the image processing method provided by the present invention, or the content viewed by the user using the virtual reality headset 700 can be stored in the memory 706, and so on.

处理器707可以包括计算机处理单元(CPU)或者其他具有类似功能的设备。一些实施例中,处理器707用于执行本发明提供的图像处理方法,即执行以下操作步骤:获取待显示图像对应的第一视场角、虚拟现实头戴设备的光学部件的第二视场角和第二视场角对应的、在虚拟现实头戴设备的屏幕上的第二视野范围大小;利用第一视场角、第二视场角和第二视野范围大小,计算得到第一视场角对应的、在虚拟现实头戴设备的屏幕上的第一视野范围大小;利用第一视野范围大小,计算得到待显示图像的大小;根据待显示图像的大小,对待显示图像进行光学畸变校正处理。Processor 707 may include a computer processing unit (CPU) or other device with similar functionality. In some embodiments, the processor 707 is configured to execute the image processing method provided by the present invention, that is, perform the following steps: acquire the first field of view corresponding to the image to be displayed, and obtain the second field of view of the optical components of the virtual reality head-mounted device angle and the second field of view corresponding to the size of the second field of view on the screen of the virtual reality head-mounted device; using the first field of view, the second field of view and the size of the second field of view, the first field of view is calculated The size of the first field of view on the screen of the virtual reality head-mounted device corresponding to the field angle; using the size of the first field of view, calculate the size of the image to be displayed; perform optical distortion correction on the image to be displayed according to the size of the image to be displayed deal with.

显示单元701可以包括显示面板,显示面板设置在虚拟现实头戴设备700上面向用户面部的侧表面,可以为一整块面板、或者为分别对应用户左眼和右眼的左面板和右面板。显示面板可以为电致发光(Electroluminescence,简称EL)元件、液晶显示器或具有类似结构的微型显示器、或者视网膜可直接显示或类似的激光扫描式显示器。The display unit 701 may include a display panel. The display panel is set on the side surface of the virtual reality head-mounted device 700 facing the user's face, and may be a whole panel, or a left panel and a right panel respectively corresponding to the user's left and right eyes. The display panel may be an electroluminescence (EL) element, a liquid crystal display or a microdisplay with a similar structure, or a retinal direct display or a similar laser scanning display.

虚拟图像光学单元702以放大方式拍摄显示单元701所显示的图像,并允许用户按放大的虚拟图像观察所显示的图像。作为输出到显示单元701上的显示图像,可以是从内容再现设备(蓝光光碟或DVD播放器)或流媒体服务器提供的虚拟场景的图像、或者使用外部相机110拍摄的现实场景的图像。一些实施例中,虚拟图像光学单元702可以包括透镜单元,例如球面透镜、非球面透镜、菲涅尔透镜等。The virtual image optical unit 702 captures the image displayed by the display unit 701 in an enlarged manner, and allows the user to observe the displayed image as an enlarged virtual image. As a display image output to the display unit 701 , an image of a virtual scene provided from a content reproduction device (Blu-ray Disc or DVD player) or a streaming server, or an image of a real scene captured using the external camera 110 may be used. In some embodiments, the virtual image optical unit 702 may include a lens unit, such as a spherical lens, an aspheric lens, a Fresnel lens, and the like.

需要说明的是,外部相机110可以设置在虚拟现实头戴设备700主体前表面,外部相机110可以为一个或者多个。外部相机110可以获取三维信息,并且也可以用作距离传感器。另外,探测来自物体的反射信号的位置灵敏探测器(PSD)或者其他类型的距离传感器可以与外部相机110一起使用。外部相机110和距离传感器可以用于检测穿戴虚拟现实头戴设备700的用户的身体位置、姿态和形状。另外,一定条件下用户可以通过外部相机110直接观看或者预览现实场景。It should be noted that the external camera 110 may be set on the front surface of the main body of the virtual reality headset 700 , and there may be one or more external cameras 110 . 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 objects may 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 headset 700 . In addition, under certain conditions, the user can directly watch or preview the real scene through the external camera 110 .

输入操作单元703包括至少一个用来执行输入操作的操作部件,例如按键、按钮、开关或者其他具有类似功能的部件,通过操作部件接收用户指令,并且向处理器707输出指令。The input operation unit 703 includes at least one operation component for performing an input operation, such as keys, buttons, switches or other components with similar functions, receives user instructions through the operation components, and outputs instructions to the processor 707 .

状态信息获取单元704用于获取穿戴虚拟现实头戴设备700的用户的状态信息。状态信息获取单元704可以包括各种类型的传感器,用于自身检测状态信息,并可以通过通信单元705从外部设备(例如智能手机、腕表和用户穿戴的其它多功能终端)获取状态信息。状态信息获取单元704可以获取用户的头部的位置信息和/或姿态信息。状态信息获取单元704可以包括陀螺仪传感器、加速度传感器、全球定位系统(Global Positioning System,简称GPS)传感器、地磁传感器、多普勒效应传感器、红外传感器、射频场强度传感器中的一个或者多个。此外,状态信息获取单元704获取穿戴虚拟现实头戴设备700的用户的状态信息,例如获取用户的操作状态(用户是否穿戴虚拟现实头戴设备700)、用户的动作状态(诸如静止、行走、跑动和诸如此类的移动状态,手或指尖的姿势、眼睛的开或闭状态、视线方向、瞳孔尺寸)、精神状态(用户是否沉浸在观察所显示的图像以及诸如此类的),甚至生理状态。The status information acquiring unit 704 is configured to acquire status information of the user wearing the virtual reality headset 700 . The status information acquisition unit 704 may include various types of sensors for detecting status information by itself, and may acquire status information from external devices (such as smart phones, watches and other multi-function terminals worn by users) through the communication unit 705 . The state information obtaining unit 704 may obtain position information and/or posture information of the user's head. The state information acquisition unit 704 may include one or more of a gyroscope sensor, an acceleration sensor, a Global Positioning System (Global Positioning System, GPS) sensor, a geomagnetic sensor, a Doppler effect sensor, an infrared sensor, and a radio frequency field intensity sensor. In addition, the state information obtaining unit 704 obtains the state information of the user wearing the virtual reality head-mounted device 700, for example, obtains the user's operation state (whether the user is wearing the virtual reality head-mounted device 700), the user's action state (such as standing still, walking, running, etc.). motion and the like, hand or fingertip posture, eye open or closed, gaze direction, pupil size), mental state (whether the user is immersed in looking at the displayed image, and the like), and even physiological state.

通信单元705执行与外部装置的通信处理、调制和解调处理、以及通信信号的编码和解码处理。另外,处理器707可以从通信单元705向外部装置发送传输数据。通信方式可以是有线或者无线形式,例如移动高清链接(Mobile High-Definition Link,简称MHL)或通用串行总线(Universal Serial Bus,简称USB)、高清多媒体接口(High DefinitionMultimedia Interface,简称HDMI)、无线保真(Wi-Fi)、蓝牙通信或低功耗蓝牙通信,以及IEEE802.11s标准的网状网络等。另外,通信单元705可以是根据宽带码分多址(WidebandCode Division Multiple Access,简称W-CDMA)、长期演进(Long Term Evolution,简称LTE)和类似标准操作的蜂窝无线收发器。The communication unit 705 performs communication processing with an external device, modulation and demodulation processing, and encoding and decoding processing of communication signals. In addition, the processor 707 can send transmission data from the communication unit 705 to an external device. The communication method can be wired or wireless, such as Mobile High-Definition Link (MHL for short) or Universal Serial Bus (USB for short), High Definition Multimedia Interface (HDMI for short), wireless Fidelity (Wi-Fi), Bluetooth communication or Bluetooth low energy communication, and IEEE802.11s standard mesh network, etc. In addition, the communication unit 705 may be a cellular radio transceiver operating in accordance with Wideband Code Division Multiple Access (W-CDMA), Long Term Evolution (LTE), and similar standards.

图像处理单元708用于执行信号处理,比如与从处理器707输出的图像信号相关的图像质量校正,以及将其分辨率转换为根据显示单元701的屏幕的分辨率。然后,显示驱动单元709依次选择显示单元701的每行像素,并逐行依次扫描显示单元701的每行像素,因而提供基于经信号处理的图像信号的像素信号。The image processing unit 708 is for performing signal processing such as image quality correction related to the image signal output from the processor 707 and converting its resolution to that according to the screen of the display unit 701 . Then, the display driving unit 709 sequentially selects each row of pixels of the display unit 701 and sequentially scans each row of pixels of the display unit 701 row by row, thereby providing a pixel signal based on the signal-processed image signal.

声音处理单元710可以执行从处理器707输出的声音信号的声音质量校正或声音放大,以及输入声音信号的信号处理等。然后,声音输入/输出单元711在声音处理后向外部输出声音以及输入来自麦克风的声音。The sound processing unit 710 can perform sound quality correction or sound amplification of the sound signal output from the processor 707, signal processing of the input sound signal, and the like. Then, the sound input/output unit 711 outputs sound to the outside and inputs sound from a microphone after sound processing.

需要说明的是,图7中虚线框示出的结构或部件可以独立于虚拟现实头戴设备700之外,例如可以设置在外部处理系统(例如计算机系统)中与虚拟现实头戴设备700配合使用;或者,虚线框示出的结构或部件可以设置在虚拟现实头戴设备700内部或者表面上。It should be noted that the structure or components shown in the dashed box in FIG. 7 may be independent of the virtual reality head-mounted device 700, for example, it may be set in an external processing system (such as a computer system) to cooperate with the virtual reality head-mounted device 700. or, the structures or components shown by the dotted line box can be set inside or on the surface of the virtual reality head-mounted device 700 .

本发明可以是系统、方法和/或计算机程序产品。计算机程序产品可以包括计算机可读存储介质,其上载有用于使处理器实现本发明的各个方面的计算机可读程序指令。The present invention can be a system, method and/or computer program product. A computer program product may include a computer readable storage medium having computer readable program instructions thereon for causing a processor to implement various aspects of the present invention.

计算机可读存储介质可以是可以保持和存储由指令执行设备使用的指令的有形设备。计算机可读存储介质例如可以是――但不限于――电存储设备、磁存储设备、光存储设备、电磁存储设备、半导体存储设备或者上述的任意合适的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、静态随机存取存储器(SRAM)、便携式压缩盘只读存储器(CD-ROM)、数字多功能盘(DVD)、记忆棒、软盘、机械编码设备、例如其上存储有指令的打孔卡或凹槽内凸起结构、以及上述的任意合适的组合。这里所使用的计算机可读存储介质不被解释为瞬时信号本身,诸如无线电波或者其他自由传播的电磁波、通过波导或其他传输媒介传播的电磁波(例如,通过光纤电缆的光脉冲)、或者通过电线传输的电信号。A computer readable storage medium may be a tangible device that can retain and store instructions for use by an instruction execution device. A computer readable storage medium may be, for example, but is not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of computer-readable storage media include: portable computer diskettes, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), or flash memory), static random access memory (SRAM), compact disc read only memory (CD-ROM), digital versatile disc (DVD), memory stick, floppy disk, mechanically encoded device, such as a printer with instructions stored thereon A hole card or a raised structure in a groove, and any suitable combination of the above. As used herein, computer-readable storage media are not to be construed as transient signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (e.g., pulses of light through fiber optic cables), or transmitted electrical signals.

这里所描述的计算机可读程序指令可以从计算机可读存储介质下载到各个计算/处理设备,或者通过网络、例如因特网、局域网、广域网和/或无线网下载到外部计算机或外部存储设备。网络可以包括铜传输电缆、光纤传输、无线传输、路由器、防火墙、交换机、网关计算机和/或边缘服务器。每个计算/处理设备中的网络适配卡或者网络接口从网络接收计算机可读程序指令,并转发该计算机可读程序指令,以供存储在各个计算/处理设备中的计算机可读存储介质中。Computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a respective computing/processing device, or downloaded to an external computer or external storage device over a network, such as the Internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and/or edge servers. A network adapter card or a network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in each computing/processing device .

用于执行本发明操作的计算机程序指令可以是汇编指令、指令集架构(ISA)指令、机器指令、机器相关指令、微代码、固件指令、状态设置数据、或者以一种或多种编程语言的任意组合编写的源代码或目标代码,编程语言包括面向对象的编程语言—诸如Smalltalk、C++等,以及常规的过程式编程语言—诸如“C”语言或类似的编程语言。计算机可读程序指令可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络—包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。在一些实施例中,通过利用计算机可读程序指令的状态信息来个性化定制电子电路,例如可编程逻辑电路、现场可编程门阵列(FPGA)或可编程逻辑阵列(PLA),该电子电路可以执行计算机可读程序指令,从而实现本发明的各个方面。Computer program instructions for carrying out operations of the present invention may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or Source or object code written in any combination, including object-oriented programming languages—such as Smalltalk, C++, etc., and conventional procedural programming languages—such as “C” or similar programming languages. Computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server implement. In cases involving a remote computer, the remote computer can be connected to the user computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (such as via the Internet using an Internet service provider). connect). In some embodiments, an electronic circuit, such as a programmable logic circuit, field programmable gate array (FPGA), or programmable logic array (PLA), can be customized by utilizing state information of computer-readable program instructions, which can Various aspects of the invention are implemented by executing computer readable program instructions.

这里参照根据本发明实施例的方法、装置(系统)和计算机程序产品的流程图和/或框图描述了本发明的各个方面。应当理解,流程图和/或框图的每个方框以及流程图和/或框图中各方框的组合,都可以由计算机可读程序指令实现。Aspects of the present invention are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It should be understood that each block of the flowcharts and/or block diagrams, and combinations of blocks in the flowcharts and/or block diagrams, can be implemented by computer-readable program instructions.

这些计算机可读程序指令可以提供给通用计算机、专用计算机或其它可编程数据处理装置的处理器,从而生产出一种机器,使得这些指令在通过计算机或其它可编程数据处理装置的处理器执行时,产生了实现流程图和/或框图中的一个或多个方框中规定的功能/动作的装置。也可以把这些计算机可读程序指令存储在计算机可读存储介质中,这些指令使得计算机、可编程数据处理装置和/或其他设备以特定方式工作,从而,存储有指令的计算机可读介质则包括一个制造品,其包括实现流程图和/或框图中的一个或多个方框中规定的功能/动作的各个方面的指令。These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine such that when executed by the processor of the computer or other programmable data processing apparatus , producing an apparatus for realizing the functions/actions specified in one or more blocks in the flowchart and/or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause computers, programmable data processing devices and/or other devices to work in a specific way, so that the computer-readable medium storing instructions includes An article of manufacture comprising instructions for implementing various aspects of the functions/acts specified in one or more blocks in flowcharts and/or block diagrams.

也可以把计算机可读程序指令加载到计算机、其它可编程数据处理装置、或其它设备上,使得在计算机、其它可编程数据处理装置或其它设备上执行一系列操作步骤,以产生计算机实现的过程,从而使得在计算机、其它可编程数据处理装置、或其它设备上执行的指令实现流程图和/或框图中的一个或多个方框中规定的功能/动作。It is also possible to load computer-readable program instructions into a computer, other programmable data processing device, or other equipment, so that a series of operational steps are performed on the computer, other programmable data processing device, or other equipment to produce a computer-implemented process , so that instructions executed on computers, other programmable data processing devices, or other devices implement the functions/actions specified in one or more blocks in the flowcharts and/or block diagrams.

附图中的流程图和框图显示了根据本发明的多个实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或指令的一部分,模块、程序段或指令的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。对于本领域技术人员来说公知的是,通过硬件方式实现、通过软件方式实现以及通过软件和硬件结合的方式实现都是等价的。The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, a program segment, or a portion of an instruction that contains one or more executable instruction. In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. It should also be noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by a dedicated hardware-based system that performs the specified function or action , or may be implemented by a combination of dedicated hardware and computer instructions. It is well known to those skilled in the art that implementation by means of hardware, implementation by means of software, and implementation by a combination of software and hardware are all equivalent.

以上已经描述了本发明的各实施例,上述说明是示例性的,并非穷尽性的,并且也不限于所披露的各实施例。在不偏离所说明的各实施例的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。本文中所用术语的选择,旨在最好地解释各实施例的原理、实际应用或对市场中的技术改进,或者使本技术领域的其它普通技术人员能理解本文披露的各实施例。本发明的范围由所附权利要求来限定。Having described various embodiments of the present invention, the foregoing description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and alterations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen to best explain the principle of each embodiment, practical application or technical improvement in the market, or to enable other ordinary skilled in the art to understand each embodiment disclosed herein. The scope of the invention is defined by the appended claims.

Claims (10)

1.一种图像处理方法,其特征在于,包括:1. An image processing method, characterized in that, comprising: 获取待显示图像对应的第一视场角、虚拟现实头戴设备的光学部件的第二视场角和所述第二视场角对应的、在所述虚拟现实头戴设备的屏幕上的第二视野范围大小;Obtaining the first viewing angle corresponding to the image to be displayed, the second viewing angle of the optical components of the virtual reality head-mounted device, and the second viewing angle corresponding to the second viewing angle on the screen of the virtual reality head-mounted device. Second, the size of the field of view; 利用所述第一视场角、所述第二视场角和所述第二视野范围大小,计算得到所述第一视场角对应的、在所述虚拟现实头戴设备的屏幕上的第一视野范围大小;Using the first field of view, the second field of view and the size of the second field of view, calculate and obtain the first field of view corresponding to the first field of view on the screen of the virtual reality head-mounted device - the size of the field of view; 利用所述第一视野范围大小,计算得到所述待显示图像的大小;calculating the size of the image to be displayed by using the size of the first field of view; 根据所述待显示图像的大小,对所述待显示图像进行光学畸变校正处理。Perform optical distortion correction processing on the image to be displayed according to the size of the image to be displayed. 2.根据权利要求1所述的方法,其特征在于,所述待显示图像对应的第一视场角为所述虚拟现实头戴设备的外接设备的光学部件的视场角。2. The method according to claim 1, wherein the first viewing angle corresponding to the image to be displayed is the viewing angle of an optical component of an external device of the virtual reality headset. 3.根据权利要求2所述的方法,其特征在于,获取待显示图像对应的第一视场角,包括:3. The method according to claim 2, wherein obtaining the first viewing angle corresponding to the image to be displayed comprises: 在所述虚拟现实头戴设备与所述外接设备建立连接时,所述虚拟现实头戴设备获取所述外接设备的设备参数,其中,所述设备参数包括所述外接设备的光学部件的视场角。When the virtual reality head-mounted device establishes a connection with the external device, the virtual reality head-mounted device acquires device parameters of the external device, wherein the device parameters include a field of view of an optical component of the external device horn. 4.根据权利要求1所述的方法,其特征在于,利用所述第一视场角、所述第二视场角和所述第二视野范围大小,计算得到所述第一视场角对应的、在所述虚拟现实头戴设备的屏幕上的第一视野范围大小,包括:4. The method according to claim 1, characterized in that, using the first field of view, the second field of view and the size of the second field of view to calculate the corresponding angle of the first field of view The size of the first field of view on the screen of the virtual reality head-mounted device includes: 基于以下计算式计算得到所述第一视野范围大小,The size of the first field of view is calculated based on the following formula, r=R*[tan(FOV1/2)/tan(FOV2/2)],其中,r为所述第一视野范围对应的区域半径大小,R为所述第二视野范围对应的区域半径大小,FOV1为所述第一视场角,FOV2为所述第二视场角。r=R*[tan(FOV 1 /2)/tan(FOV 2 /2)], where r is the area radius corresponding to the first field of view, and R is the area radius corresponding to the second field of view Size, FOV 1 is the first viewing angle, FOV 2 is the second viewing angle. 5.根据权利要求1所述的方法,其特征在于,利用所述第一视野范围大小,计算得到所述待显示图像的大小,包括:5. The method according to claim 1, wherein the size of the image to be displayed is calculated using the size of the first field of view, comprising: 基于以下计算式计算得到所述待显示图像的大小,The size of the image to be displayed is calculated based on the following formula, r=K0+K1*h+K2*h2+K3*h3+…+Kn*hn,其中,h为所述待显示图像对应的正方形区域的边长,r为所述第一视野范围对应的区域半径大小,K0、K1、K2、K3、……Kn为所述虚拟现实头戴设备的光学部件对应的系数。r=K 0 +K 1 *h+K 2 *h 2 +K 3 *h 3 +...+K n *h n , where h is the side length of the square area corresponding to the image to be displayed, r is the The size of the area radius corresponding to the first field of view, K 0 , K 1 , K 2 , K 3 , ... K n are coefficients corresponding to the optical components of the virtual reality head-mounted device. 6.根据权利要求1-5任一所述的方法,其特征在于,根据所述待显示图像的大小,对所述待显示图像进行光学畸变校正处理,包括:6. The method according to any one of claims 1-5, wherein performing optical distortion correction processing on the image to be displayed according to the size of the image to be displayed includes: 从所述待显示图像中确定多个特征点,根据所述待显示图像的大小,确定各特征点到所述待显示图像的中心点的距离;Determining a plurality of feature points from the image to be displayed, and determining the distance from each feature point to the center point of the image to be displayed according to the size of the image to be displayed; 基于以下计算式对所述待显示图像进行光学畸变校正处理,Performing optical distortion correction processing on the image to be displayed based on the following calculation formula, l'=K0+K1*l+K2*l2+K3*l3+…+Kn*ln,其中,l为特征点到所述待显示图像的中心点的距离,K0、K1、K2、K3、……Kn为所述虚拟现实头戴设备的光学部件对应的系数,l’为所述特征点经过光学畸变校正处理后到所述待显示图像的中心点的距离。l'=K 0 +K 1 *l+K 2 *l 2 +K 3 *l 3 +...+K n *l n , wherein, l is the distance from the feature point to the center point of the image to be displayed, K 0 , K 1 , K 2 , K 3 , ... K n are the coefficients corresponding to the optical components of the virtual reality head-mounted device, and l' is the conversion of the feature points to the image to be displayed after optical distortion correction processing The distance from the center point. 7.根据权利要求1所述的方法,其特征在于,所述方法还包括:7. The method according to claim 1, further comprising: 将光学畸变校正处理后的待显示图像在所述虚拟现实头戴设备的屏幕上进行显示。The image to be displayed after optical distortion correction is displayed on the screen of the virtual reality head-mounted device. 8.根据权利要求7所述的方法,其特征在于,将光学畸变校正处理后的待显示图像在所述虚拟现实头戴设备的屏幕上进行显示之后,在所述第一视场角小于所述第二视场角的情况下,用户通过所述虚拟现实头戴设备的光学部件观看到的所述光学畸变校正处理后的待显示图像的区域为所述第一视场角对应的、在所述虚拟现实头戴设备的屏幕上的第一视野范围大小;8. The method according to claim 7, characterized in that, after the image to be displayed after the optical distortion correction is displayed on the screen of the virtual reality head-mounted device, when the first viewing angle is smaller than the specified In the case of the second field of view, the area of the image to be displayed after the optical distortion correction processed by the user through the optical components of the virtual reality head-mounted device is the area corresponding to the first field of view, at The size of the first field of view on the screen of the virtual reality head-mounted device; 在所述第一视场角大于所述第二视场角的情况下,用户通过所述虚拟现实头戴设备的光学部件观看到的所述光学畸变校正处理后的待显示图像的区域为所述第二视场角对应的、在所述虚拟现实头戴设备的屏幕上的第二视野范围大小;In the case where the first viewing angle is greater than the second viewing angle, the area of the image to be displayed after the optical distortion correction process viewed by the user through the optical components of the virtual reality head-mounted device is the set The size of the second field of view on the screen of the virtual reality head-mounted device corresponding to the second field of view; 在所述第一视场角等于所述第二视场角的情况下,用户通过所述虚拟现实头戴设备的光学部件观看到的所述光学畸变校正处理后的待显示图像的区域为所述第二视场角对应的、在所述虚拟现实头戴设备的屏幕上的第二视野范围大小。In the case where the first viewing angle is equal to the second viewing angle, the area of the image to be displayed after the optical distortion correction process viewed by the user through the optical components of the virtual reality head-mounted device is the set The size of the second field of view range on the screen of the virtual reality head-mounted device corresponding to the second field of view angle. 9.一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被一个或者多个处理器执行以实现如权利要求1-8任一项所述的图像处理方法。9. A computer-readable storage medium, the computer-readable storage medium storing a computer program, characterized in that, the computer program is executed by one or more processors to implement any one of claims 1-8 The image processing method described above. 10.一种虚拟现实头戴设备,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如权利要求1-8任一项所述的图像处理方法。10. A virtual reality head-mounted device, comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, characterized in that, when the processor executes the computer program, it realizes The image processing method according to any one of claims 1-8.
CN201710758206.4A 2017-08-29 2017-08-29 Image processing method, computer-readable recording medium and virtual reality helmet Pending CN107610044A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710758206.4A CN107610044A (en) 2017-08-29 2017-08-29 Image processing method, computer-readable recording medium and virtual reality helmet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710758206.4A CN107610044A (en) 2017-08-29 2017-08-29 Image processing method, computer-readable recording medium and virtual reality helmet

Publications (1)

Publication Number Publication Date
CN107610044A true CN107610044A (en) 2018-01-19

Family

ID=61056559

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710758206.4A Pending CN107610044A (en) 2017-08-29 2017-08-29 Image processing method, computer-readable recording medium and virtual reality helmet

Country Status (1)

Country Link
CN (1) CN107610044A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109189215A (en) * 2018-08-16 2019-01-11 腾讯科技(深圳)有限公司 A kind of virtual content display methods, device, VR equipment and medium
CN109410140A (en) * 2018-10-24 2019-03-01 京东方科技集团股份有限公司 A kind of distortion correction method, device, system and computer readable storage medium
CN109523481A (en) * 2018-11-09 2019-03-26 歌尔股份有限公司 Antidote, device and the computer readable storage medium of projector image distortion
WO2019205744A1 (en) * 2018-04-28 2019-10-31 京东方科技集团股份有限公司 Image distortion correction method and apparatus, display device, computer readable medium, and electronic device
CN110490820A (en) * 2019-08-07 2019-11-22 Oppo广东移动通信有限公司 Image processing method and device, electronic equipment, storage medium
CN112348751A (en) * 2020-10-27 2021-02-09 京东方科技集团股份有限公司 Anti-distortion method and device for near-eye display equipment
CN112433607A (en) * 2020-11-17 2021-03-02 歌尔光学科技有限公司 Image display method and device, electronic equipment and storage medium
CN113398596A (en) * 2021-07-30 2021-09-17 广州边在晓峰网络科技有限公司 AR processing system based on multidimensional game
CN113780414A (en) * 2021-09-10 2021-12-10 京东方科技集团股份有限公司 Eye movement behavior analysis method, image rendering method, component, device and medium
CN114145011A (en) * 2019-07-18 2022-03-04 微软技术许可有限责任公司 Dynamic Detection and Correction of Miscalibration of Light Field Camera Arrays
CN114356081A (en) * 2021-12-20 2022-04-15 歌尔光学科技有限公司 Image correction method and device, electronic equipment and head-mounted display equipment
CN115941923A (en) * 2021-08-10 2023-04-07 海信视像科技股份有限公司 Virtual reality equipment and image processing method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101305595A (en) * 2005-11-11 2008-11-12 索尼株式会社 Image processing device, image processing method, program thereof, recording medium containing the program
CN105455285A (en) * 2015-12-31 2016-04-06 北京小鸟看看科技有限公司 Virtual reality helmet adaptation method
CN106127714A (en) * 2016-07-01 2016-11-16 南京睿悦信息技术有限公司 A kind of measuring method of virtual reality head-mounted display equipment distortion parameter
CN106406536A (en) * 2016-09-29 2017-02-15 努比亚技术有限公司 Head device, display device and image display method
CN106569654A (en) * 2016-10-09 2017-04-19 深圳市金立通信设备有限公司 Virtual reality interface display method and virtual reality device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101305595A (en) * 2005-11-11 2008-11-12 索尼株式会社 Image processing device, image processing method, program thereof, recording medium containing the program
CN105455285A (en) * 2015-12-31 2016-04-06 北京小鸟看看科技有限公司 Virtual reality helmet adaptation method
CN106127714A (en) * 2016-07-01 2016-11-16 南京睿悦信息技术有限公司 A kind of measuring method of virtual reality head-mounted display equipment distortion parameter
CN106406536A (en) * 2016-09-29 2017-02-15 努比亚技术有限公司 Head device, display device and image display method
CN106569654A (en) * 2016-10-09 2017-04-19 深圳市金立通信设备有限公司 Virtual reality interface display method and virtual reality device

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019205744A1 (en) * 2018-04-28 2019-10-31 京东方科技集团股份有限公司 Image distortion correction method and apparatus, display device, computer readable medium, and electronic device
US11423518B2 (en) 2018-04-28 2022-08-23 Beijing Boe Optoelectronics Technology Co., Ltd. Method and device of correcting image distortion, display device, computer readable medium, electronic device
CN109189215B (en) * 2018-08-16 2021-08-20 腾讯科技(深圳)有限公司 Virtual content display method and device, VR equipment and medium
CN109189215A (en) * 2018-08-16 2019-01-11 腾讯科技(深圳)有限公司 A kind of virtual content display methods, device, VR equipment and medium
CN109410140A (en) * 2018-10-24 2019-03-01 京东方科技集团股份有限公司 A kind of distortion correction method, device, system and computer readable storage medium
CN109523481A (en) * 2018-11-09 2019-03-26 歌尔股份有限公司 Antidote, device and the computer readable storage medium of projector image distortion
CN109523481B (en) * 2018-11-09 2021-07-13 歌尔光学科技有限公司 Method, device and computer-readable storage medium for correcting image distortion of projector
CN114145011A (en) * 2019-07-18 2022-03-04 微软技术许可有限责任公司 Dynamic Detection and Correction of Miscalibration of Light Field Camera Arrays
CN110490820A (en) * 2019-08-07 2019-11-22 Oppo广东移动通信有限公司 Image processing method and device, electronic equipment, storage medium
CN110490820B (en) * 2019-08-07 2022-04-12 Oppo广东移动通信有限公司 Image processing method and device, electronic equipment and storage medium
CN112348751A (en) * 2020-10-27 2021-02-09 京东方科技集团股份有限公司 Anti-distortion method and device for near-eye display equipment
CN112433607A (en) * 2020-11-17 2021-03-02 歌尔光学科技有限公司 Image display method and device, electronic equipment and storage medium
CN113398596A (en) * 2021-07-30 2021-09-17 广州边在晓峰网络科技有限公司 AR processing system based on multidimensional game
CN115941923A (en) * 2021-08-10 2023-04-07 海信视像科技股份有限公司 Virtual reality equipment and image processing method
CN113780414A (en) * 2021-09-10 2021-12-10 京东方科技集团股份有限公司 Eye movement behavior analysis method, image rendering method, component, device and medium
CN113780414B (en) * 2021-09-10 2024-08-23 京东方科技集团股份有限公司 Eye movement behavior analysis method, image rendering method, component, device and medium
CN114356081A (en) * 2021-12-20 2022-04-15 歌尔光学科技有限公司 Image correction method and device, electronic equipment and head-mounted display equipment
WO2023115460A1 (en) * 2021-12-20 2023-06-29 歌尔股份有限公司 Image correction method and apparatus, electronic device, and head-mounted display device

Similar Documents

Publication Publication Date Title
CN107610044A (en) Image processing method, computer-readable recording medium and virtual reality helmet
US20220197033A1 (en) Image Processing Method and Head Mounted Display Device
TWI706379B (en) Method, apparatus and electronic device for image processing and storage medium thereof
US20190385290A1 (en) Face image processing method, device and apparatus, and computer-readable storage medium
US20200402481A1 (en) Image display method, image processing method and relevant devices
US10572764B1 (en) Adaptive stereo rendering to reduce motion sickness
CN109002248B (en) VR scene screenshot method, device and storage medium
US9766458B2 (en) Image generating system, image generating method, and information storage medium
KR20190032818A (en) An electronic device including a plurality of camera using a rolling shutter system
CN108124150B (en) The method that virtual reality wears display equipment and observes real scene by it
CN113989717B (en) Video image processing method, device, electronic device and storage medium
CN108021346A (en) VR helmets show method, VR helmets and the system of image
JP6515512B2 (en) Display device, display device calibration method, and calibration program
JP2015005809A (en) Information processing device, information processing method, and program
CN107589841A (en) Wear the operating method of display device, wear display device and system
US11010865B2 (en) Imaging method, imaging apparatus, and virtual reality device involves distortion
CN107688240A (en) Wear the control method, equipment and system of display device
CN107545595A (en) A kind of VR scene process method and VR equipment
US20240073520A1 (en) Dual camera tracking system
CN107426522B (en) Video method and system based on virtual reality equipment
US20240087247A1 (en) Systems and method for rendering of virtual objects
CN107688241B (en) Control method, device and system for head-mounted display device
CN107958478B (en) Rendering method of object in virtual reality scene and virtual reality head-mounted equipment
US9292906B1 (en) Two-dimensional image processing based on third dimension data
CN107705311B (en) Method and equipment for identifying inside and outside of image contour

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20201009

Address after: 261031 north of Yuqing street, east of Dongming Road, high tech Zone, Weifang City, Shandong Province (Room 502, Geer electronic office building)

Applicant after: GoerTek Optical Technology Co.,Ltd.

Address before: 266104 Laoshan Qingdao District North House Street investment service center room, Room 308, Shandong

Applicant before: GOERTEK TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
RJ01 Rejection of invention patent application after publication

Application publication date: 20180119

RJ01 Rejection of invention patent application after publication