CN108519215B - Pupil distance adaptability test system and method and test host - Google Patents

Pupil distance adaptability test system and method and test host Download PDF

Info

Publication number
CN108519215B
CN108519215B CN201810262563.6A CN201810262563A CN108519215B CN 108519215 B CN108519215 B CN 108519215B CN 201810262563 A CN201810262563 A CN 201810262563A CN 108519215 B CN108519215 B CN 108519215B
Authority
CN
China
Prior art keywords
test
camera
dimensional coordinates
distance
points
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.)
Active
Application number
CN201810262563.6A
Other languages
Chinese (zh)
Other versions
CN108519215A (en
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.)
Huaqin Technology Co Ltd
Original Assignee
Huaqin Technology 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 Huaqin Technology Co Ltd filed Critical Huaqin Technology Co Ltd
Priority to CN201810262563.6A priority Critical patent/CN108519215B/en
Publication of CN108519215A publication Critical patent/CN108519215A/en
Application granted granted Critical
Publication of CN108519215B publication Critical patent/CN108519215B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01MTESTING STATIC OR DYNAMIC BALANCE OF MACHINES OR STRUCTURES; TESTING OF STRUCTURES OR APPARATUS, NOT OTHERWISE PROVIDED FOR
    • G01M11/00Testing of optical apparatus; Testing structures by optical methods not otherwise provided for

Landscapes

  • Chemical & Material Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Eye Examination Apparatus (AREA)

Abstract

The embodiment of the invention relates to the technical field of testing, and discloses a pupil distance adaptability testing system and method and a testing host. The pupil distance adaptability test system includes: the system comprises a first camera, a second camera and a test host; the test host is used for controlling the equipment to be tested to display a preset test pattern; capturing a test pattern through a first camera and a second camera which are positioned at the observation positions of the equipment to be tested respectively; respectively acquiring two-dimensional coordinates of each test point from the test patterns captured by the first camera and the second camera; calculating the three-dimensional coordinates of each test point according to the two-dimensional coordinates, the translation vectors and the rotation matrix of each test point; and judging whether the position relation of each test point meets a preset condition or not according to the two-dimensional coordinates and the three-dimensional coordinates of each test point, and judging that the equipment to be tested is suitable for the current test interpupillary distance when the preset condition is met. According to the method and the device, the adaptability of the interpupillary distance of the device to be tested can be quantitatively measured, the test result is objective, and the test efficiency is high.

Description

