Virtual image distance detection method, device, VR equipment and computer storage medium

By configuring the camera sensing device, display device and camera device in the VR device on the same horizontal line, and using step-by-step methods to calculate the virtual image distance value, the problem that existing VR devices cannot accurately calculate the virtual image distance leads to blurring the target image, and the further implementation Clear image playback effect.

CN115297320BActive Publication Date: 2025-02-11SHENZHEN SKYWORTH NEW WORLD TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210942325.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-05
Publication Date
2025-02-11
Estimated Expiration
2042-08-05

AI Technical Summary

Technical Problem

When playing images, existing VR devices cannot accurately calculate the virtual image distance value, resulting in blurring of the target image.

Method used

By configuring the camera sensing device, display device and image capturing device in the VR device on the same horizontal line, the initial detection position corresponding to the numerical values ​​of each focal length are obtained by step-by-step method, and the camera sensing device is controlled to move forward and reverse along the horizontal line, and the acquisition target is recorded and obtained The position of the blurred image is calculated based on these positions and the preset target distance function.

Benefits of technology

Accurate calculation of virtual image distance data is realized, reducing the situation where the target image blurring occurs when the VR device plays the target image.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115297320B_ABST
    Figure CN115297320B_ABST
Patent Text Reader

Abstract

The present invention discloses a virtual image distance detection method, device, VR device and computer-readable storage medium, including: obtaining initial detection positions corresponding to each focal length value of a camera sensing device and a camera device; controlling the camera sensing device to move along the positive direction of the horizontal line from each initial detection position, and recording the position to obtain each first detection position when the camera sensing device obtains a target blurred image containing a target virtual image; controlling the camera sensing device to move along the reverse direction of the horizontal line from each initial detection position, and recording the position to obtain each second detection position when the camera sensing device obtains a target blurred image containing a target virtual image; obtaining the target virtual image distance value based on each first detection position, each second detection position and a preset target distance function. The present invention achieves the technical effect of accurately calculating virtual image distance data to reduce the blur of the target image when the VR device plays the target image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of VR (Virtual Reality) imaging technology, and in particular to a virtual image distance detection method, device, VR equipment and computer-readable storage medium. Background Art

[0002] The current VR technology mainly uses a camera to obtain a virtual image of a target image displayed in a display device. The camera has a depth of field and a focal depth, and the pixels obtained by the camera sensor have a certain size. Therefore, when the display device in the VR device plays the target image within the depth of field, the virtual image corresponding to the target image obtained by the camera sensor device is considered to be clear, that is, the camera sensor does not obtain a clear image at a fixed distance, but can obtain a clear image within a certain distance range. In this way, the existing VR device only measures the virtual image distance by determining the position where the camera sensor obtains a clear target image, which is not enough to further accurately calculate the virtual image distance value, resulting in the target image being easily blurred when the VR device plays the image. Summary of the invention

[0003] The embodiments of the present invention provide a virtual image distance detection method, device, terminal device and computer storage medium, aiming to accurately calculate virtual image distance data so as to reduce the blur of target images when a VR device plays the target image.

[0004] The present invention provides a virtual image distance detection method, which is applied to a VR device, wherein a camera sensing device, a display device and a camera device of the VR device are arranged on the same horizontal line, and the virtual image distance detection method comprises the following steps:

[0005] Obtaining initial detection positions corresponding to respective focal length values ​​of the camera sensing device and the camera device;

[0006] Controlling the camera sensing device to move from each of the initial detection positions along the positive direction of the horizontal line, and recording the position when the camera sensing device acquires a target blurred image including a target virtual image to obtain each first detection position;

[0007] Controlling the camera sensing device to move from each of the initial detection positions in the opposite direction of the horizontal line, and recording the position when the camera sensing device acquires a target blurred image including a target virtual image to obtain each second detection position;

[0008] A target virtual image distance value is obtained based on each of the first detection positions, each of the second detection positions and a preset target distance function.

[0009] Furthermore, the step of obtaining a target virtual image distance value based on each of the first detection positions, each of the second detection positions and a preset target distance function comprises:

[0010] Obtaining first detection distance values ​​between the camera sensing device and the camera device based on the first detection positions;

[0011] Obtaining second detection distance values ​​between the camera sensing device and the camera device based on the second detection positions;

[0012] The target virtual image distance value is obtained according to each of the first detection distance values, each of the second detection distance values ​​and the target distance function.

[0013] Furthermore, the step of obtaining the target virtual image distance value according to each of the first detection distance values, each of the second detection distance values ​​and the target distance function comprises:

[0014] Based on each of the first detection distance values ​​and each of the second detection distance values, a test data group corresponding to each of the focal length values ​​is constructed, and each of the test data groups is input into the target distance function, and the target distance function outputs the distance value between the target virtual image and the camera device corresponding to each of the test data groups;

[0015] The target virtual image distance value is calculated based on each of the distance values ​​and a first object distance value, wherein the first object distance value is a distance value between the display device and the camera device.

[0016] Furthermore, the VR device is further configured with a calibration device, and the calibration device is configured on the horizontal line, and the method further includes:

[0017] Adjusting the calibration device to each preset marking position, and at the same time, adjusting the camera sensing device to an initial calibration position corresponding to each of the focal length values;

[0018] Controlling the camera sensing device to move from each of the initial calibration positions along the positive direction of the horizontal line, and recording the position when the camera sensing device acquires a target blurred image including a virtual image of the target calibration device to obtain each first calibration position;

[0019] Controlling the camera sensing device to move from each of the initial calibration positions in the opposite direction of the horizontal line, and recording the position when the camera sensing device acquires a target blurred image including a virtual image of the target calibration device to obtain each second calibration position;

[0020] The target distance function is calculated based on each of the first calibrated positions and each of the second calibrated positions.

[0021] Furthermore, before the step of adjusting the camera sensing device to an initial calibration position corresponding to each of the focal length values, the method further includes:

[0022] The second object distance values ​​between the calibration device and the camera device are calculated according to the mark positions.

[0023] Furthermore, the step of calculating the target distance function based on each of the first calibrated positions and each of the second calibrated positions includes:

[0024] Obtaining first calibrated distance values ​​between the camera sensing device and the camera device based on the first calibrated positions;

[0025] Obtaining second calibrated distance values ​​between the camera sensing device and the camera device based on the second calibrated positions;

[0026] A three-dimensional fitting operation is performed on each of the first calibrated distance values, each of the second calibrated distance values, and each of the second object distance values ​​to obtain the target distance function.

[0027] Furthermore, before the step of performing a three-dimensional fitting operation on each of the first calibrated distance values, each of the second calibrated distance values, and each of the second object distance values ​​to obtain the target distance function, the method further includes:

