Optometry head detection device and detection device control method
By using a three-dimensional mobile device on a fixed detection rack in the optodesk detection device, the problem that the detection device in the prior art cannot adapt to different types of lenses is solved, and the adaptation and detection accuracy of multiple lenses is achieved.
Patent Information
- Application Number
- CN202411681217.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-22
- Publication Date
- 2025-02-11
AI Technical Summary
The existing optometry head detection devices are usually fixedly installed in a certain position and cannot adapt to the center position of different types of lenses, resulting in unfitting detection and room for improvement.
A phototest head detection device is designed, using a three-dimensional moving device on a fixed detection frame, and the three-dimensional movement of the detection device body is realized through screw transmission, adapted to different types of lenses, improving the versatility of the detection device.
The detection device body is aligned with the center of the lens through a three-dimensional mobile device and adapted to more types of lenses, which improves the versatility and automation level of the detection device and ensures detection accuracy.
Smart Images

Figure CN119413411A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of optometry head detection technology, and in particular to an optometry head detection device and a detection device control method. Background Art
[0002] The comprehensive optometrist is a comprehensive refractive examination instrument that can realize the function of refractive examination by mechanically replacing lenses. The main measurement performance indicators of the comprehensive optometrist are: spherical lens vertex power, cylindrical lens vertex power, prismatic power, cylindrical lens axis position, etc.
[0003] The performance index of the comprehensive optometrist may change during the production, assembly and use, which will lead to inaccurate optometry and affect the judgment of the optometrist. For example, a Chinese patent with publication number CN104422583A discloses an optical system including: a beam splitter; a first objective lens; a first reflective element, the first reflective element is arranged between the beam splitter and the first objective lens; a graticule, the graticule is arranged on the object focus of the first objective lens; a focusing element, the first objective lens is arranged between the focusing element and the first reflective element; a second objective lens, the distance between the focusing element and the second objective lens is adjustable; an imaging element, the imaging element is located in the exit light path of the beam splitter. The device to be detected (for example: a comprehensive optometrist) is placed between the first objective lens and the second objective lens. By adjusting the distance between the focusing element and the second objective lens, the reference pattern on the graticule can be clearly presented on the imaging element. The performance index of the device to be detected is calculated based on the distance between the focusing element and the second objective lens, so as to make a quantitative judgment on the device to be detected.
[0004] The prior art has the following problems: the detection device is usually fixedly installed at a certain position, and there are many types of lenses. The center positions of different types of lenses are different, so when they are not compatible, detection cannot be performed. There is still room for improvement. Summary of the invention
[0005] In order to improve the problem that the detection device is usually fixedly installed in a certain position, and there are many types of lenses, and the center positions of different types of lenses are different, and detection cannot be performed when they are not compatible, the present application provides an optometrist detection device and a detection device control method.
[0006] In a first aspect, the present application provides an optometry head detection device, which adopts the following technical solution: An optometry head detection device, comprising: Testing rack; A first movable platform is slidably connected to the detection frame along the height direction of the detection frame, and a screw rod is used for installing an optometry head between the first movable platform and the detection frame; A second mobile platform is slidably connected to the detection frame along the width direction of the detection frame, and a screw rod is used for transmission between the second mobile platform and the detection frame; The detection device body is slidably connected to the second movable platform along the thickness direction of the detection frame, and a screw rod is driven between the detection device body and the second movable platform to detect the optometry head; and The display is communicatively connected to the detection device body and is used to present the image detected by the detection device body.
[0007] By adopting the above technical solution, the detection device body is moved by the three-dimensional moving device on the fixed detection frame, so that the detection device body is aligned with the center of the lens, which is suitable for more types of lenses and improves the versatility of the detection device body.
[0008] Optionally, it also includes a horizontal fine-tuning component, which includes a base, a threaded rod and a mounting platform. The base is slidably connected to the second movable platform along the thickness direction of the detection frame. A screw transmission is provided between the base and the second movable platform. The number of the threaded rods is three, and one end of each of the three threaded rods is rotatably connected to the base. The mounting platform is simultaneously threadedly connected to the other ends of the three threaded rods, and the detection device body is fixed on the mounting platform.
[0009] By adopting the above technical solution, the relative positions of the mounting platform and the second movable platform at the threaded rods are adjusted by three threaded rods, thereby adjusting the relative inclination angle of the mounting platform, so that the mounting platform remains horizontally placed, thereby improving the installation accuracy and detection accuracy of the detection device body.
[0010] Optionally, a toggle block is fixedly connected to the threaded rod.
[0011] By adopting the above technical solution, the lever arm of the rotation of the threaded rod is amplified by the toggle block, so that the threaded rod can be driven to rotate with a smaller force, thereby improving the convenience of rotating the threaded rod.
[0012] Optionally, a first fixing member is threadedly connected to the first mobile platform, and the first fixing member is pressed against the detection frame; a second fixing member is threadedly connected to the second mobile platform, and the second fixing member is pressed against the detection frame; a third fixing member is threadedly connected to the base, and the third fixing member is pressed against the second mobile platform.
[0013] By adopting the above technical solution, the first fixing member, the second fixing member and the third fixing member are arranged so that when the positions in the three-dimensional directions have been determined and the movement has been implemented, the corresponding platform or the detection device body can be fixed, thereby improving the positioning stability of the detection device.
[0014] In a second aspect, the present application provides a detection device control method, which adopts the following technical solution: A detection device control method, applied to the above-mentioned optometry head detection device, comprises: Control the movement of the first mobile platform and the second mobile platform, and obtain the horizontal coordinates and vertical coordinates of the current detection image and the preset image center; Analyze the current detection image to obtain the shadow area; When the preset center of the image falls into the shadow area, the current horizontal coordinate and vertical coordinate are recorded, and the current horizontal coordinate and vertical coordinate are combined as edge coordinates, and the movement continues until the number of recorded edge coordinates is three; When the number of edge coordinates is three, the center coordinate is calculated based on the three edge coordinates, and the edge coordinate of the third record is defined as the starting edge coordinate; The center moving direction and the lens radius are calculated based on the center coordinates and the starting edge coordinates; The first moving platform and the second moving platform are controlled to move according to the center moving direction and the lens radius to achieve alignment of the detection device body.
[0015] By adopting the above technical solution, the detection device body is moved by a three-dimensional moving device on a fixed detection frame, so that the detection device body is aligned with the center of the lens, which is suitable for more types of lenses and improves the versatility of the detection device body; by using three points that are not on the same straight line to determine a circle, the contour and contour center of the lens can be obtained without manual operation, thereby improving the automation and intelligence of the detection device body aligning the center of the lens.
[0016] Optionally, when the center of the image falls into the shadow area, the method of recording the edge coordinates and continuing to move includes: forming edge tangents based on the shadow area and edge coordinates; A movable orientation range is formed based on the edge tangent and the shadow area; Select a direction in the movable direction range to define it as the moving direction and continue moving in the moving direction.
[0017] By adopting the above technical solution, the movable direction range is determined to determine the range of the next step, avoiding random movement that causes movement outside the lens, thereby reducing the probability of finding the inside of the lens, thereby improving the efficiency of determining the edge coordinates and thus the center position.
[0018] Optionally, the specific method of controlling the first mobile platform and the second mobile platform to move to obtain edge coordinates and then selecting a moving direction to continue moving includes: When the edge coordinates do not exist, controlling the first movable platform to move in a preset first horizontal direction to obtain the edge coordinates, and defining the movable orientation range obtained for the first time as a first movable orientation range; Determine a vertical direction perpendicular to the first horizontal direction based on the first horizontal direction and the first movable orientation range; Controlling the second mobile platform to move in a vertical direction to obtain a second movable orientation range; determining a second horizontal direction perpendicular to the vertical direction based on the vertical direction and the second movable orientation range; The first moving platform is controlled to move in a second horizontal direction to obtain the starting edge coordinates.
[0019] By adopting the above technical solution, a right triangle is formed by vertical movement, which makes it easier to determine the center point. No complicated formula is needed for calculation. It only needs to determine the center of the hypotenuse as the center of the lens, which improves the efficiency of determining the center of the lens.
[0020] Optionally, after controlling the first mobile platform and the second mobile platform to move according to the central moving vector, a method for checking the horizontal placement state of the detection device body is also included, the method comprising: Controlling the first mobile platform to move horizontally and acquiring a first verification detection image; Analyze the first verification detection image based on the preset first cross mark feature and the first horizontal and vertical dividing line to determine the first horizontal line area and the first vertical line area; Analyzing the first horizontal line area based on the first cross mark feature and the preset first horizontal line direction to determine the horizontal line angle quadrant; Analyzing the first check detection image to obtain a first check shadow area; Determine a first overlap area based on the first horizontal line area and the first check shadow area; When the first overlapping area appears, a first moving distance is obtained; Calculating a first deflection angle based on a first moving distance, a lens radius, and a first edge length preset in a first cross mark feature; determining an actual first deflection angle based on the first deflection angle and the cross-line angle quadrant; Finding a corresponding first leveling operation scheme from a preset first operation database based on the actual first deflection angle; The horizontal fine adjustment assembly is controlled to perform leveling according to a first leveling operation scheme.
[0021] By adopting the above technical solution, by determining the intersection position of the cross mark feature and the shadow area, it is determined whether there is a tilt on the plane. When tilted, a leveling operation solution is automatically taken to correct it, thereby preventing the detection device from tilting itself during the detection process, thereby improving the self-calibration capability of the detection device.
[0022] Optionally, another verification method for the horizontal placement state of the detection device body is also included, the method comprising: Controlling the first mobile platform and the second mobile platform to move simultaneously to achieve movement in a preset semi-right angle direction, and acquiring a second verification detection image; analyzing the second check detection image to obtain a second check shadow area; Analyzing the second verification detection image based on a preset second cross mark feature and a second horizontal and vertical dividing line to determine a second horizontal line area and a second vertical line area; Determine a second overlap area based on the second horizontal line area, the second vertical line area, and the second check shadow area; Continue moving when the second overlapping area does not exist; When there is a second overlapped area between one of the second horizontal line area or the second vertical line area and the second check shadow area, obtain the second moving distance and the overlapped second horizontal line area or the second vertical line area, define the second horizontal line area as the overlapped horizontal line area, and define the second vertical line area as the overlapped vertical line area; Calculating a second deflection angle based on a second moving distance, a lens radius, and a first edge length preset in a second cross mark feature; determining an actual second deflection angle based on the second deflection angle and the coincident horizontal line area or the coincident vertical line area; Finding a corresponding second leveling operation solution from a preset second operation database based on the actual second deflection angle; The horizontal fine adjustment assembly is controlled to perform leveling according to the second leveling operation scheme.
[0023] By adopting the above technical solution, by determining the intersection position of the cross mark feature and the shadow area, it is determined whether there is a tilt on the plane. When tilted, a leveling operation solution is automatically taken to correct it, thereby preventing the detection device from tilting itself during the detection process, thereby improving the self-calibration capability of the detection device.
[0024] An optional formula for calculating the second deflection angle based on the second moving distance and the second edge length in the second cross mark feature is as follows: ,in, is the second deflection angle, is the second moving distance, is the lens radius, is the length of the second edge in the second cross mark feature.
[0025] In summary, the present application includes at least the following beneficial technical effects: The detection device body is moved by a three-dimensional moving device on a fixed detection frame, so that the detection device body is aligned with the center of the lens, which is suitable for more types of lenses and improves the versatility of the detection device body; The lens contour and contour center can be obtained by using three points that are not on the same straight line to determine a circle, which improves the automation and intelligence of the detection device body aligning the lens center; By determining the intersection of the cross mark feature and the shadow area, it is determined whether there is a tilt on the plane. When there is a tilt, a leveling operation plan is automatically taken to correct it, thereby improving the self-calibration capability of the detection device. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 It is a flow chart of a detection device control method in an embodiment of the present application.
[0027] Figure 2 It is a structural schematic diagram of an optometry head detection device in an embodiment of the present application.
[0028] Figure 3 yes Figure 2 Enlarged schematic diagram of part A in the middle.
[0029] Figure 4 It is a schematic diagram of the current detection image in the embodiment of the present application.
[0030] Figure 5 It is a flowchart of a method for recording edge coordinates and continuing to move when the center of an image falls into a shadow area in an embodiment of the present application.
[0031] Figure 6 It is a flowchart of a specific method of controlling the movement of the first mobile platform and the second mobile platform in an embodiment of the present application to obtain edge coordinates, and then selecting a moving direction to continue moving.
[0032] Figure 7 It is a schematic diagram when an overlapping area appears in the current detection image in an embodiment of the present application.
[0033] Figure 8 It is a flow chart of a method for checking the horizontal placement state of a detection device body after controlling the first mobile platform and the second mobile platform to move according to a central moving vector in an embodiment of the present application.
[0034] Fig. 9 It is a schematic diagram of the first verification detection image in an embodiment of the present application.
[0035] Fig.10 It is a flow chart of another method for checking the horizontal placement state of the detection device body in the embodiment of the present application.
[0036] Fig.11 It is a schematic diagram of the second verification detection image in an embodiment of the present application.
[0037] Fig.12 It is a flowchart of controlling the first mobile platform and the second mobile platform to move simultaneously to achieve movement in a semi-right angle direction and obtain a second verification detection image in an embodiment of the present application.
[0038] Explanation of the accompanying drawings: 1. Detection frame; 2. Display; 3. First mobile platform; 31. First fixing member; 4. Second mobile platform; 41. Second fixing member; 5. Detection device body; 6. Horizontal fine-tuning assembly; 61. Base; 611. Third fixing member; 62. Threaded rod; 63. Mounting table; 64. Toggle block. DETAILED DESCRIPTION
[0039] In order to make the purpose, technical solutions and advantages of this application more clear, the following Figure 1-Figure 12 It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0040] The present application embodiment discloses a detection device control method. Figure 1 , a detection device control method includes: Step 100: Control the first mobile platform 3 and the second mobile platform 4 to move, and obtain the horizontal coordinates and vertical coordinates of the current detection image and the preset image center.
[0041] Reference Figure 2, the method is applied to an optometrists detection device, which includes a detection frame 1, a display 2, a first mobile platform 3, a second mobile platform 4, a detection device body 5 and a horizontal fine-tuning component 6. The detection frame 1 can be fixedly installed in any place, including a detection laboratory and an optical shop. The first mobile platform 3 is connected to the detection frame 1 by sliding along the height direction of the detection frame 1, so that the first mobile platform 3 can move vertically. An optometrists head is installed on the first mobile platform 3 to facilitate the adjustment of the height of the optometrists head. In the embodiment of the present application, the movement mode between the first mobile platform 3 and the detection frame 1 can be many, such as a screw drive between the first mobile platform 3 and the detection frame 1, or it can be moved by other movement modes such as cylinder drive. The second mobile platform 4 is connected to the detection frame 1 by sliding along the width direction of the detection frame 1, so that the second mobile platform 4 can move horizontally along the width direction of the detection frame 1. The second mobile platform 4 is connected to the detection frame 1 by screw drive, or it can be moved by other movement modes such as cylinder drive.
[0042] Reference Figure 2 and Figure 3 The first mobile platform 3 is threadedly connected with a first fixing member 31, which is pressed against the detection frame 1, so that when the first mobile platform 3 moves to a specified position, the first mobile platform 3 and the detection frame 1 can be relatively fixed by the first fixing member 31. The second mobile platform 4 is threadedly connected with a second fixing member 41, which is pressed against the detection frame 1, so that when the second mobile platform 4 moves to a specified position, the second mobile platform 4 and the detection frame 1 can be relatively fixed by the second fixing member 41.
[0043] Reference Figure 3 , the horizontal fine-tuning assembly 6 includes a base 61, a threaded rod 62 and a mounting platform 63. The base 61 is connected to the second mobile platform 4 by sliding along the thickness direction of the detection frame 1, so that the base 61 can move horizontally along the thickness direction of the detection frame 1. The base 61 and the second mobile platform 4 are driven by a screw. One end of the threaded rod 62 is rotatably connected to the base 61, and the mounting platform 63 is threadedly connected to the other end of the threaded rod 62. The number of the threaded rod 62 is three, and the mounting platform 63 can be fine-tuned on the horizontal plane by rotating the threaded rod 62. The detection device body 5 is fixed on the mounting platform 63, so that the placement surface of the detection device body 5 is fine-tuned by the horizontal fine-tuning assembly 6. In order to facilitate the rotation of the threaded rod 62, a toggle block 64 is fixedly connected to the threaded rod 62.
[0044] A third fixing member 611 is threadedly connected to the base 61 , and the third fixing member 611 is pressed against the second movable platform 4 , so that when the base 61 moves to a designated position, the base 61 and the second movable platform 4 can be relatively fixed by the third fixing member 611 .
[0045] The current detection image is the image sent back by the detection device body 5, such as Figure 4 As shown. The detection device body 5 is connected to the external display 2, and the device to be detected (for example: a comprehensive optometry head) is placed between the first objective lens and the second objective lens. By adjusting the distance between the focusing element and the second objective lens, the reference pattern on the graticule can be clearly presented on the imaging element. The performance index of the device to be detected is calculated based on the distance between the focusing element and the second objective lens, so as to make a quantitative judgment on the device to be detected. The image center is the position of the center of the current detection image. The horizontal coordinate is the coordinate of the movement in the horizontal direction. The vertical coordinate is the coordinate of the movement in the vertical direction. Here, the horizontal coordinate and the vertical coordinate are actually the coordinates of the image center in the entire actual scene, not the coordinates in the current detection image. Both can be obtained by recording the moving distance of the first mobile platform 3 and the second mobile platform 4, and can also be converted by the number of rotations of the screw that realizes the screw drive.
[0046] Step 101: Analyze the current detection image to obtain the shadow area.
[0047] The shadow area is the shadow area, which is actually the area blocked by the outer frame of the lens, such as Figure 4 The analysis method may be to compare the colors of the features.
[0048] Step 102: When the preset center of the image falls into the shadow area, the current horizontal coordinate and vertical coordinate are recorded, and the current horizontal coordinate and vertical coordinate are combined as edge coordinates, and the movement is continued until the number of recorded edge coordinates is three.
[0049] The edge coordinates include horizontal and vertical coordinates. When the center of the image falls into the shadow area, it means that the edge of the lens has been reached.
[0050] Step 103: When the number of edge coordinates is three, the center coordinate is calculated based on the three edge coordinates, and the third recorded edge coordinate is defined as the starting edge coordinate.
[0051] When the number of edge coordinates is three, it means that three coordinate points at the boundary of the lens have been found, and the three coordinate points can form a circle, so all the orientations of the lens have been determined.
[0052] Step 104: Calculate the center moving direction and the lens radius based on the center coordinates and the starting edge coordinates.
[0053] The center moving direction is the direction from the starting edge coordinate to the center coordinate. The lens radius is the radius of the lens. The calculation method is to draw a vector between two points, and then get the center moving direction through the direction of the vector, and get the lens radius through the distance of the vector.
[0054] Step 105: Control the first movable platform 3 and the second movable platform 4 to move according to the center moving direction and the lens radius to achieve alignment of the detection device body 5.
[0055] Here, only the mirror surface where the lens is located is aligned, but since there may be deviations along the thickness direction of the detection frame 1, adjustment is required.
[0056] Step 106: Obtain the moving distance and detection parameters of the slide rail.
[0057] The moving distance of the slide rail is the moving distance of the base 61 along the thickness direction of the detection frame 1. Here, it can be obtained by recording the number of rotations of the corresponding screw. In addition, the horizontal coordinate, the vertical coordinate and the moving distance of the slide rail can be detected by the distance measuring sensor. The detection parameters are the parameters required for the detection, for example: the distance between the reference plane of the device to be detected and the front focal plane of the object image of the second objective lens.
[0058] Step 107: Calculate the offset distance based on the detection parameters and the moving distance of the slide rail.
[0059] Here, the actual required moving distance of the slide rail can be obtained by converting the detection parameter into the distance on the detection frame 1, and then the offset distance is obtained by subtracting the actual required moving distance of the slide rail from the moving distance of the slide rail. It should be noted that the offset distance here is the distance that needs to be moved.
[0060] Step 108: Control the base 61 to move according to the offset distance and the preset slide rail direction.
[0061] The direction of the slide is the direction of the positive offset distance. For example, if the slide movement distance is 2 cm, and the actual detection parameter requires 3 cm, then Figure 2 In the arrangement shown, the offset distance is 1 cm, and the direction of the slide rail is forward, so the base 61 needs to be moved forward 1 cm.
[0062] Reference Figure 5 , the method of recording the edge coordinates and continuing to move when the center of the image falls into the shadow area includes: Step 200: forming edge tangents based on the shadow area and edge coordinates.
[0063] The edge tangent is the tangent line of the shadow area at the edge coordinates. Here, the system selects two points arbitrarily according to the boundary line of the shadow area to make a straight line, and then moves the two points infinitely close. Figure 4 In the figure, E is one of the edge coordinates, and B is the corresponding edge tangent.
[0064] Step 201: forming a movable orientation range based on the edge tangent line and the shadow area.
[0065] The movable orientation range is the range of orientations after moving to this edge coordinate. The purpose of forming here is to make the image center still inside the lens and not exceed the lens. The method of forming is to first form two range areas according to the edge tangent, and then select the range area without the shadow area as the movable orientation range.
[0066] Step 202: Select a direction in the movable direction range, define it as the moving direction, and continue moving along the moving direction.
[0067] Reference Figure 6 , the specific method of controlling the first mobile platform 3 and the second mobile platform 4 to move to obtain edge coordinates, and then selecting a moving direction to continue moving includes: Step 300: When the edge coordinates do not exist, control the first movable platform 3 to move along a preset first horizontal direction to obtain edge coordinates, and define the movable orientation range obtained for the first time as a first movable orientation range.
[0068] The first horizontal direction is the direction of horizontal movement. In fact, due to its own limitations, the first mobile platform 3 can only move in the first horizontal direction. When the edge coordinate does not exist, it means that the first edge has not been reached for the first time, so it can move freely at this time, but for the convenience of calculation, it can be moved in the first horizontal direction. Figure 4 As shown, D1 is a path that intersects with the shadow area after moving in the first horizontal direction, and finally forms Figure 7 Image shown.
[0069] Step 301: Determine a vertical direction perpendicular to the first horizontal direction based on the first horizontal direction and the first movable orientation range.
[0070] The vertical direction is a direction perpendicular to the first horizontal direction and falls within the first movable orientation range. Figure 7 As shown, when moving to point E, the moving direction obtained according to the first movable direction range is the downward direction of the B boundary line, so the vertical direction can only be the direction of D2.
[0071] Step 302: Control the second movable platform 4 to move in a vertical direction to obtain a second movable orientation range.
[0072] Step 303: Determine a second horizontal direction perpendicular to the vertical direction based on the vertical direction and the second movable orientation range.
[0073] The second horizontal direction is a direction perpendicular to the vertical direction, and is determined here to be a direction opposite to the first horizontal direction.
[0074] Step 304: Control the first mobile platform 3 to move in the second horizontal direction to obtain the starting edge coordinates.
[0075] The purpose of the two perpendicular directions is to make the triangle formed by connecting the three coordinate points end to end form a right angle at the second edge coordinate, and then form a right triangle. In this way, the calculation process is relatively simple. You only need to calculate the distance between the first edge coordinate and the third edge coordinate. This distance is the diameter, and half of it is the radius. Then calculate the direction between the third edge coordinate and the first edge coordinate.
[0076] Reference Figure 8 , after controlling the first mobile platform 3 and the second mobile platform 4 to move according to the central moving vector, a method for checking the horizontal placement state of the detection device body 5 is also included, the method comprising: Step 400: Control the first mobile platform 3 to move horizontally and obtain a first verification detection image.
[0077] The first check detection image is the current detection image when the first mobile platform 3 moves horizontally. The acquisition method is the same as the current detection image method, which will not be repeated here. The starting point of the movement here is the center of the lens, and the center of the lens has nothing to do with the tilt process of the detection device body 5, so the center of the lens is accurate.
[0078] Step 401: Analyze the first verification detection image based on a preset first cross mark feature and a first horizontal and vertical dividing line to determine a first horizontal line area and a first vertical line area.
[0079] The first cross mark feature is the feature of the cross mark in the imaging element mapped in the detection image. The horizontal and vertical dividing lines are virtual 45° dividing lines in the image, such as Fig. 9 Since the detection device body 5 will not deflect much, it can basically be determined by 45°.
[0080] The first horizontal line area is the area occupied by the horizontal lines in the cross mark in the horizontal direction. The first vertical line area is the area occupied by the vertical lines in the cross mark in the vertical direction. The analysis method is to compare the cross mark features with the image to obtain the area occupied by the cross mark, and then obtain the horizontal area and the vertical area according to the first horizontal and vertical dividing line, which are defined as the first horizontal line area and the first vertical line area respectively, and the center position is the image center.
[0081] Step 402: Analyze the first horizontal line area based on the first cross mark feature and the preset first horizontal line direction to determine the horizontal line angle quadrant.
[0082] The horizontal line angle quadrant is the quadrant of the angle where the horizontal line is located. The first horizontal line direction is the horizontal horizontal direction. First, the image is divided into two quadrants according to the first horizontal line direction, and then the area where the first horizontal line area falls is determined, such as Fig. 9 As shown, only the direction that is the same as the moving direction is selected here, so the first horizontal line area falls into the first quadrant.
[0083] Step 403: Analyze the first verification detection image to obtain a first verification shadow area.
[0084] The first check shadow area is the shadow area in the first check detection image. The analysis process is similar to step 101 and will not be described in detail here.
[0085] Step 404: Determine a first overlapping area based on the first horizontal line area and the first check shadow area.
[0086] The first overlap area is the overlap area between the first horizontal line area and the first check shadow area. The determination method is to compare all coordinate points in the two areas. When the coordinate points are the same, the first overlap area exists.
[0087] Step 405: Obtain a first moving distance when a first overlapping area appears.
[0088] The first moving distance is the distance from the center of the lens to the coordinate point corresponding to the first overlap area, which can be obtained by coordinate calculation.
[0089] Step 406: Calculate a first deflection angle based on the first moving distance, the lens radius, and a first edge length preset in the first cross mark feature.
[0090] The first sideline length is the length of the sideline in the first cross mark feature. Here, the default design assumes that the lengths of the horizontal and vertical lines are the same. The first deflection angle is the deflection angle of the first cross mark feature. The calculation formula is as follows: ,in, is the first deflection angle, is the first moving distance, is the lens radius, is the length of the first edge in the first cross mark feature. After the calculation is completed here, two angles will appear, such as Fig. 9 As shown, one is in the first quadrant and the other is in the fourth quadrant.
[0091] Step 407: Determine the actual first deflection angle based on the first deflection angle and the horizontal line angle quadrant.
[0092] The actual first deflection angle is a first deflection angle determined according to the horizontal line angle quadrant, and can be determined by comparing it with the horizontal line angle quadrant.
[0093] Step 408: searching for a corresponding first leveling operation solution from a preset first operation database based on the actual first deflection angle.
[0094] The first leveling operation scheme is an operation scheme for eliminating the actual first deflection angle so that the detection device body 5 is placed horizontally. The database stores a mapping relationship between the actual first deflection angle and the first leveling operation scheme. It is obtained by the staff in the field according to the different deflection angles corresponding to different operation schemes during actual operation. When the system receives the actual first deflection angle, it automatically finds the corresponding first leveling operation scheme from the database and outputs it.
[0095] Step 409: Control the leveling adjustment component to perform leveling according to the first leveling operation scheme.
[0096] Reference Fig.10 Another method for checking the horizontal placement state of the detection device body 5 includes: Step 500: Control the first mobile platform 3 and the second mobile platform 4 to move simultaneously to achieve movement in a preset semi-right angle direction, and obtain a second verification detection image.
[0097] The semi-right angle direction is the direction of 45°. The second verification detection image is the current detection image when the first mobile platform 3 is horizontal and the second mobile platform 4 is moving simultaneously. The acquisition method is the same as the current detection image method, and will not be repeated here. The starting point of the movement here is the center of the lens, and the center of the lens has nothing to do with the tilt process of the detection device body 5, so the center of the lens is accurate.
[0098] Step 501: Analyze the second verification detection image to obtain a second verification shadow area.
[0099] The second check shadow area is the shadow area in the second check detection image. The analysis process is similar to step 101 and will not be described in detail here.
[0100] Step 502: Analyze the second verification detection image based on the preset second cross mark feature and the second horizontal and vertical dividing line to determine the second horizontal line area and the second vertical line area.
[0101] The second cross mark feature is the feature of the cross mark in the imaging element mapped in the detection image. The horizontal and vertical dividing lines are virtual dividing lines in the image into horizontal and vertical directions, such as Fig.11The second horizontal line area of the second cross mark feature is the area occupied by the horizontal lines in the cross mark in the horizontal direction. The second vertical line area is the area occupied by the vertical lines in the cross mark in the vertical direction. The analysis method is to compare the cross mark feature with the image to obtain the area occupied by the cross mark, and then obtain the horizontal area and the vertical area according to the second horizontal and vertical dividing line, which are defined as the second horizontal line area and the second vertical line area respectively, and the center position is the image center.
[0102] Step 503: Determine a second overlapping area based on the second horizontal line area, the second vertical line area and the second check shadow area.
[0103] The second overlap area is the overlap area between the second horizontal line area and the second check shadow area, or the overlap area between the second vertical line area and the second check shadow area. The determination method is to compare all coordinate points in the two areas. When the coordinate points are the same, the second overlap area exists.
[0104] Step 504: Continue moving when the second overlapping area does not exist.
[0105] If it does not exist, it means that the boundary position has not been reached and you can continue to move.
[0106] Step 505: When there is a second overlapping area between one of the second horizontal line area or the second vertical line area and the second check shadow area, obtain the second moving distance and the overlapping second horizontal line area or the second vertical line area, define the second horizontal line area as the overlapping horizontal line area, and define the second vertical line area as the overlapping vertical line area.
[0107] The second moving distance is the distance from the center of the lens to the coordinate point corresponding to the appearance of the second overlap area, which can be obtained by coordinate calculation.
[0108] When there is a second overlapped area between the second horizontal line area or the second vertical line area and the second check shadow area, it indicates that an overlapped position has occurred. Therefore, it is necessary to determine whether it is the second horizontal line area or the second vertical line area.
[0109] Step 506: Calculate a second deflection angle based on the second moving distance, the lens radius, and a second edge length preset in the second cross mark feature.
[0110] The second sideline length is the length of the sideline in the second cross mark feature. Here, by default, the lengths of the horizontal line and the vertical line are the same. The second deflection angle is the deflection angle of the second cross mark feature.
[0111] The calculation formula is as follows: ,in, is the second deflection angle, is the second moving distance, is the lens radius, is the length of the second edge in the cross mark feature. After the calculation is completed, two angles will appear, such as Fig.11 As shown, one is 45° upward and the other is 45° downward.
[0112] Step 507: Determine the actual second deflection angle based on the second deflection angle and the overlapping horizontal line area or the overlapping vertical line area.
[0113] The actual second deflection angle is a second deflection angle determined according to the overlapped horizontal line area or the overlapped vertical line area, and is determined in such a way that when the overlapped area is the overlapped horizontal line area, it is below 45°, and when the overlapped area is the overlapped vertical line area, it is above 45°.
[0114] Step 508: searching for a corresponding second leveling operation solution from a preset second operation database based on the actual second deflection angle.
[0115] The second leveling operation scheme is an operation scheme for eliminating the actual second deflection angle so that the detection device body 5 is placed horizontally. The database stores the mapping relationship between the actual second deflection angle and the second leveling operation scheme. It is obtained by the staff in this field according to the different deflection angles corresponding to different operation schemes in actual operation. When the system receives the actual second deflection angle, it automatically finds the corresponding second leveling operation scheme from the database and outputs it. Step 509: Control the leveling adjustment component to perform leveling according to the second leveling operation scheme.
[0116] Reference Fig.12 The method of controlling the first mobile platform 3 and the second mobile platform 4 to move simultaneously to achieve movement in a preset semi-right angle direction and obtaining a second verification detection image includes: Step 600: When the second check shadow area does not exist, the first mobile platform 3 and the second mobile platform 4 are controlled to move at a preset fast speed.
[0117] Fast speed is a faster speed. If it does not exist, it means that the distance to the shadow area is far, so if you move at a fast speed, you will not touch it in a short time, so you can move quickly.
[0118] Step 601: Calculate a maximum moving distance based on a second edge length and a preset image radius when a second checking shadow area appears.
[0119] The image radius is the radius of the image in the actual scene. The maximum moving distance is the distance that can be moved at a fast speed without overlapping the area.
[0120] If the second check shadow area appears here, it means that it is close to the edge, but there is still a distance to move quickly. The maximum value of this distance is the image radius minus the length of the second edge. If the length of the second edge is inclined, when there is an overlapping area, the moving distance is greater than the maximum moving distance. Therefore, when moving the maximum moving distance, there will definitely be no overlapping area or the area that has just overlapped.
[0121] Step 602: Control the first mobile platform 3 and the second mobile platform 4 to continue moving the maximum moving distance at a fast speed.
[0122] Step 603: If there is a second overlapping area after the first moving platform 3 and the second moving platform 4 move the maximum moving distance, stop moving.
[0123] If there is a second overlapping area, it means that the vehicle is tilted at 45° and there is no need to move further.
[0124] Step 604: If the second overlapping area does not exist, the first mobile platform 3 and the second mobile platform 4 are controlled to move at a preset slow speed until the second overlapping area exists.
[0125] The slow speed is a slow speed, at which the first mobile platform 3 and the second mobile platform 4 are controlled to move at a slow speed until the second overlapping area exists. If it does not exist, it means that the boundary has not been reached, but the second overlapping area may appear at any time.
[0126] The above are all preferred embodiments of the present application, and are not intended to limit the protection scope of the present application. Any feature disclosed in this specification (including the abstract and drawings), unless otherwise stated, can be replaced by other equivalent or alternative features with similar purposes. That is, unless otherwise stated, each feature is only an example of a series of equivalent or similar features.
Claims
1. An optometry head detection device, characterized in that: include: Detection rack (1); A first movable platform (3) is slidably connected to the detection frame (1) along the height direction of the detection frame (1), and a screw drive is provided between the first movable platform (3) and the detection frame (1) for installing an optometry head; A second movable platform (4) is slidably connected to the detection frame (1) along the width direction of the detection frame (1), and a screw drive is provided between the second movable platform (4) and the detection frame (1); The detection device body (5) is slidably connected to the second movable platform (4) along the thickness direction of the detection frame (1), and a screw drive is provided between the detection device body (5) and the second movable platform (4) to detect the optometry head; as well as The display (2) is communicatively connected to the detection device body (5) and is used to present images detected by the detection device body (5).
2. The optometry head detection device according to claim 1, characterized in that: The apparatus further comprises a horizontal fine-tuning assembly (6), the horizontal fine-tuning assembly (6) comprising a base (61), a threaded rod (62) and a mounting platform (63), the base (61) being slidably connected to the second movable platform (4) along the thickness direction of the detection frame (1), a screw transmission being provided between the base (61) and the second movable platform (4), the threaded rod (62) being provided in three numbers, one end of each of the three threaded rods (62) being rotatably connected to the base (61), the mounting platform (63) being threadedly connected to the other ends of the three threaded rods (62) at the same time, and the detection device body (5) being fixed on the mounting platform (63).
3. The optometry head detection device according to claim 2, characterized in that: A toggle block (64) is fixedly connected to the threaded rod (62).
4. The optometry head detection device according to claim 3, characterized in that: A first fixing member (31) is threadedly connected to the first mobile platform (3), and the first fixing member (31) is tightly pressed against the detection frame (1); a second fixing member (41) is threadedly connected to the second mobile platform (4), and the second fixing member (41) is tightly pressed against the detection frame (1); a third fixing member (611) is threadedly connected to the base (61), and the third fixing member (611) is tightly pressed against the second mobile platform (4).
5. A detection device control method, applied to an optometry head detection device as claimed in any one of claims 2 to 4, characterized in that: include: Controlling the movement of the first mobile platform (3) and the second mobile platform (4), and obtaining the horizontal coordinates and vertical coordinates of the center of the current detection image and the preset image; Analyze the current detection image to obtain the shadow area; When the preset center of the image falls into the shadow area, the current horizontal coordinate and vertical coordinate are recorded, and the current horizontal coordinate and vertical coordinate are combined as edge coordinates, and the movement continues until the number of recorded edge coordinates is three; When the number of edge coordinates is three, the center coordinate is calculated based on the three edge coordinates, and the edge coordinate of the third record is defined as the starting edge coordinate; The center moving direction and the lens radius are calculated based on the center coordinates and the starting edge coordinates; The first movable platform (3) and the second movable platform (4) are controlled to move according to the central moving direction and the lens radius, so as to achieve alignment of the detection device body (5).
6. A detection device control method according to claim 5, characterized in that: The method of recording the edge coordinates and continuing to move when the center of the image falls into the shadow area includes: forming edge tangents based on the shadow area and edge coordinates; A movable orientation range is formed based on the edge tangent and the shadow area; Select a direction in the movable direction range to define it as the moving direction and continue moving in the moving direction.
7. A detection device control method according to claim 6, characterized in that: The specific method of controlling the first mobile platform (3) and the second mobile platform (4) to move to obtain edge coordinates and then selecting a moving direction to continue moving includes: When the edge coordinates do not exist, controlling the first movable platform (3) to move in a preset first horizontal direction to obtain the edge coordinates, and defining the movable orientation range obtained for the first time as a first movable orientation range; Determine a vertical direction perpendicular to the first horizontal direction based on the first horizontal direction and the first movable orientation range; Controlling the second movable platform (4) to move in a vertical direction to obtain a second movable orientation range; determining a second horizontal direction perpendicular to the vertical direction based on the vertical direction and the second movable orientation range; The first moving platform (3) is controlled to move in a second horizontal direction to obtain the starting edge coordinates.
8. A detection device control method according to claim 5, characterized in that: After controlling the first mobile platform (3) and the second mobile platform (4) to move according to the central moving vector, a method for checking the horizontal placement state of the detection device body (5) is also included, the method comprising: Controlling the first mobile platform (3) to move horizontally and acquiring a first verification detection image; Analyze the first verification detection image based on the preset first cross mark feature and the first horizontal and vertical dividing line to determine the first horizontal line area and the first vertical line area; Analyzing the first horizontal line area based on the first cross mark feature and the preset first horizontal line direction to determine the horizontal line angle quadrant; Analyzing the first check detection image to obtain a first check shadow area; Determine a first overlap area based on the first horizontal line area and the first check shadow area; When the first overlapping area appears, a first moving distance is obtained; Calculating a first deflection angle based on a first moving distance, a lens radius, and a first edge length preset in a first cross mark feature; determining an actual first deflection angle based on the first deflection angle and the cross-line angle quadrant; Finding a corresponding first leveling operation scheme from a preset first operation database based on the actual first deflection angle; The horizontal fine adjustment component (6) is controlled to perform leveling according to a first leveling operation scheme.
9. A detection device control method according to claim 8, characterized in that: Another method for checking the horizontal placement state of the detection device body (5) is also included, the method comprising: Controlling the first mobile platform (3) and the second mobile platform (4) to move simultaneously to achieve movement in a preset semi-right angle direction, and acquiring a second verification detection image; analyzing the second check detection image to obtain a second check shadow area; Analyzing the second verification detection image based on a preset second cross mark feature and a second horizontal and vertical dividing line to determine a second horizontal line area and a second vertical line area; Determine a second overlap area based on the second horizontal line area, the second vertical line area, and the second check shadow area; Continue moving when the second overlapping area does not exist; When there is a second overlapped area between one of the second horizontal line area or the second vertical line area and the second check shadow area, obtain the second moving distance and the overlapped second horizontal line area or the second vertical line area, define the second horizontal line area as the overlapped horizontal line area, and define the second vertical line area as the overlapped vertical line area; Calculating a second deflection angle based on a second moving distance, a lens radius, and a first edge length preset in a second cross mark feature; determining an actual second deflection angle based on the second deflection angle and the coincident horizontal line area or the coincident vertical line area; Finding a corresponding second leveling operation solution from a preset second operation database based on the actual second deflection angle; The horizontal fine adjustment component (6) is controlled to perform leveling according to the second leveling operation scheme.
10. A detection device control method according to claim 9, characterized in that: The formula for calculating the second deflection angle based on the second moving distance and the second edge length in the second cross mark feature is as follows: ,in, is the second deflection angle, is the second moving distance, is the lens radius, is the length of the second edge in the second cross mark feature.
Citation Information
Patent Citations
Optical system, optical detection device and method for detecting integrated refractometer
CN104422583A
Cited By
X-Cube and micro display screen alignment MTF detection method
CN120907787A