Pupil distance adaptability test system and method and test host
Technical Field
The embodiment of the invention relates to the technical field of testing, in particular to a pupil distance adaptability testing system and method and a testing host.
Background
Virtual Reality (VR) and Augmented Reality (AR) have been rapidly developed in recent years as the most popular visual interaction methods at present. In the existing VR and AR technologies, two images with visual difference are mainly projected on two screens, so that a virtual 3D scene is displayed in front of human eyes.
The inventor finds that at least the following problems exist in the prior art: for existing VR and AR devices, the imaging effect is different for people with different interpupillary distances when using. In the production process, when estimating the interpupillary distance that VR and AR equipment adapted, the crowd who needs to ask different interpupillary distances experiences same VR and AR equipment, estimates the influence of interpupillary distance according to different crowd's feedback. Therefore, strict objective index analysis is lacked, the evaluation result is subjective, and the testing efficiency is low.
Disclosure of Invention
The embodiment of the invention aims to provide a system and a method for testing the adaptability of the interpupillary distance and a testing host, which can quantitatively measure the adaptability of the interpupillary distance of equipment to be tested, and have objective testing results and high testing efficiency.
In order to solve the above technical problem, an embodiment of the present invention provides a system for testing pupil distance adaptability, including: the system comprises a first camera, a second camera and a test host; the test host is in communication connection with the first camera and the second camera respectively, and the test host is in communication connection with the equipment to be tested; the test host is used for controlling the equipment to be tested to display a preset test pattern; the device to be tested is virtual reality equipment or augmented reality equipment; the test host is also used for capturing test patterns through a first camera and a second camera which are positioned at the observation positions of the equipment to be tested respectively; the test host is also used for acquiring a translation vector and a rotation matrix between the first camera and the second camera; the mode of the translation vector is the current testing interpupillary distance; the test host is also used for selecting at least four test points on the test pattern and respectively acquiring the two-dimensional coordinates of each test point from the test patterns captured by the first camera and the second camera; the test host is also used for calculating the three-dimensional coordinates of the test points according to the two-dimensional coordinates, the translation vectors and the rotation matrix of the test points; the testing host is further used for judging whether the position relation of the testing points meets a preset condition or not according to the two-dimensional coordinates and the three-dimensional coordinates of the testing points, and judging that the equipment to be tested is suitable for the current testing interpupillary distance when the preset condition is met.
The embodiment of the invention also provides a pupil distance adaptability test method, which comprises the following steps: the pupil distance adaptability testing system is applied to a pupil distance adaptability testing system comprising a first camera and a second camera; the method comprises the following steps: controlling the equipment to be tested to display a preset test pattern; the device to be tested is virtual reality equipment or augmented reality equipment; capturing a test pattern through a first camera and a second camera which are positioned at the observation positions of the equipment to be tested respectively; acquiring a translation vector and a rotation matrix between a first camera and a second camera; the mode of the translation vector is the current testing interpupillary distance; selecting at least four test points on the test pattern, and respectively acquiring two-dimensional coordinates of each test point from the test patterns captured by the first camera and the second camera; calculating the three-dimensional coordinates of each test point according to the two-dimensional coordinates, the translation vectors and the rotation matrix of each test point; judging whether the position relation of each test point meets a preset condition or not according to the two-dimensional coordinates and the three-dimensional coordinates of each test point; and when the preset condition is met, judging that the equipment to be tested is suitable for the current testing interpupillary distance.
The embodiment of the present invention further provides a test host, which includes: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the pupil distance adaptability test method described above.
Compared with the prior art, the method and the device for testing the pupil distance of the mobile terminal control the device to be tested to display the preset test pattern, simulate human eyes through the first camera and the second camera to capture the test pattern, obtain a translation vector and a rotation matrix between the first camera and the second camera, wherein the translation vector is a current test pupil distance, then select at least four test points on the test pattern, and obtain two-dimensional coordinates of each selected test point from the test pattern captured by the first camera and the second camera; and then, calculating the three-dimensional coordinates of each test point according to the two-dimensional coordinates, the translation vectors and the rotation matrixes of each test point, so that whether the position relation of each test point meets a preset condition or not can be judged according to the two-dimensional coordinates and the three-dimensional coordinates of each test point, if each test point meets the preset condition, the device to be tested is judged to adapt to the current test interpupillary distance, the adaptability of the interpupillary distance of the device to be tested can be quantitatively measured, the test result is objective, and the test efficiency is high.
In addition, the preset conditions include: the test points on the test pattern captured by the first camera are positioned on the same plane, and the current distance between the adjacent test points is increased or reduced in an equal ratio relative to the previous distance between the adjacent test points; or, the test points on the test pattern captured by the second camera are positioned on the same plane, and the current distance between the adjacent test points is increased or reduced in an equal ratio relative to the previous distance between the adjacent test points; the current distance is calculated according to the three-dimensional coordinates, and the previous distance is calculated according to the two-dimensional coordinates. The present embodiment provides specific contents of the preset condition.
In addition, the test pattern is a black and white checkerboard. The present embodiment provides a specific type of test pattern.
In addition, each test point is the intersection point of the black grid and the white grid on the black and white checkerboard. The embodiment provides a specific mode for selecting the test points on the black and white checkerboard, and the two-dimensional coordinates of the test points are easier to obtain.
In addition, according to the two-dimensional coordinates, the translation vectors and the rotation matrix of the test points, the three-dimensional coordinates of the test points are calculated, and the method specifically comprises the following steps: according to the formula
Figure BDA0001610607450000021
And
Figure BDA0001610607450000022
calculating the three-dimensional coordinates of each test point captured by the first camera
Figure BDA0001610607450000031
And the three-dimensional coordinates of each test point captured by the second camera
Figure BDA0001610607450000032
Wherein,
Figure BDA0001610607450000033
two-dimensional coordinates representing the ith test point captured by the first camera,
Figure BDA0001610607450000034
two-dimensional coordinates representing the ith test point captured by the second camera,
Figure BDA0001610607450000035
representing the three-dimensional coordinates of the ith test point captured by the first camera,
Figure BDA0001610607450000036
the three-dimensional coordinates of the ith test point captured by the second camera are represented, i is a positive integer and is smaller than the number of the selected test points, K represents built-in parameters of the first camera and the second camera, R represents a rotation matrix, and T represents a translation vector. The embodiment provides a specific calculation mode of the three-dimensional coordinates of each test point.
In addition, translation vector
Figure BDA0001610607450000037
Rotation matrix
Figure BDA0001610607450000038
And d is the current testing interpupillary distance. The present embodiment provides a translation vector and rotation matrix in an ideal state.
In addition, the distances between adjacent test points in the selected test points are equal. The present embodiment provides a way to select a test.
Drawings
One or more embodiments are illustrated by way of example in the accompanying drawings, which correspond to the figures in which like reference numerals refer to similar elements and which are not to scale unless otherwise specified.
Fig. 1 is a block schematic diagram of a pupil distance adaptability test system according to a first embodiment of the present invention;
fig. 2 is a top view of a interpupillary distance adaptability test system according to a first embodiment of the present invention;
FIG. 3 is a schematic diagram of test points of a black and white checkerboard according to a first embodiment of the present invention;
fig. 4 is a detailed flowchart of a pupil distance adaptability test method according to a third embodiment of the present invention;
fig. 5 is a detailed flowchart of a pupil distance adaptability test method according to a fifth embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, it will be appreciated by those of ordinary skill in the art that numerous technical details are set forth in order to provide a better understanding of the present application in various embodiments of the present invention. However, the technical solution claimed in the present application can be implemented without these technical details and various changes and modifications based on the following embodiments.
The first embodiment of the invention relates to a pupil distance adaptability test system, which is used for testing the pupil distance adaptability of a device to be tested, wherein the device to be tested is a Virtual Reality (VR) device or an Augmented Reality (AR) device. Referring to fig. 1 and fig. 2, the pupil distance adaptability testing system includes a first camera 1, a second camera 2 and a testing host 3. The test host 3 is in communication connection with the first camera 1, the second camera 2 and the equipment to be tested 4 respectively; the pupil distance adaptability test system further comprises an equipment support 5 and a camera support 6, the equipment to be tested 4 is placed on the equipment support 5, the first camera 1 and the second camera 2 are placed on the camera support 6, the positions and angles of the first camera 1 and the second camera 2 can be adjusted, and the first camera 1 and the second camera 2 are located at the observation position of the equipment to be tested 4 and used for simulating human eyes to observe images of the equipment to be tested 4. The communication connection between the test host 3 and the first camera 1, the second camera 2 and the device under test 4 may be through a data line (e.g., a USB data line), but is not limited thereto, and may also be through a wireless connection, such as WIFI, bluetooth, etc.
Preferably, the pupil distance adaptability test system further comprises a dark box 7, and when the test system is used for testing, the first camera 1, the second camera 2 and the equipment to be tested 4 are placed in the dark box 7, so that the test effect is not affected by ambient light.
The test host 3 is used for controlling the equipment to be tested 4 to display a preset test pattern, and capturing the test pattern through the first camera 1 and the second camera 2 respectively, specifically, the first camera 1 and the second camera 2 are located at the observation position of the equipment to be tested 4 and used for simulating human eyes to observe the test pattern displayed by the equipment to be tested 4. The test pattern may be a black and white checkerboard, but is not limited thereto, and may also be other types of checkerboards, such as a red and green checkerboard.
The test host 3 is further configured to obtain a translation vector T and a rotation matrix R between the first camera 1 and the second camera 2; the mode of the translation vector T is the current test interpupillary distance. Specifically, the test host 3 may capture a test pattern according to the first camera 1 and the second camera 2, and obtain a translation vector T and a rotation matrix R between the first camera 1 and the second camera 2 by using a binocular camera calibration method; however, if the camera support 6 is an optical positioning support, the translation vector T and the rotation matrix R can be obtained by reading the scale on the optical positioning support. The model of the translation vector T is the distance between the first camera 1 and the second camera 2, and is the current testing pupil distance d.
The test host 3 is further configured to select at least four test points on the test pattern, obtain two-dimensional coordinates of each test point from the test patterns captured by the first camera 1 and the second camera 2, specifically, obtain two-dimensional coordinates of each test point on the test pattern captured by the first camera 1 according to the test pattern captured by the first camera 1, and obtain two-dimensional coordinates of each test point on the test pattern captured by the second camera 2 according to the test pattern captured by the second camera 2; wherein, the test point can test any point on the pattern; preferably, when the test pattern is a black-and-white checkerboard, the intersection point of the black lattice and the white lattice on the black-and-white checkerboard can be selected as the test point, please refer to fig. 3, and the point a, the point B, the point C, and the point D on the black-and-white checkerboard are selected as four test points (for example, four test points), so that the two-dimensional coordinate of each test point is easier to obtain, and the obtained two-dimensional coordinate is more accurate.
The test host 3 is also used for calculating the three-dimensional coordinates of the test points according to the two-dimensional coordinates, the translation vectors and the rotation matrix of the test points; specifically, the test host 3 calculates three-dimensional coordinates of the test points corresponding to the first camera 1 and the second camera 2 according to two-dimensional coordinates of the test points corresponding to the first camera 1 and the second camera 2, and a translation vector T and a rotation matrix R between the first camera 1 and the second camera 2.
The test host 3 is further configured to determine whether the position relationship of each test point satisfies a preset condition according to the two-dimensional coordinates and the three-dimensional coordinates of each test point, and when it is determined that the position relationship of each test point satisfies the preset condition, it is indicated that the device 4 to be tested is applicable to the current test interpupillary distance d; otherwise, it indicates that the device under test 4 is not suitable for the current testing interpupillary distance d.
In this embodiment, after the adaptability test of current test interpupillary distance d is accomplished, then can adjust the position and the angle of first camera 1 and second camera 2, promptly, adjust the test interpupillary distance, then test once more to can acquire the scope of the interpupillary distance that awaits measuring equipment 4 is suitable for.
Compared with the prior art, the method and the device for testing the pupil distance of the mobile terminal control the device to be tested to display the preset test pattern, simulate human eyes through the first camera and the second camera to capture the test pattern, obtain a translation vector and a rotation matrix between the first camera and the second camera, wherein the translation vector is a current test pupil distance, then select at least four test points on the test pattern, and obtain two-dimensional coordinates of each selected test point from the test pattern captured by the first camera and the second camera; and then, calculating the three-dimensional coordinates of each test point according to the two-dimensional coordinates, the translation vectors and the rotation matrixes of each test point, so that whether the position relation of each test point meets a preset condition or not can be judged according to the two-dimensional coordinates and the three-dimensional coordinates of each test point, if each test point meets the preset condition, the device to be tested is judged to adapt to the current test interpupillary distance, the adaptability of the interpupillary distance of the device to be tested can be quantitatively measured, the test result is objective, and the test efficiency is high.
A second embodiment of the present invention relates to a pupil distance adaptability test system. The second embodiment is a refinement on the basis of the first embodiment, and the main refinements are as follows: specific contents of the preset conditions are provided.
When the test host 3 judges whether the position relation of each test point meets a preset condition according to the two-dimensional coordinates and the three-dimensional coordinates of each test point, the preset condition includes: the test points on the test pattern captured by the first camera are positioned on the same plane, and the current distance between the adjacent test points is increased or reduced in an equal ratio relative to the previous distance between the adjacent test points; or, the test points on the test pattern captured by the second camera are positioned on the same plane, and the current distance between the adjacent test points is increased or reduced in an equal ratio relative to the previous distance between the adjacent test points; the current distance is calculated according to the three-dimensional coordinates, and the previous distance is calculated according to the two-dimensional coordinates.
Specifically, the testing host 3 can determine whether the position relationship of the test points meets the preset condition according to the two-dimensional coordinates and the three-dimensional coordinates of the test points corresponding to the first camera 1 or the second camera 2, which is described by taking the first camera 1 as an example, and calculate whether the test points are located on the same plane according to the three-dimensional coordinates of the test points corresponding to the first camera 1, and the number of the selected test points is n (n is an integer greater than or equal to 4),
Figure BDA0001610607450000061
representing the three-dimensional coordinates of the ith test point captured by the first camera, wherein i is a positive integer and is smaller than the number of the selected test points, i is more than or equal to 1 and less than or equal to n; the test points are located on the same plane, which means that n test points can be fitted to obtain a plane, i.e.,
Figure BDA0001610607450000062
less than a first preset threshold, wherein S is required to be less than the first preset threshold (set by the tester)
Figure BDA0001610607450000063
That is to say that the first and second electrodes,
Figure BDA0001610607450000064
solving to obtain a0、a1And a2The value of (c).
When S is smaller than a first preset threshold value, the distance between the adjacent test points calculated according to the three-dimensional coordinates of each test point is increased or reduced in an equal proportion relative to the distance between the adjacent test points calculated according to the two-dimensional coordinates of each test point, and the fact that the preset condition is met is judged, which indicates that the device to be tested 4 is applicable to the current test interpupillary distance d; otherwise, it indicates that the device under test 4 is not suitable for the current testing interpupillary distance d.
The present embodiment provides specific contents of the preset conditions with respect to the first embodiment.
A third embodiment of the present invention relates to a pupil distance adaptability test method applied to the pupil distance adaptability test system according to the first or second embodiment.
Fig. 4 shows a specific flow of the pupil distance adaptability test method according to the present embodiment. In this embodiment, the pupil distance adaptability test system in the first embodiment is taken as an example for explanation, please refer to fig. 1 and fig. 2.
Step 101, controlling the device to be tested to display a preset test pattern.
Specifically, the test host 3 controls the device under test 4 to display a preset test pattern, specifically, the test host 3 sends the preset test pattern to the device under test 4, and the device under test 4 displays the preset test pattern.
Step 102, capturing a test pattern through a first camera and a second camera which are located at the observation positions of the equipment to be tested respectively.
Specifically, the first camera 1 and the second camera 2 are located at an observation position of the device under test 4, and are used for simulating human eyes to observe a test pattern displayed by the device under test 4. The test pattern may be a black and white checkerboard, but is not limited thereto, and may also be other types of checkerboards, such as a red and green checkerboard.
And 103, acquiring a translation vector and a rotation matrix between the first camera and the second camera.
Specifically, the test host 3 may capture a test pattern according to the first camera 1 and the second camera 2, and obtain a translation vector T and a rotation matrix R between the first camera 1 and the second camera 2 by using a binocular camera calibration method; however, if the camera support 6 is an optical positioning support, the translation vector T and the rotation matrix R can be obtained by reading the scale on the optical positioning support. The model of the translation vector T is the distance between the first camera 1 and the second camera 2, and is the current testing pupil distance d.
And 104, selecting at least four test points on the test pattern, and respectively acquiring two-dimensional coordinates of each test point from the test patterns captured by the first camera and the second camera.
Specifically, the test host 1 selects at least four test points on a test pattern in advance, then obtains two-dimensional coordinates of each test point on the test pattern captured by the first camera 1 according to the test pattern captured by the first camera 1, and obtains two-dimensional coordinates of each test point on the test pattern captured by the second camera 2 according to the test pattern captured by the second camera 2; when the test pattern is a black-and-white checkerboard, the intersection point of the black lattice and the white lattice on the black-and-white checkerboard can be selected as a test point, please refer to fig. 3, and point a, point B, point C, and point D on the black-and-white checkerboard are selected as four test points (four are taken as an example), so that the two-dimensional coordinate of each test point is easier to obtain, and the obtained two-dimensional coordinate is more accurate.
And 105, calculating the three-dimensional coordinates of the test points according to the two-dimensional coordinates, the translation vectors and the rotation matrix of the test points.
Specifically, the test host 3 calculates three-dimensional coordinates of the test points corresponding to the first camera 1 and the second camera 2 according to the two-dimensional coordinates of the test points corresponding to the first camera 1 and the second camera 2, and the translation vector T and the rotation matrix R between the first camera 1 and the second camera 2.
Step 106, judging whether the position relation of each test point meets a preset condition or not according to the two-dimensional coordinates and the three-dimensional coordinates of each test point; and when the preset condition is met, judging that the equipment to be tested is suitable for the current testing interpupillary distance.
Specifically, the test host 3 judges whether the position relationship of each test point meets a preset condition according to the two-dimensional coordinates and the three-dimensional coordinates of each test point, and when the position relationship of each test point meets the preset condition, it is indicated that the device 4 to be tested is suitable for the current test interpupillary distance d; otherwise, it indicates that the device under test 4 is not suitable for the current testing interpupillary distance d.
In this embodiment, after completing the adaptability test of the current testing interpupillary distance d, the positions and angles of the first camera 1 and the second camera 2 may be adjusted, that is, the testing interpupillary distance is adjusted, and then the above steps 101 to 106 are repeated, so that the range of the interpupillary distance applicable to the device to be tested 4 may be obtained.
It should be understood that this embodiment is a method example corresponding to the first embodiment, and may be implemented in cooperation with the first embodiment. The related technical details mentioned in the first embodiment are still valid in this embodiment, and are not described herein again in order to reduce repetition. Accordingly, the related-art details mentioned in the present embodiment can also be applied to the first embodiment.
Compared with the prior art, the method and the device for testing the pupil distance of the mobile terminal control the device to be tested to display the preset test pattern, simulate human eyes through the first camera and the second camera to capture the test pattern, obtain a translation vector and a rotation matrix between the first camera and the second camera, wherein the translation vector is a current test pupil distance, then select at least four test points on the test pattern, and obtain two-dimensional coordinates of each selected test point from the test pattern captured by the first camera and the second camera; and then, calculating the three-dimensional coordinates of each test point according to the two-dimensional coordinates, the translation vectors and the rotation matrixes of each test point, so that whether the position relation of each test point meets a preset condition or not can be judged according to the two-dimensional coordinates and the three-dimensional coordinates of each test point, if each test point meets the preset condition, the device to be tested is judged to adapt to the current test interpupillary distance, the adaptability of the interpupillary distance of the device to be tested can be quantitatively measured, the test result is objective, and the test efficiency is high.
It should be noted that each module referred to in this embodiment is a logical module, and in practical applications, one logical unit may be one physical unit, may be a part of one physical unit, and may be implemented by a combination of multiple physical units. In addition, in order to highlight the innovative part of the present invention, elements that are not so closely related to solving the technical problems proposed by the present invention are not introduced in the present embodiment, but this does not indicate that other elements are not present in the present embodiment.
The fourth embodiment of the invention relates to a pupil distance adaptability test method. The fourth embodiment is a refinement on the basis of the third embodiment, and the main refinements are as follows: specific contents of the preset conditions are provided.
Fig. 4 is a flowchart of a pupil distance adaptability test method in this embodiment.
In step 106 of this embodiment, the preset conditions include: the test points on the test pattern captured by the first camera are positioned on the same plane, and the current distance between the adjacent test points is increased or reduced in an equal ratio relative to the previous distance between the adjacent test points; or, the test points on the test pattern captured by the second camera are positioned on the same plane, and the current distance between the adjacent test points is increased or reduced in an equal ratio relative to the previous distance between the adjacent test points; the current distance is calculated according to the three-dimensional coordinates, and the previous distance is calculated according to the two-dimensional coordinates.
Specifically, the testing host 3 can determine whether the position relationship of the test points meets the preset condition according to the two-dimensional coordinates and the three-dimensional coordinates of the test points corresponding to the first camera 1 or the second camera 2, which is described by taking the first camera 1 as an example, and calculate whether the test points are located on the same plane according to the three-dimensional coordinates of the test points corresponding to the first camera 1, and the number of the selected test points is n (n is an integer greater than or equal to 4),
Figure BDA0001610607450000081
representing the three-dimensional coordinates of the ith test point captured by the first camera, wherein i is a positive integer and is smaller than the number of the selected test points, i is more than or equal to 1 and less than or equal to n; the test points are located on the same plane, which means that n test points can be fitted to obtain a plane, i.e.,
Figure BDA0001610607450000091
less than a first preset threshold, wherein s is less than the first preset threshold (set by the tester) and is satisfied
Figure BDA0001610607450000092
That is to say that the first and second electrodes,
Figure BDA0001610607450000093
solving to obtain a0、a1And a2The value of (c).
When S is smaller than a first preset threshold value, the distance between the adjacent test points calculated according to the three-dimensional coordinates of each test point is increased or reduced in an equal proportion relative to the distance between the adjacent test points calculated according to the two-dimensional coordinates of each test point, and the fact that the preset condition is met is judged, which indicates that the device to be tested 4 is applicable to the current test interpupillary distance d; otherwise, it indicates that the device under test 4 is not suitable for the current testing interpupillary distance d.
Preferably, the distances between adjacent test points in the selected test points are equal, and when it is determined whether the current distance between adjacent test points is increased or decreased in equal proportion to the previous distance between adjacent test points, the difference between the current distances between adjacent test points can also be directly calculated, and the determination is performed by determining whether the difference is smaller than a second preset threshold (set by a tester), so that the determination mode is more concise.
Since the second embodiment corresponds to the present embodiment, the present embodiment can be implemented in cooperation with the second embodiment. The related technical details mentioned in the second embodiment are still valid in this embodiment, and the technical effects that can be achieved in the second embodiment can also be achieved in this embodiment, and are not described herein again in order to reduce the repetition. Accordingly, the related-art details mentioned in the present embodiment can also be applied to the second embodiment.
A fifth embodiment of the present invention relates to a pupil distance adaptability test method, which is a refinement of the third embodiment, and is mainly characterized in that: a specific way of calculating the three-dimensional coordinates of each test point is provided.
A specific flow of the pupil distance adaptability test method in this embodiment is shown in fig. 5.
The steps 201 to 204 are substantially the same as the steps 101 to 104, and the step 206 is substantially the same as the step 106, mainly different in that:
step 205, according to the formula
Figure BDA0001610607450000094
And
Figure BDA0001610607450000095
calculating the three-dimensional coordinates of each test point captured by the first camera
Figure BDA0001610607450000096
And the three-dimensional coordinates of each test point captured by the second camera
Figure BDA0001610607450000101
Wherein,
Figure BDA0001610607450000102
two-dimensional coordinates representing the ith test point captured by the first camera,
Figure BDA0001610607450000103
two-dimensional coordinates representing the ith test point captured by the second camera,
Figure BDA0001610607450000104
representing the three-dimensional coordinates of the ith test point captured by the first camera,
Figure BDA0001610607450000105
the three-dimensional coordinates of the ith test point captured by the second camera are represented, i is a positive integer and is smaller than the number of the selected test points, K represents built-in parameters of the first camera and the second camera, R represents a rotation matrix, and T represents a translation vector.
In the present embodiment, the first and second electrodes are,
Figure BDA0001610607450000106
the built-in parameters representing the first camera 1 and the second camera 2 can be obtained by a binocular camera calibration method, fxIs shown asFocal length of a camera and a second camera in X-axis direction, fYShowing the focal lengths of the first camera and the second camera in the Y-axis direction, (C)x,CY) And the optical center coordinates of the first camera and the second camera are represented.
In one example, when adjusting the positions of the first camera 1 and the second camera 2, it is possible to position the two cameras on the same straight line without angle difference, and at this time, the translation vector between the first camera 1 and the second camera 2
Figure BDA0001610607450000107
Rotation matrix between first camera 1 and second camera 2
Figure BDA0001610607450000108
And d is the current testing interpupillary distance.
So that the above-mentioned formula can be reduced to,
Figure BDA0001610607450000109
and
Figure BDA00016106074500001010
calculating to obtain the three-dimensional coordinates of the test point captured by the first camera
Figure BDA00016106074500001011
And the three-dimensional coordinates of the test point captured by the second camera
Figure BDA0001610607450000111
The present embodiment provides a specific calculation method of the three-dimensional coordinates of each test point, compared to the third embodiment. In addition, the present embodiment can be refined as the fourth embodiment, and the same technical effects can be achieved.
A sixth embodiment of the present invention relates to a test host, including: at least one processor; and a memory communicatively coupled to the at least one processor;
wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the interpupillary distance adaptability test method of any one of the third to sixth embodiments.
Where the memory and processor are connected by a bus, the bus may comprise any number of interconnected buses and bridges, the buses connecting together one or more of the various circuits of the processor and the memory. The bus may also connect various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. The data processed by the processor is transmitted over a wireless medium via an antenna, which further receives the data and transmits the data to the processor.
The processor is responsible for managing the bus and general processing and may also provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. And the memory may be used to store data used by the processor in performing operations.
A seventh embodiment of the present invention relates to a computer-readable storage medium storing a computer program. The computer program realizes the above-described method embodiments when executed by a processor.
That is, as can be understood by those skilled in the art, all or part of the steps in the method according to the above embodiments may be implemented by a program instructing related hardware, where the program is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps in the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific examples for carrying out the invention, and that various changes in form and details may be made therein without departing from the spirit and scope of the invention in practice.