[0028] The first calibrated distance values ​​and the second calibrated distance values ​​are screened based on the mark positions to obtain a first screening result, and at the same time, the first calibrated distance values ​​and the second calibrated distance values ​​are screened based on the focal length values ​​to obtain a second screening result;

[0029] Each data group to be fitted is obtained according to the first screening result and the second screening result; wherein the data group to be fitted includes: the first calibrated distance value, the second calibrated distance value corresponding to the first calibrated distance value, and the second subject distance value corresponding to the first calibrated distance value and the second calibrated distance value respectively.

[0030] In addition, to achieve the above-mentioned purpose, the present invention further provides a virtual image distance detection device, which is applied to a VR device, wherein a camera sensing device, a display device and a camera device of the VR device are arranged on the same horizontal line, and the device comprises:

[0031] An initial position adjustment module, used to obtain initial detection positions corresponding to respective focal length values ​​of the camera sensing device and the camera device;

[0032] A first position recording module, used for controlling the camera sensing device to move from each of the initial detection positions along the positive direction of the horizontal line, and recording the position to obtain each first detection position when the camera sensing device acquires a target blurred image including a target virtual image;

[0033] A second position recording module, used for controlling the camera sensing device to move from each of the initial detection positions in the opposite direction of the horizontal line, and recording the position to obtain each second detection position when the camera sensing device obtains a target blurred image including a target virtual image;

[0034] The recording data calculation module is used to obtain a target virtual image distance value based on each of the first detection positions, each of the second detection positions and a preset target distance function.

[0035] In addition, to achieve the above-mentioned purpose, the present invention also provides a VR device, which includes: a memory, a processor, and a virtual image distance detection program stored in the memory and executable on the processor, and the virtual image distance detection program implements the steps of the virtual image distance detection method as described above when executed by the processor.

[0036] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, on which a virtual image distance detection program is stored, and when the virtual image distance detection program is executed by a processor, the steps of the virtual image distance detection method as described above are implemented.

[0037] The virtual image distance detection method, device, terminal device and computer storage medium provided by the embodiments of the present invention are applied to VR devices, wherein the camera sensing device, display device and camera device of the VR device are arranged on the same horizontal line, and the initial detection positions corresponding to the focal length values ​​of the camera sensing device and the camera device are obtained; the camera sensing device is controlled to move along the positive direction of the horizontal line from each initial detection position, and when the camera sensing device obtains a target blurred image containing a target virtual image, the position is recorded to obtain each first detection position; the camera sensing device is controlled to move along the reverse direction of the horizontal line from each initial detection position, and when the camera sensing device obtains a target blurred image containing a target virtual image, the position is recorded to obtain each second detection position; and the target virtual image distance value is obtained based on each first detection position, each second detection position and a preset target distance function.

[0038] In this embodiment, during operation, the VR device first sets the focal length value of the camera device, and adjusts the built-in camera sensing device to an initial detection position where a clear image of a target virtual image can be obtained under the focal length value. After that, the VR device controls the camera sensing device to slowly move from the initial detection position along the positive direction of the horizontal line formed by the camera sensing device, the display device and the camera device, and obtains the digital image signal of the target image output by the camera sensing device during the movement. The VR device determines the position of the camera sensing device when obtaining the target blurred image according to each digital image signal data, and marks the position as the first detection position. After that, the VR device controls the camera sensing device to slowly move from the initial detection position along the reverse direction of the horizontal line formed by the camera sensing device, the display device and the camera device, and obtains the digital image signal of the target image output by the camera sensing device during the movement. The VR device determines the position of the camera sensing device when obtaining the target blurred image according to each digital image signal data, and marks the position as the second detection position. Finally, the VR device inputs the first detection position and the second detection position into a preset target distance function to obtain the above-mentioned target virtual image distance value.

[0039] In this way, the present invention adjusts the position of the camera sensing device in the VR device to determine the range in which the camera sensing device can obtain a clear image of the target virtual image, and determines the virtual image distance value based on the range and a preset target distance function, thereby achieving the technical effect of accurately calculating the virtual image distance data to reduce the blur of the target image when the VR device is playing the target image. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 It is a structural diagram of a VR device in a hardware operating environment involved in an embodiment of the present invention;

[0041] Figure 2 It is a schematic flow chart of a first embodiment of a method for detecting virtual image distance according to the present invention;

[0042] Figure 3 It is a schematic flow chart of a second embodiment of a method for detecting virtual image distance according to the present invention;

[0043] Figure 4 Schematic diagram of the principle involved in the first embodiment of the virtual image distance detection method of the present invention;

[0044] Figure 5 Schematic diagram of the principle involved in the second embodiment of the virtual image distance detection method of the present invention;

[0045] Figure 6 Schematic diagram of the principle involved in the third embodiment of the method for detecting virtual image distance of the present invention;

[0046] Figure 7Schematic diagram of functional modules involved in an embodiment of a method for detecting virtual image distance of the present invention.

[0047] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0048] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0049] Please refer to Figure 1 , Figure 1 A schematic diagram of the VR device structure of the hardware operating environment involved in the embodiment of the present invention.

[0050] The VR device of the embodiment of the present invention may be a mobile VR head-mounted device or a fixed VR head-mounted device, and the mobile VR head-mounted device or the fixed VR head-mounted device should be configured with a camera sensing device, a display device and a camera device on the same horizontal line.

[0051] like Figure 1 As shown, the VR device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (WIreless-FIdelity, WI-FI) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM) memory, or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0052] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation of the VR device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0053] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating system, a data storage module, a network communication module, a user interface module and a virtual image distance detection program.

[0054] exist Figure 1 In the VR device shown, the network interface 1004 is mainly used for data communication with other devices; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the VR device of the present invention can be set in the VR device, and the VR device calls the virtual image distance detection program stored in the memory 1005 through the processor 1001, and executes the virtual image distance detection method provided by the embodiment of the present invention.

[0055] Based on the above terminal device, various embodiments of the virtual image distance detection method of the present invention are provided.

[0056] Please refer to Figure 2 , Figure 2 The figure is a flow chart of a first embodiment of a method for detecting virtual image distance according to the present invention.

[0057] It should be understood that although a logical sequence is shown in the flowchart, in some cases, the virtual image distance detection method of the present invention may also execute the steps shown or described in a sequence different from that shown here.

[0058] The virtual image distance detection method of the embodiment of the present invention is applied to a VR device, wherein a camera sensing device, a display device, and a camera device of the VR device are arranged on the same horizontal line. The virtual image distance detection method of the present invention may include:

[0059] Step S10: obtaining initial detection positions corresponding to respective focal length values ​​of the camera sensing device and the camera device;

