CN111929309A - Cast part appearance defect detection method and system based on machine vision - Google Patents

Cast part appearance defect detection method and system based on machine vision Download PDF

Info

Publication number
CN111929309A
CN111929309A CN202010957574.3A CN202010957574A CN111929309A CN 111929309 A CN111929309 A CN 111929309A CN 202010957574 A CN202010957574 A CN 202010957574A CN 111929309 A CN111929309 A CN 111929309A
Authority
CN
China
Prior art keywords
defect
defects
detection
casting
brake disc
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010957574.3A
Other languages
Chinese (zh)
Other versions
CN111929309B (en
Inventor
王凯
沈宗辉
吴强
谢文琪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu Zhuoshi Weijing Technology Co ltd
Original Assignee
Chengdu Zhuoshi Weijing Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chengdu Zhuoshi Weijing Technology Co ltd filed Critical Chengdu Zhuoshi Weijing Technology Co ltd
Priority to CN202010957574.3A priority Critical patent/CN111929309B/en
Publication of CN111929309A publication Critical patent/CN111929309A/en
Application granted granted Critical
Publication of CN111929309B publication Critical patent/CN111929309B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • G01N21/88Investigating the presence of flaws or contamination
    • G01N21/8851Scan or image signal processing specially adapted therefor, e.g. for scan signal adjustment, for detecting different kinds of defects, for compensating for structures, markings, edges
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • G01N21/88Investigating the presence of flaws or contamination
    • G01N21/8851Scan or image signal processing specially adapted therefor, e.g. for scan signal adjustment, for detecting different kinds of defects, for compensating for structures, markings, edges
    • G01N2021/8854Grading and classifying of flaws
    • G01N2021/8874Taking dimensions of defect into account
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • G01N21/88Investigating the presence of flaws or contamination
    • G01N21/8851Scan or image signal processing specially adapted therefor, e.g. for scan signal adjustment, for detecting different kinds of defects, for compensating for structures, markings, edges
    • G01N2021/8854Grading and classifying of flaws
    • G01N2021/8877Proximity analysis, local statistics
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • G01N21/88Investigating the presence of flaws or contamination
    • G01N21/8851Scan or image signal processing specially adapted therefor, e.g. for scan signal adjustment, for detecting different kinds of defects, for compensating for structures, markings, edges
    • G01N2021/8854Grading and classifying of flaws
    • G01N2021/888Marking defects
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • G01N21/88Investigating the presence of flaws or contamination
    • G01N21/8851Scan or image signal processing specially adapted therefor, e.g. for scan signal adjustment, for detecting different kinds of defects, for compensating for structures, markings, edges
    • G01N2021/8883Scan or image signal processing specially adapted therefor, e.g. for scan signal adjustment, for detecting different kinds of defects, for compensating for structures, markings, edges involving the calculation of gauges, generating models
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N2201/00Features of devices classified in G01N21/00
    • G01N2201/12Circuits of general importance; Signal processing
    • G01N2201/129Using chemometrical methods
    • G01N2201/1296Using chemometrical methods using neural networks

Abstract

The invention discloses a method and a system for detecting appearance defects of a casting part based on machine vision, wherein the system comprises a detection host, a vision system and an execution mechanism; the vision system is used for taking a phase of a data sample in the early stage and is used for training and optimizing an algorithm model; the later stage is used for carrying out comprehensive phase taking on the casting part to be detected and sending the obtained structured data information to the detection host; and detecting the host computer storage algorithm model, realizing image identification and defect detection, and judging whether the casting part with the defects belongs to a repairable part or a scrapped part according to different types of the defects, sizes of the defects and distribution positions of the defects. The invention can distinguish the defect types while detecting the appearance defects of the brake disc, can detect the sizes and the defect positions of the defects, and can automatically judge whether the defects of the defective detection piece can be repaired or not, thereby realizing automatic on-line detection, having stable and reliable detection process and being not influenced by human subjective factors and environmental factors.

Description

Cast part appearance defect detection method and system based on machine vision
Technical Field
The invention relates to the technical field of image recognition, in particular to a method and a system for detecting appearance defects of a casting part based on machine vision.
Background
The automobile brake disc serving as a core safety part in automobile parts has a crucial influence on the safe use of the automobile. The automobile brake disc mainly comprises a solid disc and a hollow disc, and the current automobile brake disc is mainly produced and manufactured in a casting mode. Due to the technical characteristics of the casting industry, the appearance of a cast product usually has the defects of sand sticking, air marks, sand inclusion, cold shut, holes, cracks and the like. Therefore, the product quality of all brake discs must be checked before the cast brake disc blanks are finished and assembled.
The mode that relies on artifical naked eye to observe to the detection of brake disc appearance quality of present many brake disc manufacturing enterprises mainly differentiates, is subject to artifical detection mode: the defects of low product detection efficiency, poor product outflow phenomenon and difficult product quality guarantee are caused by insufficient objectivity, great dependence on the experience and responsibility of inspectors, large workload and other characteristics. Although a few enterprises adopt a certain automatic means to detect the appearance quality of the brake disc, the quality is judged by comparing the scanned brake disc with a standard sample, the detection mode mainly has the problems of long time consumption, low efficiency, single evaluation standard and the like, the defect pattern can not be detected or misjudgment can be caused by slight change, and the traditional image comparison mode is not suitable for detecting the appearance quality of a cast blank product.
Meanwhile, the size data of the brake disc casting is also one of the important focused indexes of brake disc quality control, subsequent processing and the like, particularly the data indexes of the diameter (radius), the height, the thickness of each plate surface and the like of the brake disc, and accurate measurement data can be obtained only by adopting an off-line mode and a three-coordinate measurement mode, although the measurement precision meets the requirement, the speed and the effectiveness can not meet the field production requirement, and meanwhile, the operation requirement on workers is very high. Therefore, the actual production field can only adopt a random spot inspection mode for measurement, and the outflow phenomenon of products with unqualified sizes cannot be avoided.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provide a method and a system for detecting the appearance defects of a cast part based on machine vision.
The purpose of the invention is realized by the following technical scheme:
a cast member appearance defect detection method based on machine vision comprises the following steps:
s1: selecting a plurality of casting parts as data samples of an appearance defect detection system, wherein the data samples comprise defect-free casting parts and defective casting parts which are respectively used as positive and negative samples, the defect types in the defective casting parts are required to cover all defect types needing to be detected, and the data samples meet the principle of data balance;
s2: respectively placing the selected castings under a vision system for phase extraction, wherein each casting is collected under the vision system to obtain a group of casting sample data containing a plurality of pieces of camera data information, and the sample data contains three-dimensional information, contour dimension information and color information;
s3: marking the collected sample data information of the casting, marking the casting without defects, and simultaneously marking the casting with defects according to different defect types;
s4: carrying out statistical learning analysis on the marked sample data of the casting part to obtain statistical learning analysis results about various types of defects; wherein, the characterization form of part defect type is form deviation, and the characterization form of the other defect types is form and color deviation;
s5: combining the statistical learning analysis result of the sample data, dividing the sample data with defects into two parts according to the defect characterization as morphological deviation or morphological and color deviation, and respectively using the two parts as first defect sample data and second defect sample data; inputting first defect sample data and normal sample data into a first algorithm model, inputting second defect sample data and normal sample data into a second algorithm model, and enabling different algorithm models to undertake different types of defect detection tasks;
s6: according to the result of the model training, supplementing the training sample again, and carrying out optimization training on the model until the performance index meets the requirement;
s7: placing the casting to be detected under the vision system for phase taking to obtain structured data information, and inputting the obtained structured data information into a first algorithm model and a second algorithm model after optimization training in parallel for carrying out different types of defect detection; the algorithm model design adopts a semi-supervised learning mode, has autonomous learning capability, and can further improve the detection precision of the system along with the continuous use of the system;
s8: the appearance defect detection system judges whether the casting part with the defects belongs to a repairable part or a scrapped part according to different types of the defects, sizes of the defects and distribution positions of the defects through preset conditions, and sends an analysis result to an execution mechanism to execute corresponding sorting action.
The method further comprises a step of calculating the size of the casting, and the actual product size of the casting is calculated according to the information of the contour size of the casting to be measured. So that the system can output the dimensional data information of the casting to be measured.
The defect types comprise sand holes, air holes, meat deficiency, fleshiness, surface sand adhesion, cracks, unclear marks, wrong boxes, box expansion, large air scars, small air scars, shallow air scars, cold partitions and tiny holes; wherein the defect characterization forms of the sand holes, the air holes, the meat deficiency, the meat excess, the surface sand sticking, the cracks, the unclear marks, the wrong boxes, the box expansion and the atmospheric scar are morphological deviation; the defect characterization forms of the small air scars, the shallow air scars, the cold barriers and the tiny holes are form and color deviation;
form deviation: deviations in profile, size and height occur;
morphology and color deviation: in addition to the morphological deviation, a difference from the normal area is shown in the color information.
In step S5, extracting characteristic scale information of each defect type for setting threshold parameters in the model, and inputting data into the algorithm model for training; the characteristic scale information comprises high and low scales, texture features, edge features, gray scale and RGB scale.
A machine vision-based casting part appearance defect detection system comprises a detection host, a vision system, an execution mechanism, a repair product hopper and a waste product hopper;
the detection host comprises a processor and a memory, wherein the memory is used for storing a computer program which can run on the processor and storing the first algorithm model and the second algorithm model after optimization training; the processor executes the computer program to realize the method;
the vision system is used for taking a phase of a data sample at the early stage and is used for training and optimizing an algorithm model; the later stage is used for carrying out comprehensive phase taking on the casting part to be detected and sending the obtained structured data information to the detection host;
the detection host machine judges whether the casting part with the defects belongs to a repairable part or a scrapped part according to the different types of the defects, the sizes of the defects and the distribution positions of the defects, sends an analysis result to the executing mechanism to execute sorting action, puts the repairable part into a repair product hopper, and puts the scrapped part into a waste product hopper.
The casting part is a cast brake disc.
The visual system comprises a first visual system and a second visual system, wherein the first visual system comprises a rotatable detection table for placing a brake disc to be detected and a first camera assembly for completing phase taking of a W surface, an X surface and a side surface of the brake disc to be detected in the rotation process of the brake disc to be detected;
the second vision system comprises a multi-axis manipulator used for taking down the brake disc to be detected from the detection platform and completing rotation, and a second camera assembly used for completing phase taking of the U surface, the V surface and the Y surface of the brake disc to be detected in the rotation process of the brake disc to be detected.
The first camera assembly and the second camera assembly are formed by distributing laser cameras and linear array cameras in an L-shaped array; or the first camera assembly and the second camera assembly are formed by distributing the laser cameras and the industrial cameras in an L-shaped array.
The first camera assembly and the second camera assembly are both binocular structured light cameras.
The system also comprises a feeding roller way, a detection channel, a through channel and a gantry manipulator, wherein the detection channel and the through channel are arranged between the feeding roller way and an original roller way side by side, the first vision system and the second vision system are sequentially arranged in the detection channel, and the through roller way is arranged in the through channel; the gantry manipulator is arranged above the detection table and used for transferring a brake disc to be detected on the feeding roller way to the detection table.
The invention has the beneficial effects that:
1. the invention provides a brand-new method for detecting the appearance and measuring the size of a casting part of a brake disc, which integrates detection and measurement and improves the dimension of ensuring the product quality. The linear camera (linear array camera) or the combination of the high-precision industrial camera and the laser camera is adopted to scan and take the phase of the brake disc, the laser camera is sensitive to three-dimensional space information and high-low scale information, the linear camera is sensitive to chromatic aberration information, and the high-precision detection of various common appearance defects of the casting parts can be realized at low cost by combined use.
2. The detection software algorithm is based on a data processing and statistical analysis technology, a neural network technology, a machine learning and deep learning technology, an artificial intelligence technology and the like, is applied to appearance detection and size measurement of the brake disc, and has certain universality on casting products.
3. When the appearance defects of the brake disc are detected, the defect types can be distinguished, and the subsequent process flow treatment is facilitated. The size and the defect position of the defect can be detected, whether the defect of the defective detection piece can be repaired or not can be automatically judged, automatic online detection is realized, the detection process is stable and reliable, the influence of artificial subjective factors and environmental factors is avoided, the efficiency is high, the detection precision is high, the quality control standard is uniform, and the requirement of actual production can be fully met.
4. The system classifies and positions the defect types, visually and visually presents the defect types, so that the defective parts can be repaired conveniently in the follow-up process of a factory, and the production efficiency is further improved.
Drawings
FIG. 1 is a flow chart of the method of the present invention;
FIG. 2 is a block diagram of a brake disc detection system according to the present invention;
FIG. 3 is a schematic structural diagram of a brake disc detection system according to the present invention;
FIG. 4 is a schematic diagram of three common brake disc configurations;
FIG. 5 is a schematic view of a first camera assembly according to the present invention;
FIG. 6 is a schematic diagram of a second camera module according to the present invention;
in the figure, 1-detection table, 2-first camera component, 3-multi-axis manipulator, 4-second camera component, 5-laser camera, 6-linear array camera, 7-repair product hopper, 8-waste product hopper, 9-feeding roller way, 10-straight-through roller way, 11-gantry manipulator and 12-original roller way.
Detailed Description
The technical solutions of the present invention will be described clearly and completely with reference to the following embodiments, and it should be understood that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without inventive effort based on the embodiments of the present invention, are within the scope of the present invention.
The detection software algorithm is based on a data processing and statistical analysis technology, a neural network technology, a machine learning and deep learning technology, an artificial intelligence technology and the like, is applied to appearance detection and size measurement of the brake disc, and has certain universality on casting products.
As shown in FIG. 1, the method for detecting the appearance defects of the cast parts based on machine vision comprises the following steps:
s1: selecting a certain number (more than or equal to 20000) of castings as data samples of an appearance defect detection system, wherein the castings contain defect-free castings and defective castings, the castings are respectively used as positive and negative samples, the defect types in the defective castings are required to cover all defect types to be detected (specifically, the defects of sand holes, air holes, meat deficiency, fleshiness, surface sand sticking, cracks, unclear marks, staggered boxes, box expansion, large air scars, small air scars, shallow air scars, cold shut, tiny holes and the like are covered), and the data samples meet the principle of data balance; wherein a cast part may contain a variety of defects;
s2: respectively placing the selected casting parts under a first visual system and a second visual system to carry out phase extraction of each surface (the meaning of the phase extraction in the application is that image information is extracted), wherein each casting part acquires a group of casting part sample data containing a plurality of pieces of camera data information under the visual system, and the sample data contains three-dimensional information, contour dimension information and color information;
because the first visual system and the second visual system are both camera arrays consisting of a plurality of cameras (a line laser scanning camera, a line camera and a high-precision industrial camera) according to a certain angle and arrangement mode, a group of casting sample data containing a plurality of camera data information can be obtained for each casting under the respective action of the first visual system and the second visual system, and structured association is carried out;
s3: marking the collected sample data information of the casting parts, marking the casting parts without defects as OK, and simultaneously marking the casting parts with defects according to different defect types;
s4: carrying out statistical learning analysis on the marked sample data of the casting part to obtain statistical learning analysis results about various types of defects; wherein, the characterization forms of part of defect types are morphological deviation (mainly the deviation appears in the outline, the size, the height and the like, such as sand holes, air holes, meat deficiency, meat excess, surface sand sticking, cracks, unclear marks, wrong boxes, expanded boxes, atmospheric air marks and the like), and the characterization forms of the other defect types are morphological and color deviation (except the morphological characteristic deviation, the color information shows the difference from the normal area, such as small air marks, shallow air marks, cold shut, tiny holes and the like). Normal areas refer to areas of normal color, i.e. the corresponding areas of the casting marked OK that are defect free.
The superficial air scar refers to an air scar which is flat in surface and located in the surface layer, the superficial air scar cannot be recognized only by a laser camera, but the superficial air scar can cause weak light and shade color difference on the surface, and the superficial air scar can be recognized by a linear camera.
For the fleshiness and the burr at the R angle, the fleshiness and the burr cannot be effectively identified through a laser camera, and the R angle influences the laser reflection direction and cannot effectively receive a laser signal; although the linear camera is not sensitive to 3D height difference information, the whole light intensity of the brake disc can be collected, and slight changes of local colors can be identified, so that the defects of fleshiness, burrs and the like at the R corner can be detected.
For small air scars, the detection precision of a laser camera can be exceeded, so that the laser camera cannot effectively recognize the small air scars, but small color differences can be generated by the small air scars, and recognition can be achieved through a linear camera.
For most defects, the combination of a laser camera and a linear camera can enable more accurate defect detection.
Description on statistical learning analysis: the statistical learning analysis means analyzing the sample data by using statistical and machine learning methods (e.g., linear regression, SVM, cluster analysis, etc.) to obtain a statistical learning analysis result about the data. The objects of statistical learning analysis in this patent are: and characteristic indexes such as size, texture, outline, edge, color and the like of various types of defects in the sample data.
S5: combining the statistical learning analysis result of the sample data, dividing the sample data with defects into two parts according to the defect characterization as morphological deviation or morphological and color deviation, and respectively using the two parts as first defect sample data and second defect sample data; inputting first defect sample data and normal sample data into a first algorithm model, inputting second defect sample data and normal sample data into a second algorithm model, wherein different algorithm models undertake different types of defect detection tasks, and the first algorithm model is mainly responsible for: the second algorithm model is mainly responsible for the detection and positioning of the defects of sand holes/air holes, meat deficiency/meat excess, sand sticking on the surface, unclear identification, wrong boxes/box expansion and the like: and detecting and positioning defects such as cold shut, small air-scars, micro holes and the like.
In step S5, extracting characteristic scale information of each defect type for setting threshold parameters in the model, and inputting data into the algorithm model for training; the characteristic scale information comprises high and low scales, texture features, edge features, gray scale and RGB scale.
The 'setting of the threshold parameter in the model' refers to setting of an initial weight value of a network layer in the deep neural network model, and the setting of the threshold parameter is guided according to the characteristic indexes of the sample data obtained through the statistical learning analysis, so that the algorithm model can be converged more quickly and has better performance.
The threshold parameter also refers to target parameter setting of model training, for example, a target threshold is set for precision rate, recall rate and the like in the training process of the algorithm model, the model training is not finished until the algorithm model training meets the threshold set by the index, otherwise, the model training is continued by supplementing sample data, adjusting the weight of the deep neural network layer and the like.
S6: supplementing the training sample again according to the training result of the model, and carrying out optimization training on the model until performance indexes in all aspects meet requirements, specifically, the performance indexes such as accuracy (precision), recall rate, missed detection rate and running rate of the algorithm model meet the requirements;
for all data samples, one part of the data samples is used as a training set and input to the appearance defect detection algorithm model for model training, the other part of the data is used for testing the performance index of the trained model for model optimization, and the data and the model are repeatedly adjusted until the performance index meets the application requirement, namely the design requirement of the system for use.
The algorithm model is a multi-layer neural network structure, in the model training process, classification labeling of data is mainly carried out, statistical learning analysis is carried out on the labeled data, scale information of each defect type is extracted and used for setting threshold parameters in the model, and then the data are input into the model for training. The network model used in the application is a model based on the VGG19 network and the ResNet network structure modification, and is similar to all deep learning models, wherein the model comprises a pooling layer, a convolutional layer and a full-link layer.
S7: placing the casting to be detected under the vision system for phase taking to obtain structured data information, and inputting the obtained structured data information into a first algorithm model and a second algorithm model after optimization training in parallel for carrying out different types of defect detection; the algorithm model design adopts a semi-supervised learning mode, has autonomous learning capability, does not need repeated training in subsequent use of the optimally trained algorithm model, and further improves the detection precision of the system along with the continuous use of the system;
s8: transplanting the trained appearance defect detection algorithm model into a detection host, positioning the position of the defect by the detection host according to different types of the defect, the size of the defect and the distribution position of the defect for visual display, judging whether the casting part with the defect belongs to a repairable part or a scrapped part according to preset conditions, and sending an analysis result to an execution mechanism to execute corresponding sorting action.
The system can calculate the actual product size of the casting according to the contour dimension information of the casting to be measured and visually display the actual product size. The system can accurately output the dimension measurement information of the product, and the dimension measurement information serves as one of quality assurance indexes and also provides data indexes for the subsequent machining of the cast part in a factory.
The system can be orderly operated on a production site by matching with other peripheral software (execution mechanism control software) and hardware (a detection table, a mechanical arm and the like), and real-time online detection is carried out on the cast blank in the production process.
The system has fine classified storage of the whole process data of detection and measurement, has the function of outputting statistical analysis reports, and simultaneously provides various interfaces to be compatible with various management systems of a factory.
As shown in fig. 2 and 3, the machine vision-based casting part appearance defect detection system comprises a detection host, a vision system, an actuating mechanism, a repair product hopper 7 and a waste product hopper 8;
the detection host comprises a processor and a memory, wherein the memory is used for storing a computer program which can run on the processor and storing the first algorithm model and the second algorithm model after optimization training; the processor executes the computer program to realize the method of the previous step S7 and step S8;
the vision system is used for taking a phase of a data sample at the early stage and is used for training and optimizing an algorithm model; the later stage is used for carrying out comprehensive phase taking on the casting part to be detected and sending the obtained structured data information to the detection host;
the detection host machine judges whether the casting part with the defects belongs to a repairable part or a scrapped part according to the different types of the defects, the sizes of the defects and the distribution positions of the defects, sends an analysis result to the executing mechanism to execute sorting action, puts the repairable part into a reworked product hopper 7, and puts the scrapped part into a waste product hopper 8.
The preset conditions for judging whether the brake disc with the defects belongs to repairable parts or scrapped parts are as follows:
one is that the type of defect affects whether the product is rejected, such as cracks and blisters. Secondly, if the defect distribution position and the defect distribution size are larger than 2mm or the defect distribution position and the defect distribution size are larger than 2mm, the defect must be scrapped at the joint of the roof fall and the plate surface; the sticky sand and the fleshiness are also discarded if the size is larger than 2 x 2mm or the sticky sand and the fleshiness are distributed at the joint of the roof fall and the plate surface. Therefore, the invention uses the laser camera, can calculate the size of the defect besides the size of the brake disc through scanning, and positions the distribution position of the defect on the brake disc through an algorithm, and finally the system comprehensively evaluates whether the brake disc is scrapped.
The following specific examples illustrate the technical solution of the present application in combination with appearance detection and size measurement of a brake disc:
a common brake disc structure is shown in fig. 4, in this embodiment, the vision system includes a first vision system and a second vision system, the first vision system includes a rotatable detection table 1 for placing a brake disc to be detected, and a first camera assembly 2 for completing phase taking of a W surface, an X surface and a side surface of the brake disc to be detected in a rotation process of the brake disc to be detected;
the second vision system comprises a multi-axis manipulator 3 used for taking down the brake disc to be detected from the detection table 1 and completing rotation, and a second camera assembly 4 used for completing phase taking of the U surface, the V surface and the Y surface of the brake disc to be detected in the rotation process of the brake disc to be detected.
The detection system further comprises a feeding roller way 9, a detection channel, a through channel and a gantry manipulator 11, wherein the detection channel and the through channel are arranged between the feeding roller way 9 and an original roller way 12 side by side, the first visual system (arranged at the detection station 1) and the second visual system (arranged at the detection station 2) are sequentially arranged in the detection channel, and the through channel is internally provided with the through roller way 10; the gantry manipulator 11 is arranged above the detection table 1 and used for transferring a brake disc to be detected on the feeding roller way 9 to the detection table 1.
The detection channel and the through channel can be switched, when the detection system needs to be overhauled and maintained, the detection system can be switched to the through channel to transport workpieces, and normal production is not affected.
Appearance detection and dimension measurement process of the brake disc: arrange the brake disc that awaits measuring in first vision system through portal manipulator 11 under, when driving the brake disc rotation through examining test table 1, first camera subassembly 2 gets the looks to the brake disc, and data transfer that first camera subassembly 2 will gather detects the host computer, and the system is accomplished the detection and the classification to brake disc W face, X face and brake disc side this moment, calculates the external dimension information such as diameter (radius), each face thickness that measures and obtain the brake disc simultaneously.
Then, the brake disc is lifted (or overturned) by the multi-axis manipulator 3 and is rotated, the rotation phase taking is carried out under the action of the second camera assembly 4, the acquired data are transmitted to the detection host, the detection and classification of the U surface, the V surface, the Y surface and the like of the brake disc are completed by the system at the moment, and the size information such as the inner diameter of the brake disc is obtained by calculation and measurement.
And finally, comprehensively analyzing the obtained detection information and measurement information, transmitting an analysis result to a corresponding motion control unit, sorting the brake discs by the motion control unit through the motion of the multi-axis manipulator 3, if the brake discs are not defective, placing the brake discs on an original roller table 12 to be transmitted to the next process, if the brake discs are defective and the defect types belong to types which cannot be repaired, placing the brake discs in a waste product hopper 8 by the multi-axis manipulator 3, and if the defect types of the brake discs belong to types which can be repaired, placing the multi-axis manipulator 3 in a repair product hopper 7.
As shown in fig. 5 and 6, the first camera assembly 2 and the second camera assembly 4 are both formed by distributing the laser cameras 5 and the line cameras 6 in an L-shaped array, and the L-shaped distribution is used for clearly and completely shooting each surface of the brake disc and the connection position of each surface. The line camera 6 may also be implemented by a high-precision industrial camera instead.
If necessary, the first camera assembly 2 and the second camera assembly 4 may be used with a light source system for the purpose of improving the definition of taking the phase.
In addition, the first camera component 2 and the second camera component 4 may also adopt a high-precision binocular structured light camera, but the cost is relatively high, and the scanning imaging rate cannot meet the requirement of field production, because the binocular structured light is formed by arranging and converting structured light (such as stripe light) and then imaging by splicing, the process of scanning, photographing and imaging is time-consuming.
The foregoing is illustrative of the preferred embodiments of this invention, and it is to be understood that the invention is not limited to the precise form disclosed herein and that various other combinations, modifications, and environments may be resorted to, falling within the scope of the concept as disclosed herein, either as described above or as apparent to those skilled in the relevant art. And that modifications and variations may be effected by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A cast member appearance defect detection method based on machine vision is characterized by comprising the following steps:
s1: selecting a plurality of casting parts as data samples of an appearance defect detection system, wherein the data samples comprise defect-free casting parts and defective casting parts which are respectively used as positive and negative samples, the defect types in the defective casting parts are required to cover all defect types needing to be detected, and the data samples meet the principle of data balance;
s2: respectively placing the selected castings under a vision system for phase extraction, wherein each casting is collected under the vision system to obtain a group of casting sample data containing a plurality of pieces of camera data information, and the sample data contains three-dimensional information, contour dimension information and color information;
s3: marking the collected sample data information of the casting, marking the casting without defects, and simultaneously marking the casting with defects according to different defect types;
s4: carrying out statistical learning analysis on the marked sample data of the casting part to obtain statistical learning analysis results about various types of defects; wherein, the characterization form of part defect type is form deviation, and the characterization form of the other defect types is form and color deviation;
s5: combining the statistical learning analysis result of the sample data, dividing the sample data with defects into two parts according to the defect characterization as morphological deviation or morphological and color deviation, and respectively using the two parts as first defect sample data and second defect sample data; inputting first defect sample data and normal sample data into a first algorithm model, inputting second defect sample data and normal sample data into a second algorithm model, and enabling different algorithm models to undertake different types of defect detection tasks;
s6: according to the result of the model training, supplementing the training sample again, and carrying out optimization training on the model until the performance index meets the requirement;
s7: placing the casting to be detected under the vision system for phase taking to obtain structured data information, and inputting the obtained structured data information into a first algorithm model and a second algorithm model after optimization training in parallel for carrying out different types of defect detection;
s8: the appearance defect detection system judges whether the casting part with the defects belongs to a repairable part or a scrapped part according to different types of the defects, sizes of the defects and distribution positions of the defects through preset conditions, and sends an analysis result to an execution mechanism to execute corresponding sorting action.
2. The method of claim 1, wherein: the method also comprises a step of calculating the size of the casting, and the actual product size of the casting is calculated according to the information of the contour size of the casting to be measured.
3. The method of claim 1, wherein: the defect types comprise sand holes, air holes, meat deficiency, fleshiness, surface sand adhesion, cracks, unclear marks, wrong boxes, box expansion, large air scars, small air scars, shallow air scars, cold partitions and tiny holes; wherein the defect characterization forms of the sand holes, the air holes, the meat deficiency, the meat excess, the surface sand sticking, the cracks, the unclear marks, the wrong boxes, the box expansion and the atmospheric scar are morphological deviation; the defect characterization forms of the small air scars, the shallow air scars, the cold barriers and the tiny holes are form and color deviation;
form deviation: deviations in profile, size and height occur;
morphology and color deviation: in addition to the morphological deviation, a difference from the normal area is shown in the color information.
4. The method of claim 1, wherein: in step S5, extracting characteristic scale information of each defect type for setting threshold parameters in the model, and inputting data into the algorithm model for training; the characteristic scale information comprises high and low scales, texture features, edge features, gray scale and RGB scale.
5. A machine vision-based casting part appearance defect detection system is characterized by comprising a detection host, a vision system, an execution mechanism, a reworked product hopper (7) and a waste product hopper (8);
the detection host comprises a processor and a memory, wherein the memory is used for storing a computer program which can run on the processor and storing the first algorithm model and the second algorithm model after optimization training according to claim 1; the processor executing the computer program implementing the method of any one of claims 1-4;
the vision system is used for taking a phase of a data sample at the early stage and is used for training and optimizing an algorithm model; the later stage is used for carrying out comprehensive phase taking on the casting part to be detected and sending the obtained structured data information to the detection host;
the detection host machine judges whether the casting part with the defects belongs to a repairable part or a scrapped part according to the different types of the defects, the sizes of the defects and the distribution positions of the defects, sends an analysis result to the execution mechanism to execute sorting action, puts the repairable part into a reworked product hopper (7), and puts the scrapped part into a scrapped product hopper (8).
6. The system of claim 5, wherein: the casting part is a cast brake disc.
7. The system of claim 6, wherein: the visual system comprises a first visual system and a second visual system, wherein the first visual system comprises a rotatable detection table (1) for placing a brake disc to be detected and a first camera assembly (2) for completing phase taking of a W surface, an X surface and a side surface of the brake disc to be detected in the rotating process of the brake disc to be detected;
the second vision system comprises a multi-axis manipulator (3) used for taking down the brake disc to be detected from the detection table (1) and completing rotation, and a second camera assembly (4) used for completing phase taking of the U surface, the V surface and the Y surface of the brake disc to be detected in the rotation process of the brake disc to be detected.
8. The system of claim 7, wherein: the first camera assembly (2) and the second camera assembly (4) are formed by distributing laser cameras (5) and linear array cameras (6) in an L-shaped array; or the first camera assembly (2) and the second camera assembly (4) are formed by distributing laser cameras (5) and industrial cameras in an L-shaped array.
9. The system of claim 7, wherein: the first camera assembly (2) and the second camera assembly (4) are both binocular structured light cameras.
10. The system of claim 7, wherein: the device is characterized by further comprising a feeding roller way (9), a detection channel, a through channel and a gantry manipulator (11), wherein the detection channel and the through channel are arranged between the feeding roller way (9) and an original roller way (12) side by side, the first vision system and the second vision system are sequentially arranged in the detection channel, and the through roller way (10) is arranged in the through channel; the gantry manipulator (11) is arranged above the detection table (1) and used for transferring a brake disc to be detected on the feeding roller way (9) to the detection table (1).
CN202010957574.3A 2020-09-14 2020-09-14 Cast part appearance defect detection method and system based on machine vision Active CN111929309B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010957574.3A CN111929309B (en) 2020-09-14 2020-09-14 Cast part appearance defect detection method and system based on machine vision

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010957574.3A CN111929309B (en) 2020-09-14 2020-09-14 Cast part appearance defect detection method and system based on machine vision

Publications (2)

Publication Number Publication Date
CN111929309A true CN111929309A (en) 2020-11-13
CN111929309B CN111929309B (en) 2021-01-08

Family

ID=73309350

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010957574.3A Active CN111929309B (en) 2020-09-14 2020-09-14 Cast part appearance defect detection method and system based on machine vision

Country Status (1)

Country Link
CN (1) CN111929309B (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112365491A (en) * 2020-11-27 2021-02-12 上海市计算技术研究所 Method for detecting welding seam of container, electronic equipment and storage medium
CN113211231A (en) * 2021-05-13 2021-08-06 苏州迪宏人工智能科技有限公司 Grinding production method and system capable of automatically identifying cast iron blank and control system thereof
CN113256624A (en) * 2021-06-29 2021-08-13 中移(上海)信息通信科技有限公司 Continuous casting round billet defect detection method and device, electronic equipment and readable storage medium
CN113298327A (en) * 2021-07-28 2021-08-24 深圳先进储能材料国家工程研究中心有限公司 Method for optimizing foam metal preparation process and preparation method of foam metal
CN113310518A (en) * 2021-05-27 2021-08-27 北京交通大学 Air spring surface quality visual inspection system
US20210302323A1 (en) * 2020-03-30 2021-09-30 Sintokogio, Ltd. Display control device and storage medium
CN113916892A (en) * 2021-09-28 2022-01-11 南京理工大学 Multi-view vision-based brake disc gluing defect detection device and method
CN114677334A (en) * 2022-03-04 2022-06-28 山东钢铁股份有限公司 Method, system and device for controlling surface quality of special-shaped blank
CN115930833A (en) * 2023-03-13 2023-04-07 山东微晶自动化有限公司 Quality detection and shape correction method for large cavity casting part
US11802842B2 (en) 2020-03-30 2023-10-31 Sintokogio, Ltd. Display control device and storage medium
US11810286B2 (en) 2020-03-30 2023-11-07 Sintokogio, Ltd. Display control device and storage medium
CN117092116A (en) * 2023-10-20 2023-11-21 上海嘉朗实业南通智能科技有限公司 Automobile aluminum alloy casting defect detection system and method based on machine vision
US11893723B2 (en) 2020-03-30 2024-02-06 Sintokogio, Ltd. Inspection result display device and storage medium

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1710566A2 (en) * 2005-04-08 2006-10-11 Omron Corporation Defect inspection method and defect inspection system using the method
EP1832868A1 (en) * 2006-03-10 2007-09-12 Omron Corporation Device for and method of inspecting surface condition
CN102339463A (en) * 2010-07-22 2012-02-01 首都师范大学 System and method for calibrating linear array camera based on laser scanner
US20150146964A1 (en) * 2013-11-27 2015-05-28 Industrial Technology Research Institute Inspection apparatus, method, and computer program product for machine vision inspection
CN106383126A (en) * 2016-10-24 2017-02-08 张家港清研再制造产业研究院有限公司 Device and method for detecting remanufactured automobile part
CN206625507U (en) * 2017-04-10 2017-11-10 上海品宅装饰科技有限公司 The assembled skirting of LED light bar can be filled
CN107389701A (en) * 2017-08-22 2017-11-24 西北工业大学 A kind of PCB visual defects automatic checkout system and method based on image
JP6484695B1 (en) * 2017-12-27 2019-03-13 株式会社新来島どっく Ship block joint welding defect marking method
CN110163858A (en) * 2019-05-27 2019-08-23 成都数之联科技有限公司 A kind of aluminium shape surface defects detection and classification method and system
US20200005070A1 (en) * 2018-06-29 2020-01-02 Utechzone Co., Ltd. Optical inspection method, optical inspection device and optical inspection system
CN110827235A (en) * 2019-09-24 2020-02-21 苏州苏相机器人智能装备有限公司 Steel plate surface defect detection method
CN110874839A (en) * 2019-11-19 2020-03-10 上海华力微电子有限公司 Wafer graph extraction method and extraction system thereof
US10591420B1 (en) * 2019-04-30 2020-03-17 Spirit Aerosystems, Inc. In-line laser profilometry inspection system
CN111007073A (en) * 2019-12-23 2020-04-14 华中科技大学 Method and system for online detection of part defects in additive manufacturing process
CN111426282A (en) * 2018-12-21 2020-07-17 核动力运行研究所 Method for identifying sealing surface error evaluation defects of optical measurement point cloud
CN211359702U (en) * 2020-07-17 2020-08-28 成都卓识维景科技有限公司 Brake disc wind channel defect automatic checkout device based on machine vision

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1710566A2 (en) * 2005-04-08 2006-10-11 Omron Corporation Defect inspection method and defect inspection system using the method
EP1832868A1 (en) * 2006-03-10 2007-09-12 Omron Corporation Device for and method of inspecting surface condition
CN102339463A (en) * 2010-07-22 2012-02-01 首都师范大学 System and method for calibrating linear array camera based on laser scanner
US20150146964A1 (en) * 2013-11-27 2015-05-28 Industrial Technology Research Institute Inspection apparatus, method, and computer program product for machine vision inspection
CN106383126A (en) * 2016-10-24 2017-02-08 张家港清研再制造产业研究院有限公司 Device and method for detecting remanufactured automobile part
CN206625507U (en) * 2017-04-10 2017-11-10 上海品宅装饰科技有限公司 The assembled skirting of LED light bar can be filled
CN107389701A (en) * 2017-08-22 2017-11-24 西北工业大学 A kind of PCB visual defects automatic checkout system and method based on image
JP6484695B1 (en) * 2017-12-27 2019-03-13 株式会社新来島どっく Ship block joint welding defect marking method
US20200005070A1 (en) * 2018-06-29 2020-01-02 Utechzone Co., Ltd. Optical inspection method, optical inspection device and optical inspection system
CN111426282A (en) * 2018-12-21 2020-07-17 核动力运行研究所 Method for identifying sealing surface error evaluation defects of optical measurement point cloud
US10591420B1 (en) * 2019-04-30 2020-03-17 Spirit Aerosystems, Inc. In-line laser profilometry inspection system
CN110163858A (en) * 2019-05-27 2019-08-23 成都数之联科技有限公司 A kind of aluminium shape surface defects detection and classification method and system
CN110827235A (en) * 2019-09-24 2020-02-21 苏州苏相机器人智能装备有限公司 Steel plate surface defect detection method
CN110874839A (en) * 2019-11-19 2020-03-10 上海华力微电子有限公司 Wafer graph extraction method and extraction system thereof
CN111007073A (en) * 2019-12-23 2020-04-14 华中科技大学 Method and system for online detection of part defects in additive manufacturing process
CN211359702U (en) * 2020-07-17 2020-08-28 成都卓识维景科技有限公司 Brake disc wind channel defect automatic checkout device based on machine vision

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
JIABIN ZHANG ET AL: "CADN: A weakly supervised learning-based category-aware object detection network for surface defect detection", 《PATTERN RECOGNITION》 *
RYOSUKE NAKAJIMA ET AL: "A Study on the Effect of Defect Shape on Defect Detection in Visual Inspection", 《PROCEDIA MANUFACTURING》 *
刘瑞媛 等: "基于机器视觉的汽车精密零件缺陷检测", 《软件》 *
张慧 等: "深度学习在目标视觉检测中的应用进展与展望", 《自动化学报》 *

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11796482B2 (en) * 2020-03-30 2023-10-24 Sintokogio, Ltd. Display control device and storage medium
US11893723B2 (en) 2020-03-30 2024-02-06 Sintokogio, Ltd. Inspection result display device and storage medium
US20210302323A1 (en) * 2020-03-30 2021-09-30 Sintokogio, Ltd. Display control device and storage medium
US11810286B2 (en) 2020-03-30 2023-11-07 Sintokogio, Ltd. Display control device and storage medium
US11802842B2 (en) 2020-03-30 2023-10-31 Sintokogio, Ltd. Display control device and storage medium
CN112365491A (en) * 2020-11-27 2021-02-12 上海市计算技术研究所 Method for detecting welding seam of container, electronic equipment and storage medium
CN113211231A (en) * 2021-05-13 2021-08-06 苏州迪宏人工智能科技有限公司 Grinding production method and system capable of automatically identifying cast iron blank and control system thereof
CN113310518A (en) * 2021-05-27 2021-08-27 北京交通大学 Air spring surface quality visual inspection system
CN113256624A (en) * 2021-06-29 2021-08-13 中移(上海)信息通信科技有限公司 Continuous casting round billet defect detection method and device, electronic equipment and readable storage medium
CN113298327B (en) * 2021-07-28 2021-12-07 深圳先进储能材料国家工程研究中心有限公司 Method for optimizing foam metal preparation process and preparation method of foam metal
CN113298327A (en) * 2021-07-28 2021-08-24 深圳先进储能材料国家工程研究中心有限公司 Method for optimizing foam metal preparation process and preparation method of foam metal
CN113916892A (en) * 2021-09-28 2022-01-11 南京理工大学 Multi-view vision-based brake disc gluing defect detection device and method
CN114677334A (en) * 2022-03-04 2022-06-28 山东钢铁股份有限公司 Method, system and device for controlling surface quality of special-shaped blank
CN115930833A (en) * 2023-03-13 2023-04-07 山东微晶自动化有限公司 Quality detection and shape correction method for large cavity casting part
CN117092116A (en) * 2023-10-20 2023-11-21 上海嘉朗实业南通智能科技有限公司 Automobile aluminum alloy casting defect detection system and method based on machine vision

Also Published As

Publication number Publication date
CN111929309B (en) 2021-01-08

Similar Documents

Publication Publication Date Title
CN111929309B (en) Cast part appearance defect detection method and system based on machine vision
CN111537517B (en) Unmanned intelligent stamping defect identification method
AU706790B2 (en) Lens inspection system and method
CN102095733B (en) Machine vision-based intelligent detection method for surface defect of bottle cap
CN109840900B (en) Fault online detection system and detection method applied to intelligent manufacturing workshop
CN102529019B (en) Method for mould detection and protection as well as part detection and picking
CN107966454A (en) A kind of end plug defect detecting device and detection method based on FPGA
US10875592B2 (en) Automobile manufacturing plant and method
CN103492834B (en) For detecting automatic utensil and the method for inspection of pivoting part quality
CN114252452A (en) Online detection device and method for appearance defects and contour dimension of small-sized revolving body
CN115035092A (en) Image-based bottle detection method, device, equipment and storage medium
EP0686841A2 (en) System and method for inspecting lenses
JP7186521B2 (en) Teacher image generator for visual inspection equipment
Armingol et al. Statistical pattern modeling in vision-based quality control systems
CN102529020B (en) Visual-motor integrated device for mould detection and protection as well as part detection and picking
Reyna et al. Product Digital Quality Inspection using Machine Vision Systems–A Categorical Review
CN211726598U (en) Brake disc appearance imperfections detection device
Cao Design and application of robot vision inspection system for semiconductor metal target
Lin et al. Enhancing the quality inspection process in the food manufacturing industry through automation
Ye et al. Automatic optical apparatus for inspecting bearing assembly defects
Czajka et al. Automatisation of multi-parametric quality inspection of rotary symmetrical metal elements
Liu et al. Research on intelligent measurement system of workpiece outer dimension
Reyna Automated Quality Control in Manufacturing Production Lines: A Robust Technique to Perform Product Quality Inspection
KR102494890B1 (en) Intelligent Total Inspection System for Quality Inspection of Iron Frame Mold
Liu et al. Automated visual inspection of metallic parts

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant