Disclosure of Invention
The embodiment of the invention provides a method and a device for detecting the curvature of cambered glass, which are used for judging whether the curvature of the cambered glass to be detected is distorted or not by calculating the area of a first area in an effective area, and solve the technical problems that the conventional curvature detection method is easy to cause circumference calculation errors due to misalignment between the circle center of a lens and the optical axis of a camera, is complicated in calculation and is easy to make errors, can only be applied to the selective inspection of the lens and cannot be applied to the full inspection in the production process.
The embodiment of the invention provides a method for detecting the curvature of cambered glass, which comprises the following steps:
shooting a reflection pattern of a standard grid background plate placed on the concave side of the cambered glass to be detected and reflected by the concave side of the cambered glass to be detected from the concave side of the cambered glass to be detected;
calculating the area of a first area in a preset effective area in the reflection pattern, wherein the first area is an area formed in the reflection pattern after the standard square is reflected by the concave side of the cambered surface glass to be detected;
and judging whether the curvature of the cambered surface glass to be detected is distorted according to the area calculation result of the first area.
Preferably, the first and second electrodes are formed of a metal,
the cambered surface glass that awaits measuring is being followed concave side shooting and is being placed standard square background board warp of cambered surface glass concave side awaits measuring after the concave side reflective reflection pattern of cambered surface glass awaits measuring, still include:
and analyzing the form of the first area through morphology to judge whether the curvature of the cambered glass to be detected is distorted.
Preferably, the first and second electrodes are formed of a metal,
the cambered surface glass that awaits measuring is being followed concave side shooting and is being placed standard square background board warp of cambered surface glass concave side awaits measuring before the concave side reflected reflection pattern of cambered surface glass awaits measuring, still include:
and grabbing the cambered surface glass to be detected to a preset position.
The embodiment of the invention provides a device for detecting the curvature of cambered glass, which comprises:
the shooting unit is used for shooting a reflection pattern of a standard square background plate placed on the concave side of the cambered glass to be detected and reflected by the concave side of the cambered glass to be detected from the concave side of the cambered glass to be detected;
the calculating unit is used for calculating the area of a first area in a preset effective area in the reflection pattern, wherein the first area is an area formed in the reflection pattern after the standard square is reflected by the concave side of the cambered surface glass to be detected;
and the curvature distortion first judging unit is used for judging whether the curvature of the cambered glass to be detected is distorted according to the area calculation result of the first area.
Preferably, the first and second electrodes are formed of a metal,
the cambered surface glass curvature detection device further comprises:
and the second curvature distortion judging unit judges whether the curvature of the cambered glass to be detected is distorted or not by analyzing the form of the first area through morphology.
Preferably, the first and second electrodes are formed of a metal,
the cambered surface glass curvature detection device further comprises:
and the grabbing unit is used for grabbing the cambered surface glass to be detected to a preset position.
According to the technical scheme, the embodiment of the invention has the following advantages:
the embodiment of the invention provides a method and a device for detecting the curvature of cambered glass, which are used for grabbing the cambered glass to be detected to a preset position, shooting a first area formed in a reflection pattern after a standard square grid is reflected by the concave side of the cambered glass to be detected, and then judging whether the curvature of the cambered glass to be detected is distorted or not by calculating the area of the first area in an effective area and analyzing the form of the first area in combination with morphology.
Detailed Description
The embodiment of the invention provides a method and a device for detecting the curvature of cambered glass, which are used for judging whether the curvature of the cambered glass to be detected is distorted or not by calculating the area of a first area in an effective area, and solve the technical problems that the conventional curvature detection method is easy to cause circumference calculation errors due to misalignment between the circle center of a lens and the optical axis of a camera, is complicated in calculation and is easy to make errors, can only be applied to the selective inspection of the lens and cannot be applied to the full inspection in the production process.
In order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the embodiments described below are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a first embodiment of a method for detecting curvature of a curved glass according to the present invention includes:
101, shooting a reflection pattern of a standard grid background plate placed on the concave side of the cambered glass to be detected and reflected by the concave side of the cambered glass to be detected from the concave side of the cambered glass to be detected;
in the embodiment of the present invention, firstly, a reflection pattern reflected by the concave side of the arc glass to be measured of the standard square background plate placed on the concave side of the arc glass to be measured needs to be shot from the concave side of the arc glass to be measured, wherein the standard square background plate is set manually, it can be understood that the standard square background plate and the shooting point are both located on the concave side of the arc glass to be measured, and details are not described below.
102, calculating the area of a first area in a preset effective area in the reflection pattern, wherein the first area is an area formed in the reflection pattern after the standard square is reflected by the concave side of the cambered glass to be detected;
in the embodiment of the invention, after the reflection pattern of the standard square background plate placed on the concave side of the cambered glass to be detected and reflected by the concave side of the cambered glass to be detected is shot from the concave side of the cambered glass to be detected, it is also necessary to calculate the area of the first area in the preset effective area in the reflection pattern, where the first area is the area formed in the reflection pattern after the standard square grid is reflected by the concave side of the cambered glass to be measured, as shown in fig. 5, the area where each small circle is located in fig. 5 is a part of the first area, and it should be noted that the effective area is a preset area, as shown in fig. 5 and 6, the area in the rectangle frame in the figure is the effective area, the effective area is generally set as the central part of the concave side of the cambered glass to be measured, because the reflection image of the concave side central part of the cambered glass to be detected is more accurate, the curvature detection result is more reliable, and the details are not repeated; black portions on the periphery of the reflection patterns in fig. 5 and 6, elliptical black portions in the reflection patterns in fig. 6, and circular black portions in the reflection patterns in fig. 5 are all black background images set in advance.
103, judging whether the curvature of the cambered glass to be detected is distorted according to the area calculation result of the first area;
in the embodiment of the present invention, after the area of the first region in the preset effective region in the reflection pattern is calculated, it is further required to determine whether the curvature of the arc glass to be measured is distorted according to the area calculation result of the first region.
Referring to fig. 2, a second embodiment of a method for detecting curvature of a curved glass according to the present invention includes:
201, grabbing the cambered surface glass to be detected to a preset position;
in the embodiment of the invention, the cambered glass to be detected needs to be grabbed to the preset position at first, and it can be understood that the shooting position and the position of the standard square background plate are already set, and the cambered glass to be detected only needs to be grabbed to the corresponding position to complete curvature detection.
202, shooting a reflection pattern of a standard grid background plate placed on the concave side of the cambered glass to be detected and reflected by the concave side of the cambered glass to be detected from the concave side of the cambered glass to be detected;
in the embodiment of the invention, after the cambered glass to be detected is grabbed to the preset position, the reflection pattern of the standard square background plate placed on the concave side of the cambered glass to be detected and reflected by the concave side of the cambered glass to be detected is shot from the concave side of the cambered glass to be detected.
203, calculating the area of a first area in a preset effective area in the reflection pattern, wherein the first area is an area formed in the reflection pattern after the standard square is reflected by the concave side of the cambered glass to be detected;
in the embodiment of the invention, after the reflection pattern of the standard square background plate placed on the concave side of the cambered glass to be detected and reflected by the concave side of the cambered glass to be detected is shot from the concave side of the cambered glass to be detected, the area of a first area in a preset effective area in the reflection pattern needs to be calculated, wherein the first area is an area formed in the reflection pattern after the standard square is reflected by the concave side of the cambered glass to be detected.
204, judging whether the curvature of the cambered glass to be detected is distorted according to the area calculation result of the first area;
in the embodiment of the present invention, after the area of the first region in the preset effective region in the reflection pattern is calculated, it is further required to determine whether the curvature of the arc glass to be measured is distorted according to the area calculation result of the first region.
205, judging whether the curvature of the cambered glass to be detected is distorted or not by analyzing the morphology of the first area through morphology;
in the embodiment of the invention, after the reflection pattern reflected by the concave side of the cambered glass to be detected of the standard square background plate placed on the concave side of the cambered glass to be detected is shot from the concave side of the cambered glass to be detected, whether the curvature of the cambered glass to be detected is distorted or not needs to be judged according to the area calculation result of the first area, and whether the curvature of the cambered glass to be detected is distorted or not is judged according to the morphological analysis and the area calculation result of the first area, so that the detection result is more accurate, and the comparison between fig. 5 and fig. 6 shows that the area and the shape of the first area in fig. 5 are uniform and approximately the same as those of the first area in fig.
Referring to fig. 3, a first embodiment of a device for detecting curvature of a curved glass according to the present invention includes:
the shooting unit 301 is used for shooting a reflection pattern of a standard square background plate placed on the concave side of the cambered glass to be detected and reflected by the concave side of the cambered glass to be detected from the concave side of the cambered glass to be detected;
a calculating unit 302, configured to calculate an area of a first region in a preset effective region in the reflection pattern, where the first region is a region formed in the reflection pattern after the standard square is reflected by the concave side of the arc glass to be measured;
a curvature distortion first judging unit 303, configured to judge whether the curvature of the arc glass to be measured is distorted according to the area calculation result of the first region.
Referring to fig. 4, a second embodiment of a device for detecting curvature of a curved glass according to the present invention includes:
and the grabbing unit 401 is used for grabbing the cambered surface glass to be detected to a preset position.
A shooting unit 402, configured to shoot a reflection pattern, reflected by the concave side of the arc glass to be detected, of the standard square background board placed on the concave side of the arc glass to be detected;
a calculating unit 403, configured to calculate an area of a first region in a preset effective region in the reflection pattern, where the first region is a region formed in the reflection pattern after the standard square is reflected by the concave side of the arc glass to be measured;
a curvature distortion first judging unit 404, configured to judge whether the curvature of the arc glass to be measured is distorted according to the area calculation result of the first region.
The curvature distortion second determination unit 405 determines whether the curvature of the arc glass to be measured is distorted by analyzing the morphology of the first region through morphology.
In the embodiment of the invention, the grabbing unit has various types, such as a combination device of a mechanical structure and a sucker; there are also a variety of shooting units, which may be, for example, cameras.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.