[0060] In this embodiment, during operation, the VR device first sets the focal length value of the camera device in the VR device, and controls the camera sensing device to move to a position where a clear image including a target virtual image can be obtained through the camera device. The VR device marks the position as the initial detection position. In this way, the VR device adjusts the camera device to different focal length values, and records the initial detection positions corresponding to each focal length value in turn.

[0061] Exemplarily, for example, during the operation of the VR device, the main control system integrated on the main control chip in the VR device first adjusts the focal length value of each camera group in the camera device, and the VR device controls the movement of a Cmos (Complementary Metal Oxide Semiconductor) image sensor configured in the VR device according to the focal length value, and detects the digital image signal of the target virtual image output by the Cmos image sensor during the movement of the Cmos image sensor. The VR device moves the Cmos image sensor to a position where a clear image of the target virtual image can be obtained based on each of the digital image signals, and marks the position as an initial detection position. Thereafter, the VR device adjusts the focal length value of the camera device again and repeats the above operations to obtain the initial detection positions corresponding to each focal length value.

[0062] Step S20: controlling the camera sensing device to move from each of the initial detection positions along the positive direction of the horizontal line, and recording the position when the camera sensing device acquires a target blurred image including a target virtual image to obtain each first detection position;

[0063] In this embodiment, the VR device controls the camera sensing device to move from the above-mentioned initial detection positions along the positive direction of the horizontal line formed by the camera sensing device, the display device and the camera device, and detects the digital image signal containing the target image output by the camera sensing device during the movement of the camera sensing device. The VR device inputs each of the digital image signals into a signal processing device built into the VR device, and the signal processing device determines the position where the camera sensing device obtains the target blurred image containing the target virtual image based on each of the digital image signals, and marks the position as the first detection position.

[0064] For example, see Figure 4 , Figure 4The schematic diagram of the principle involved in the first embodiment of the virtual image distance detection method of the present invention is that the VR device controls the Cmos image sensor through the main control system to move from the initial detection positions along the positive direction of the horizontal line formed by the Cmos image sensor, the display device and the cameras according to the speed threshold preset by the developer. At the same time, the main control system controls the Cmos image sensor to output a digital image signal containing a target virtual image to a signal processing device built into the VR device at a predetermined frequency. The signal processing device determines whether the image currently received by the Cmos image sensor is a blurred image according to each of the digital image signals. When the signal processing device detects that the digital image signal changes from a clear image to a blurred image, the VR device marks the current blurred image as a first blurred image. At the same time, the VR device records the current position of the Cmos image sensor as the first detection position, and marks the first detection position as Da1, Da2, ..., Dai according to the focal length value corresponding to the first detection position.

[0065] Step S30: controlling the camera sensing device to move from each of the initial detection positions in the opposite direction of the horizontal line, and recording the position when the camera sensing device obtains a target blurred image including a target virtual image to obtain each second detection position;

[0066] In this embodiment, the VR device controls the camera sensing device to move from the above-mentioned initial detection positions in the opposite direction of the horizontal line formed by the camera sensing device, the display device and the camera device, and detects the digital image signal containing the target image output by the camera sensing device during the movement of the camera sensing device. The VR device inputs each of the digital image signals into a signal processing device built into the VR device, and the signal processing device determines the position where the camera sensing device obtains the target blurred image containing the target virtual image based on each of the digital image signals, and marks the position as the second detection position.

[0067] For example, the VR device controls the Cmos image sensor through the main control system from each of the initial detection positions along the following lines: Figure 4The horizontal line formed by the Cmos image sensor, the display device and the cameras shown in the figure moves in the opposite direction according to the speed threshold preset by the developer. At the same time, the main control system controls the Cmos image sensor to output a digital image signal containing a target virtual image to the signal processing device built into the VR device at a predetermined frequency. The signal processing device determines whether the image currently received by the Cmos image sensor is a blurred image according to each of the digital image signals. When the signal processing device detects that the digital image signal changes from a clear image to a blurred image, the VR device marks the current blurred image as a second blurred image. At the same time, the VR device records the current position of the Cmos image sensor as a second detection position, and marks the second detection position as Db1, Db2, ..., Dbi according to the focal length value corresponding to the second detection position.

[0068] Step S40: obtaining a target virtual image distance value based on each of the first detection positions, each of the second detection positions and a preset target distance function;

[0069] In this embodiment, the VR device inputs the acquired first detection positions and second detection positions into a distance calculation device, and the distance calculation device calls a preset target distance function to calculate the target virtual image distance value of the target virtual image to the lens in the display device based on each of the first detection positions and each of the second detection positions.

[0070] Exemplarily, for example, the VR device inputs the acquired first detection positions Da1, Da2, ..., Dai and the acquired second detection positions Db1, Db2, ..., Dbi into a distance calculation device built into the VR device, and the distance calculation device calculates the first detection distance values ​​La1, La2, ..., Lai corresponding to the first detection positions Da1, Da2, ..., Dai, the second detection distance values ​​Lb1, Lb2, ..., Lbi corresponding to the second detection positions Db1, Db2, ..., Dbi, and a preset target distance function L fi =fun(Da, Db) calculates the target virtual image distance value L from the above target virtual image to the lens in the display device.

[0071] Furthermore, in a feasible embodiment, the above step S40 may specifically include:

[0072] Step S401: obtaining first detection distance values ​​between the camera sensing device and the camera device based on the first detection positions;

[0073] In this embodiment, the VR device inputs the acquired first detection positions into a distance calculation device built into the VR device, and the distance calculation device calculates the first detection distance value corresponding to each first detection position based on the position of each first detection position and the position of the above-mentioned camera device.

[0074] Step S402: obtaining second detection distance values ​​between the camera sensing device and the camera device based on the second detection positions;

[0075] In this embodiment, the VR device inputs each of the acquired second detection positions into a distance calculation device built into the VR device, and the distance calculation device calculates the second detection distance value corresponding to each of the second detection positions based on the position of each of the second detection positions and the position of the above-mentioned camera device.

[0076] Step S403: obtaining the target virtual image distance value according to each of the first detection distance values, each of the second detection distance values ​​and the target distance function;

[0077] In this embodiment, the VR device reads a preset target distance function and inputs the target distance function into the above-mentioned distance calculation device, and the distance calculation device inputs the above-mentioned first detection distance values ​​and second detection distance values ​​into the target distance function, and the target distance function outputs target distance values ​​corresponding to each of the first detection distance values ​​and each of the second detection distance values. Thereafter, the distance calculation device calculates the target virtual image distance value based on each of the target distance values ​​and the first subject distance value between the above-mentioned display device and the camera device.