Claims (10)

1. A system for testing interpupillary distance adaptability, comprising: the system comprises a first camera, a second camera and a test host;
the test host is in communication connection with the first camera and the second camera respectively, and the test host is in communication connection with the equipment to be tested;
the test host is used for controlling the equipment to be tested to display a preset test pattern; the equipment to be tested is virtual reality equipment or augmented reality equipment;
the test host is further used for capturing the test pattern through the first camera and the second camera which are located at the observation position of the equipment to be tested respectively;
the test host is further used for acquiring a translation vector and a rotation matrix between the first camera and the second camera; the mode of the translation vector is the current testing interpupillary distance;
the test host is further used for selecting at least four test points on the test pattern and respectively acquiring two-dimensional coordinates of each test point from the test pattern captured by the first camera and the second camera;
the test host is further used for calculating the three-dimensional coordinates of the test points according to the two-dimensional coordinates of the test points, the translation vectors and the rotation matrix;
the testing host is further used for judging whether the position relation of the testing points meets a preset condition or not according to the two-dimensional coordinates and the three-dimensional coordinates of the testing points, and judging that the equipment to be tested is suitable for the current testing interpupillary distance when the preset condition is met.
2. The interpupillary distance adaptability test system of claim 1, wherein the preset conditions comprise: the test points on the test pattern captured by the first camera are positioned on the same plane, and the current distance between the adjacent test points is increased or reduced in an equal ratio relative to the previous distance between the adjacent test points; or, the test points on the test pattern captured by the second camera are located on the same plane, and the current distance between the adjacent test points is increased or decreased in an equal ratio relative to the previous distance between the adjacent test points; the current distance is calculated according to the three-dimensional coordinate, and the previous distance is calculated according to the two-dimensional coordinate.
3. The system of claim 1, wherein the test pattern is a black and white checkerboard.
4. The system of claim 3, wherein each of said test points is an intersection of a black grid and a white grid on said black and white checkerboard.
5. A pupil distance adaptability test method is characterized by being applied to a pupil distance adaptability test system comprising a first camera and a second camera; the method comprises the following steps:
controlling the equipment to be tested to display a preset test pattern; the equipment to be tested is virtual reality equipment or augmented reality equipment;
capturing the test pattern through the first camera and the second camera which are positioned at the observation positions of the equipment to be tested respectively;
acquiring a translation vector and a rotation matrix between the first camera and the second camera; the mode of the translation vector is the current testing interpupillary distance;
selecting at least four test points on the test pattern, and respectively acquiring two-dimensional coordinates of each test point from the test pattern captured by the first camera and the second camera;
calculating the three-dimensional coordinates of the test points according to the two-dimensional coordinates of the test points, the translation vectors and the rotation matrix;
judging whether the position relation of the test points meets a preset condition or not according to the two-dimensional coordinates and the three-dimensional coordinates of the test points; and when a preset condition is met, judging that the equipment to be tested is suitable for the current testing interpupillary distance.
6. The interpupillary distance adaptability test method of claim 5, wherein the preset conditions include: the test points on the test pattern captured by the first camera are positioned on the same plane, and the current distance between the adjacent test points is increased or reduced in an equal ratio relative to the previous distance between the adjacent test points; or, the test points on the test pattern captured by the second camera are located on the same plane, and the current distance between the adjacent test points is increased or decreased in an equal ratio relative to the previous distance between the adjacent test points; the current distance is calculated according to the three-dimensional coordinate, and the previous distance is calculated according to the two-dimensional coordinate.
7. The method for testing the interpupillary distance adaptability according to claim 5, wherein the three-dimensional coordinates of the test points are calculated according to the two-dimensional coordinates of the test points, the translation vector and the rotation matrix, and specifically:
according to the formula
Figure FDA0002568433000000021
And
Figure FDA0002568433000000022
calculating the three-dimensional coordinates of the test points captured by the first camera
Figure FDA0002568433000000023
And the three-dimensional coordinates of the test points captured by the second camera
Figure FDA0002568433000000024
Wherein,
Figure FDA0002568433000000025
two-dimensional coordinates representing the ith test point captured by the first camera,
Figure FDA0002568433000000026
two-dimensional coordinates representing the ith test point captured by the second camera,
Figure FDA0002568433000000031
three-dimensional coordinates representing the ith test point captured by the first camera,
Figure FDA0002568433000000032
and representing the three-dimensional coordinates of the ith test point captured by the second camera, wherein i is a positive integer and is smaller than the number of the selected test points, K represents the built-in parameters of the first camera and the second camera, R represents the rotation matrix, and T represents the translation vector.
8. The interpupillary distance adaptability test method of claim 7, wherein the translation vector
Figure FDA0002568433000000033
The rotation matrix
Figure FDA0002568433000000034
And d is the current testing interpupillary distance.
9. The method of claim 5, wherein the distances between adjacent test points in the selected test points are equal.
10. A test host, comprising: at least one processor; and a memory communicatively coupled to the at least one processor;
wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the interpupillary adaptability test method of any of claims 5 to 9.
CN201810262563.6A 2018-03-28 2018-03-28 Pupil distance adaptability test system and method and test host Active CN108519215B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810262563.6A CN108519215B (en) 2018-03-28 2018-03-28 Pupil distance adaptability test system and method and test host

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810262563.6A CN108519215B (en) 2018-03-28 2018-03-28 Pupil distance adaptability test system and method and test host

