Disclosure of Invention
The technical problem to be solved by the invention is as follows:
the invention provides an alignment method for detecting a display screen of near-eye equipment, and aims to solve the problem that the display area of a near-eye display is small, so that the best test point of a test instrument is difficult to align with the display area.
The invention adopts the following technical scheme for solving the technical problems:
the invention provides an alignment system for detecting a display screen of near-eye equipment, which comprises a mechanical module, an image acquisition module and a control module, wherein the mechanical module is used for detecting the display screen of the near-eye equipment;
the mechanical module comprises a guide rail, a first cloud platform, a second cloud platform, a third cloud platform and a driving module, wherein the first cloud platform is used for fixing a display screen to be tested, the second cloud platform is used for fixing the image acquisition module, the third cloud platform is used for fixing a testing instrument, and positioning points for identification are marked on the testing instrument; the driving module receives the signal of the control module and outputs a control signal to the first to third holders and the guide rail;
the control module receives the image acquired by the image acquisition module, processes and calculates the position and angle parameters of the object contained in the image, compares the position and angle parameters with positioning information stored by the control module, obtains the deviation amount of the position and angle of the object compared with the target position and angle, and outputs a corresponding control signal to the mechanical module; and the mechanical module receives the control signal and adjusts the spatial positions and the deflection angles of the first and second cloud platforms until the deviation amount of the position and the angle of the image containing object compared with the target position and the angle is less than a preset threshold value.
An alignment system for near vision device display screen inspection as described above, further comprising: the image acquisition module comprises a camera and a video processing chip; the video processing chip is used for encoding and decoding videos.
An alignment system for near vision device display screen inspection as described above, further comprising: the control module comprises a visual processing module and a motion control module, the visual processing module receives the image and outputs the position parameter and the angle parameter of the display screen to be tested, and the motion control module receives the position parameter and the angle parameter, calculates the position deviation and outputs a control signal to the mechanical module.
An alignment system for near vision device display screen inspection as described above, further comprising: the alignment system further comprises a display interaction module, wherein the display interaction module is used for displaying the position deviation amount between the camera and the test instrument and the position deviation amount between the camera and the display screen to be tested; the display interaction module is used for receiving the position deviation amount between the camera and the testing instrument and the threshold value of the position deviation amount between the camera and the display screen to be tested.
The invention also provides an alignment method for detecting the display screen of the near-vision type equipment, which comprises the following steps:
step one, resetting: restoring the first, second and third holders to the initial positions; fixing the height of the third holder;
step two, positioning a camera: adjusting the angle and the height of the second holder to enable the visual field of a camera fixed on the second holder to initially align with the test instrument; acquiring relative positions of a positioning point calibrated on a test instrument and a camera by acquiring images, and calculating to obtain relative position information of the camera and the test instrument; adjusting the height and the angle of a second cloud platform according to the relative position information, and adjusting the angle of a third cloud platform until the relative position error of the camera and the test instrument is smaller than a preset error threshold value;
step three, preliminary alignment of the display screen to be tested: keeping the height of the second holder unchanged, horizontally rotating the second holder by 180 degrees, and preliminarily aligning the second holder to the first holder; fixing a display screen to be tested on a first cloud deck, lighting the display screen to be tested, and displaying a test image;
step four, accurately aligning the display screen to be tested: fixing a second cloud platform, adjusting the height and the angle of the first cloud platform, and acquiring an image by using the camera to obtain an actual image;
comparing the stored test image with the measured actual image, calculating to obtain the deviation amount of the actual position of the display screen to be tested and the target position of the display screen to be tested, outputting a control signal to the mechanical module, and adjusting the height and the angle of the first holder;
step six, stopping until the deviation amount of the actual position of the display screen to be tested and the target position of the display screen to be tested is smaller than a preset threshold value;
and seventhly, removing the second holder.
The alignment method for the display screen detection of the near vision type equipment as described above further comprises the following steps: and step three, the test image comprises a plurality of test points for positioning.
The alignment method for the display screen detection of the near vision type equipment as described above further comprises the following steps: step five, the step of calculating the deviation amount between the actual position of the display screen to be tested and the target position of the display screen to be tested comprises the following steps:
5.1, detecting to obtain target image characteristic points;
5.2, measuring to obtain actual image characteristic points;
5.3, comparing the corresponding characteristic points of the target image and the actual image to obtain an offset value;
and 5.4, carrying out differential operation on the offset value and outputting a control signal.
Compared with the prior art, the invention adopting the technical scheme has the following technical effects:
the invention provides an alignment method for detecting a display screen of near-eye equipment, which combines a visual image processing technology and an automatic control technology, can realize that test points of a measuring instrument are accurately aligned to a display area of the near-eye equipment by flexibly using high-precision mechanical transmission and visual image processing, changes manual calibration into automatic machine alignment, effectively reduces subjective errors in a testing process, and further improves repeatability and stability of testing work.
On the other hand, the alignment method can effectively solve the problem that the best test point of the test instrument is difficult to align to the display area in the test process due to the small display area and the small visual angle range of the near-eye display, and simultaneously reduces the test instability caused by manual operation.
Detailed Description
The technical scheme of the invention is further explained in detail by combining the attached drawings:
it will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
Because the display area of the near-eye display is small and the field angle is small, the best test point of the test instrument is difficult to align with the display area, and the manual alignment of the best test point causes large subjective error and brings unstable test data.
Fig. 1 is a schematic structural diagram of an alignment system according to the present invention. As shown in the drawings, the alignment system of the present invention includes a guide rail, first to third pan/tilt heads, a control module, and an image capturing system. The first cloud platform is used for bearing a display to be tested, the second cloud platform is used for bearing a camera, the third cloud platform is used for bearing a testing instrument, and the three cloud platforms are sequentially arranged on the guide rail.
In the testing process, as shown in fig. 2, the three holders are first reset, that is, the first, second, and third holders are restored to the initial positions, and the height of the third holder is fixed. The angle of rotation of the third holder in the horizontal direction is not fixed, because the direction of the viewing angle is not determined by the test instrument carried by the third holder.
And determining the relative position of the camera on the second holder and the test instrument, wherein the target is to make the visual field center line of the camera coincide with the cause center line of the test instrument. Preliminarily adjusting the angle and the height of the second holder, and preliminarily aligning the visual field of a camera fixed on the second holder with the test instrument; the image acquisition device shoots images through the camera to obtain images with positioning points calibrated on the test instrument, and the relative positions of the image acquisition device and the test instrument are calculated by using the positions of the positioning points in the images. And adjusting the two cloud platforms according to the relative position information, wherein the height and the angle of the second cloud platform are adjusted, and the angle of the third cloud platform is adjusted until the relative position error of the camera and the test instrument is smaller than a preset error threshold value.
The third step is to align the display screen to be tested. Specifically, the height of the second holder is kept unchanged, the second holder is horizontally rotated by 180 degrees, and the visual field of a camera on the second holder is initially aligned to the first holder; the method comprises the steps of fixing a display screen to be tested on a first cloud deck, lighting the display screen to be tested, and displaying a test image, wherein the test image comprises a plurality of test points for positioning. Fixing a second cloud platform, adjusting the height and the angle of the first cloud platform, and acquiring an image by using the camera to obtain an actual image; and comparing the stored test image with the measured actual image, and calculating to obtain the deviation amount of the actual position of the display screen to be tested and the target position of the display screen to be tested. Specifically, in the first step, target image feature points are obtained through detection; secondly, measuring to obtain actual image characteristic points; thirdly, comparing the corresponding characteristic points of the target image and the actual image to obtain an offset value; and fourthly, carrying out differential operation on the deviation value and outputting a control signal. Then outputting a control signal to the mechanical module, and adjusting the height and the angle of the first holder; stopping until the deviation amount of the actual position of the display screen to be tested and the target position of the display screen to be tested is smaller than a preset threshold value;
and finally removing the second holder.
The system and the method can realize the intelligent automatic alignment effect of the optimal test point by combining the visual processing technology and the automatic control technology, effectively improve the objectivity and the intellectualization of the test work and reduce the subjective error caused by manual operation. Finally, the alignment of the optimal test point of the test instrument with the display area of the tested near-eye display is realized, so that the problems of difficult test point alignment and unstable test result caused by manual test point alignment due to small display area and small visual field angle of the near-eye display are solved.
The foregoing is only a partial embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.