[0078] Exemplarily, for example, the VR device inputs the acquired first detection positions Da1, Da2, ..., Dai and the acquired second detection positions Db1, Db2, ..., Dbi into a distance calculation device built into the VR device, and the distance calculation device calculates the first detection distance values ​​La1, La2, ..., Lai between the Cmos image sensor and the camera device corresponding to each of the first detection positions Da1, Da2, ..., Dai based on the first detection positions Da1, Da2, ..., Dai. At the same time, the distance calculation device calculates the second detection distance values ​​Lb1, Lb2, ..., Lbi between the Cmos image sensor and the camera device corresponding to each of the second detection positions Db1, Db2, ..., Dbi based on the second detection positions Db1, Db2, ..., Dbi. Afterwards, the VR device reads the storage device to obtain a preset target distance function L fi = fun(Da, Db), and the target distance function L fi= fun(Da, Db) is input to the distance calculation device, and the calculation device uses the target distance function L fi =fun(Da, Db) obtains the target distance values ​​corresponding to each of the first detection distance values ​​La1, La2, ..., Lai, and each of the second detection distance values ​​Lb1, Lb2, ..., Lbi. Then, the distance calculation device calculates the target virtual image distance value based on each of the target distance values ​​and the first subject distance value between the above-mentioned display device and the camera device.

[0079] Furthermore, in a feasible embodiment, the above step S403 may specifically include:

[0080] Step S4031: constructing a test data group corresponding to each focal length value based on each of the first detection distance values ​​and each of the second detection distance values, and inputting each of the test data groups into the target distance function, so that the target distance function outputs the distance value between the target virtual image and the camera device corresponding to each of the test data groups;

[0081] Step S4032: Calculating the target virtual image distance value based on each of the distance values ​​and a first object distance value, wherein the first object distance value is a distance value between the display device and the camera device;

[0082] Exemplarily, for example, the VR device inputs the acquired first detection distance values ​​La1, La2, ..., Lai, and the acquired second detection distance values ​​Lb1, Lb2, ..., Lbi into a data processing device in the VR device, and the data processing device determines the target first detection distance value La1 and the target second detection distance value Lb1 corresponding to the same focal length value from each of the first detection distance values ​​and each of the second detection distance values, and forms the target first detection distance value La1 and the target second detection distance value Lb1 into a data group to be tested [La1, Lb1]. Afterwards, the data processing device forms the data group to be tested [La1, Lb1], [La2, Lb2], ..., [Lai, Lbi] are respectively input into the above-mentioned distance calculation device, and the distance calculation device inputs each of the test data groups into the above-mentioned target distance function to obtain the target distance value Li corresponding to each of the test data groups. After that, the distance calculation device calculates the first object distance value between the optical lens in the above-mentioned display device and the camera device. At the same time, the distance calculation device calculates the average value of each of the target distance values ​​Li to obtain an average target distance value. Finally, the distance calculation device subtracts the first object distance value from the calculated average target distance value to obtain a target virtual image distance value between the target virtual image and the optical lens in the display device.

[0083] In this embodiment, first, during operation, the VR device sets the focal length value of the camera device in the VR device, and controls the camera sensing device to move to a position where a clear image including a target virtual image can be obtained through the camera device. The VR device marks the position as an initial detection position. In this way, the VR device adjusts the camera device to different focal length values, and sequentially records the initial detection positions corresponding to each focal length value. Then, the VR device controls the camera sensing device to move from each initial detection position along the positive direction of a horizontal line formed by the camera sensing device, the display device, and the camera device, and detects a digital image signal including a target image output by the camera sensing device during the movement of the camera sensing device. The VR device inputs each of the digital image signals into a signal processing device built into the VR device, and the signal processing device determines, based on each of the digital image signals, that the camera sensing device obtains a target blurred image including a target virtual image. The VR device controls the camera sensing device to move from each of the initial detection positions in the opposite direction of a horizontal line formed by the camera sensing device, the display device and the camera device, and detects a digital image signal output by the camera sensing device containing a target image during the movement of the camera sensing device. The VR device inputs each of the digital image signals into a signal processing device built into the VR device, and the signal processing device determines, based on each of the digital image signals, a position at which the camera sensing device obtains a target blurred image containing a target virtual image, and marks the position as a second detection position. Finally, the VR device inputs each of the first detection positions and each of the second detection positions obtained into a distance calculation device, and the distance calculation device calls a preset target distance function to calculate, based on each of the first detection positions and each of the second detection positions, a target virtual image distance value from the target virtual image to the lens in the display device.

[0084] In this way, the present invention adjusts the position of the camera sensing device in the VR device to determine the range in which the camera sensing device can obtain a clear image of the target virtual image, and determines the virtual image distance value based on the range and a preset target distance function, thereby achieving the technical effect of accurately calculating the virtual image distance data to reduce the blur of the target image when the VR device is playing the target image.

[0085] Furthermore, based on the first embodiment of the method for detecting the virtual image distance of the present invention, a second embodiment of the method for detecting the virtual image distance of the present invention is proposed herein.

[0086] Please refer to Figure 3 , Figure 3 FIG. 4 is a flow chart of a second embodiment of a method for detecting virtual image distance according to the present invention.

[0087] based on Figure 2 In the first embodiment of the virtual image distance detection method of the present invention shown in FIG. 1 , before the above step S10, the virtual image distance detection method of the present invention may further include:

[0088] Step A10: adjusting the calibration device to each preset marking position, and at the same time, adjusting the camera sensing device to an initial calibration position corresponding to each focal length value;

[0089] In this embodiment, the VR device first sets the focal length value of the camera device in the VR device, and controls the calibration device to move to a preset marking position. At the same time, the VR device controls the camera sensing device to move to a position where a clear image including a virtual image of the calibration device can be obtained through the camera device. The VR device marks the position as the initial calibration position. In this way, the VR device adjusts the camera device to different focal length values, and adjusts the calibration device to different marking positions to sequentially record the initial calibration positions that correspond to each focal length value and each marking position.

[0090] Exemplarily, for example, the VR device first adjusts the focal length value of each camera group in the camera device and moves the calibration plate to the mark position preset by the developer through the control system system integrated on the main control chip. After that, the VR device controls the above-mentioned Cmos image sensor to move according to the focal length value and the mark position, and detects the digital image signal output by the Cmos image sensor including the virtual image of the calibration plate during the movement of the Cmos image sensor. Based on each of the digital image signals, the VR device moves the Cmos image sensor to a position where a clear image of the target calibration plate can be obtained, and marks the position as the initial calibration position. After that, the VR device adjusts the focal length value of the camera device and the mark position of the calibration plate again and repeats the above operations to obtain the initial calibration position corresponding to each focal length value and each mark position.

