CN104990689B - Localization method and device in a kind of optic test - Google Patents
Localization method and device in a kind of optic test Download PDFInfo
- Publication number
- CN104990689B CN104990689B CN201510312888.7A CN201510312888A CN104990689B CN 104990689 B CN104990689 B CN 104990689B CN 201510312888 A CN201510312888 A CN 201510312888A CN 104990689 B CN104990689 B CN 104990689B
- Authority
- CN
- China
- Prior art keywords
- screen
- distance
- image
- adjusted
- point
- 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
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 149
- 238000000034 method Methods 0.000 title claims abstract description 28
- 230000004807 localization Effects 0.000 title abstract 2
- 230000003287 optical effect Effects 0.000 claims description 21
- 238000010586 diagram Methods 0.000 description 10
- 238000004590 computer program Methods 0.000 description 7
- 238000012986 modification Methods 0.000 description 5
- 230000004048 modification Effects 0.000 description 5
- 230000006870 function Effects 0.000 description 4
- 230000004075 alteration Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
Landscapes
- Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)
Abstract
The invention discloses the localization method in a kind of optic test and device.Its method includes:Image is obtained using the view finder of test instrumentation, the all or part of the preset pattern for the indicating position that equipment under test is shown is shown on image, the preset pattern of indicating position indicates its display location and the relative position of the default screen anchor point of equipment under test screen, the view finder of equipment under test screen and the test instrumentation in optic test on the screen of equipment under test and is oppositely arranged;According to the figure shown on image, the relative position of the view finder central point of test instrumentation and the default screen anchor point of equipment under test screen is determined, and then determines distance to be adjusted and direction to be adjusted;According to distance to be adjusted and the position of direction to be adjusted adjustment test instrumentation, and/or according to distance to be adjusted and the position of direction to be adjusted adjustment equipment under test.Technical scheme provided in an embodiment of the present invention improves positioning precision and efficiency.
Description
Technical Field
The invention relates to the technical field of optical testing of screens, in particular to a positioning method and a positioning device in optical testing.
Background
In order to ensure the image performance of the product, manufacturers of multimedia terminal equipment, display modules and the like need to perform complicated optical tests on the product.
Typical optical tests include up to hundreds of test items for center brightness, color gamut, multi-point uniformity, viewing angle, etc. Before each test is started, positioning operation is required, namely, the relative position between the screen of the tested device and the test instrument is adjusted.
At present, the tested equipment is fixed on a clamp, and the positioning can be realized only by repeatedly observing and adjusting by a tester. Specifically, a tester estimates the relative position between the test instrument and the tested device through observation, and then adjusts the position of a tripod supporting the test instrument until the relative position between the screen of the tested device and the test instrument meets the requirement.
In the existing positioning method in the optical test, the accuracy degree of the positioning result depends on the observation accuracy of a tester, and the observation accuracy of a person is uncontrollable, so the existing positioning method cannot ensure the positioning accuracy.
Disclosure of Invention
The invention aims to provide a positioning method and a positioning device in an optical test, which aim to solve the problems of low positioning efficiency and uncontrollable accuracy in the prior art.
The purpose of the invention is realized by the following technical scheme:
a method of positioning in an optical test, comprising:
acquiring an image by using a viewfinder of a test instrument, wherein all or part of a preset image indicating the direction displayed by the tested equipment is displayed on the image, the preset image indicating the direction indicates the relative position of the display position of the preset image on the screen of the tested equipment and a preset screen positioning point of the screen of the tested equipment, and the screen of the tested equipment and the viewfinder of the test instrument in the optical test are arranged oppositely;
determining the relative position of the center point of a viewfinder of the test instrument and a preset screen positioning point of the screen of the tested equipment according to the graph displayed on the image;
determining a distance to be adjusted and a direction to be adjusted according to the deviation of the relative position of the center point of the viewfinder of the test instrument and a preset screen positioning point of the screen of the tested equipment and a preset standard relative position;
and adjusting the position of the test instrument according to the distance to be adjusted and the direction to be adjusted, and/or adjusting the position of the tested equipment according to the distance to be adjusted and the direction to be adjusted.
Based on the same inventive concept as the method, the embodiment of the present invention further provides a positioning apparatus in an optical test, including:
the image acquisition module is used for acquiring an image by using a viewfinder of the test instrument, wherein all or part of a preset image indicating the direction displayed by the tested equipment is displayed on the image, the preset image indicating the direction indicates the relative position of the display position of the preset image on the screen of the tested equipment and a preset screen positioning point of the screen of the tested equipment, and the screen of the tested equipment and the viewfinder of the test instrument in the optical test are arranged oppositely;
the positioning parameter determining module is used for determining the relative position of a viewfinder center point of the test instrument and a preset screen positioning point of the screen of the tested equipment according to the graph displayed on the image; determining a distance to be adjusted and a direction to be adjusted according to the deviation of the relative position of the center point of the viewfinder of the test instrument and a preset screen positioning point of the screen of the tested equipment and a preset standard relative position;
and the position adjusting control module is used for adjusting the position of the test instrument according to the distance to be adjusted and the direction to be adjusted, and/or adjusting the position of the tested equipment according to the distance to be adjusted and the direction to be adjusted.
The technical scheme provided by the embodiment of the invention can realize automatic positioning in optical test. Specifically, a preset graph indicating the direction is displayed on a screen of the tested device, the preset graph indicates the relative position of the display position of the preset graph on the screen of the tested device and a preset screen positioning point of the screen of the tested device, and a viewfinder of the testing instrument is used for acquiring an image, wherein all or part of the preset graph indicating the direction is displayed on the image; according to the graph displayed on the image, the relative position of the center point of the viewfinder of the test instrument and the preset screen positioning point of the screen of the tested equipment can be determined, and the distance to be adjusted and the direction to be adjusted are further determined by combining the standard relative position; therefore, the position of the test instrument can be adjusted according to the distance to be adjusted and the direction to be adjusted and/or the position of the tested equipment can be adjusted according to the distance to be adjusted and the direction to be adjusted. The above method can accurately calculate the direction to be adjusted and the position to be adjusted, so that the positioning accuracy is higher.
Drawings
FIG. 1 is a flow chart of a method provided by an embodiment of the present invention;
FIG. 2 is a first orientation indicating graphic provided by an embodiment of the present invention;
FIG. 3 is a second orientation indicating graphic provided by an embodiment of the present invention;
FIG. 4 is a third orientation indicating graphic provided by an embodiment of the present invention;
FIG. 5 is a schematic diagram illustrating a principle of calculating a pixel distance according to an embodiment of the present invention;
FIG. 6 is an image for determining a scaling relationship provided by an embodiment of the present invention;
fig. 7 is a schematic diagram of an apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions provided by the embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
Fig. 1 is a flowchart of a positioning method in an optical test according to an embodiment of the present invention, which specifically includes the following operations:
step 100, acquiring an image by using a viewfinder of a test instrument in the optical test, wherein all or part of a preset image indicating the direction displayed by the tested device is displayed on the image, the preset image indicating the direction indicates the relative position of the display position of the preset image on the screen of the tested device and the positioning point of the preset screen of the tested device, and the screen of the tested device and the viewfinder of the test instrument are arranged relatively.
Specifically, an image capture device that shares a viewfinder with the test meter may be instructed to capture the image.
In the embodiment of the present invention, the device to be tested may be any device provided with a screen, such as a mobile phone, a PAD, a PDA, a television, and so on.
And step 110, determining the relative position of the center point of the viewfinder of the test instrument and a preset screen positioning point of the screen of the tested device according to the graph displayed on the image.
And step 120, determining the distance to be adjusted and the direction to be adjusted according to the relative position of the central point of the viewfinder of the test instrument and the preset screen positioning point of the screen of the tested device and the deviation of the preset standard relative position.
And step 130, adjusting the position of the test instrument according to the distance to be adjusted and the direction to be adjusted, and/or adjusting the position of the tested equipment according to the distance to be adjusted and the direction to be adjusted.
The technical scheme provided by the embodiment of the invention can realize automatic positioning in optical test. Specifically, a preset graph indicating the direction is displayed on a screen of the tested device, the preset graph indicates the relative position of the display position of the preset graph on the screen of the tested device and a preset screen positioning point of the screen of the tested device, and a viewfinder of the testing instrument is used for acquiring an image, wherein all or part of the preset graph indicating the direction is displayed on the image; according to the graph displayed on the image, the relative position of the center point of the viewfinder of the test instrument and the preset screen positioning point of the screen of the tested equipment can be determined, and the distance to be adjusted and the direction to be adjusted are further determined by combining the standard relative position; therefore, the position of the test instrument can be adjusted according to the distance to be adjusted and the direction to be adjusted and/or the position of the tested equipment can be adjusted according to the distance to be adjusted and the direction to be adjusted. The above method can accurately calculate the direction to be adjusted and the position to be adjusted, so that the positioning accuracy is higher.
In the embodiment of the invention, the specific implementation mode of the preset graph for indicating the direction is not limited, and all graphs capable of assisting in determining the relative positions of the center point of the viewfinder of the test instrument and the preset screen positioning point of the screen of the tested equipment can be used. For example, the preset figure indicating the orientation includes at least a plurality of straight line segments; for another example, the preset pattern indicating the orientation includes at least a plurality of points, and relative position information of each point and a preset screen positioning point of the screen of the device under test, and the like.
The representation manner of the information of the relative position of the point and the preset screen positioning point of the tested device screen is various, for example, the representation manner may be a specific numerical value or an identifier of a slope of a connecting line from the point to the preset screen positioning point of the tested device screen.
The preset screen positioning point of the screen of the tested device can be a screen center point or a point on the screen of the tested device, which needs to be aligned by the test instrument.
Taking the preset graph indicating the direction as a plurality of intersected straight line segments, and taking the display position of the intersection point on the screen of the tested device as a preset screen positioning point of the screen of the tested device as an example, the method provided by the embodiment of the invention specifically comprises the following operations:
step one, sending an image acquisition command to image acquisition equipment, and receiving an image acquired by the image acquisition equipment.
Correspondingly, the image acquisition equipment acquires the image after receiving the image acquisition command. The acquired image is the image in the view of the viewfinder. The acquired image may be a portion of the several straight line segments (e.g., the portion indicated by the oval dashed box in fig. 2).
And step two, determining the pixel distance from the central pixel point of the acquired image to the straight line segment displayed on the acquired image, and determining the slope of the straight line segment displayed on the image in the plane coordinate system of the image.
The center pixel point of the collected image reflects the center of the test instrument, namely the center point of a viewfinder of the test instrument.
The pixel distance from a point to a line, i.e., how many pixel points are between the point and the line. The pixel distance from the central pixel point of the image to the straight line segment displayed on the collected image is determined in the plane coordinate system of the image.
The coordinate origin of the plane coordinate system of the image is assumed to be the top left corner vertex of the image, the positive direction of the x axis is the row direction, the positive direction of the y axis is the column direction, and the slope of a straight line segment included in the acquired image in the plane coordinate system of the image is k.
And step three, determining the pixel distance from the central pixel point of the collected image to the intersection point of the straight line segments according to the pixel distance and the slope.
The pixel distance from the central pixel point of the image to the intersection point of the straight line segments is determined in the plane coordinate system of the image.
Determining the relative distance between the center point of a viewfinder of the test instrument and a preset screen positioning point of a screen of the tested equipment according to the pixel distance from the center pixel point of the collected image to the intersection point and the proportional relation between the pixel distance and the actual distance; and determining the relative direction of the center point of the viewfinder of the test instrument and the preset screen positioning point of the screen of the tested device according to the slope.
Wherein, the relative distance and the relative direction are relative positions.
The plane where the viewfinder screen of the test instrument is located is parallel to the plane where the screen of the tested device is located, and the relative distance between the center point of the viewfinder of the test instrument and the preset screen positioning point of the screen of the tested device is the relative distance between the center point of the viewfinder of the test instrument and the preset screen positioning point of the screen of the tested device projected on any plane.
The relative distance between the center point of the viewfinder of the test instrument and a preset screen positioning point of the screen of the tested device is determined according to the pixel distance from the center pixel point of the collected image to the intersection point and the proportional relation between the pixel distance and the actual distance, and the specific implementation modes of the relative distance are various. For example, the pixel distance from the central pixel point of the acquired image to the intersection point is 10 pixel points, and the proportional relationship between the pixel distance and the actual distance is as follows: 1 pixel corresponds 1.5 millimeters, then, the relative distance of test instrument's view finder central point and the nodical above-mentioned is 1.5 centimetres.
There are various implementation ways to determine the relative direction between the center point of the viewfinder of the test instrument and the preset screen positioning point of the screen of the device to be tested according to the slope. For example, in this embodiment, the slope k indicates that an included angle between the straight line segment and the positive direction of the x axis of the plane coordinate system of the image is 40 °, and then, a relative direction between a center point of a viewfinder of the test instrument and a preset screen positioning point of the screen of the device under test, that is, a direction having an included angle of 40 ° with the x axis of the screen coordinate system, is not limited by the specific representation manner of the present invention.
And step four, determining the distance to be adjusted and the direction to be adjusted according to the deviation of the relative position of the central point of the viewfinder of the test instrument and the preset screen positioning point of the screen of the tested equipment and the standard relative position.
The standard relative position refers to a relative position between a point to be aligned by the test instrument in order to align the center of the test instrument with the screen of the device to be tested, and a preset screen positioning point of the center of the test instrument and the screen of the device to be tested.
For example, the center of the test instrument needs to be aligned to a preset screen positioning point of the screen of the device to be tested, the relative positions of the marks are overlapped, the relative distance between the center point of the viewfinder of the test instrument and the screen positioning point of the device to be tested is 1.5 cm, and the actual distance to be adjusted is 1.5 cm. Further, if the multi-axis transmission device can only move along the x direction, the y direction or the z direction in the space coordinate system, after the to-be-adjusted direction is determined, the to-be-adjusted distance can be further decomposed into the to-be-adjusted distance in the x direction and the to-be-adjusted distance in the y direction.
For example, the specific representation manner of the present invention is not limited to the specific representation manner of the present invention, in which the included angle between the center point of the viewfinder of the test instrument and the preset screen positioning point of the screen of the device under test, that is, the direction of 40 ° with respect to the positive direction of the x axis of the screen coordinate system is further determined, if the included angle is 40 °, the direction to be adjusted, that is, the direction of 40 ° with respect to the positive direction of the x axis of the planar coordinate system is determined, and if the included angle is 220 °, the direction to be adjusted, that is, the direction of 220 ° with respect to the positive direction of the x axis of the planar coordinate system is determined.
It should be noted that if the angle between the relative direction from the center point of the viewfinder of the test instrument to the preset screen positioning point of the screen of the device under test and the positive direction of the x-axis of the screen coordinate system cannot be determined, both directions can be determined as the directions to be adjusted.
And step five, moving the test instrument along the direction to be adjusted by the distance to be adjusted.
The position of the test instrument can be manually adjusted, and the position of the test instrument can also be automatically adjusted. For example, a multi-axis motion device for fixing the test instrument is instructed to move the test instrument.
Of course, the fifth step may also be implemented in other manners, for example, the device to be tested is moved by the distance to be adjusted only in the direction opposite to the direction to be adjusted (the position of the device to be tested may be manually adjusted, or the position of the device to be tested may be automatically adjusted, for example, the multi-axis motion device that fixes the device to be tested is instructed to drive the device to be tested to move). For another example, the test instrument is moved a first distance along the direction to be adjusted, and the device under test is moved a second distance along the direction opposite to the direction to be adjusted, where the sum of the first distance and the second distance is the distance to be adjusted.
If the graph indicating the orientation at least includes a plurality of points and the slope of the line connecting each point and the preset screen positioning point of the device under test screen (as shown in fig. 3, the slope of only one point is shown in fig. 3, and in the actual graph, the slope of each point will be shown), the corresponding positioning method can refer to the description of the above embodiment. In the second step, a straight line segment from one point to a screen positioning point is determined according to the slope of a connecting line between the point in the acquired image and a preset screen positioning point of the screen of the device to be tested, and then the pixel distance from a central pixel point of the acquired image to the straight line segment is determined.
Taking a figure indicating the direction as a plurality of straight line segments and direction information and distance information of a display position of each straight line segment on a screen of the tested equipment relative to a preset screen positioning point of the screen of the tested equipment as an example, the method provided by the embodiment of the invention specifically comprises the following operations;
step one, sending an image acquisition command to image acquisition equipment, and receiving an image acquired by the image acquisition equipment.
Correspondingly, the image acquisition equipment acquires the image after receiving the image acquisition command. The acquired image is the image in the view of the viewfinder. The captured image may be a portion of the several straight line segments (e.g., the portion shown by the dashed oval box in fig. 4).
In this embodiment, the preset graph indicating the azimuth is shown in fig. 4, only the direction information k and the distance information d displayed at one position of each line segment are shown, and in an actual graph, the direction information and the distance information of each straight line segment are shown at a plurality of positions.
The display position of the straight line segment on the screen of the device to be tested corresponds to the direction information of the preset screen positioning point of the screen of the device to be tested, and the specific embodiment forms of the direction information are various, for example, the slope of a connecting line between a point on the straight line segment and the preset screen positioning point in a plane coordinate system, an included angle between the connecting line and the positive direction of the x axis of the plane coordinate system and the like are indicated.
The display position of the straight line segment on the screen of the device to be tested is relative to the distance information of a preset screen positioning point of the screen of the device to be tested, and the expression forms of the distance information are various, for example, the distance from the screen positioning point to the straight line segment or the extension line of the straight line segment, the distance from the point on the straight line segment to the screen positioning point, and the like.
And step two, determining the pixel distance from the central pixel point of the acquired image to the straight line segment displayed on the acquired image.
The specific implementation manner of the second step may refer to the implementation manner of the second step in the previous embodiment, and details are not described here.
And thirdly, determining an actual distance corresponding to the pixel distance from the central pixel point of the image to the straight line segment displayed on the image according to the proportional relation between the pixel distance and the actual distance.
And fourthly, determining the relative distance and the relative direction between the center point of the viewfinder of the test instrument and the screen positioning point of the screen of the tested equipment according to the direction information and the distance information of the display position of the straight line segment displayed on the image on the screen of the tested equipment relative to the preset screen positioning point of the screen of the tested equipment and the determined actual distance.
Taking the slope of an indication straight line segment in a screen coordinate system as direction information of the straight line segment relative to a screen positioning point of the equipment to be tested, and taking the distance from the screen positioning point to the straight line segment as pixel distance information of the straight line segment to the screen positioning point of the equipment to be tested as an example, specifically, as shown in fig. 5, a line segment ab between a central pixel point a of an acquired image and a screen positioning point B of the equipment to be tested, an intersection point of a vertical line segment ac from a to the straight line segment, ac and the straight line segment is C, an intersection point of B and a vertical line segment bd from the straight line segment, an intersection point D of bd and the straight line segment, and an intersection point of; then, the right triangle ACE and the right triangle BDE are similar triangles, where ac and bd are known, and the other two angles of the right triangle can be obtained according to the above slope, and then the length ab can be calculated.
And step five, determining the distance to be adjusted and the direction to be adjusted according to the deviation of the relative position of the central point of the viewfinder of the test instrument and the preset screen positioning point of the screen of the tested equipment and the standard relative position.
The specific implementation manner of step four and step five may refer to the previous embodiment, and details are not described here.
And step six, moving the test instrument along the direction to be adjusted by the distance to be adjusted.
Of course, the sixth step may also be implemented in other ways, for example, by moving the device under test by the distance to be adjusted only in the direction opposite to the direction to be adjusted. For another example, the test instrument is moved a first distance along the direction to be adjusted, and the device under test is moved a second distance along the direction opposite to the direction to be adjusted, where the sum of the first distance and the second distance is the distance to be adjusted.
The proportional relationship between the pixel distance and the actual distance mentioned in the above embodiments may be predetermined, or may be determined during each positioning process. The determination method of the proportional relationship has various ways, for example, instructing the tested device to display the image shown in fig. 6, adjusting the distance between the test instrument and the tested device on the z-axis of the spatial coordinate system for multiple times, and instructing the image acquisition device to acquire the image after each distance adjustment. Then, the image acquired by the image acquisition device at least comprises one small square grid in fig. 6; the proportional relation can be determined according to the number of pixel points included in a small square in the image acquired each time and the actual distance between the tested equipment and the tested instrument in the z-axis direction of the space coordinate system.
Based on the same inventive concept as the method, an embodiment of the present invention further provides a positioning apparatus in an optical test, as shown in fig. 7, including:
the image acquisition module 701 is used for acquiring an image by using a viewfinder of a test instrument, wherein all or part of a preset image indicating the direction displayed by the tested device is displayed on the image, the preset image indicating the direction indicates the relative position of the display position of the preset image on the screen of the tested device and a preset screen positioning point of the screen of the tested device, and the screen of the tested device is arranged relative to the viewfinder of the test instrument in the optical test;
a positioning parameter determining module 702, configured to determine, according to the graph displayed on the image, a relative position between a viewfinder center point of the test instrument and a preset screen positioning point of the device under test screen; determining a distance to be adjusted and a direction to be adjusted according to the deviation of the relative position of the center point of the viewfinder of the test instrument and a preset screen positioning point of the screen of the tested equipment and a preset standard relative position;
and a position adjustment control module 703, configured to adjust the position of the test instrument according to the distance to be adjusted and the direction to be adjusted, and/or adjust the position of the device under test according to the distance to be adjusted and the direction to be adjusted.
Wherein the preset pattern indicating the orientation comprises a plurality of straight line segments.
The preset graph of the indication direction is a plurality of intersected straight line segments, and the display position of the intersection point on the screen of the tested device is a preset screen positioning point of the screen of the tested device;
when determining the relative position of the viewfinder center point of the test instrument and the preset screen positioning point of the tested device screen according to the graph displayed on the image, the positioning parameter determination module is used for:
determining the pixel distance from a central pixel point of the image to a straight-line segment displayed on the image, and determining the slope of the straight-line segment displayed on the image in a screen coordinate system;
determining the pixel distance from the central pixel point of the image to the intersection point according to the pixel distance and the slope;
determining the relative distance between the center point of a viewfinder of the test instrument and a preset screen positioning point of the screen of the tested equipment according to the pixel distance from the center pixel point of the acquired image to the intersection point and the proportional relation between the pixel distance and the actual distance; and determining the relative direction of the center point of the viewfinder of the test instrument and the preset screen positioning point of the screen of the tested device according to the slope.
The preset graph indicating the azimuth further comprises direction information and distance information of a display position of each straight line segment on the screen of the tested device relative to a preset screen positioning point of the screen of the tested device;
when determining the relative position of the viewfinder center point of the test instrument and the preset screen positioning point of the tested device screen according to the graph displayed on the image, the positioning parameter determination module is used for:
determining the pixel distance from the central pixel point of the image to a straight line segment displayed on the image; determining an actual distance corresponding to the pixel distance from a central pixel point of the image to a straight line segment displayed on the image according to the proportional relation between the pixel distance and the actual distance;
and determining the relative distance and the relative direction between the center point of the viewfinder of the test instrument and the screen positioning point of the screen of the tested device according to the direction information and the distance information of the display position of the straight line segment displayed on the image on the screen of the tested device relative to the preset screen positioning point of the screen of the tested device and the determined actual distance.
Based on any of the apparatus embodiments above, wherein the position adjustment control module is configured to:
moving the test instrument the distance to be adjusted only in the direction to be adjusted; or,
moving the device to be tested by the distance to be adjusted only along the direction opposite to the direction to be adjusted; or,
and moving the test instrument by a first distance along the direction to be adjusted, and moving the tested equipment by a second distance along the direction opposite to the direction to be adjusted, wherein the sum of the first distance and the second distance is the distance to be adjusted.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.
Claims (10)
1. A method of positioning in an optical test, comprising:
acquiring an image by using a viewfinder of a test instrument, wherein all or part of a preset image indicating the direction displayed by the tested equipment is displayed on the image, the preset image indicating the direction indicates the relative position of the display position of the preset image on the screen of the tested equipment and a preset screen positioning point of the screen of the tested equipment, and the screen of the tested equipment is arranged relative to the viewfinder of the test instrument;
determining the relative position of the center point of a viewfinder of the test instrument and a preset screen positioning point of the screen of the tested equipment according to the graph displayed on the image;
determining a distance to be adjusted and a direction to be adjusted according to the deviation of the relative position of the center point of the viewfinder of the test instrument and a preset screen positioning point of the screen of the tested equipment and a preset standard relative position;
and adjusting the position of the test instrument according to the distance to be adjusted and the direction to be adjusted, and/or adjusting the position of the tested equipment according to the distance to be adjusted and the direction to be adjusted.
2. The method of claim 1, wherein the predetermined pattern indicative of the orientation comprises a plurality of straight line segments.
3. The method as claimed in claim 2, wherein the predetermined pattern indicating the orientation is a plurality of intersecting straight line segments, and the display position of the intersection point on the screen of the device under test is a predetermined screen positioning point of the screen of the device under test;
determining the relative position of the viewfinder center point of the test instrument and the preset screen positioning point of the tested device screen according to the graph displayed on the image, wherein the relative position comprises the following steps:
determining the pixel distance from a central pixel point of the image to a straight line segment displayed on the image, and determining the slope of the straight line segment displayed on the image in a plane coordinate system of the image;
determining the pixel distance from the central pixel point of the image to the intersection point according to the pixel distance and the slope;
determining the relative distance between the center point of a viewfinder of the test instrument and a preset screen positioning point of the screen of the tested equipment according to the pixel distance from the center pixel point of the collected image to the intersection point and the proportional relation between the pixel distance and the actual distance; and determining the relative direction of the center point of the viewfinder of the test instrument and the preset screen positioning point of the screen of the tested device according to the slope.
4. The method according to claim 2, wherein the preset pattern indicating the orientation further comprises direction information and distance information of a display position of each straight line segment on the screen of the device under test with respect to a preset screen positioning point of the screen of the device under test;
determining the relative position of the viewfinder center point of the test instrument and the preset screen positioning point of the tested device screen according to the graph displayed on the image, wherein the relative position comprises the following steps:
determining the pixel distance from the central pixel point of the image to a straight line segment displayed on the image; determining an actual distance corresponding to the pixel distance from a central pixel point of the image to a straight line segment displayed on the image according to the proportional relation between the pixel distance and the actual distance;
and determining the relative distance and the relative direction between the center point of the viewfinder of the test instrument and the screen positioning point of the screen of the tested device according to the direction information and the distance information of the display position of the straight line segment displayed on the image on the screen of the tested device relative to the preset screen positioning point of the screen of the tested device and the determined actual distance.
5. The method according to any one of claims 1 to 4, wherein adjusting the position of the test instrument according to the distance to be adjusted and the direction to be adjusted, and/or adjusting the position of the device under test according to the distance to be adjusted and the direction to be adjusted comprises:
moving the test instrument the distance to be adjusted only in the direction to be adjusted; or,
moving the device to be tested by the distance to be adjusted only along the direction opposite to the direction to be adjusted; or,
and moving the test instrument by a first distance along the direction to be adjusted, and moving the tested equipment by a second distance along the direction opposite to the direction to be adjusted, wherein the sum of the first distance and the second distance is the distance to be adjusted.
6. A positioning device in optical testing, comprising:
the image acquisition module is used for acquiring an image by using a viewfinder of the test instrument, wherein all or part of a preset image indicating the direction displayed by the tested equipment is displayed on the image, the preset image indicating the direction indicates the relative position of the display position of the preset image on the screen of the tested equipment and a preset screen positioning point of the screen of the tested equipment, and the screen of the tested equipment and the viewfinder of the test instrument in the optical test are arranged oppositely;
the positioning parameter determining module is used for determining the relative position of a viewfinder center point of the test instrument and a preset screen positioning point of the screen of the tested equipment according to the graph displayed on the image; determining a distance to be adjusted and a direction to be adjusted according to the deviation of the relative position of the center point of the viewfinder of the test instrument and a preset screen positioning point of the screen of the tested equipment and a preset standard relative position;
and the position adjusting control module is used for adjusting the position of the test instrument according to the distance to be adjusted and the direction to be adjusted, and/or adjusting the position of the tested equipment according to the distance to be adjusted and the direction to be adjusted.
7. The apparatus of claim 6, wherein the predetermined pattern of indicated orientations comprises a plurality of straight line segments.
8. The apparatus according to claim 6, wherein the predetermined pattern indicating the orientation is a plurality of intersecting straight line segments, and the display position of the intersection point on the screen of the device under test is a predetermined screen positioning point of the screen of the device under test;
when determining the relative position of the viewfinder center point of the test instrument and the preset screen positioning point of the tested device screen according to the graph displayed on the image, the positioning parameter determination module is used for:
determining the pixel distance from a central pixel point of the image to a straight-line segment displayed on the image, and determining the slope of the straight-line segment displayed on the image in a screen coordinate system;
determining the pixel distance from the central pixel point of the image to the intersection point according to the pixel distance and the slope;
determining the relative distance between the center point of a viewfinder of the test instrument and a preset screen positioning point of the screen of the tested equipment according to the pixel distance from the center pixel point of the collected image to the intersection point and the proportional relation between the pixel distance and the actual distance; and determining the relative direction of the center point of the viewfinder of the test instrument and the preset screen positioning point of the screen of the tested device according to the slope.
9. The apparatus according to claim 6, wherein the preset pattern indicating the orientation further includes direction information and distance information of a display position of each straight line segment on the screen of the device under test with respect to a preset screen positioning point of the screen of the device under test;
when determining the relative position of the viewfinder center point of the test instrument and the preset screen positioning point of the tested device screen according to the graph displayed on the image, the positioning parameter determination module is used for:
determining the pixel distance from the central pixel point of the image to a straight line segment displayed on the image; determining an actual distance corresponding to the pixel distance from a central pixel point of the image to a straight line segment displayed on the image according to the proportional relation between the pixel distance and the actual distance;
and determining the relative distance and the relative direction between the center point of the viewfinder of the test instrument and the screen positioning point of the screen of the tested device according to the direction information and the distance information of the display position of the straight line segment displayed on the image on the screen of the tested device relative to the preset screen positioning point of the screen of the tested device and the determined actual distance.
10. The device according to any one of claims 6 to 9, wherein the position adjustment control module is configured to:
moving the test instrument the distance to be adjusted only in the direction to be adjusted; or,
moving the device to be tested by the distance to be adjusted only along the direction opposite to the direction to be adjusted; or,
and moving the test instrument by a first distance along the direction to be adjusted, and moving the tested equipment by a second distance along the direction opposite to the direction to be adjusted, wherein the sum of the first distance and the second distance is the distance to be adjusted.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510312888.7A CN104990689B (en) | 2015-06-09 | 2015-06-09 | Localization method and device in a kind of optic test |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510312888.7A CN104990689B (en) | 2015-06-09 | 2015-06-09 | Localization method and device in a kind of optic test |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104990689A CN104990689A (en) | 2015-10-21 |
CN104990689B true CN104990689B (en) | 2017-11-10 |
Family
ID=54302531
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510312888.7A Active CN104990689B (en) | 2015-06-09 | 2015-06-09 | Localization method and device in a kind of optic test |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104990689B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105391998B (en) * | 2015-12-24 | 2017-05-24 | 无锡市星迪仪器有限公司 | Automatic detection method and apparatus for resolution of low-light night vision device |
CN106644410B (en) * | 2016-12-21 | 2019-04-09 | 信利光电股份有限公司 | A kind of camera module optical center location measurement method and system |
CN107049348B (en) * | 2017-01-04 | 2020-04-10 | 东软医疗系统股份有限公司 | Positioning frame adjusting method and device |
CN107491778B (en) * | 2017-08-23 | 2020-07-03 | 众安信息技术服务有限公司 | Intelligent device screen extraction method and system based on positioning image |
CN110164986A (en) * | 2019-05-23 | 2019-08-23 | 晶澳(扬州)太阳能科技有限公司 | The preparation method of cell piece and its cell piece obtained |
CN112741589B (en) * | 2021-01-14 | 2024-07-12 | 沈阳视达微医疗科技有限公司 | Optical device for vision detection, vision detection system and method |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1431556A (en) * | 2003-01-23 | 2003-07-23 | 浙江大学 | Object plane adjustment method of optical projection system based on defocus depth analysis and its device |
CN1894557A (en) * | 2003-12-16 | 2007-01-10 | 特里伯耶拿有限公司 | Calibration of a surveying instrument |
CN101614897A (en) * | 2008-06-27 | 2009-12-30 | Nec液晶技术株式会社 | The display device and the manufacture method thereof of alignment mark, use alignment mark |
CN102012571A (en) * | 2010-10-13 | 2011-04-13 | 苏州凯蒂亚半导体制造设备有限公司 | A location method of pasting ACF membrane on screen substrate of flat-panel display |
CN102338995A (en) * | 2011-10-27 | 2012-02-01 | 东莞市润华光电有限公司 | ITO (indium tin oxide) membrane photoetching automatic recognition positioning method |
CN102401631A (en) * | 2010-08-25 | 2012-04-04 | Ntl科技股份有限公司 | Mounting accuracy inspection method and inspection apparatus using the same |
CN103955124A (en) * | 2014-05-05 | 2014-07-30 | 中国科学院微电子研究所 | Alignment device of optical precision system |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2720133B2 (en) * | 1992-11-10 | 1998-02-25 | 赤井電機株式会社 | Collimator device |
WO2006059662A1 (en) * | 2004-11-30 | 2006-06-08 | Kabushiki Kaisha Toshiba | Apparatus and method for inspecting display device |
-
2015
- 2015-06-09 CN CN201510312888.7A patent/CN104990689B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1431556A (en) * | 2003-01-23 | 2003-07-23 | 浙江大学 | Object plane adjustment method of optical projection system based on defocus depth analysis and its device |
CN1894557A (en) * | 2003-12-16 | 2007-01-10 | 特里伯耶拿有限公司 | Calibration of a surveying instrument |
CN101614897A (en) * | 2008-06-27 | 2009-12-30 | Nec液晶技术株式会社 | The display device and the manufacture method thereof of alignment mark, use alignment mark |
CN102401631A (en) * | 2010-08-25 | 2012-04-04 | Ntl科技股份有限公司 | Mounting accuracy inspection method and inspection apparatus using the same |
CN102012571A (en) * | 2010-10-13 | 2011-04-13 | 苏州凯蒂亚半导体制造设备有限公司 | A location method of pasting ACF membrane on screen substrate of flat-panel display |
CN102338995A (en) * | 2011-10-27 | 2012-02-01 | 东莞市润华光电有限公司 | ITO (indium tin oxide) membrane photoetching automatic recognition positioning method |
CN103955124A (en) * | 2014-05-05 | 2014-07-30 | 中国科学院微电子研究所 | Alignment device of optical precision system |
Also Published As
Publication number | Publication date |
---|---|
CN104990689A (en) | 2015-10-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104990689B (en) | Localization method and device in a kind of optic test | |
CN111161358B (en) | Camera calibration method and device for structured light depth measurement | |
US20130027544A1 (en) | Electronic device and method for regulating coordinates of probe measurement system | |
CN104316293B (en) | Device and method for determining parallelism of continuous zooming television optical axis | |
US10379019B2 (en) | Method and device for hardness testing | |
JP6670974B1 (en) | Robot coordinate system alignment method, alignment system, and alignment device | |
EP2387000B1 (en) | Image measuring apparatus, program, and teaching method of image measuring apparatus | |
TW201703506A (en) | Automatic calibration system and related automatic calibration method applied to a camera | |
CN108108021A (en) | The outer parameter correction gauge of tracing of human eye system and bearing calibration | |
CN103809309A (en) | Device and method for detecting substrate | |
EP3531817B1 (en) | Substrate inspection device and substrate inspection method using same | |
CN105631454B (en) | A kind of ball machine localization method, equipment and ball machine | |
CN117593377A (en) | Time delay test method, device, equipment and storage medium | |
CN108548655B (en) | Imaging precision measuring system and method and testing host | |
CN106969707B (en) | A kind of detection device and its control method | |
JP4530763B2 (en) | Part data creation method and part data creation apparatus | |
US20100128249A1 (en) | Test method for compound-eye distance measuring apparatus, test apparatus, and chart used for the same | |
CN112833779B (en) | Positioning detection method and positioning detection device | |
CN104267203B (en) | The method of testing of a kind of sample and device | |
EP3974105B1 (en) | Measurement device | |
CN103901235B (en) | Positioner and localization method | |
US20220284599A1 (en) | Position estimating method, position estimating system, and position estimating apparatus | |
CN103162619A (en) | Image measurement instrument and image measuring method | |
US20130155189A1 (en) | Object measuring apparatus and method | |
US8027528B2 (en) | Method for calculating height of chuck top and program storage medium for storing same method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address |
Address after: Shandong City, Qingdao Province, Jiangxi City Road No. 11 Patentee after: Qingdao Hisense Mobile Communication Technology Co.,Ltd. Country or region after: China Address before: Shandong City, Qingdao Province, Jiangxi City Road No. 11 Patentee before: HISENSE MOBILE COMMUNICATIONS TECHNOLOGY Co.,Ltd. Country or region before: China |
|
CP03 | Change of name, title or address |