Invention content
In view of the above problems, the object of the present invention is to provide a kind of AR glasses interpupillary distance test method and device, to solve mesh
Before can not to AR glasses carry out interpupillary distance test the problem of.
The present invention provides a kind of AR glasses interpupillary distance test method, including:
Using projection optical axis as the initial position of camera, camera is controlled in the interpupillary distance of AR glasses by displacement distance of default step-length
On direction respectively to the left and each mobile pre-determined distance, and in the pre-determined distance moved to the right, with the shifting of each default step-length
Dynamic distance shoots the projection image being projected on AR eyeglass for the camera site of camera, obtains corresponding camera site
Shooting picture;
Clarity analysis is carried out to acquired shooting picture, the picture for obtaining the shooting picture of corresponding camera site is clear
Angle value;
According to the picture clarity value of the shooting picture of acquired corresponding camera site, obtain and scheme in all shooting pictures
Camera site corresponding to the highest shooting picture of piece definition values;
According to the camera site corresponding to the acquired highest shooting picture of picture clarity value, the pupil of AR glasses is determined
Away from.
Furthermore it is preferred that mode be:It is controlled on interpupillary distance direction of the camera in AR glasses using default step-length as displacement distance
It is respectively to the left and to the right during each mobile pre-determined distance, camera is pre- when being moved to the left on the interpupillary distance direction of AR glasses
If step-length and pre-determined distance are disposed as negative value, by default step-length and pre-determined distance of the camera when moving right on interpupillary distance direction
It is disposed as positive value;Wherein, camera is moved to the left pre-determined distance on interpupillary distance direction and refers to camera from initial position to AR glasses
Direction movement pre-determined distance where the center line of eyeglass;Camera move right on interpupillary distance direction pre-determined distance refer to camera from
Initial position moves pre-determined distance to the direction where the edge of AR eyeglass.
Furthermore it is preferred that mode be:The highest shooting picture institute of picture clarity value is right in all shooting pictures are obtained
During the camera site answered, using initial position as origin, using the camera site of camera as X-axis coordinate, accordingly to shoot position
The picture clarity value of shooting picture put carries out curve fitting for Y-axis coordinate, obtains the apex coordinate of curve;Wherein, vertex
The Y-axis coordinate value of coordinate be it is all shooting pictures in the highest shooting picture of picture clarity value, the X-axis coordinate of apex coordinate
The as camera site of the highest shooting picture of picture clarity value.
Furthermore it is preferred that mode be:According to the bat corresponding to the acquired highest shooting picture of picture clarity value
It acts as regent and puts, during the interpupillary distance for determining AR glasses, if the camera site corresponding to the highest shooting picture of definition values is pre-
If test scope in, then it is highest according to the distance and definition values of preset projection optical axis to the center line of AR eyeglass
Camera site corresponding to shooting picture determines the interpupillary distance of AR glasses;If the shooting corresponding to the highest shooting picture of definition values
Position is not in preset test scope, it is determined that there are assembly problems for AR glasses.
Furthermore it is preferred that mode be:Clarity analysis is being carried out to acquired shooting picture, is obtaining corresponding camera site
Shooting picture picture clarity value during, the selection center picture region and area of picture quadrangle four in picture shoot
Domain is as clarity analysis site;The picture clarity value of shooting picture is determined according to the definition values of each clarity analysis site.
Furthermore it is preferred that mode be:In the picture that shooting picture is determined according to the definition values of each clarity analysis site
During definition values, when the definition values of center picture region clarity analysis site, to be all higher than the region of picture quadrangle four clear
The definition values of clear degree analysis site, and the highest definition values in the region clarity analysis site of picture quadrangle four and picture quadrangle
When the difference of visibility minimum value in four region clarity analysis sites is less than default very poor, the picture clarity of picture is shot
It is worth the average value of the definition values for center picture region clarity analysis site Yu the four region clarity analysis sites in picture quadrangle.
On the other hand, the present invention provides a kind of AR glasses interpupillary distance test device, utilizes above-mentioned AR glasses interpupillary distances test side
Method tests the interpupillary distance of AR glasses, which includes measurement jig, camera, projection image generating mechanism and interpupillary distance analysis machine
Structure;Wherein, AR glasses to be measured are fixed on measurement jig, and mobile mechanism is provided on measurement jig, and camera is fixed on movement
In mechanism, using projection optical axis as the initial position of camera, by mobile mechanism drive camera with default step-length AR glasses pupil
Away to the left and to the right each mobile pre-determined distance respectively on direction;Projection image generating mechanism is connected with AR glasses to be measured, for controlling
Make AR glasses to be measured and projection image generated on eyeglass so that camera in corresponding pre-determined distance with the movement of each default step-length
Distance shoots the projection image generated by camera site;Interpupillary distance analysis institution is connected with camera, for camera institute
The shooting picture of shooting carries out clarity analysis, obtains in shooting picture corresponding to the highest shooting picture of picture clarity value
Camera site, and determine according to the camera site of the highest shooting picture of acquired definition values the interpupillary distance of AR glasses to be measured.
The AR glasses interpupillary distance test methods and device that the invention described above provides, using projection optical axis as the initial position of camera,
Camera to the left and to the right each mobile pre-determined distance respectively on the interpupillary distance direction of AR glasses is controlled by displacement distance of default step-length,
It is the camera site of camera to being projected in AR glasses using the displacement distance of each default step-length and in the pre-determined distance moved
Projection image on eyeglass is shot, and obtains the picture clarity value of the shooting picture of corresponding camera site;According to acquisition
The picture clarity value of the shooting picture of corresponding camera site obtains picture clarity in all shooting pictures and is worth highest shooting
Camera site corresponding to picture;Then the camera site according to corresponding to the highest shooting picture of picture clarity value, determines
The interpupillary distance of AR glasses.Can be realized by the present invention and the interpupillary distances of AR glasses is tested, and measuring accuracy is high, at low cost, have compared with
High interpupillary distance testing efficiency is suitble to test the interpupillary distance of large batch of AR glasses.
In order to realize above-mentioned and related purpose, one or more aspects of the invention include will be explained in below especially
The feature pointed out.Certain illustrative aspects of the present invention are described in detail in following explanation and attached drawing.However, these aspects refer to
What is shown is only some modes in the various modes for can be used the principle of the present invention.In addition, the present invention is directed to include it is all this
A little aspects and their equivalent.
Specific embodiment
Specific embodiments of the present invention are described in detail below with reference to attached drawing.
For aforementioned the problem of can not carrying out interpupillary distance test to AR glasses at present, the present invention is using projection optical axis as the first of camera
Beginning position is distinguished to the left on the interpupillary distance direction of AR glasses as displacement distance control camera using default step-length and each movement to the right is pre-
If distance, and in the pre-determined distance moved, using the camera site that the displacement distance of each default step-length is camera to projecting
Projection image on AR eyeglass is shot, and obtains the picture clarity value of the shooting picture of corresponding camera site;Root
According to acquisition corresponding camera site shooting picture picture clarity value, obtain it is all shooting pictures in picture clarity value most
Camera site corresponding to high shooting picture;Then the shooting position according to corresponding to the highest shooting picture of picture clarity value
It puts, determines the interpupillary distance of AR glasses.It can be realized by the present invention and the interpupillary distance of AR glasses is tested, and measuring accuracy is high, at low cost,
With higher interpupillary distance testing efficiency, it is suitble to test the interpupillary distance of large batch of AR glasses.
Before being illustrated to AR glasses interpupillary distance test method provided by the invention and device, first to involved in the present invention
Some concepts illustrate, for clearer these concepts of description, Fig. 1 shows the knot of interpupillary distance according to embodiments of the present invention
Structure.
As shown in Figure 1, after AR glasses generation projection image 3, human eye 1 is reflexed to by the eyeglass 2 of AR glasses, before human eye 1
Mono- virtual image of Fang Shengcheng, this virtual image combines together with material object at the moment, so as to have the function that AR augmented realities.If definition
From projection optical axis 5 to the interpupillary distance that twice of the distance L1 of center of lens position 4 is AR glasses, then ideally, projected light
Axis 5 is overlapped with human eye optical axis, and the interpupillary distance of AR glasses can be measured by the position for measuring projection optical axis.
It should be noted that projection optical axis is the center of ray machine (ray machine herein can be camera, human eye) projected light beam
Line is perpendicular to projection image and passes through a line of projection image central point.
Specifically, the AR glasses interpupillary distance test methods provided to illustrate the invention, Fig. 2 shows according to embodiments of the present invention
AR glasses interpupillary distance test methods flow.
As shown in Fig. 2, AR glasses interpupillary distance test method provided by the invention includes:
A210:Using projection optical axis as the initial position of camera, camera is controlled in AR glasses by displacement distance of default step-length
Interpupillary distance direction on respectively to the left and each mobile pre-determined distance, and in the pre-determined distance moved to the right, with each default step
Long displacement distance shoots the projection image being projected on AR eyeglass for the camera site of camera, and acquisition is mutually answered the bid
Act as regent the shooting picture put.
Wherein, it is controlled on interpupillary distance direction of the camera in AR glasses respectively to the left and to the right by displacement distance of default step-length
During each mobile pre-determined distance, by default step-length of the camera when being moved to the left on the interpupillary distance direction of AR glasses and it is default away from
From being disposed as negative value, default step-length of the camera when moving right on interpupillary distance direction and pre-determined distance are disposed as positive value;
Wherein, camera is moved to the left pre-determined distance on interpupillary distance direction and refers to camera from initial position to the center line of AR eyeglass institute
Direction move pre-determined distance;The camera pre-determined distance that moves right on interpupillary distance direction refers to camera from initial position to AR
Direction movement pre-determined distance where the edge of mirror eyeglass.
S220:Clarity analysis is carried out to acquired shooting picture, obtains the figure of the shooting picture of corresponding camera site
Piece definition values.
Wherein, clarity analysis is being carried out to acquired shooting picture, is obtaining the shooting picture of corresponding camera site
During picture clarity value, center picture region and the region of picture quadrangle four are chosen in picture is shot as clarity
Analysis site;The picture clarity value of shooting picture is determined according to the definition values of each clarity analysis site.
Further, the picture clarity value of shooting picture is being determined according to the definition values of each clarity analysis site
In the process, when the definition values of center picture region clarity analysis site are all higher than the region clarity analysis site of picture quadrangle four
Definition values, and highest definition values in the region clarity analysis site of picture quadrangle four and the region of picture quadrangle four are clear
When the difference of visibility minimum value in clear degree analysis site is less than default very poor, the picture clarity value of picture is shot as in picture
Heart district domain clarity analysis site and the average value of the definition values of the four region clarity analysis sites in picture quadrangle.
S230:According to the picture clarity value of the shooting picture of acquired corresponding camera site, all shooting figures are obtained
Camera site in piece corresponding to the highest shooting picture of picture clarity value.
Wherein, the camera site in all shooting pictures are obtained corresponding to the highest shooting picture of picture clarity value
In the process, using initial position as origin, using the camera site of camera as X-axis coordinate, with the shooting picture of corresponding camera site
Picture clarity value carries out curve fitting for Y-axis coordinate, obtains the apex coordinate of curve;Wherein, the Y coordinate of apex coordinate is
Picture clarity is worth highest shooting picture in all shooting pictures, the X-axis coordinate of apex coordinate be picture clarity value most
The camera site of high shooting picture.
S240:According to the camera site corresponding to the acquired highest shooting picture of picture clarity value, AR are determined
The interpupillary distance of mirror.
Wherein, according to the camera site corresponding to the acquired highest shooting picture of picture clarity value, AR is determined
During the interpupillary distance of glasses, if the camera site corresponding to the highest shooting picture of definition values is in preset test scope
It is interior, then it is right according to the highest shooting picture institute of the distance and definition values of preset projection optical axis to the center line of AR eyeglass
The camera site answered determines the interpupillary distance of AR glasses;If the camera site corresponding to the highest shooting picture of definition values is not default
Test scope in, it is determined that there are assembly problems for AR glasses.
It should be noted that above-mentioned preset test scope need according to the design specification of specific AR glasses and its
Permitted interpupillary distance tolerance value is determined, for example, set the projection optical axis of some type of AR glasses to the distance of center of lens position
The value of L1 is 30mm, sets the permitted interpupillary distance tolerance value of AR glasses of the type as ± 5mm, then preset test scope
Section is then (25,35).
AR glasses interpupillary distance test method provided by the invention is carried out in an illustrative manner below in conjunction with Fig. 1 and Fig. 2 detailed
It describes in detail bright.It is specific as follows:
According to the design specification of AR glasses, preset test scope is (L1+a, L1-a), wherein, L1 is the throwing of AR glasses
For shadow optical axis to the distance of center of lens position, a is the permitted interpupillary distance tolerance value of AR glasses.It is surveyed in the interpupillary distance to AR glasses
During examination, first using projection optical axis as the initial position of camera, using k as step size controlling camera on the interpupillary distance direction of AR glasses respectively
Each displacement distance b to the left and to the right, wherein, b need to be more than a.
For example, camera is on the interpupillary distance direction of AR glasses when being moved to the left, in the distance of -10mm using -2mm as step-length into
Row follow shot, then when being moved to the left on the interpupillary distance direction of AR glasses, the camera site of camera has at 5 camera, each to shoot
Displacement distance corresponding to position is LC1=-2mm, LC2=-4mm, LC3=-6mm, LC4=-8mm and LC5=-10mm;Together
Sample, camera carries out mobile bat in the distance of 10mm when moving right on the interpupillary distance direction of AR glasses by step-length of 2mm
It takes the photograph, then when moving right on the interpupillary distance direction of AR glasses, the camera site of camera equally has at 5 camera, each camera site
Corresponding displacement distance is RC1=2mm, RC2=4mm, RC3=6mm, RC4=8mm and RC5=10mm.
By the movement of camera, this unintelligible-clear-unintelligible change procedure is presented in captured shooting figure sector-meeting,
By obtaining the displacement distance corresponding to each camera site and the definition values of the shooting picture captured by the camera site, then
One can be fitted using camera initial position as origin, using camera site as X-axis, with the shooting picture of corresponding camera site
Picture clarity value is the articulation curve of Y-axis, which is similar to parabola, the X-axis coordinate of vertex of a parabola
Camera site is in the range of (L1+a, L1-a), then the interpupillary distance of the AR glasses then bat for L1 and the X-axis coordinate of vertex of a parabola
It acts as regent and puts twice of the sum of corresponding displacement distance.
For example, in above-mentioned, found by curve matching, when the displacement distance corresponding to camera site is LC3, camera institute
The definition values highest of the shooting picture of shooting, and the camera site is in the range of (L1+a, L1-a), then the AR glasses
Interpupillary distance is then (L1+LC3) * 2;If the camera site outside the range of (L1+a, L1-a), then illustrates depositing for the interpupillary distance of AR glasses
In problem, need to confirm the structure size of each critical component of AR glasses and the error of assembling etc..
Further, clarity analysis is being carried out to acquired shooting picture, is obtaining the shooting figure of corresponding camera site
During the picture clarity value of piece, center picture region and the region of picture quadrangle four are chosen in picture is shot as clarity point
Analysis point;For example, the definition values of the center picture region clarity analysis site of shooting picture are set as P1, the region of picture quadrangle four
The definition values of clarity analysis site are respectively P2, P3, P4 and P5, according to the image-forming principle of camera and ray machine it is found that in picture
The definition values P1 highests of heart district domain clarity analysis site, it is therefore, clear in the picture for the shooting picture for obtaining corresponding camera site
During clear angle value, need to meet P1 and be all higher than P2, P3, P4 and P5.
In addition, to ensure that projection optical axis is not vertically crooked, the definition values of the four region clarity analysis sites in picture quadrangle
Very poor R need to be less than K, wherein, K is constant, according to the type of AR glasses come determine that is, meet P1 be all higher than P2, P3,
Under the premise of P4 and P5, it is also necessary to the difference R for meeting maximum value and the minimum value in P2~P5 in P2~P5 is less than K, in this way,
It then can determine the average value that the picture clarity value of the shooting picture of corresponding camera site is P1~P5.
Corresponding with the above method, the present invention provides a kind of AR glasses interpupillary distance test device, utilizes above-mentioned AR glasses pupils
The interpupillary distance of AR glasses is tested away from test method.Fig. 3 shows AR glasses interpupillary distance test dress according to embodiments of the present invention
The structure put.
As shown in figure 3, AR glasses interpupillary distance test device provided by the invention includes measurement jig 31, camera 32, perspective view
Piece generating mechanism and interpupillary distance analysis institution;Wherein, AR glasses to be measured are fixed on measurement jig 31, are set on measurement jig 31
There is mobile mechanism's (not shown), camera is fixed in mobile mechanism, and the initial position with projection optical axis 5 for camera passes through
Mobile mechanism drive camera with default step-length to the left and to the right each mobile pre-determined distance respectively on the interpupillary distance direction of AR glasses;It throws
Shadow picture generating mechanism is connected with AR glasses to be measured, for AR glasses to be measured to be controlled to generate projection image 3 on eyeglass 2, so that
Camera 32 in corresponding pre-determined distance using the displacement distance of each default step-length by camera site to the projection image that generates into
Row shooting;Interpupillary distance analysis institution is connected with camera 32, for carrying out clarity analysis to the shooting picture captured by camera 32, obtains
The camera site corresponding to the highest shooting picture of picture clarity value in shooting picture is taken, and according to acquired definition values
The camera site of highest shooting picture determines the interpupillary distance of AR glasses to be measured.
It should be noted that above-mentioned projection image generating mechanism and interpupillary distance analysis institution is arranged at control system 33
In, which can be computer or industrial personal computer etc..
Wherein, interpupillary distance analysis institution further comprises picture clarity value acquisition module (not shown), the clarity
Value acquisition module is used to obtain the definition values of the shooting picture captured by camera;Wherein, the shooting captured by camera is being obtained
During the definition values of picture, center picture region and the region of picture quadrangle four are chosen in picture is shot as clear
Analysis site is spent, the picture clarity value of shooting picture is determined according to the definition values of each clarity analysis site.
Specifically, in the mistake for the picture clarity value that shooting picture is determined according to the definition values of each clarity analysis site
Cheng Zhong, when the definition values of center picture region clarity analysis site are all higher than the region clarity analysis site of picture quadrangle four
Definition values, and highest definition values in the region clarity analysis site of picture quadrangle four and the region of picture quadrangle four are clear
When spending the difference of the visibility minimum value in analysis site less than presetting very poor, the picture clarity value for shooting picture is center picture
Region clarity analysis site and the average value of the definition values of the four region clarity analysis sites in picture quadrangle.
By above-mentioned it is found that AR glasses interpupillary distance test method provided by the invention and device be not by the shape of AR glasses to be measured
The influence of shape, size and interpupillary distance range, and passability easy to operate is strong, can precision it is high and at low cost to AR large batch of
The interpupillary distance of mirror is tested.
AR glasses interpupillary distance test method according to the present invention and device are described in an illustrative manner above with reference to attached drawing.But
It is, it will be appreciated by those skilled in the art that the AR glasses interpupillary distance test methods and device that are proposed for the invention described above, may be used also
To make various improvement on the basis of the content of present invention is not departed from.Therefore, protection scope of the present invention should be by appended power
The content of sharp claim determines.