[0091] Step A20: controlling the camera sensing device to move from each of the initial calibration positions along the positive direction of the horizontal line, and recording the position when the camera sensing device acquires a target blurred image including a virtual image of the target calibration device to obtain each first calibration position;

[0092] In this embodiment, the VR device controls the camera sensing device to move from the above-mentioned initial calibration positions along the positive direction of the horizontal line formed by the camera sensing device, the calibration device and the camera device, and detects the digital image signal output by the camera sensing device including the virtual image of the target calibration device during the movement of the camera sensing device. The VR device inputs each of the digital image signals into a signal processing device built into the VR device, and the signal processing device determines the position where the camera sensing device obtains the target blurred image including the virtual image of the target calibration device based on each of the digital image signals, and marks the position as the first calibration position.

[0093] For example, see Figure 5 , Figure 5 The schematic diagram of the principle involved in the second embodiment of the virtual image distance detection method of the present invention is that the VR device controls the Cmos image sensor through the main control system to move from the initial calibration positions along the positive direction of the horizontal line formed by the Cmos image sensor, the calibration plate and the cameras according to the speed threshold preset by the developer. At the same time, the main control system controls the Cmos image sensor to output a digital image signal containing the virtual image of the target calibration plate to the signal processing device built into the VR device at a predetermined frequency. The signal processing device determines whether the image currently received by the Cmos image sensor is a blurred image according to each of the digital image signals. When the signal processing device detects that the digital image signal changes from a clear image to a blurred image, the VR device marks the current blurred image as a first blurred image. At the same time, the VR device records the current position of the Cmos image sensor as the first calibration position, and marks the first calibration position as Ba1, Ba2, ..., Bai according to the focal length value and the mark position corresponding to the first calibration position.

[0094] Step A30: controlling the camera sensing device to move from each of the initial calibration positions in the opposite direction of the horizontal line, and recording the position when the camera sensing device acquires a target blurred image including a virtual image of the target calibration device to obtain each second calibration position;

[0095] In this embodiment, the VR device controls the camera sensing device to move from the above-mentioned initial calibration positions in the opposite direction of the horizontal line formed by the camera sensing device, the calibration device and the camera device, and detects the digital image signal output by the camera sensing device including the virtual image of the target calibration device during the movement of the camera sensing device. The VR device inputs each of the digital image signals into a signal processing device built into the VR device, and the signal processing device determines the position where the camera sensing device obtains the target blurred image including the virtual image of the target calibration device based on each of the digital image signals, and marks the position as the second calibration position.

[0096] For example, the VR device controls the Cmos image sensor through the main control system from each of the initial calibration positions along the following lines: Figure 5 The VR device is shown as moving in the opposite direction of the horizontal line formed by the Cmos image sensor, the calibration plate and the cameras according to the speed threshold preset by the developer. At the same time, the main control system controls the Cmos image sensor to output a digital image signal containing a virtual image of the target calibration plate to the signal processing device built into the VR device at a predetermined frequency. The signal processing device determines whether the image currently received by the Cmos image sensor is a blurred image according to each of the digital image signals. When the signal processing device detects that the digital image signal changes from a clear image to a blurred image, the VR device marks the current blurred image as a second blurred image. At the same time, the VR device records the current position of the Cmos image sensor as the second calibration position, and marks the second calibration position as Ca1, Ca2, ..., Cai according to the corresponding focal length value and mark position of the second calibration position.

[0097] Step A40: Calculating the target distance function based on each of the first calibrated positions and each of the second calibrated positions;

[0098] In this embodiment, the VR device inputs the acquired first calibration positions and the acquired second calibration positions into a model calculation device, and the model calculation device calculates the target distance function based on the first calibration positions, the second calibration positions and the acquired second subject distance value.

[0099] Exemplarily, for example, the VR device obtains the first calibration positions as Ba1, Ba2, ..., Bai, the second calibration positions as Ca1, Ca2, ..., Cai, and the second object distance value to the model calculation device, and the model calculation device calculates the objective function L based on the first calibration positions as Ba1, Ba2, ..., Bai, the second calibration positions as Ca1, Ca2, ..., Cai, and the second object distance value. fi = fun(Da, Db)

[0100] Furthermore, in a feasible embodiment, before the above step A10, the virtual image distance detection method of the present invention may further include:

[0101] Step B10: Calculating the second object distance values ​​between the calibration device and the camera device according to the mark positions.

[0102] In this embodiment, before calculating the above-mentioned target distance function, the VR device first controls the calibration device through the main control chip and moves the calibration device to the preset marking positions. At the same time, the VR device inputs the current marking position of the calibration device into the distance calculation device, and the distance calculation device obtains the second object distance value between the calibration device and the camera device based on the marking position.

[0103] For example, when the VR device obtains the target distance function L fi =fun(Da, Db), the main control system on the main control chip first controls the calibration plate to move at a preset speed, and moves the calibration plate to a mark position preset by a developer. After that, the VR device inputs the mark position and the position of the camera group into a distance calculation device, and the distance calculation device calculates a second object distance value between the calibration plate and the camera group based on the mark position and the position of the camera group.

[0104] Furthermore, in a feasible embodiment, the above step A40 may specifically include:

[0105] Step A401: obtaining first calibrated distance values ​​between the camera sensing device and the camera device based on the first calibrated positions;

[0106] In this embodiment, the VR device inputs the acquired first calibration positions into a model calculation device built into the VR device, and the model calculation device calculates the first calibration distance values ​​corresponding to each first calibration position based on the first calibration positions and the position of the camera device.

[0107] Step A402: obtaining second calibrated distance values ​​between the camera sensing device and the camera device based on the second calibrated positions;

[0108] In this embodiment, the VR device inputs each of the acquired second calibration positions into a model calculation device built into the VR device, and the model calculation device calculates the second calibration distance value corresponding to each of the second calibration positions based on the position of each of the second calibration positions and the position of the above-mentioned camera device.

[0109] Step A403: performing a three-dimensional fitting operation on each of the first calibrated distance values, each of the second calibrated distance values, and each of the second object distance values ​​to obtain the target distance function;

[0110] In this embodiment, the VR device reads a preset three-dimensional fitting model and inputs the three-dimensional fitting model into the above-mentioned model calculation device, and the model calculation device inputs the above-mentioned first calibrated distance values, the above-mentioned second calibrated distance values ​​and the above-mentioned second subject distance values ​​into the three-dimensional fitting model, and the three-dimensional fitting model performs a three-dimensional fitting operation on each of the first calibrated distance values, each of the second calibrated distance values ​​and each of the second subject distance values ​​to obtain the above-mentioned target distance function.

