Summary of the invention
It is an object of the invention to provide lenticular spacing control method and the device thereof of a kind of virtual helmet, makeTwo lenticular spacings obtained in the virtual helmet can be automatically adjusted according to the interpupillary distance of user, thus makes userDuring with, it is possible to automatically adapt to the pupil width of different user, it is provided that to the use impression that user is optimal.
For solving above-mentioned technical problem, embodiments of the present invention provide between the lens of a kind of virtual helmetAway from control method, comprise the steps of
Utilize and tilt the micro-camera shooting human eye being installed on lens frame;
The eye image of micro-camera shooting is carried out eyeball detection, obtains the eyeball position in eye imagePut;
According to the eyeball position obtained, adjust lens position, until human eye overlaps with the center of lens.
Embodiments of the present invention additionally provide the lenticular spacing adjusting means of a kind of virtual helmet, comprise:
Tilt to be installed on the micro-camera on lens frame, be used for shooting human eye;
Image detection module, for the eye image of micro-camera shooting is carried out eyeball detection, obtains peopleEyeball position in eye pattern picture;
Control device, for according to the eyeball position obtained, adjust lens position, until human eye is with describedThe center of lens overlaps.
In terms of existing technologies, it is micro-that utilization inclination is installed on lens frame embodiment of the present inventionType camera shooting human eye, carries out eyeball detection to the eye image of shooting, obtains the eyeball in eye imagePosition, according to the eyeball position obtained, adjusts lens position, until human eye is heavy with the center of lensClose.The eyeball position utilizing eye image detects, and automatically carries out whole adjustment process so that two lensSpacing can adapt to the pupil width of different user automatically, completely without human intervention, thus avoidsManually regulate the complexity of lenticular spacing.And by the detection of eyeball position can be obtained the most accuratelyData, thus ensure that the accuracy that lenticular spacing regulates, it is provided that to the use impression that user is optimal.
It addition, micro-camera is installed on the upper side frame of described lens or the center of lower frame;
According to the eyeball position obtained, adjust lens position, until described human eye and the center of described lensIn the step that position overlaps, if described in the center weight of the eyeball position that obtains and described eye imageClose, then judge that described lens position has adjusted.
Micro-camera is arranged on the center of upper and lower side frame, it is ensured that the centre bit of the eye image photographedPut the center with lens to coincide, so convenient calculating eyeball position and and the deviation of lens centre distanceDistance and bias direction so that by judging whether eyeball position overlaps with the center of eye image,Can judge whether to complete the adjustment of lens position, improve efficiency that lenticular spacing is automatically adjusted andAccuracy.
It addition, according to the eyeball position calculated and the offset distance of the center of eye image and deviationDirection, obtains the adjustment direction of lens and adjusts distance, thus adjusting lens to target location.Pass throughCalculating offset distance and the bias direction of the center of eyeball position and eye image, obtain is the brightestTrue data, compare more manually regulation lenticular spacing time with user feel operate, substantially increaseThe accuracy of regulation.
It addition, in the step adjusting lens position, right lenses is carried out by independent control device respectivelyThe adjustment of position.Control the lens on both sides respectively by controlling device so that it is the most to the left or toMove right, until meeting the condition of coincideing.Make in the case of right and left eyes is asymmetric, also can realize lensAccurate with user's pupil mates, and makes the performance of the virtual helmet reach best, can meet special user'sUse demand, substantially increases the competitiveness of product.
Detailed description of the invention
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to thisBright each embodiment is explained in detail.But, it will be understood by those skilled in the art thatIn each embodiment of the present invention, propose many technology to make reader be more fully understood that the application thinJoint.But, even if there is no these ins and outs and many variations based on following embodiment and amendment,The application each claim technical scheme required for protection can also be realized.
First embodiment of the present invention relates to the lenticular spacing control method of a kind of virtual helmet, specifically flowsJourney is as shown in Figure 2.
In step 201, the micro-camera shooting human eye that inclination is installed on lens frame is utilized.SpecificallyGround is said, in the present embodiment, needs to install on lens frame in advance the Miniature phase for shooting human eyeMachine.Such as, in advance two micro-cameras are tilted to be installed on two lens upper side frames or lower frame respectivelyCenter on, as shown in Figure 3.Installed by inclination, to guarantee to photograph human eye.It addition,The center that micro-camera is separately mounted to upper side frame or lower frame can ensure that the people's eye pattern photographedThe center of picture and the center of lens coincide, so convenient calculating eyeball position and position, lens centreThe offset distance put and bias direction, improve efficiency and accuracy that lenticular spacing is automatically adjusted.Micro-The gradient that type camera is installed is relevant to the angle of visual field of this micro-camera, and the angle of visual field is the biggest, and gradient is the least.Additionally, it is appreciated that the distance dependent that the gradient of micro-camera installation is also and between camera and human eye,Distance is the biggest, and gradient is the least.
In this step, utilize micro-camera shooting to obtain eye image, during shooting, require that user keeps eyeBall, according to normal mode viewing front screen, i.e. look straight ahead, is not looked side ways.Can ensure that the human eye photographedThe center of position and eye image in the same horizontal line, such that it is able to judge human eye position very easilyPut and whether match with the horizontal centre of imaging, be also convenient for the centre bit calculating eyeball position with eye imageThe bias direction put and offset distance.
In step 202., eye image is carried out eyeball detection and obtains eyeball position.Utilize existing figureAs detection technique, the detection of eyeball position in image can be realized, do not repeat them here.
In step 203, bias direction and the deviation of the center of eyeball position and eye image are calculatedDistance, as adjustment direction and the adjustment distance of lens.Specifically, due to position of human eye and people's eye patternThe center of picture in the same horizontal line, so bias direction here is the most to the left and two kinds to the right.Such as, the eyeball position left side in the center of eye image detected, then explanation need by lens toMove left;If be detected that eyeball position is on the right of the center of eye image, then explanation need byLens move right.
In step 204, it is judged that whether offset distance is zero.Specifically, if offset distance is zero,Illustrating that the center of position of human eye and eye image overlaps, the most virtual helmet has reached most preferably to useEffect, then lenticular spacing adjustment process terminates.If it is judged that be no, eyeball position and lens are describedCentre bit be equipped with deviation, then enter step 205 lens are adjusted.
In step 205, according to the adjustment direction obtained in step 204 and adjustment distance, lens are enteredRow sum-equal matrix, makes position of human eye overlap with the center of lens.Specifically, when two eyes being detectedInterpupillary distance and lenticular spacing inconsistent time, available microelectromechanicdevices devices is according to the adjustment direction calculatedWith the position that distance is automatically adjusted two lens so that it is move the most to the left or to the right, until meetingThe condition of coincideing.Such as, if be detected that eyeball position is on the left side of the center of eye image, thenUtilize the microelectromechanicdevices devices control to lens, make lens be moved to the left to eyeball position and overlap, in like manner,If be detected that eyeball position is on the right of the center of eye image, then utilize microelectromechanicdevices devices to thoroughlyThe control of mirror, makes lens move right to eyeball position and overlaps, as shown in Figure 4.
In the present embodiment, after user wears virtual implementing helmet, press by clicking on the outside of the helmetButton, or select the lenticular spacing automatic regulation function in function menu, i.e. automatically starting lenticular spacingAutomatic adjusument such that it is able to automatically adapt to the pupil spacing of different user, make user obtain optimal viewingEffect.
Being not difficult to find out, present embodiment utilizes the eyeball position of eye image to detect, and automatically carries out whole tuneIt has suffered journey so that two lenticular spacings can adapt to the pupil width of different user automatically, completely withoutHuman intervention, thus avoid the complexity manually regulating lenticular spacing.And by eyeball positionDetection can obtain data the most accurately, thus ensure that the accuracy that lenticular spacing regulates, it is provided that gives and usesThe use impression that family is optimal.And, use the lenticular spacing control method of present embodiment, simple to operate,And be easily achieved, cost is relatively low.
In addition, it is necessary to explanation, in the present embodiment, it is contemplated that convenience of calculation, in advance by twoMicro-camera tilts to be installed on the center of two lens upper side frames or lower frame respectively.Certainly, realBorder operation can not also be contained in center, in this case it is necessary to first calculate micro-cameraInstallation site and lens frame center departure in the horizontal direction and bias direction (i.e. shootThe departure of the center of image and position, lens centre and bias direction), in conjunction with the human eye of shootingThe detection of the eyeball position of image, is adjusted lens position, makes position, lens centre and eyeball positionOverlap.
Second embodiment of the present invention relates to the lenticular spacing control method of a kind of virtual helmet.Second is realExecute mode roughly the same with the first embodiment, differ primarily in that: in the first embodiment, controlLens are adjusted by device according to adjustment direction and adjustment distance, the most generally can once be adjusted in place.And in the present embodiment, for adjusting the control device (such as microelectromechanicdevices devices) of lens position according to tunePerfect square to, with default step-length adjust lens distance, idiographic flow as shown in Figure 5:
Step 201-202 in step 501-502 and the first embodiment is the same, does not repeats them here.
In step 503, calculate the bias direction of eyeball position and the center of eye image, asThe adjustment direction of lens.Specifically, owing to the center of position of human eye and eye image is at same waterOn horizontal line, so bias direction here only has the most to the left and two kinds to the right.
In step 504, according to adjustment direction, lens distance is adjusted with default step-length.Specifically,Here default step-length is fixed step size set in advance in the virtual helmet, as 0.1mm, certainly, usesThe needs of Adjustment precision can also be configured on the virtual helmet by family according to individual.In present embodimentBias direction have to the left or two kinds to the right, if be detected that eyeball position is at the centre bit of eye imageThe left side put, then control lens by microelectromechanicdevices devices and be moved to the left default step-length.In like manner, if detectedTo eyeball position on the right of the center of eye image, then control lens to the right by microelectromechanicdevices devicesMobile default step-length.
In step 505, again shoot human eye, obtain eye image.This step and the first embodimentIn step 201 identical, do not repeat them here.
In step 506, it is judged that whether eyeball position overlaps with the center of eye image.SpecificallySay, obtaining eyeball position by eye image being carried out eyeball detection, calculating eyeball position and eye imageThe bias direction of center and offset distance, judge whether both overlap.If it is judged that beBe to illustrate that the virtual helmet has reached optimal using effect, then lenticular spacing adjusts and terminates.If it is determined thatResult is no, illustrates that the centre bit of eyeball position and lens is equipped with deviation, then return to step 505 continue withPreset step-length and adjust lens distance.
Present embodiments provide for the specific implementation of another kind of regulation lens position so that the present invention'sEmbodiment can be flexible and changeable realization, thus there is wider application scene.
Third embodiment of the invention relates to the lenticular spacing control method of a kind of virtual helmet, this embodiment partyFormula has done further improvement on the basis of the first embodiment, mainly thes improvement is that: this embodiment partyFormula is in the step adjusting lens position, and right lenses is carried out the tune of position by the independent device that controls respectivelyWhole.Left control microelectromechanicdevices devices is for carrying out position adjustment to left lens, and right control microelectromechanicdevices devices is used forRight lens are carried out position adjustment.
In view of the asymmetric situation of certain customers' right and left eyes likely occurs, therefore right lenses respectively byThe independent device that controls carries out the adjustment of position so that in the case of right and left eyes is asymmetric, also can realizeLens accurately mate with user's pupil, make the performance of the virtual helmet reach best, can meet special useThe use demand at family, substantially increases the competitiveness of product.
The step of the most various methods divides, and is intended merely to describe clear, it is achieved time can merge into oneStep or split some step, is decomposed into multiple step, as long as comprising identical logical relation,All in the protection domain of this patent;To adding inessential amendment in algorithm or in flow process or drawingEnter inessential design, but do not change the core design of its algorithm and flow process all at the protection model of this patentIn enclosing.
Four embodiment of the invention relates to the lenticular spacing adjusting means of a kind of virtual helmet, such as Fig. 6 instituteShow, comprise:
Tilt to be installed on the micro-camera on lens frame, be used for shooting human eye.
Micro-camera is installed on the upper side frame of lens or the center of lower frame.
Image detection module, for the eye image of micro-camera shooting is carried out eyeball detection, obtains peopleEyeball position in eye pattern picture.
Control device, for according to the eyeball position obtained, adjust lens position, until human eye is with describedThe center of lens overlaps.
Wherein, control device and also comprise the left control microcomputer Denso for left lens being carried out position adjustmentPut, and for right lens being carried out the right control microelectromechanicdevices devices of position adjustment.
It is seen that, present embodiment is the system embodiment corresponding with the first embodiment, this enforcementMode can be worked in coordination enforcement with the first embodiment.The relevant technical details mentioned in first embodimentThe most effective, in order to reduce repetition, repeat no more here.Correspondingly, this enforcementThe relevant technical details mentioned in mode is also applicable in the first embodiment.
It is noted that each module involved in present embodiment is logic module, in realityIn application, a logical block can be a physical location, it is also possible to be one of a physical locationPoint, it is also possible to realize with the combination of multiple physical locations.Additionally, for the innovative part highlighting the present invention,Not by the unit the closest with solving technical problem relation proposed by the invention in present embodimentIntroduce, but this is not intended that in present embodiment the unit that there is not other.
It will be understood by those skilled in the art that the respective embodiments described above are realize the present invention concreteEmbodiment, and in actual applications, can to it, various changes can be made in the form and details, and the most inclinedFrom the spirit and scope of the present invention.