Disclosure of Invention
The present invention is to solve the above problems, and therefore the present invention provides a high-precision part deviation detecting system based on a 3D vision algorithm, which includes:
a detection box body for loading a detection component, wherein the inner wall of the detection box body is provided with a temperature sensor;
the bearing circular table is arranged at the bottom of the detection box body and used for bearing the pre-detection part, a clamp is arranged on the upper surface of the bearing circular table and used for clamping the pre-detection part placed on the bearing circular table, a gravity sensor is further arranged in the bearing circular table and used for detecting the weight of the pre-detection part, and the bearing circular table is connected with a motor so as to enable the bearing circular table to rotate under the driving of the motor;
the ultrasonic detector is arranged on the side wall of the detection box body and used for carrying out ultrasonic scanning on the part to be detected, and the ultrasonic detector is connected with the central controller and used for finishing data exchange with the central controller;
the guide rail is arranged on the inner wall of the detection box body;
the camera is arranged on the guide rail so as to enable the camera to slide along the guide rail, and the camera is provided with a movable structure so that the shooting angle can be adjusted;
the searchlight is arranged on the guide rail so that the searchlight can slide along the guide rail, is used for supplementing light to the pre-detection part and has a movable structure so that the illumination angle of the supplementing light can be adjusted;
the central controller is used for processing information, is arranged on the outer wall of the detection box body, is connected with the motor, the ultrasonic detector, the camera and the searchlight and completes data exchange, when the pre-detected part is placed on the bearing circular truncated cone, the central controller controls the camera to start pre-shooting the pre-detected part, judges the maximum height H and the maximum width L of the pre-detected part and calculates an adjusting parameter K according to the following formula,
wherein: h represents the maximum height of the pre-detected part, L represents the maximum width of the pre-detected part, V0 is preset in volume, T represents actual temperature, T0 represents preset temperature, M represents actual part quality, M0 represents preset part quality, and k represents a parameter;
when the central controller carries out pre-shooting, the central controller controls the camera to shoot a preset number of pieces of pre-detection part image information of X0 at a preset position W1, W2 and W3 of the guide rail, and judges the maximum height H of the part and the maximum width L of the pre-detection part by taking the information as a reference;
the central controller adjusts the running power of the motor and detection parameters during defect detection according to the adjusting parameter K, and simultaneously judges whether an ultrasonic detector is used or not according to the appearance type of the part; when the pre-shooting is completed, the central controller controls the motor to be started to drive the bearing circular truncated cone to rotate and control the camera to shoot the pre-detection part, when the bearing circular truncated cone rotates 360 degrees, the central controller completes the acquisition of the outline data of the pre-detection part and establishes the outline coordinate set f (x, y, z), and the type of the outline of the part is judged through the outline coordinate set f (x, y, z).
Further, the central controller needs to perform part identification pre-storage on the central controller before use, and the part identification pre-storage step is as follows:
the method comprises the following steps of firstly, selecting a plurality of sheet-shaped parts of different shapes, shooting the parts and obtaining a shape contour coordinate set f (x, y, z) of the parts;
secondly, the central controller performs artificial intelligence algorithm training on the outline coordinate set f (x, y, z) of the parts to generate sheet shape type part judgment data, so that the central controller recognizes that the corresponding parts are sheet shape types according to the shot images;
and step three, repeating the method of the step one and the method of the step two, performing part identification and pre-storage on the parts of the three-dimensional hollow external shape type and the three-dimensional solid external shape type, generating part judgment data of the three-dimensional hollow external shape type and part judgment data of the three-dimensional solid external shape type, and finally determining a part identification information matrix B (B1, B2 and B3), wherein B1 represents plate-shaped external shape type part judgment data, B2 represents three-dimensional hollow external shape type judgment data, and B3 represents three-dimensional solid external shape type judgment data.
Further, when the central controller determines the external shape of the part, acquiring an external shape profile coordinate set f (x, y, z) of the part, and comparing the external shape profile coordinate set f (x, y, z) of the part with data in the part identification information matrix B (B1, B2, B3), wherein:
when the set f (x, y, z) of the outline coordinates of the part matches the sheet-like outline type part determination data B1, the central controller determines that the part is of the sheet-like outline type;
when the set f (x, y, z) of the outline coordinates of the part matches the three-dimensional hollow outline type part determination data B2, the central controller determines that the part is of the three-dimensional hollow outline type;
when the set of outline coordinates f (x, y, z) of the part matches the solid outline type part determination data B3, the central controller determines that the part is of the solid outline type.
Further, the central controller is used for judging pixel points of image information transmitted by the camera in real time, adjusting the light supplement intensity and the light supplement angle of the searchlight according to the judgment result, determining the number S of the pixel points of the reflective area of the part to be shot on the shot image in real time when the central controller judges, and is internally provided with threshold value parameters S1, S2 and S3 of the pixel points,
when the number of the pixel points S of the reflecting area is smaller than a threshold value parameter S1 of the pixel points, judging that the shot image is normal;
when the number of the reflective area pixel points S is larger than or equal to the pixel point threshold parameter S1 and smaller than the pixel point threshold parameter S2, judging that the first-level reflective area appears in the shot image, and recording a three-dimensional coordinate set Y1(x, Y, z) of the reflective area;
when the number of the reflective area pixel points S is larger than or equal to the pixel point threshold parameter S2 and smaller than the pixel point threshold parameter S3, judging that a second-level reflective area appears in the shot image, and recording a three-dimensional coordinate set Y2 (x, Y, z) of the reflective area;
and when the number S of the pixels of the reflective area is larger than or equal to a pixel threshold parameter S3, judging that a third-level reflective area appears in the shot image, and recording a three-dimensional coordinate set Y3 (x, Y, z) of the reflective area.
Further, a light adjusting matrix D (D1, D2, D3) is arranged inside the central controller, wherein D1 represents first-level light brightness, D2 represents second-level light brightness, and D3 represents third-level light brightness, and a searchlight irradiation position adjusting matrix F (F1, F2... Fn) is further arranged inside the central controller, wherein F1 represents a first position searchlight control information matrix, and F2 represents a second position searchlight control information matrix.. Fn represents an nth position searchlight control information matrix; for the ith position searchlight control information matrix Fi (Fi 1, Fi 2), wherein Fi1 represents the ith position coordinate set Fi 1(x, y, z) which is a preset value, and Fi2 represents the ith position searchlight moving position and shooting angle data which is a preset value; the central controller judges and adjusts the brightness and the irradiation direction of the searchlight according to the pixel points in real time, and during adjustment, the three-dimensional coordinate data Yi (x, y, z) of the light reflection area is compared with data in a searchlight irradiation position adjusting matrix F (F1, F2... Fn), wherein:
if the three-dimensional coordinate data Yi (x, y, z) of the light reflecting area belongs to a first position coordinate set F11 (x, y, z), the central controller calls first position searchlight moving position and shooting angle data F12 to control the searchlight to move to a specified position and the irradiation angle of the searchlight;
if the three-dimensional coordinate data Yi (x, y, z) of the light reflecting area belongs to a second position coordinate set F21 (x, y, z), the central controller calls second position searchlight moving position and shooting angle data F22 to control the searchlight to move to a specified position and the irradiation angle of the searchlight;
...
if the three-dimensional coordinate data Yi (x, y, z) of the light reflecting area belongs to the nth position coordinate set Fn 1(x, y, z), the central controller calls the nth position searchlight moving position and shooting angle data Fn2 to control the searchlight to move to the specified position and the irradiation angle of the searchlight.
Furthermore, when the central controller adjusts the brightness of the light,
when the first grade of light reflecting area appears in the shot image, the central controller adjusts the light
An intensity at a first light level D1;
when the second-level reflecting area appears in the shot image, the central controller adjusts the light
Intensity is at a third light level D2;
when the third-level light reflecting area appears in the shot image, the central controller adjusts the light
The intensity is at a third light level D3.
Further, the central controller has a standard part information matrix Z (Z1, Z2... Zn) preset therein, wherein: z1 represents a first set of three-dimensional coordinates Z1 (x, y, Z), Z2 represents a second set of three-dimensional coordinates Z2 (x, y, Z).. Zn represents an nth set of three-dimensional coordinates of a standard, and the step of the central controller when determining the part defect based on the set of coordinates f (x, y, Z) of the contour of the pre-inspected part is as follows:
the method comprises the steps of firstly, detecting standard parts of a plurality of pre-detected parts, acquiring a three-dimensional coordinate set of the standard parts, establishing a standard part information matrix Z (Z1, Z2... Zn) and storing the standard part information matrix Z (Z1, Z2... Zn) in a central controller;
secondly, processing the image information of the part to be detected, generating an outline coordinate set f (x, y, z) of the part to be detected, and simultaneously calculating an adjusting parameter K of the part;
thirdly, comparing the difference value between the outline coordinate set f (x, y, Z) of the pre-detected part and the corresponding standard part coordinate set Zi (x, y, Z) in the standard part information matrix Z (Z1, Z2... Zn), determining the i-th area difference coordinate set Ci (x, y, Z) i =1, 2.. n, and if the volume range represented by the i-th area difference coordinate set Ci (x, y, Z) exceeds the preset defect comparison threshold position
And Y0 is a preset value, and K is the adjusting parameter K, and the part is judged to be defective.
Further, a camera adjustment matrix J (J1, J2... Jn) is arranged inside the central controller, wherein J1 represents a first control matrix, and J2 represents a second control matrix.. Jn represents an nth control matrix; for the ith control matrix Ji (Ji 1, Ji 2), i =1, 2.. n, where Ji1 represents the ith coordinate range set Ji 1(x, y, z), and Ji2 represents the ith control information;
when the outline coordinate set f (x, y, z) is established, the central controller judges the integrity of the outline coordinate set f (x, y, z), a contrast parameter U is arranged in the central controller, when an outline model represented by the outline coordinate set f (x, y, z) is missing and the missing range exceeds the contrast parameter U, the central controller acquires a defect coordinate set Q (x, y, z) of the missing part, and matches the defect coordinate set Q (x, y, z) with data in the camera adjusting matrix J (J1, J2... Jn),
when matching, when the defect coordinate set Q (x, y, z) belongs to a first coordinate range set J11 (x, y, z), the central controller calls first control information J12 to control the camera to move to a specified position on the guide rail;
when the defect coordinate set Q (x, y, z) belongs to a second coordinate range set J21 (x, y, z), the central controller calls second control information J22 to control the camera to move to a specified position on the guide rail;
...
when the defect coordinate set Q (x, y, z) belongs to the nth coordinate range set Jn 1(x, y, z), the central controller calls nth control information Jn2 to control the camera to move to a designated position on the guide rail.
Further, a motor control matrix D (D1, D2, D3) is arranged inside the central controller, wherein D1 represents first-level motor driving power, D2 represents second-level motor driving power, D3 represents third-level motor driving power, wherein the ith-level motor driving power Di is reduced along with the increase of i, and contrast parameters K01 and K02 are also arranged inside the central controller
When K < K01, the central controller controls the motor to drive the bearing circular table to move at a first-level motor driving power D1;
when K01 is not more than K < K02, the central controller controls the motor to drive the bearing circular table to move with the driving power D2 of the second-level motor;
when K is larger than or equal to K02, the central controller controls the motor to drive the bearing circular table to move with the driving power D3 of the third-level motor.
Furthermore, when the central controller is arranged to control the ultrasonic detector,
when the central controller judges that the pre-detected part is of the flaky shape type, the central controller does not start the ultrasonic detector;
when the central controller judges that the pre-detection part is of a three-dimensional solid shape type, the central controller does not start the ultrasonic detector;
and when the central controller judges that the pre-detected part is in a three-dimensional hollow shape type, the central controller starts the ultrasonic detector to detect the defect of the hollow part of the pre-detected part.
Compared with the prior art, the invention has the technical effects that the invention comprises the following steps: a detection box body,
The device comprises a bearing circular table, an ultrasonic detector, a guide rail, a camera, a searchlight and a central controller, wherein the central controller is used for accurately controlling the components, the height, the width and the weight of a part to be detected are obtained through pre-shooting, the ambient temperature is obtained at the same time, the parameters are applied to the control process, and the difference of detection results caused by part difference is reduced; the central controller controls the camera to shoot the pre-detected part in real time, controls the rotating speed of the circular truncated cone, detects whether a shot image has light reflection and adjusts the light brightness, the shooting angle of the searchlight and the position of the searchlight at the guide rail to ensure the information acquisition precision of the pre-detected part, judges the defect of the generated part outline coordinate set f (x, y, z), acquires the data of the pre-detected part again according to the defective data to ensure the information acquisition integrity of the part, and improves the defect detection precision;
particularly, the central controller of the invention carries out part identification and pre-storage on the algorithm to generate a part identification information matrix B (B1, B2 and B3) so as to judge the type of the part appearance, thereby judging whether an ultrasonic detector is used or not, for solid and sheet parts, the image of the solid and sheet parts can be processed by a 3D vision algorithm to obtain the characteristics, for hollow parts, the internal defects of the hollow parts need to be detected by the ultrasonic detector, and the detection breadth and the applicability of the invention to the parts are improved.
Particularly, the central controller of the invention determines the number S of the reflective area pixels of the part to be shot on the shot image in real time, generates the three-dimensional coordinate set Yi (x, y, z) of the reflective area, and adjusts the position of the searchlight and the illumination intensity of the searchlight through the three-dimensional coordinate set Yi (x, y, z) of the reflective area, so that the defect of the 3D data acquisition of the part to be detected due to the fact that the defect position is covered by reflection of light in part of the part to be detected is avoided, and the accuracy of the defect detection is indirectly improved by improving the accuracy of the data acquisition process.
In particular, the central controller of the invention is internally provided with a light adjusting matrix D (D1, D2, D3) and a searchlight irradiation position adjusting matrix F (F1, F2... Fn), which are preset values, and acquires adjusting data from the light adjusting matrix D (D1, D2, D3) and the searchlight irradiation position adjusting matrix F (F1, F2... Fn) according to a three-dimensional coordinate set Yi (x, y, z), so that the processing process is faster and easier to implement, the position of the searchlight can be accurately adjusted according to the light reflection area of the part, and the data integrity and accuracy of the whole part acquiring process are improved.
Particularly, the image information of the pre-detected part is processed through a 3D vision algorithm to generate a part outline coordinate set f (x, y, z), and the part outline coordinate set f (x, y, z) is compared with the outline coordinate set f (x, y, z) of the standard part on the basis to determine the defects of the part.
Particularly, the method judges the real-time integrity of the acquired outline coordinate set f (x, y, z), acquires the incomplete part defect coordinate set Q (x, y, z) for incomplete part information, adjusts the position of a camera according to information in a camera adjusting matrix J (J1, J2... Jn), and repeats the part information acquisition process again, so that the more accurately acquired part information is more complete and accurate, and the accuracy and the integrity of a final detection result are indirectly improved.
Particularly, the rotating speed of the motor is controlled according to the adjusting parameter K, so that the rotating speed of the bearing disc is adjusted, the height, the width and the quality information of the parts contained in the parameter K influence the acquiring process of the data of the parts, if the maximum height H and the maximum width L are larger under the condition that other conditions are not changed, the K is overlarge, and if the quality of the parts is smaller under the condition that other conditions are not changed, the parts have more hollow structures or protruding structures, the K is larger, the rotating speed of the disc is adjusted to be slow for the parts with the larger adjusting parameter K, so that the central controller can process the image information of the parts, the processor can process the image information of the parts for enough time, the camera can acquire the characteristics of the parts more fully, and the information acquiring precision is improved.
Detailed Description
The above and further features and advantages of the present invention are described in more detail below with reference to the accompanying drawings.
Preferred embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood by those skilled in the art that these embodiments are only for explaining the technical principle of the present invention, and are not intended to limit the scope of the present invention.
It should be noted that in the description of the present invention, the terms of direction or positional relationship indicated by the terms "upper", "lower", "left", "right", "inner", "outer", etc. are based on the directions or positional relationships shown in the drawings, which are only for convenience of description, and do not indicate or imply that the device or element must have a specific orientation, be constructed in a specific orientation, and be operated, and thus, should not be construed as limiting the present invention.
Furthermore, it should be noted that, in the description of the present invention, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, and may be, for example, fixedly connected, detachably connected, or integrally connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
Referring to fig. 1 and fig. 2, a schematic structural diagram of a high-precision part deviation detecting system based on a 3D vision algorithm and a schematic layout diagram of a box rail of the high-precision part deviation detecting system based on the 3D vision algorithm provided in an embodiment of the present invention are shown, where the high-precision part deviation detecting system based on the 3D vision algorithm in the embodiment includes:
a detection box body 1 for loading detection components, the inner wall of which is provided with a temperature sensor 4;
the bearing circular table 2 is arranged at the bottom of the detection box body 1 and used for bearing the pre-detection part, a clamp 22 is arranged on the upper surface of the bearing circular table and used for clamping the pre-detection part placed on the bearing circular table, a gravity sensor 21 is further arranged in the bearing circular table and used for detecting the weight of the pre-detection part, and the bearing circular table is connected with a motor (not shown in the figure) so as to enable the bearing circular table to rotate under the driving of the motor;
the ultrasonic detector 3 is arranged on the side wall of the detection box body 1 and used for carrying out ultrasonic scanning on the part to be detected, and the ultrasonic detector is connected with the central controller and used for finishing data exchange with the central controller;
the guide rail 5 is arranged on the inner wall of the detection box body;
a camera 6 movably disposed on the guide rail 5 so that the camera 6 slides along the guide rail 5, the camera 6 having a movable structure so that it can adjust a photographing angle, the camera being movable to a designated position under the control of a central controller 9;
the searchlight 7 is movably arranged on the guide rail 5 so that the searchlight 7 slides along the guide rail 5, the searchlight 7 is used for supplementing light for a pre-detection part and has a movable structure so that the illumination angle of the supplement light can be adjusted, and the searchlight 7 can move to a specified position under the control of the central controller 9;
the illuminating lamp 8 is fixedly arranged at the top of the detection box body 1 and used for providing illumination for the detection box body;
a central controller 9 for processing information, which is arranged on the outer wall of the detection box body, is connected with the motor, the ultrasonic detector, the camera and the searchlight and completes data exchange, when the pre-detection part is placed on the bearing circular truncated cone, the central controller controls the camera to start pre-shooting the pre-detection part, judges the maximum height H and the maximum width L of the pre-detection part, and calculates an adjusting parameter K according to the following formula,
wherein: h represents the maximum height of the pre-detected part, L represents the maximum width of the pre-detected part, V0 is preset in volume, T represents actual temperature, T0 represents preset temperature, M represents actual part quality, M0 represents preset part quality, and k represents a parameter;
the central controller adjusts the running power of the motor and detection parameters during defect detection according to the adjusting parameter K, and simultaneously judges whether an ultrasonic detector is used or not according to the appearance type of the part; when the pre-shooting is completed, the central controller controls the motor to be started to drive the bearing circular truncated cone to rotate and control the camera to shoot the pre-detection part, when the bearing circular truncated cone rotates 360 degrees, the central controller completes the acquisition of the outline data of the pre-detection part and establishes the outline coordinate set f (x, y, z), and the type of the outline of the part is judged through the outline coordinate set f (x, y, z).
Specifically, the central controller needs to perform part identification pre-storage on the part before use, and the part identification pre-storage step is as follows:
the method comprises the following steps of firstly, selecting a plurality of sheet-shaped parts of different shapes, shooting the parts and obtaining a shape contour coordinate set f (x, y, z) of the parts;
secondly, the central controller performs artificial intelligence algorithm training on the outline coordinate set f (x, y, z) of the parts to generate sheet shape type part judgment data, so that the central controller recognizes that the corresponding parts are sheet shape types according to the shot images;
and step three, repeating the method of the step one and the method of the step two, performing part identification and pre-storage on the parts of the three-dimensional hollow external shape type and the three-dimensional solid external shape type, generating part judgment data of the three-dimensional hollow external shape type and part judgment data of the three-dimensional solid external shape type, and finally determining a part identification information matrix B (B1, B2 and B3), wherein B1 represents plate-shaped external shape type part judgment data, B2 represents three-dimensional hollow external shape type judgment data, and B3 represents three-dimensional solid external shape type judgment data.
Specifically, when the central controller determines the external shape of the part, the external shape profile coordinate set f (x, y, z) of the part is acquired, and the external shape profile coordinate set f (x, y, z) of the part is compared with the data in the part identification information matrix B (B1, B2, B3), wherein:
when the set f (x, y, z) of the outline coordinates of the part matches the sheet-like outline type part determination data B1, the central controller determines that the part is of the sheet-like outline type;
when the set f (x, y, z) of the outline coordinates of the part matches the three-dimensional hollow outline type part determination data B2, the central controller determines that the part is of the three-dimensional hollow outline type;
when the set of outline coordinates f (x, y, z) of the part matches the solid outline type part determination data B3, the central controller determines that the part is of the solid outline type.
Specifically, the central controller performs pixel point judgment on image information transmitted by the camera in real time, adjusts the fill-in light intensity and the fill-in light angle of the searchlight according to the judgment result, determines the number S of the pixel points of the reflective area of the part to be shot on the shot image in real time when the judgment is performed, and sets threshold value parameters S1, S2 and S3 inside the central controller,
when the number of the pixel points S of the reflecting area is smaller than a threshold value parameter S1 of the pixel points, judging that the shot image is normal;
when the number of the reflective area pixel points S is larger than or equal to the pixel point threshold parameter S1 and smaller than the pixel point threshold parameter S2, judging that the first-level reflective area appears in the shot image, and recording a three-dimensional coordinate set Y1(x, Y, z) of the reflective area;
when the number of the reflective area pixel points S is larger than or equal to the pixel point threshold parameter S2 and smaller than the pixel point threshold parameter S3, judging that a second-level reflective area appears in the shot image, and recording a three-dimensional coordinate set Y2 (x, Y, z) of the reflective area;
and when the number S of the pixels of the reflective area is larger than or equal to a pixel threshold parameter S3, judging that a third-level reflective area appears in the shot image, and recording a three-dimensional coordinate set Y3 (x, Y, z) of the reflective area.
Specifically, a light adjusting matrix D (D1, D2, D3) is arranged inside the central controller, wherein D1 represents first-level light brightness, D2 represents second-level light brightness, and D3 represents third-level light brightness, and a searchlight irradiation position adjusting matrix F (F1, F2... Fn) is further arranged inside the central controller, wherein F1 represents a first position searchlight control information matrix, and F2 represents a second position searchlight control information matrix.. Fn represents an nth position searchlight control information matrix; for the ith position searchlight control information matrix Fi (Fi 1, Fi 2), wherein Fi1 represents the ith position coordinate set Fi 1(x, y, z) which is a preset value, and Fi2 represents the ith position searchlight moving position and shooting angle data which is a preset value; the central controller judges and adjusts the brightness and the irradiation direction of the searchlight according to the pixel points in real time, and during adjustment, the three-dimensional coordinate data Yi (x, y, z) of the light reflection area is compared with data in a searchlight irradiation position adjusting matrix F (F1, F2... Fn), wherein:
if the three-dimensional coordinate data Yi (x, y, z) of the light reflecting area belongs to a first position coordinate set F11 (x, y, z), the central controller calls first position searchlight moving position and shooting angle data F12 to control the searchlight to move to a specified position and the irradiation angle of the searchlight;
if the three-dimensional coordinate data Yi (x, y, z) of the light reflecting area belongs to a second position coordinate set F21 (x, y, z), the central controller calls second position searchlight moving position and shooting angle data F22 to control the searchlight to move to a specified position and the irradiation angle of the searchlight;
...
if the three-dimensional coordinate data Yi (x, y, z) of the light reflecting area belongs to the nth position coordinate set Fn 1(x, y, z), the central controller calls the nth position searchlight moving position and shooting angle data Fn2 to control the searchlight to move to the specified position and the irradiation angle of the searchlight.
Specifically, when the central controller adjusts the brightness of the lamp light,
when the first grade of light reflecting area appears in the shot image, the central controller adjusts the light
An intensity at a first light level D1;
when the second-level reflecting area appears in the shot image, the central controller adjusts the light
Intensity is at a third light level D2;
when the third-level light reflecting area appears in the shot image, the central controller adjusts the light
The intensity is at a third light level D3.
Specifically, the central controller is internally preset with a standard part information matrix Z (Z1, Z2... Zn), wherein: z1 represents a first set of three-dimensional coordinates Z1 (x, y, Z), Z2 represents a second set of three-dimensional coordinates Z2 (x, y, Z).. Zn represents an nth set of three-dimensional coordinates of a standard, and the step of the central controller when determining the part defect based on the set of coordinates f (x, y, Z) of the contour of the pre-inspected part is as follows:
the method comprises the steps of firstly, detecting standard parts of a plurality of pre-detected parts, acquiring a three-dimensional coordinate set of the standard parts, establishing a standard part information matrix Z (Z1, Z2... Zn) and storing the standard part information matrix Z (Z1, Z2... Zn) in a central controller;
secondly, processing the image information of the part to be detected, generating an outline coordinate set f (x, y, z) of the part to be detected, and simultaneously calculating an adjusting parameter K of the part;
thirdly, comparing the difference value between the outline coordinate set f (x, y, Z) of the pre-detected part and the corresponding standard part coordinate set Zi (x, y, Z) in the standard part information matrix Z (Z1, Z2... Zn), determining the i-th area difference coordinate set Ci (x, y, Z) i =1, 2.. n, and if the volume range represented by the i-th area difference coordinate set Ci (x, y, Z) exceeds the preset defect comparison threshold position
And Y0 is a preset value, and K is the adjusting parameter K, and the part is judged to be defective.
Specifically, a camera adjustment matrix J (J1, J2... Jn) is arranged inside the central controller, wherein J1 represents a first control matrix, and J2 represents a second control matrix.. Jn represents an nth control matrix; for the ith control matrix Ji (Ji 1, Ji 2), i =1, 2.. n, where Ji1 represents the ith coordinate range set Ji 1(x, y, z), and Ji2 represents the ith control information;
when the outline coordinate set f (x, y, z) is established, the central controller judges the integrity of the outline coordinate set f (x, y, z), a contrast parameter U is arranged in the central controller, when an outline model represented by the outline coordinate set f (x, y, z) is missing and the missing range exceeds the contrast parameter U, the central controller acquires a defect coordinate set Q (x, y, z) of the missing part, and matches the defect coordinate set Q (x, y, z) with data in the camera adjusting matrix J (J1, J2... Jn),
when matching, when the defect coordinate set Q (x, y, z) belongs to a first coordinate range set J11 (x, y, z), the central controller calls first control information J12 to control the camera to move to a specified position on the guide rail;
when the defect coordinate set Q (x, y, z) belongs to a second coordinate range set J21 (x, y, z), the central controller calls second control information J22 to control the camera to move to a specified position on the guide rail;
...
when the defect coordinate set Q (x, y, z) belongs to the nth coordinate range set Jn 1(x, y, z), the central controller calls the nth control information Jn2 to control the camera to move to a specified position on the guide rail.
Specifically, a motor control matrix D (D1, D2, D3) is arranged inside the central controller, wherein D1 represents first-level motor driving power, D2 represents second-level motor driving power, and D3 represents third-level motor driving power, wherein the i-th-level motor driving power Di decreases as i increases, and contrast parameters K01, K02 are also arranged inside the central controller
When K < K01, the central controller controls the motor to drive the bearing circular table to move at a first-level motor driving power D1;
when K01 is not more than K < K02, the central controller controls the motor to drive the bearing circular table to move with the driving power D2 of the second-level motor;
when K is larger than or equal to K02, the central controller controls the motor to drive the bearing circular table to move with the driving power D3 of the third-level motor.
Specifically, when the central controller is provided for controlling the ultrasonic probe,
when the central controller judges that the pre-detected part is of the flaky shape type, the central controller does not start the ultrasonic detector;
when the central controller judges that the pre-detection part is of a three-dimensional solid shape type, the central controller does not start the ultrasonic detector;
and when the central controller judges that the pre-detected part is in a three-dimensional hollow shape type, the central controller starts the ultrasonic detector to detect the defect of the hollow part of the pre-detected part.
So far, the technical solutions of the present invention have been described in connection with the preferred embodiments shown in the drawings, but it is easily understood by those skilled in the art that the scope of the present invention is obviously not limited to these specific embodiments. Equivalent changes or substitutions of related technical features can be made by those skilled in the art without departing from the principle of the invention, and the technical scheme after the changes or substitutions can fall into the protection scope of the invention.