[0111] Exemplarily, for example, the VR device inputs the first calibration positions Ba1, Ba2, ..., Bai, the second calibration positions Ca1, Ca2, ..., Cai and the second object distance values ​​obtained into the model calculation device built in the VR device, and the distance calculation device calculates the first calibration distance values ​​Lba1, Lba2, ..., Lbai between the Cmos image sensor and the camera device corresponding to the first calibration positions Ba1, Ba2, ..., Bai based on the first calibration positions Ba1, Ba2, ..., Bai. At the same time, the model calculation device calculates the first calibration distance values ​​Lba1, Lba2, ..., Lbai between the Cmos image sensor and the camera device based on the second calibration positions Ca1, Ca2, ... ., Cai calculates each second calibration distance value Lca1, Lca2, ..., Lcai between the Cmos image sensor and the camera device corresponding to each of the second calibration positions Ca1, Ca2, ..., Cai, and then the VR device reads the storage device to obtain a preset three-dimensional fitting model, and inputs the three-dimensional fitting model to the model calculation device, and the model calculation device inputs each of the first calibration distance values ​​Lba1, Lba2, ..., Lbai, each of the second calibration distance values ​​Lca1, Lca2, ..., Lcai and the above-mentioned second object distance values ​​into the three-dimensional fitting model to perform a three-dimensional fitting operation to obtain the above-mentioned target distance function L fi =fun(Da, Db).

[0112] Furthermore, in a feasible embodiment, before the above-mentioned A403, the virtual image distance detection method of the present invention may further include:

[0113] Step C10: filtering each of the first calibrated distance values ​​and each of the second calibrated distance values ​​based on each of the mark positions to obtain a first screening result, and at the same time, filtering each of the first calibrated distance values ​​and each of the second calibrated distance values ​​based on each of the focal length values ​​to obtain a second screening result;

[0114] Step C20: Obtain each data group to be fitted according to the first screening result and the second screening result; wherein the data group to be fitted includes: the first calibrated distance value, the second calibrated distance value corresponding to the first calibrated distance value, and the second subject distance value corresponding to the first calibrated distance value and the second calibrated distance value respectively.

[0115] Exemplarily, for example, the VR device inputs the acquired first calibrated distance values ​​and the second calibrated distance values ​​into the model training device, and the model training device first determines the first calibrated distance values ​​to be screened and the second calibrated distance values ​​to be screened corresponding to the same focal length value from each of the first calibrated distance values ​​and each of the second calibrated distance values. At the same time, the model training device combines each of the first calibrated distance values ​​to be screened and each of the second calibrated distance values ​​to be screened into a data group corresponding to each focal length value. Afterwards, the model training device further determines the target first calibrated distance value and the target second calibrated distance value corresponding to each of the above-mentioned marked positions in each of the data groups, and simultaneously reads the above-mentioned second subject distance value corresponding to each of the marked positions. Finally, the model training device combines the target first calibrated distance value, the target second calibrated distance value and the second subject distance value corresponding to the same focal length value and the same marked position to obtain the above-mentioned data groups to be fitted.

[0116] In this embodiment, first, the VR device first sets the focal length value of the camera device in the VR device, and controls the calibration device to move to a preset marking position. At the same time, the VR device controls the camera sensing device to move to a position where a clear image including a virtual image of the calibration device can be obtained through the camera device, and the VR device marks the position as the initial calibration position. In this way, the VR device adjusts the camera device to different focal length values, and adjusts the calibration device to different marking positions to sequentially record the initial calibration positions corresponding to each focal length value and each marking position. Then, the VR device controls the camera sensing device to move from the initial calibration positions along the positive direction of the horizontal line formed by the camera sensing device, the calibration device and the camera device, and detects the digital image signal output by the camera sensing device including the virtual image of the target calibration device during the movement of the camera sensing device. The VR device inputs each of the digital image signals into the signal processing device built into the VR device, and the signal processing device processes the initial calibration position based on each of the digital image signals. The VR device controls the camera sensing device to move from each of the initial calibration positions in the opposite direction of a horizontal line formed by the camera sensing device, the calibration device and the camera device, and detects a digital image signal output by the camera sensing device containing a virtual image of the target calibration device during the movement of the camera sensing device. The VR device inputs each of the digital image signals into a signal processing device built into the VR device, and the signal processing device determines the position at which the camera sensing device obtains a blurred target image containing a virtual image of the target calibration device based on each of the digital image signals, and marks the position as a second calibration position. Finally, the VR device inputs each of the first calibration positions and each of the second calibration positions obtained into a model calculation device, and the model calculation device calculates the target distance function based on each of the first calibration positions, each of the second calibration positions and the obtained second object distance value.

[0117] In this way, the second embodiment of the virtual image distance detection method of the present invention achieves the technical effect of constructing a target distance function by adjusting the calibration device to each mark position, controlling the movement of the camera sensing device to determine each first calibration distance value and each second calibration distance value, and combining each first calibration distance value and each second calibration distance value with the subject distance value. Based on this technical effect, the purpose of accurately calculating the virtual image distance data is achieved to reduce the blur of the target image when the VR device is playing the target image.

[0118] Furthermore, based on the second embodiment of the method for detecting the virtual image distance of the present invention, a third embodiment of the method for detecting the virtual image distance of the present invention is proposed herein.

[0119] Please refer to Figure 6 , Figure 6 It is a schematic diagram of the principle involved in the third embodiment of the virtual image distance detection method of the present invention.

[0120] In this embodiment, the VR device first adjusts the focal length value of each camera group in the camera device to f1 through the control system integrated on the main control chip, controls the calibration plate to move to the initial calibration position, and controls the Cmos image sensor to move to the preset detection position. After that, the VR device controls the calibration plate to move at the initial calibration position along the positive direction of the horizontal line formed by the Cmos image sensor, the calibration plate and each camera according to the speed value preset by the developer. During the movement of the calibration plate, the VR device controls the Cmos image sensor to output a digital image signal containing a virtual image of the target calibration plate to the signal processing device in the VR device at a preset frequency. When the signal processing device determines that the digital image signal is blurred based on each of the digital image signals, the position mark of the calibration plate is determined as the first calibration position Da1. In this way, the VR device obtains each first calibration position at each focal length value as Da1, Da2, ..., Dai, and based on each of the first calibration positions as Da1, Da2, ..., D ai obtains the first calibration distance values ​​La1, La2, ..., Lai, then the VR device controls the calibration plate to move at the initial calibration position in the opposite direction of the horizontal line formed by the Cmos image sensor, the calibration plate and the cameras according to the speed value preset by the developer. During the movement of the calibration plate, the VR device controls the Cmos image sensor to output a digital image signal containing a virtual image of the target calibration plate to the signal processing device in the VR device at a preset frequency. When the signal processing device determines that the digital image signal is blurred based on each digital image signal, the position mark of the calibration plate is determined as the second calibration position Db1. In this way, the VR device obtains the second calibration positions at each focal length value as Db1, Db2, ..., Dbi, and obtains the second calibration distance values ​​Lb1, Lb2, ..., Lbi based on the second calibration positions as Db1, Db2, ..., Dbi. In this way, the VR device obtains the second objective function [fi,Lai,Lbi]i=1:m.