Publications (2)

Publication Number Publication Date
CN108519215A CN108519215A (en) 2018-09-11
CN108519215B true CN108519215B (en) 2020-10-16

Family

ID=63434074

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810262563.6A Active CN108519215B (en) 2018-03-28 2018-03-28 Pupil distance adaptability test system and method and test host

Country Status (1)

Country Link
CN (1) CN108519215B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111131801B (en) * 2018-11-01 2023-04-28 华勤技术股份有限公司 Projector correction system and method and projector
CN109816704B (en) 2019-01-28 2021-08-03 北京百度网讯科技有限公司 Method and device for acquiring three-dimensional information of object

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06331935A (en) * 1993-05-21 1994-12-02 Tokyo Electric Co Ltd Binocular stereoscopic monitor device
US5488508A (en) * 1994-06-28 1996-01-30 The Walt Disney Company Vignetting technique for improving appearance of partially overlapped binocular displays
JPH09146046A (en) * 1995-11-28 1997-06-06 Olympus Optical Co Ltd Head-mount type display
CN102682448A (en) * 2012-03-14 2012-09-19 浙江大学 Stereo vision rapid navigation and positioning method based on double trifocal tensors
CN105043250A (en) * 2015-05-29 2015-11-11 南京邮电大学 Dual-view-angle data alignment method based on at least two common mark points
WO2016115870A1 (en) * 2015-01-21 2016-07-28 成都理想境界科技有限公司 Binocular ar head-mounted display device and information displaying method therefor
CN106019588A (en) * 2016-06-23 2016-10-12 深圳市虚拟现实科技有限公司 Near-to-eye display device capable of automatically measuring interpupillary distance and method
CN107481288A (en) * 2017-03-31 2017-12-15 触景无限科技(北京)有限公司 The inside and outside ginseng of binocular camera determines method and apparatus

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102998095B (en) * 2012-11-29 2016-12-21 信利半导体有限公司 The detection method of a kind of naked-eye stereoscopic display and device
CN104182982B (en) * 2014-08-27 2017-02-15 大连理工大学 Overall optimizing method of calibration parameter of binocular stereo vision camera
US9984507B2 (en) * 2015-11-19 2018-05-29 Oculus Vr, Llc Eye tracking for mitigating vergence and accommodation conflicts
CN105869142A (en) * 2015-12-21 2016-08-17 乐视致新电子科技(天津)有限公司 Method and device for testing imaging distortion of virtual reality helmets
CN105867611A (en) * 2015-12-29 2016-08-17 乐视致新电子科技(天津)有限公司 Space positioning method, device and system in virtual reality system
CN106095106A (en) * 2016-06-21 2016-11-09 乐视控股(北京)有限公司 Virtual reality terminal and display photocentre away from method of adjustment and device
CN107103513B (en) * 2017-04-23 2020-12-29 广州帕克西软件开发有限公司 Virtual try-on method for glasses
CN107506036B (en) * 2017-08-23 2020-10-09 歌尔股份有限公司 VR interpupillary distance adjusting method and device
CN107742310B (en) * 2017-09-18 2021-06-04 广东美晨通讯有限公司 Method and device for testing included angle of double cameras and storage device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06331935A (en) * 1993-05-21 1994-12-02 Tokyo Electric Co Ltd Binocular stereoscopic monitor device
US5488508A (en) * 1994-06-28 1996-01-30 The Walt Disney Company Vignetting technique for improving appearance of partially overlapped binocular displays
JPH09146046A (en) * 1995-11-28 1997-06-06 Olympus Optical Co Ltd Head-mount type display
CN102682448A (en) * 2012-03-14 2012-09-19 浙江大学 Stereo vision rapid navigation and positioning method based on double trifocal tensors
WO2016115870A1 (en) * 2015-01-21 2016-07-28 成都理想境界科技有限公司 Binocular ar head-mounted display device and information displaying method therefor
CN105043250A (en) * 2015-05-29 2015-11-11 南京邮电大学 Dual-view-angle data alignment method based on at least two common mark points
CN106019588A (en) * 2016-06-23 2016-10-12 深圳市虚拟现实科技有限公司 Near-to-eye display device capable of automatically measuring interpupillary distance and method
CN107481288A (en) * 2017-03-31 2017-12-15 触景无限科技(北京)有限公司 The inside and outside ginseng of binocular camera determines method and apparatus

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
"VR成像中延时效应对视觉的影响及补偿";彭俊毅、戴树岭;《北京航空航天大学学报》;19991231;第25卷(第3期);第322-324页 *
"户外增强现实***关键技术及其应用的研究";王涌天 等;《***仿真学报》;20031231;第15卷(第3期);第329-333、337页 *
TomášJeřábek et al.."Perceptual Specifics And Categorisation Of Augmented Reality".《Procedia - Social and Behavioral Sciences》.2015,第1740-1744页. *

