Disclosure of Invention
In view of the above problems, an object of the present invention is to provide a method and an apparatus for testing an eccentric parallax, so as to solve the problems of the current products, such as insufficient intuitive result, complicated operation, and low accuracy during the eccentric parallax testing process.
The invention provides an eccentric parallax testing method, which comprises the following steps: manufacturing a test graphic card based on the resolution of the display screen of the product to be tested, and guiding the test graphic card into the product to be tested; controlling a display screen to play a test graphic card through a product to be tested; shooting a test graphic card played by a display screen through a camera, and acquiring a test image corresponding to the test graphic card; and transmitting the test image to a test system, and obtaining the eccentric parallax of the product to be tested after the image processing of the test system.
In addition, the preferable technical scheme is that the test chart card comprises a black background card and a double-cross line which is arranged on the black background card and is provided with two intersection points; the intersection point positions of the double cross lines respectively correspond to the central positions of the left eye and the right eye of the product to be detected.
In addition, the preferred technical scheme is that the double-cross lines comprise a horizontal line and two vertical lines which are parallel to each other; the intersection point of the vertical line and the horizontal line is the intersection point position of the double-cross line.
In addition, the preferred technical scheme is that the double-cross lines comprise two groups of cross lines; the intersection positions of the two groups of crossed lines respectively correspond to the central position setting values of the left eye and the right eye of the product to be detected.
Further, it is preferable that the line width of the double cross line is equal to the size of one pixel of the display screen.
In addition, it is preferable that position mark information is provided at least one intersection of the double crossing lines.
In addition, it is preferable that the position mark information includes left-eye mark information and/or right-eye mark information.
In addition, the preferable technical scheme is that the process of acquiring the eccentric parallax of the product to be tested through the test system comprises the following steps: carrying out high-pass filtering processing on the test image to eliminate pixel points of low-frequency components such as stray light and the like protruding out of double cross lines on the test image; carrying out image enhancement processing on the image subjected to the high-pass filtering processing so as to enhance pixel points of double cross lines; and performing linear fitting on the pixel points in the image after the enhancement processing, and determining the eccentric parallax of the product to be detected according to the fitted linear.
Further, it is preferable that the off-center parallax includes an X-direction off-center parallax and a Y-direction off-center parallax.
According to another aspect of the present invention, an eccentric parallax testing apparatus is provided, which performs an eccentric parallax test on a product to be tested by using the eccentric parallax testing method; the eccentric parallax testing device comprises a product fixing tool, a camera fixing tool and a testing system; the device comprises a product to be detected, a camera fixing tool and a product fixing tool, wherein the product to be detected is limited on the product fixing tool; the camera is used for shooting a test graphic card played by a display screen of a product to be tested and transmitting the test graphic card to the test system; the test system is used for determining the eccentric parallax of the product to be tested according to the test graphic card.
By using the eccentric parallax testing method and device, the test chart card played by the VR waiting to be tested can be shot by the camera, so that the eccentric parallax data of the product can be obtained quantitatively according to the corresponding test image, different test chart cards can be set according to the test requirements, and the method and device are high in flexibility, low in requirement on the test environment, wide in application range and high in accuracy.
To the accomplishment of the foregoing and related ends, one or more aspects of the invention comprise the features hereinafter fully described. The following description and the annexed drawings set forth in detail certain illustrative aspects of the invention. These aspects are indicative, however, of but a few of the various ways in which the principles of the invention may be employed. Further, the present invention is intended to include all such aspects and their equivalents.
Detailed Description
In the following description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of one or more embodiments. It may be evident, however, that such embodiment(s) may be practiced without these specific details. In other instances, well-known structures and devices are shown in block diagram form in order to facilitate describing one or more embodiments.
In the description of the present invention, it is to be understood that the terms "central," "longitudinal," "lateral," "length," "width," "thickness," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," "clockwise," "counterclockwise," "axial," "radial," "circumferential," and the like are used in the orientations and positional relationships indicated in the drawings for convenience in describing the invention and to simplify the description, and are not intended to indicate or imply that the referenced devices or elements must have a particular orientation, be constructed and operated in a particular orientation, and are therefore not to be considered limiting of the invention.
To describe the eccentric parallax test method and apparatus according to the embodiments of the present invention in detail, the following describes embodiments of the present invention in detail with reference to the accompanying drawings.
Fig. 1 shows a flow of an eccentric parallax test method according to an embodiment of the present invention.
As shown in fig. 1, the eccentric parallax testing method according to the embodiment of the present invention includes the following steps:
s110: and manufacturing a test graphic card based on the resolution of the display screen of the product to be tested, and guiding the test graphic card into the product to be tested.
The size of the test graphic card can be set according to the resolution of the display screen of the product to be tested, and the shape of the test graphic card can be adjusted and deformed according to the structure of the product to be tested; as a specific example, the test card may include a black background card and a double cross line disposed on the black background card and having two intersection points, where the two intersection points are located at two positions corresponding to the central positions of the left and right eyes of the product to be tested, respectively.
In particular, FIG. 2 shows a schematic pattern of a test card according to an embodiment of the present invention.
As shown in fig. 2, the test chart card according to the embodiment of the present invention includes a background card and a double cross line disposed on the background card, where the double cross line may include a horizontal line and two vertical lines parallel to each other, and an intersection of the two vertical lines and the horizontal line is used as two intersection positions of the double cross line; or the double cross lines are set to be in a form of two groups of cross lines, and the intersection positions of the two groups of cross lines respectively correspond to the central positions of the left eye and the right eye of the product to be detected.
It is understood that the background color of the test chart card may be set to other color systems that can be distinguished from the color of the double crossing lines, in addition to black, for example, the background color of the test chart card may be set to black, the double crossing lines may be set to green, or the background color of the test chart card may be set to green, or the double crossing lines may be set to other colors such as black or red, and the double crossing lines may be displayed in a distinguishable manner. The double crossing lines arranged on the test chart card can also be arranged in other forms with two crossing points or two marked points, and are not limited to the specific structure shown in the figures.
In an embodiment of the present invention, the line width of the double-cross line may be set to be equal to the size of one pixel of the display screen of the product to be tested, or to be greater than the width of one pixel of the display screen.
FIG. 3 shows a pattern of a test card with location mark information according to an embodiment of the invention.
As shown in fig. 3, in order to assist the tester to distinguish two intersection points of the double crossing lines as the left eye center or the right eye center of the product to be tested, in the eccentric parallax test method of the present invention, position mark information may also be set at least one intersection point of the double crossing lines, and the position mark information may include left eye mark information and/or right eye mark information.
For example, a mark such as a line segment, a dot or other shape may be provided on one side of any intersection of the double-cross lines to assist in distinguishing the left and right positions of the product, and the specific structure of using the line segment as the center position of the right eye of the product to be measured in fig. 3 is not limited.
S120: and controlling the display screen to play the test chart through the product to be tested.
S130: and shooting the test graphic card played by the display screen through the camera, and acquiring a test image corresponding to the test graphic card.
The exposure time of the camera can be adjusted to match the refreshing frequency of the display screen of the product to be tested, so that the camera can shoot stable test images, the relative position of the product to be tested or the camera can be adjusted in the test process, the binocular center of a test chart played by the product to be tested can be captured by the camera, and high-quality test images can be obtained.
S140: and transmitting the test image to a test system, and processing the test image by the test system to obtain the eccentric parallax of the product to be tested.
In the step, a test image shot by the camera is transmitted to the test system, and the test system processes the test image and acquires eccentric parallax data corresponding to a product to be tested.
In particular, fig. 4-6 respectively show test images at different processing stages in a process according to an embodiment of the invention.
As shown in fig. 4 to fig. 6, the process of processing the test image by the test system according to the embodiment of the present invention to obtain the eccentric parallax of the product to be tested includes the following steps:
1. carrying out high-pass filtering processing on the test image to eliminate pixel points lower than a preset value on the test image; and pixel points with prominent low-frequency components in the double-cross line halo region can be removed through high-pass filtering processing.
2. Carrying out image enhancement processing on the image subjected to the high-pass filtering processing so as to enhance pixel points of double cross lines; the processing of the step can enhance the brightness of the pixel points of the double-cross lines, and facilitates the subsequent straight line fitting operation.
3. And performing linear fitting on the pixel points in the image after the enhancement processing, and determining the eccentric parallax of the product to be detected according to the fitted linear.
And C, performing straight line fitting on the positions of the pixel points of the double-cross lines in the test image processed in the step 2, marking the fitted straight lines in the test image, and calculating to obtain the eccentric parallax of the product to be tested according to the intersection point positions of the straight lines. As shown in fig. 6, the off-center parallax includes an X-direction off-center parallax and a Y-direction off-center parallax.
Corresponding to the eccentric parallax testing method, the invention also provides an eccentric parallax testing device. Fig. 7 shows a schematic structure of an eccentric parallax test apparatus according to an embodiment of the present invention.
As shown in fig. 7, the eccentric parallax testing apparatus according to the embodiment of the present invention includes a product fixing tool 1, a camera fixing tool 2, and a testing system 5; the device comprises a product fixing tool 1, a camera 4, a test system 5, a test system 4, a test image card and a test image card, wherein the product 3 to be tested is limited on the product fixing tool 1, the camera 4 is limited on the camera fixing tool 2, the product 3 to be tested and the camera 4 are both connected with the test system 5, the test image card played by the product 3 to be tested is controlled to be played through the test system 5, the test image card played by a display screen of the product 3 to be tested is shot through the camera 4, and a corresponding test image is obtained and transmitted to the test system 5; the test system 5 is used for processing the test image and acquiring the eccentric parallax of the product 3 to be tested based on the processing result.
Wherein, the relative position relation between 3 and the camera 4 of awaiting measuring is adjusted to the position of the fixed frock 1 of accessible adjustment product or the position of the fixed frock 2 of camera, and it can to ensure that the camera can be complete shoot the left and right eyes central point of test chart put.
It should be noted that, the embodiments of the eccentric parallax test apparatus can refer to the description in the embodiments of the eccentric parallax test method, and details are not repeated here.
By using the eccentric parallax testing method and device provided by the invention, the testing graphic card played by the product to be tested is shot by the camera, the obtained testing image is sent to the testing system, the eccentric parallax value of the product is determined quantitatively by processing the testing image by the testing system, the testing graphic card can be flexibly set according to the testing requirement, the requirement on the testing environment is not high, the testing process is not interfered, the application range is wide, and the testing accuracy is high.
The eccentric parallax test method and apparatus according to the present invention are described above by way of example with reference to the accompanying drawings. However, it should be understood by those skilled in the art that various modifications can be made to the above-described eccentric parallax testing method and apparatus without departing from the scope of the present invention. Accordingly, the scope of the invention should be determined from the content of the appended claims.