[0121] Then, the VR device enters the virtual image distance test phase, and adjusts the focal length value of each camera group in the camera device to f1 through the control system integrated on the main control chip, controls the display device to move to the initial detection position, and controls the Cmos image sensor to move to the preset position. Based on the above first embodiment, it can be known that the distance from the target virtual image to the camera = the virtual image distance value + the object distance value. In this way, it can be determined that each first detection distance value La1, La2, ..., Lai < the distance from the virtual image to the camera < each second detection distance value Lb1, Lb2, ..., Lbi. Therefore, when the VR device adjusts the focal length value of each camera group in the camera device to f2, the second object distance value = the first object distance value + the position offset of the display device. After that, when the VR device adjusts the focal length value of each camera group in the camera device to f3 to fm, it can be determined:

[0122]

[0123]

[0124]

[0125] and In the interval [L a1 ,L b1 ]、[L a2 -ΔL2,L b2 -ΔL2], ..., [L am -ΔL m ,L bm -ΔL m ], so we can get the intersection of these intervals [La0, Lb0], and then get the virtual image distance value as: Finally, the VR device calculates the average value of each virtual image distance and obtains the target virtual image distance value as

[0126] In addition, the present invention also provides a virtual image distance detection device, which is applied to a VR device in which a camera sensing device, a display device and a camera device are arranged on the same horizontal line, please refer to Figure 7 , Figure 7 FIG. 1 is a schematic diagram of functional modules involved in an embodiment of a method for detecting virtual image distance according to the present invention. Figure 7 As shown, the virtual image distance detection device of the present invention comprises:

[0127] An initial position adjustment module 10, used to obtain initial detection positions corresponding to respective focal length values ​​of the camera sensing device and the camera device;

[0128] A first position recording module 20, used to control the camera sensing device to move from each of the initial detection positions along the positive direction of the horizontal line, and to record the position when the camera sensing device obtains a target blurred image including a target virtual image to obtain each first detection position;

[0129] A second position recording module 30, used for controlling the camera sensing device to move from each of the initial detection positions in the opposite direction of the horizontal line, and recording the position to obtain each second detection position when the camera sensing device obtains a target blurred image including a target virtual image;

[0130] The recorded data calculation module 40 is used to obtain a target virtual image distance value based on each of the first detection positions, each of the second detection positions and a preset target distance function.

[0131] Furthermore, the recorded data calculation module 40 includes:

[0132] A first distance calculation unit, configured to obtain first detection distance values ​​between the camera sensing device and the camera device based on the first detection positions;

[0133] A second distance calculation unit, configured to obtain second detection distance values ​​between the camera sensing device and the camera device based on the second detection positions;

[0134] A target calculation unit is used to obtain the target virtual image distance value according to each of the first detection distance values, each of the second detection distance values ​​and the target distance function.

[0135] Furthermore, the target computing unit comprises:

[0136] a data group construction subunit, for constructing a data group to be tested corresponding to each of the focal length values ​​based on each of the first detection distance values ​​and each of the second detection distance values, and inputting each of the data groups to be tested into the target distance function, so that the target distance function outputs a distance value between the target virtual image and the camera device corresponding to each of the data groups to be tested;

[0137] The target virtual image distance calculation subunit is used to calculate the target virtual image distance value based on each of the distance values ​​and a first object distance value, wherein the first object distance value is the distance value between the display device and the camera device.

[0138] Furthermore, the recorded data calculation module 40 further includes:

[0139] A calibration setting unit, used to adjust the calibration device to each preset marking position, and at the same time, adjust the camera sensing device to an initial calibration position corresponding to each of the focal length values;

[0140] A first calibration determination unit, used for controlling the camera sensing device to move from each of the initial calibration positions along the positive direction of the horizontal line, and recording the position to obtain each first calibration position when the camera sensing device acquires a target blurred image including a virtual image of the target calibration device;

[0141] A second calibration determination unit is used to control the camera sensing device to move from each of the initial calibration positions in the opposite direction of the horizontal line, and to record the position when the camera sensing device obtains a target blurred image including a virtual image of the target calibration device to obtain each second calibration position;

[0142] a function calculation unit, configured to calculate the target distance function based on each of the first calibrated positions and each of the second calibrated positions;

[0143] Furthermore, the recorded data calculation module 40 further includes:

[0144] The object distance determination unit is used to calculate each second object distance value between the calibration device and the camera device according to each of the mark positions.

[0145] Furthermore, the function computing unit includes:

[0146] A first calibration distance determination subunit, configured to obtain first calibration distance values ​​between the camera sensing device and the camera device based on the first calibration positions;

[0147] A second calibration distance determination subunit, configured to obtain second calibration distance values ​​between the camera sensing device and the camera device based on the second calibration positions;

[0148] The three-dimensional fitting subunit is used to perform a three-dimensional fitting operation on each of the first calibrated distance values, each of the second calibrated distance values, and each of the second object distance values ​​to obtain the target distance function.

[0149] Furthermore, the function computing unit further includes:

[0150] a data screening subunit, configured to screen each of the first calibrated distance values ​​and each of the second calibrated distance values ​​based on each of the mark positions to obtain a first screening result, and at the same time, screen each of the first calibrated distance values ​​and each of the second calibrated distance values ​​based on each of the focal length values ​​to obtain a second screening result;

[0151] A data combination subunit is used to obtain each data group to be fitted according to the first screening result and the second screening result; wherein the data group to be fitted includes: the first calibrated distance value, the second calibrated distance value corresponding to the first calibrated distance value, and the second subject distance value corresponding to the first calibrated distance value and the second calibrated distance value respectively.

[0152] In addition, the present invention also provides a VR device, on which there is a virtual image distance detection program that can be run on a processor, and when the VR device executes the virtual image distance detection program, the steps of the virtual image distance detection method described in any of the above embodiments are implemented.

[0153] The specific embodiments of the VR device of the present invention are basically the same as the embodiments of the above-mentioned virtual image distance detection method, and will not be described in detail here.

[0154] In addition, the present invention also provides a computer-readable storage medium, on which a virtual image distance detection program is stored. When the virtual image distance detection program is executed by a processor, the steps of the virtual image distance detection method described in any of the above embodiments are implemented.