Also Published As

Publication number Publication date
CN108519215A (en) 2018-09-11

Similar Documents

Publication Publication Date Title
CN109313814B (en) Camera calibration system
CN108230397A (en) Multi-lens camera is demarcated and bearing calibration and device, equipment, program and medium
EP2779091B1 (en) Automatic stereoscopic camera calibration
CN113299213B (en) Crease detection method and device
CN109615664B (en) Calibration method and device for optical perspective augmented reality display
CN113252309A (en) Testing method and testing device for near-to-eye display equipment and storage medium
CN111757097B (en) Detection method, detection device and computer readable storage medium
CN109799073A (en) A kind of optical distortion measuring device and method, image processing system, electronic equipment and display equipment
JP2021531601A (en) Neural network training, line-of-sight detection methods and devices, and electronic devices
CN108519215B (en) Pupil distance adaptability test system and method and test host
CN109661815A (en) There are the robust disparity estimations in the case where the significant Strength Changes of camera array
CN113672077A (en) Data processing method and equipment thereof
CN117073988B (en) System and method for measuring distance of head-up display virtual image and electronic equipment
CN108151647A (en) A kind of image processing method, device and mobile terminal
CN108548655B (en) Imaging precision measuring system and method and testing host
CN105427315B (en) Digital instrument image position testing method and device
CN109741294B (en) Pupil distance testing method and equipment
CN109345560B (en) Motion tracking precision testing method and device of augmented reality equipment
WO2020121406A1 (en) Three-dimensional measurement device, three-dimensional measurement device, moving robot, wheelbarrow-type moving device, and three-dimensional measurement processing method
CN107657663B (en) Method and device for displaying information
CN113587895B (en) Binocular distance measuring method and device
EP4054187A1 (en) Calibration method of a portable electronic device
CN114972526A (en) Method and device for measuring angle of field, computer device and medium
JP5760558B2 (en) Camera simulation apparatus, camera simulation method, and camera simulation program
JP2009244229A (en) Three-dimensional image processing method, three-dimensional image processing device, and three-dimensional image processing program

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 201203 Shanghai city Pudong New Area Keyuan Road No. 399 Building 1

Applicant after: Huaqin Technology Co., Ltd

Address before: 201203 Shanghai City, Pudong New Area Zhangjiang hi tech Park Keyuan Road No. 399 Building 1

Applicant before: HUAQIN TELECOM TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: Building 1, 399 Keyuan Road, China (Shanghai) pilot Free Trade Zone, Pudong New Area, Shanghai, 201203

Patentee after: Huaqin Technology Co.,Ltd.

Address before: Building 1, No. 399 Keyuan Road, Pudong New Area, Shanghai, 201203

Patentee before: Huaqin Technology Co., Ltd