Disclosure of Invention
In view of the above-mentioned deficiencies of the prior art, the present invention provides a method and a device for inspecting the surface finish of a cone, so as to overcome the problems of time and labor consuming and low inspection efficiency of the method for inspecting the surface finish of a cone in the prior art.
The technical scheme of the invention is as follows:
the invention provides a cone surface smoothness detection device, which comprises:
the supporting system is used for adjusting the test position of the cone sample;
the light source system is used for irradiating the surface of the cone to generate reflected light for detection;
the image capturing system is used for receiving the reflected light of the cone surface; and
and the image analysis system is used for carrying out image processing on the reflected light received by the image capturing system to obtain the surface smoothness information of the cone.
The cone surface finish detecting device, wherein the support system comprises: the device comprises a sample turntable for driving a cone sample to rotate, a stepping motor for driving the sample turntable to rotate, and a lifting platform connected with the stepping motor and used for adjusting the height of the cone sample.
The cone surface finish detecting device, wherein the light source system comprises: the device comprises a laser arranged on the upper part of the supporting system and a transparent sleeve arranged on the upper part of the laser and used for placing a cone sample and facilitating the emission of reflected light.
The cone surface smoothness detection device, wherein the image capture system includes: the system comprises a camera support arranged on one side of the light source system, a camera rotary table arranged on the camera support, and a linear array camera arranged on the camera rotary table.
The invention also provides a cone surface smoothness detection method, wherein the method is based on a cone surface smoothness detection device; the cone surface finish detection device comprises: the system comprises a supporting system, a light source system, an image capturing system and an image analysis system; the support system includes: the device comprises a sample turntable for driving a cone sample to rotate, a stepping motor for driving the sample turntable to rotate, and a lifting platform connected with the stepping motor and used for adjusting the height of the cone sample; the light source system includes: the laser is arranged at the upper part of the supporting system, and the transparent sleeve is arranged at the upper part of the laser and used for placing a cone sample and facilitating the emission of reflected light; the image capturing system includes: the system comprises a camera support arranged on one side of the light source system, a camera turntable arranged on the camera support, and a line camera arranged on the camera turntable;
the method comprises the following steps:
step C, placing the cone sample right above the transparent sleeve; turning on the laser, and adjusting the position of the laser until the reflected light on the surface of the cone is horizontal; opening the linear array camera, checking and ensuring that the center of the target surface of the linear array camera is superposed with the center of the reflected light;
d, acquiring surface smoothness information corresponding to the initial angle through an image analysis system to obtain vector data corresponding to the angle; and (3) starting a stepping motor to rotate at a constant speed, controlling the rotating speed to be matched with the exposure time of the linear array camera, combining an image analysis system to perform image processing scanning, acquiring surface finish information of each angle in real time, and combining vector data corresponding to each angle to obtain a surface finish-theta diagram of the whole cone.
The cone surface finish detection method, wherein, the step D is followed by:
and E, performing differential calculation on the surface smoothness-theta diagram obtained in the step D and a preset standard pattern to obtain a deviation pattern, and judging whether the cone sample is a qualified product or not according to the deviation pattern.
The cone surface finish detection method, wherein step C further comprises:
and step B, calibrating the cone surface smoothness detection device, and pre-shooting a standard pattern as a basis for judging whether the cone sample is a qualified product.
The cone surface finish detection method, wherein the step B specifically comprises the following steps:
step B1, placing the standard cone piece right above the transparent sleeve; turning on the laser, and adjusting the position of the laser until the cone-shaped reflected light is horizontal; opening the linear array camera, checking and ensuring that the center of the target surface of the linear array camera is superposed with the center of the reflected light;
b2, acquiring surface smoothness information corresponding to the initial angle through an image analysis system to obtain vector data corresponding to the angle; and (3) starting a stepping motor to rotate at a constant speed, controlling the rotating speed to be matched with the exposure time of the linear array camera, combining an image analysis system to perform image processing scanning, acquiring surface finish information of each angle in real time, and combining vector data corresponding to each angle to obtain a surface finish-theta diagram of the whole standard cone piece as a preset standard pattern.
The cone surface finish detection method, wherein step B further comprises:
and step A, installing a cone surface smoothness detection device, and placing a cone sample for primary adjustment.
The cone surface finish detection method comprises the following steps:
step A1, after a stepping motor is arranged on a lifting platform, a laser is firstly placed right above a sample turntable, then the laser is arranged right above the stepping motor, then a transparent sleeve is arranged above the laser, and then a cone sample is placed on the upper part of the transparent sleeve;
step A2, turning on a laser to enable the surface of a cone to generate reflected light, adjusting the center of a target surface of the linear array camera to be coincident with the center of the reflected light, and then adjusting a camera turntable to enable the linear array camera to face a cone sample; and then, setting control parameters of the image capturing system, and finely adjusting the position of the linear array camera and the lifting platform according to the image to finish initial assembly and adjustment.
The invention has the beneficial effects that: the invention provides a method and a device for detecting the surface smoothness of a cone, which can realize the test of detecting the surface smoothness of a metal cone quickly and in real time and improve the detection and production efficiency.
Detailed Description
The invention provides a method and a device for detecting the surface smoothness of a cone, which are further described in detail below by referring to the attached drawings and embodiments in order to make the purpose, the technical scheme and the effect of the invention clearer and clearer. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The cone surface smoothness detection device of the embodiment of the invention, as shown in fig. 1, comprises: a support system 1, a light source system 2, an image capturing system 3 and an image analysis system 4. Wherein the support system 1 is used for adjusting the test position of the cone sample 9; the light source system 2 is used for irradiating the surface of the cone to generate reflected light for detection; the image capturing system 3 is used for receiving reflected light of the surface of the cone; the image analysis system 4 is used for processing the reflected light received by the image capturing system 3 to obtain the information of the surface smoothness of the cone.
Further, as shown in fig. 1, in the present embodiment, the supporting system 1 includes: the device comprises a sample rotary table 11 for driving a cone sample 9 to rotate, a stepping motor 12 for driving the sample rotary table 11 to rotate, and a lifting table 13 connected with the stepping motor 12 and used for adjusting the height of the cone sample. Wherein the sample turntable 11 can realize 360 DEG cone surface test. In specific implementation, the stepping motor 12 can control the sample turntable 11 to rotate at a constant speed to match the exposure time of the camera, so as to obtain the surface finish information of the whole cone.
Further, as shown in fig. 1, in the present embodiment, the light source system 2 includes: a laser 21 arranged on the upper part of the support system 1, and a transparent sleeve 22 arranged on the upper part of the laser 21 for placing the cone sample 9 and facilitating the exit of reflected light. Wherein the transparent sleeve 22 matches the shape of the head of the laser 21, and the transparent sleeve 22 is preferably a glass sleeve.
Further, as shown in fig. 1, in the present embodiment, the image capturing system 3 includes: a camera mount 31 provided on a side of the light source system 2, a camera turret 32 provided on the camera mount 31, and a line camera 33(CCD) provided on the camera turret 32. The image analysis system 4 is a PC-side software function implementation part, and includes a PC side, and software is built in the PC side, so that multi-channel image conversion can be implemented, and a specific work flow thereof is shown in fig. 2. In specific implementation, the image acquired by the image acquisition system is analyzed by an image processing technology to obtain the surface smoothness of the cone, and the yield of the sample is determined by calibration. Two linear-array cameras can be installed at the same PC end, lenses of a C port or a CS port can be externally installed in front of the linear-array cameras according to the laser size shot according to needs, and the camera models can be changed by switching the WINVIDEO models.
The cone surface smoothness detection device is based on the laser diffraction principle, when the cone surface smoothness detection device works, a laser 21 is arranged on a sample rotary table 11, the position of a cone sample 9 is fixed by combining a transparent sleeve 22, and the height and the measured position of the cone sample 9 can be adjusted through a lifting table 13 and the sample rotary table 11; the reflected light irradiated to the surface of the cone penetrates through the transparent sleeve 22 to be received by the linear array camera 33, the linear array camera 33 is installed on a vertical wall surface through the camera support 31 and the camera rotary table 32, the linear array camera 33 can be adjusted to be right opposite to the cone sample 9 through the camera rotary table 32, the metal cone surface finish degree information is converted into laser intensity information received by the sensor through the image capturing system 3 and the image analysis system 4, real-time image processing and analysis are received by the sensor, real-time reflected light image information can be detected, and the real-time detection effect of the cone surface finish degree information is achieved. The cone surface smoothness detection device disclosed by the invention not only can realize the functions of real-time acquisition and real-time processing, but also can realize the real-time pattern display of the cone surface smoothness and the sample yield statistics, can realize the test of quickly detecting the metal cone surface smoothness in real time, and improves the detection and production efficiency.
Further, based on the above described device for detecting the surface finish of the cone, the present embodiment further provides a method for detecting the surface finish of the cone, as shown in fig. 3, where the method includes:
step S300, placing a cone sample right above a transparent sleeve; turning on the laser, and adjusting the position of the laser until the reflected light on the surface of the cone is horizontal; opening the linear array camera, checking and ensuring that the center of the target surface of the linear array camera is superposed with the center of the reflected light;
s400, acquiring surface smoothness information corresponding to an initial angle through an image analysis system to obtain vector data corresponding to the angle; and (3) starting a stepping motor to rotate at a constant speed, controlling the rotating speed (the rotating speed of the cone sample) to be matched with the exposure time of the linear array camera, carrying out image processing scanning by combining an image analysis system, acquiring the surface finish information of each angle in real time, and combining vector data corresponding to each angle to obtain a surface finish-theta diagram of the whole cone.
Further, in this embodiment, after the step S400, the method further includes:
and S500, carrying out difference calculation on the surface smoothness-theta diagram obtained in the step S400 and a preset standard pattern to obtain a deviation pattern, and judging whether the cone sample is a qualified product or not according to the deviation pattern.
Further, in this embodiment, before the step S300, the method further includes:
step S200, calibrating the cone surface smoothness detection device, and shooting a standard pattern in advance as a basis for judging whether the cone sample is a qualified product.
Further, in this embodiment, the step S200 specifically includes:
step S210, placing the standard cone piece right above the transparent sleeve; turning on the laser, and adjusting the position of the laser until the cone-shaped reflected light is horizontal; opening the linear array camera, checking and ensuring that the center of the target surface of the linear array camera is superposed with the center of the reflected light;
s220, acquiring surface smoothness information corresponding to an initial angle through an image analysis system to obtain vector data corresponding to the angle; and (3) starting a stepping motor to rotate at a constant speed, controlling the rotating speed to be matched with the exposure time of the linear array camera, combining an image analysis system to perform image processing scanning, acquiring surface finish information of each angle in real time, and combining vector data corresponding to each angle to obtain a surface finish-theta diagram of the whole standard cone piece as a preset standard pattern.
Further, in this embodiment, before the step S200, the method further includes:
and S100, installing a cone surface smoothness detection device, and placing a cone sample for primary adjustment.
Further, in this embodiment, the step S100 specifically includes:
step S110, after a stepping motor is arranged on a lifting platform, a laser is placed right above a sample turntable, then the laser is arranged right above the stepping motor, then a transparent sleeve is arranged above the laser, and then a cone sample is placed on the upper portion of the transparent sleeve;
step S120, turning on a laser to enable the surface of the cone to generate reflected light, adjusting the center of a target surface of the linear array camera to be coincident with the center of the reflected light, and then adjusting a camera turntable to enable the linear array camera to be opposite to the cone sample; and then, setting control parameters of the image capturing system, and finely adjusting the position of the linear array camera and the lifting platform according to the image to finish initial assembly and adjustment. Wherein the control parameter setting comprises gain setting, exposure time setting, model setting and the like.
Further, in the method for detecting the surface smoothness of the cone, the detection of the surface smoothness of the cone can be carried out according to the following specific steps:
firstly, the cone surface finish detection device needs to be installed:
step S10, installing a stepping motor on the lifting platform and fixing the stepping motor by using threads;
step S11, after the laser is installed right above the sample turntable, the laser is installed right above the stepping motor;
step S12, installing a glass sleeve matched with the head of the laser above the laser;
step S13, turning on a laser, placing a cone sample to generate reflected light, adjusting the center of a target surface of the linear array camera to coincide with the center of the reflected light, and then adjusting a sample turntable to enable the linear array camera to be opposite to the cone sample;
and step S14, adjusting parameters such as exposure time and gain, finely adjusting the position of the linear array camera and the lifting platform according to the image, and finishing initial installation and adjustment.
Then, after the device is preliminarily adjusted, calibrating the cone surface smoothness detection device, and taking a standard pattern as a basis for judging whether the sample is qualified or not:
step S15, placing the standard cone piece right above the glass sleeve;
step S16, turning on the laser, and adjusting the position of the laser until the cone reflection light is horizontal;
step S17, opening the linear array camera, and checking whether the target surface center of the linear array camera is superposed with the center of the reflected light;
s18, collecting surface smoothness information corresponding to the initial angle to obtain vector data corresponding to the angle;
and step S19, turning on a stepping motor to enable the stepping motor to rotate at a constant speed, matching the rotating speed with the exposure time of the camera, and obtaining a surface smoothness-theta diagram of the whole cone structure as a standard pattern by combining image processing scanning.
Finally, the sample detection work is started:
step S20, placing the cone sample right above the glass sleeve;
step S21, turning on the laser, and adjusting the position of the laser until the cone reflection light is horizontal;
step S22, opening the linear array camera, and checking whether the target surface center of the linear array camera is superposed with the center of the reflected light;
s23, collecting surface smoothness information corresponding to the initial angle to obtain vector data corresponding to the angle;
step S24, turning on a stepping motor to enable the stepping motor to rotate at a constant speed, matching the rotating speed with the exposure time of a camera, combining image processing scanning, and combining vector data of each angle to obtain a surface smoothness-theta diagram of the whole cone structure;
and step S25, calculating the difference between the surface smoothness-theta diagram and the standard diagram to obtain a deviation diagram, thereby judging whether the cone sample is a qualified product.
The invention provides a method for calibrating the surface smoothness of a cone by taking a picture of a standard sample, which determines a smoothness model and a quality criterion thereof, can finish the rapid detection of the surface smoothness of the cone sample, and can also realize the storage of images and smoothness information. The invention converts the detection problem of the surface smoothness of the cone into the detection problem of the diffraction efficiency similar to the diffraction of laser irradiating on the grating, detects the intensity distribution condition of the laser reflected by the surface of the cone through a linear array camera, obtains the surface smoothness information of the cone through later image processing, calibrates the smoothness parameters by adopting the standard cone, determines the unqualified sample interval, and identifies and stores the surface smoothness information of the cone through machine vision software recognition.
It is to be understood that the invention is not limited to the examples described above, but that modifications and variations may be effected thereto by those of ordinary skill in the art in light of the foregoing description, and that all such modifications and variations are intended to be within the scope of the invention as defined by the appended claims.