[0155] The specific embodiments of the computer-readable storage medium of the present invention are substantially the same as the embodiments of the virtual image distance detection method described above, and are not described in detail herein.

[0156] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0157] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0158] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM / RAM, disk, optical disk) as described above, including a number of instructions for a terminal device (which can be a mobile VR head-mounted device or a fixed VR head-mounted device, and the mobile VR head-mounted device or the fixed VR head-mounted device should be equipped with a camera sensing device, a display device and a camera device on the same horizontal line) to execute the methods described in each embodiment of the present invention.

[0159] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A method for detecting virtual image distance, characterized in that: The virtual image distance detection method is applied to a VR device, wherein a camera sensing device, a display device and a camera device of the VR device are arranged on the same horizontal line, and the VR device is further provided with a calibration device, and the calibration device is arranged on the horizontal line. The virtual image distance detection method comprises the following steps: Adjusting the calibration device to each preset marking position, and at the same time, adjusting the camera sensing device to an initial calibration position corresponding to each focal length value; Controlling the camera sensing device to move from each of the initial calibration positions along the positive direction of the horizontal line, and recording the position when the camera sensing device acquires a target blurred image including a virtual image of the target calibration device to obtain each first calibration position; Controlling the camera sensing device to move from each of the initial calibration positions in the opposite direction of the horizontal line, and recording the position when the camera sensing device acquires a target blurred image including a virtual image of the target calibration device to obtain each second calibration position; Calculating a target distance function based on each of the first calibrated positions and each of the second calibrated positions; Obtaining initial detection positions corresponding to respective focal length values ​​of the camera sensing device and the camera device; Controlling the camera sensing device to move from each of the initial detection positions along the positive direction of the horizontal line, and recording the position when the camera sensing device acquires a target blurred image including a target virtual image to obtain each first detection position; Controlling the camera sensing device to move from each of the initial detection positions in the opposite direction of the horizontal line, and recording the position when the camera sensing device acquires a target blurred image including a target virtual image to obtain each second detection position; A target virtual image distance value is obtained based on each of the first detection positions, each of the second detection positions and a preset target distance function.

2. The method for detecting virtual image distance according to claim 1, wherein: The step of obtaining a target virtual image distance value based on each of the first detection positions, each of the second detection positions and a preset target distance function comprises: Obtaining first detection distance values ​​between the camera sensing device and the camera device based on the first detection positions; Obtaining second detection distance values ​​between the camera sensing device and the camera device based on the second detection positions; The target virtual image distance value is obtained according to each of the first detection distance values, each of the second detection distance values ​​and the target distance function.

3. The method for detecting virtual image distance according to claim 2, wherein: The step of obtaining the target virtual image distance value according to each of the first detection distance values, each of the second detection distance values ​​and the target distance function comprises: Based on each of the first detection distance values ​​and each of the second detection distance values, a test data group corresponding to each of the focal length values ​​is constructed, and each of the test data groups is input into the target distance function, and the target distance function outputs the distance value between the target virtual image and the camera device corresponding to each of the test data groups; The target virtual image distance value is calculated based on each of the distance values ​​and a first object distance value, wherein the first object distance value is a distance value between the display device and the camera device.

4. The method for detecting virtual image distance according to claim 1, wherein: Before the step of adjusting the camera sensing device to an initial calibration position corresponding to each of the focal length values, the method further includes: The second object distance values ​​between the calibration device and the camera device are calculated according to the mark positions.

5. The method for detecting virtual image distance according to claim 4, wherein: The step of calculating the target distance function based on each of the first calibrated positions and each of the second calibrated positions comprises: Obtaining first calibrated distance values ​​between the camera sensing device and the camera device based on the first calibrated positions; Obtaining second calibrated distance values ​​between the camera sensing device and the camera device based on the second calibrated positions; A three-dimensional fitting operation is performed on each of the first calibrated distance values, each of the second calibrated distance values, and each of the second object distance values ​​to obtain the target distance function.

6. The method for detecting virtual image distance according to claim 5, wherein: Before the step of performing a three-dimensional fitting operation on each of the first calibrated distance values, each of the second calibrated distance values, and each of the second object distance values ​​to obtain the target distance function, the method further includes: The first calibrated distance values ​​and the second calibrated distance values ​​are screened based on the mark positions to obtain a first screening result, and at the same time, the first calibrated distance values ​​and the second calibrated distance values ​​are screened based on the focal length values ​​to obtain a second screening result; Each data group to be fitted is obtained according to the first screening result and the second screening result; wherein the data group to be fitted includes: the first calibrated distance value, the second calibrated distance value corresponding to the first calibrated distance value, and the second subject distance value corresponding to the first calibrated distance value and the second calibrated distance value respectively.

7. A virtual image distance detection device, characterized in that: The virtual image distance detection device is applied to a VR device, wherein a camera sensing device, a display device and a camera device of the VR device are arranged on the same horizontal line, and the VR device is further provided with a calibration device, and the calibration device is arranged on the horizontal line, and the device comprises: An initial position adjustment module, used to adjust the calibration device to each preset marking position, and at the same time, adjust the camera sensing device to an initial calibration position corresponding to each focal length value; Controlling the camera sensing device to move from each of the initial calibration positions along the positive direction of the horizontal line, and recording the position when the camera sensing device acquires a target blurred image including a virtual image of the target calibration device to obtain each first calibration position; Controlling the camera sensing device to move from each of the initial calibration positions in the opposite direction of the horizontal line, and recording the position when the camera sensing device acquires a target blurred image including a virtual image of the target calibration device to obtain each second calibration position; Calculating a target distance function based on each of the first calibrated positions and each of the second calibrated positions; Obtaining initial detection positions corresponding to respective focal length values ​​of the camera sensing device and the camera device; A first position recording module, used for controlling the camera sensing device to move from each of the initial detection positions along the positive direction of the horizontal line, and recording the position to obtain each first detection position when the camera sensing device acquires a target blurred image including a target virtual image; A second position recording module, used for controlling the camera sensing device to move from each of the initial detection positions in the opposite direction of the horizontal line, and recording the position to obtain each second detection position when the camera sensing device obtains a target blurred image including a target virtual image; The recording data calculation module is used to obtain a target virtual image distance value based on each of the first detection positions, each of the second detection positions and a preset target distance function.

8. A VR device, characterized in that: The VR device includes: a memory, a processor, and a virtual image distance detection program stored in the memory and executable on the processor. When the virtual image distance detection program is executed by the processor, the steps of the virtual image distance detection method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a virtual image distance detection program, and when the virtual image distance detection program is executed by a processor, the steps of the virtual image distance detection method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Virtual image distance detection tool, calibration method thereof and virtual image distance detection method

    CN112326205A