CN113096111A - Material detection method, system, computer program product and readable storage medium - Google Patents
Material detection method, system, computer program product and readable storage medium Download PDFInfo
- Publication number
- CN113096111A CN113096111A CN202110450760.2A CN202110450760A CN113096111A CN 113096111 A CN113096111 A CN 113096111A CN 202110450760 A CN202110450760 A CN 202110450760A CN 113096111 A CN113096111 A CN 113096111A
- Authority
- CN
- China
- Prior art keywords
- preset
- detection
- image
- target material
- light intensity
- 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.)
- Pending
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 263
- 239000000463 material Substances 0.000 title claims abstract description 202
- 238000004590 computer program Methods 0.000 title claims abstract description 13
- 238000003860 storage Methods 0.000 title claims abstract description 13
- 239000013077 target material Substances 0.000 claims abstract description 117
- 238000012360 testing method Methods 0.000 claims abstract description 63
- 238000000034 method Methods 0.000 claims abstract description 37
- 239000010421 standard material Substances 0.000 claims description 13
- 238000000605 extraction Methods 0.000 claims description 8
- 238000012545 processing Methods 0.000 claims description 7
- 238000004519 manufacturing process Methods 0.000 abstract description 32
- 208000003464 asthenopia Diseases 0.000 abstract description 6
- 230000008569 process Effects 0.000 description 7
- 238000004891 communication Methods 0.000 description 6
- 238000009776 industrial production Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 3
- 238000007689 inspection Methods 0.000 description 3
- 238000011161 development Methods 0.000 description 2
- 230000018109 developmental process Effects 0.000 description 2
- 230000002452 interceptive effect Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 230000002950 deficient Effects 0.000 description 1
- 238000009713 electroplating Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000005286 illumination Methods 0.000 description 1
- 238000003711 image thresholding Methods 0.000 description 1
- 229910044991 metal oxide Inorganic materials 0.000 description 1
- 150000004706 metal oxides Chemical class 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000004806 packaging method and process Methods 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 230000011218 segmentation Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/0002—Inspection of images, e.g. flaw detection
- G06T7/0004—Industrial image inspection
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/11—Region-based segmentation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/40—Extraction of image or video features
- G06V10/44—Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30108—Industrial image inspection
Landscapes
- Engineering & Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Multimedia (AREA)
- Quality & Reliability (AREA)
- Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
Abstract
The invention discloses a material detection method, a system, a computer program product and a readable storage medium, wherein the method comprises the following steps: testing a preset detection instrument and determining whether the preset detection instrument is tested successfully; after the preset detection instrument is determined to be successfully tested, image acquisition is carried out on the target material to be detected through the preset detection instrument, and a corresponding detection image is obtained; and comparing the detection image with a preset material image to determine whether the target material is qualified. Compared with the traditional manual detection method, the method provided by the invention has the advantages that whether the target material is qualified or not is determined by acquiring the detection image corresponding to the target material through the preset detection instrument, the condition that the visual fatigue of detection personnel occurs is avoided, and the material detection efficiency in the production and manufacturing process can be improved.
Description
Technical Field
The present invention relates to the field of vision inspection technology, and in particular, to a material inspection method, system, computer program product, and readable storage medium.
Background
The rapid development of industrial automation greatly improves the production efficiency in the industrial production and manufacturing process, and further puts higher requirements on the detection efficiency in the industrial production and manufacturing process.
Traditionally, whether the material of manufacturing is qualified is detected to the mode that generally adopts manual detection, but, the condition of visual fatigue appears very easily when inspection personnel carry out repeated and mechanized detection work on the assembly line to lead to the material detection efficiency reduction in the manufacturing process.
Disclosure of Invention
The invention mainly aims to provide a material detection method, a material detection system, a computer program product and a readable storage medium, and aims to improve the material detection efficiency in the production and manufacturing process.
In order to achieve the above object, the present invention provides a material detection method, comprising the steps of:
testing a preset detection instrument and determining whether the preset detection instrument is tested successfully;
after the preset detection instrument is determined to be successfully tested, image acquisition is carried out on the target material to be detected through the preset detection instrument, and a corresponding detection image is obtained;
and comparing the detection image with a preset material image to determine whether the target material is qualified.
Preferably, the method is applied to a material detection system, the material detection system includes a light-emitting device, and the step of acquiring an image of a target material to be detected by the preset detection instrument to obtain a corresponding detection image includes:
when the target material is detected to enter a preset collection area, the preset collection area is illuminated through the light-emitting device, and the target material is subjected to image collection through the preset detection instrument to obtain a corresponding detection image.
Preferably, after the step of illuminating the preset collection area by the light-emitting device, the method further includes:
determining the light intensity corresponding to the preset acquisition area, and detecting whether the light intensity reaches a preset light intensity threshold value;
and if the light intensity reaches the preset light intensity threshold value, carrying out image acquisition on the target material through the preset detection instrument to obtain a corresponding detection image.
Preferably, after the step of detecting whether the light intensity reaches a preset light intensity threshold, the method further includes:
if the light intensity does not reach the preset light intensity threshold value, acquiring a light-emitting parameter of the light-emitting device, and adjusting the light-emitting parameter to adjust the light intensity corresponding to the preset collection area;
and when detecting that the current light intensity of the preset acquisition area reaches the preset light intensity threshold value, acquiring an image of the target material through the preset detection instrument to obtain a corresponding detection image.
Preferably, the step of comparing the detection image with a preset material image to determine whether the target material is qualified includes:
carrying out target extraction processing on the detection image so as to extract a region image corresponding to the target material from the detection image;
and comparing the area image with the preset material image to determine whether the target material is qualified.
Preferably, the step of comparing the area image with the preset material image to determine whether the target material is qualified includes:
comparing the area image with the preset material image, and determining the deviation degree between the target material and the standard material corresponding to the preset material image;
judging whether the deviation degree is within a preset deviation range or not;
if the deviation degree is within the preset deviation range, determining that the target material is qualified;
and if the deviation degree is not within the preset deviation range, determining that the target material is unqualified.
Preferably, the step of testing a preset detection instrument and determining whether the preset detection instrument is successfully tested includes:
obtaining pre-test materials, and determining the actual quantity of unqualified materials in the pre-test materials;
detecting the pre-test materials through a preset detection instrument to determine unqualified materials in the pre-test materials and determine the detection quantity corresponding to the unqualified materials;
comparing the detected number to the actual number;
when the detection number is equal to the actual number, determining that the test of the preset detection instrument is successful;
and when the detection number is not equal to the actual number, determining that the test of the preset detection instrument is unsuccessful.
In addition, to achieve the above object, the present invention also provides a material detecting device, including:
the test module is used for testing a preset detection instrument and determining whether the preset detection instrument is tested successfully;
the acquisition module is used for acquiring an image of the target material to be detected through the preset detection instrument after the preset detection instrument is determined to be successfully tested, so as to obtain a corresponding detection image;
and the comparison module is used for comparing the detection image with a preset material image to determine whether the target material is qualified.
Preferably, the method is applied to a material detection system, the material detection system includes a light-emitting device, and the acquisition module is further configured to:
when the target material is detected to enter a preset collection area, the preset collection area is illuminated through the light-emitting device, and the target material is subjected to image collection through the preset detection instrument to obtain a corresponding detection image.
Preferably, the collection module further comprises a light control unit, the light control unit is configured to:
determining the light intensity corresponding to the preset acquisition area, and detecting whether the light intensity reaches a preset light intensity threshold value;
and if the light intensity reaches the preset light intensity threshold value, carrying out image acquisition on the target material through the preset detection instrument to obtain a corresponding detection image.
Preferably, the light control unit is further configured to:
if the light intensity does not reach the preset light intensity threshold value, acquiring a light-emitting parameter of the light-emitting device, and adjusting the light-emitting parameter to adjust the light intensity corresponding to the preset collection area;
and when detecting that the current light intensity of the preset acquisition area reaches the preset light intensity threshold value, acquiring an image of the target material through the preset detection instrument to obtain a corresponding detection image.
Preferably, the comparison module is further configured to:
carrying out target extraction processing on the detection image so as to extract a region image corresponding to the target material from the detection image;
and comparing the area image with the preset material image to determine whether the target material is qualified.
Preferably, the comparison module is further configured to:
comparing the area image with the preset material image, and determining the deviation degree between the target material and the standard material corresponding to the preset material image;
judging whether the deviation degree is within a preset deviation range or not;
if the deviation degree is within the preset deviation range, determining that the target material is qualified;
and if the deviation degree is not within the preset deviation range, determining that the target material is unqualified.
Preferably, the test module is further configured to:
obtaining pre-test materials, and determining the actual quantity of unqualified materials in the pre-test materials;
detecting the pre-test materials through a preset detection instrument to determine unqualified materials in the pre-test materials and determine the detection quantity corresponding to the unqualified materials;
comparing the detected number to the actual number;
when the detection number is equal to the actual number, determining that the test of the preset detection instrument is successful;
and when the detection number is not equal to the actual number, determining that the test of the preset detection instrument is unsuccessful.
Furthermore, to achieve the above object, the present invention also provides a computer program product comprising a computer program which, when being executed by a processor, realizes the steps of the material detection method as described above.
In addition, to achieve the above object, the present invention further provides a material detecting system, including: the system comprises a memory, a processor and a material detection program stored on the memory and capable of running on the processor, wherein the material detection program realizes the steps of the material detection method when being executed by the processor.
In addition, to achieve the above object, the present invention further provides a readable storage medium, on which a material detection program is stored, and the material detection program, when executed by a processor, implements the steps of the material detection method as described above.
The material detection method provided by the invention tests the preset detection instrument and determines whether the preset detection instrument is tested successfully; after the test success of a preset detection instrument is determined, image acquisition is carried out on the target material to be detected through the preset detection instrument to obtain a corresponding detection image; and comparing the detection image with a preset material image to determine whether the target material is qualified. Compared with the traditional manual detection method, the method provided by the invention has the advantages that whether the target material is qualified or not is determined by acquiring the detection image corresponding to the target material through the preset detection instrument, the condition that the visual fatigue of detection personnel occurs is avoided, and the material detection efficiency in the production and manufacturing process can be improved.
Drawings
FIG. 1 is a system diagram of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a material inspecting method according to a first embodiment of the present invention;
FIG. 3 is a functional block diagram of a material detection method according to a preferred embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, fig. 1 is a system structural diagram of a hardware operating environment according to an embodiment of the present invention.
The system of the embodiment of the invention can be a PC terminal, an intelligent terminal and the like.
As shown in fig. 1, the system may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the system architecture shown in FIG. 1 is not intended to be limiting of the system, and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a material detection program.
The operating system is a program for managing and controlling the material detection system and software resources, and supports the operation of a network communication module, a user interface module, a material detection program and other programs or software; the network communication module is used for managing and controlling the network interface 1002; the user interface module is used to manage and control the user interface 1003.
In the material detection system shown in fig. 1, the material detection system calls a material detection program stored in a memory 1005 through a processor 1001 and performs operations in various embodiments of the material detection method described below.
Based on the hardware structure, the embodiment of the material detection method is provided.
Referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of the material detection method of the present invention, and the method includes:
step S10, testing a preset detection instrument and determining whether the preset detection instrument is tested successfully;
the material detection method is applied to a material detection system in an industrial production and manufacturing scene, in particular to a material detection system on each production line. With the rapid development of industrial automation, the production efficiency in the industrial production and manufacturing process is greatly improved, and further higher requirements are provided for the detection efficiency in the industrial production and manufacturing process.
Conventionally, whether the material manufactured by production is qualified is detected by adopting a manual detection mode, but when detection personnel perform repeated and mechanized detection work on a production line, the situation of visual fatigue is easy to occur, so that the detection efficiency in the production and manufacturing process is reduced.
In this embodiment, the predetermined detecting instrument may be a Device having an image capturing function, such as a CCD (Charge-coupled Device) detector, a cmos (complementary Metal Oxide semiconductor) camera, and the like. Before the preset detection instrument is used for detecting whether materials on a production line are qualified or not, the preset detection instrument needs to be tested, and whether the preset detection instrument is tested successfully or not is determined by judging whether the preset detection instrument can accurately identify unqualified materials or not.
It should be noted that, before testing the preset detection instrument, all the materials on the conveying track need to be cleaned, so as to prevent the conveying track from being doped with other unknown materials and interfering with the test result of the preset detection instrument.
Further, step S10 includes:
step a1, obtaining pre-test materials, and determining the actual quantity of unqualified materials in the pre-test materials;
step a2, detecting the pre-test materials through a preset detection instrument to determine unqualified materials in the pre-test materials, and determining the detection quantity corresponding to the unqualified materials;
a step a3 of comparing the detected quantity with the actual quantity;
step a4, when the detection number is equal to the actual number, determining that the test of the preset detection instrument is successful;
step a5, when the detection number is not equal to the actual number, determining that the test of the preset detection instrument is unsuccessful.
In this embodiment, whether the detection instrument can accurately identify the unqualified material in order to test requires that the material to be tested in advance must contain the unqualified material, and then, the material to be tested in advance may only contain the unqualified material, and also may contain both qualified material and unqualified material. When a preset detection instrument is tested, firstly, it is required to ensure that no material exists on a transmission track of a production line so as to avoid other materials except for a pre-test material from interfering with a test result; preparing a pre-test material, and determining the actual quantity of unqualified materials in the pre-test material; then starting a preset detection instrument, putting the pre-test materials on the conveying track, and detecting the pre-test materials through the preset detection instrument to determine the detection quantity corresponding to the unqualified materials detected by the preset detection instrument; and comparing the detected quantity with the actual quantity, wherein if the detected quantity is equal to the actual quantity, the number of the unqualified materials detected by the preset detection instrument is equal to the number of the unqualified materials actually put in, namely, the preset detection instrument can completely identify the unqualified materials in the materials to be tested, and the test success of the preset detection instrument can be determined. If the detected quantity is not equal to the actual quantity, it is indicated that the quantity of the unqualified materials detected by the preset detection instrument is not equal to the quantity of the unqualified materials actually put in, that is, the preset detection instrument cannot completely identify the unqualified materials in the materials to be tested, the test of the preset detection instrument can be determined to be unsuccessful, and then early warning can be performed through the preset warning device so as to inform relevant technical personnel of the unsuccessful test message of the preset detection instrument and inform the relevant technical personnel of processing in time.
In addition, in order to further improve the detection accuracy of the preset detection instrument, on one hand, the preset detection instrument can be tested for multiple times; on the other hand, under the condition that the pre-test materials comprise qualified materials and unqualified materials, the quantity of the qualified materials and the quantity of the unqualified materials detected by the pre-test instrument can be required to be completely consistent with the quantity of the qualified materials and the quantity of the unqualified materials actually put in, and the success test of the pre-test instrument can be determined. The specific method for testing the preset detection instrument can be set according to the actual application requirement, and is not limited specifically here.
Step S20, after the preset detection instrument is determined to be tested successfully, image acquisition is carried out on the target material to be detected through the preset detection instrument, and a corresponding detection image is obtained;
in this embodiment, it is successful to preset the detection instrument, that is, when the preset detection instrument is used to detect the material on the production line, the accuracy of the material detection can reach the preset detection standard, for example, the accuracy of the material detection reaches 99.89%, then the preset detection instrument can perform image acquisition on the target material to be detected to obtain the corresponding detection image, so as to determine whether the target material is qualified according to the detection image. And whether the target material is qualified or not is detected by presetting a mode of image acquisition of a detection instrument, so that the condition that the detection efficiency is reduced due to visual fatigue of detection personnel in the traditional manual detection process is avoided, and the material detection efficiency in the production and manufacturing process is improved.
And step S30, comparing the detection image with a preset material image to determine whether the target material is qualified.
In this embodiment, after it is determined that the preset detection instrument tests successfully, an image of a large number of qualified materials needs to be acquired by the preset detection instrument and is used as a preset material image, and then the detection image corresponding to the target material is compared with the preset material image, so as to determine whether the target material is qualified. Whether the target material is qualified or not is detected in an image identification and comparison mode, subjective influences of detection personnel during manual detection are avoided, the material detection speed is increased, and the material detection accuracy is also guaranteed.
In the material detection method of the embodiment, a preset detection instrument is tested, and whether the preset detection instrument is tested successfully is determined; after the test success of a preset detection instrument is determined, image acquisition is carried out on the target material to be detected through the preset detection instrument to obtain a corresponding detection image; and comparing the detection image with a preset material image to determine whether the target material is qualified. Compared with the traditional manual detection method, the method provided by the invention has the advantages that whether the target material is qualified or not is determined by acquiring the detection image corresponding to the target material through the preset detection instrument, the condition that the visual fatigue of detection personnel occurs is avoided, and the material detection efficiency in the production and manufacturing process can be improved.
Further, based on the first embodiment of the material detection method of the present invention, a second embodiment of the material detection method of the present invention is provided.
The second embodiment of the material detection method is different from the first embodiment of the material detection method in that the material detection system includes a light-emitting device, and the step of acquiring an image of the target material to be detected by the preset detection instrument to obtain a corresponding detection image includes:
and b, when the target material is detected to enter a preset collection area, illuminating the preset collection area through the light-emitting device, and carrying out image collection on the target material through the preset detection instrument to obtain a corresponding detection image.
In this embodiment, the current position of the target material can be located by an infrared sensor, a tracking identification tag on the target material, and the like. Because under general conditions, preset detecting instrument need polish and can gather the detection image that the target material corresponds, consequently, when detecting that the target material gets into and predetermines the collection region, the steerable illuminator of material detection system, like light box, light, etc. throw light on, wherein, predetermine the collection region and for illuminator illumination back, predetermine detecting instrument and can gather the regional position set that this target material detected the image, moreover, the light that illuminator transmitted can shine this and predetermine the collection region. It can be understood, when target material gets into and predetermines the collection region, probably because the track shelters from, the material is put reasons such as angle deviation, it is low to lead to predetermineeing the detection image resolution ratio that detecting instrument gathered, can't distinguish the connection condition between each partial structure of material, thereby make material detecting system can't judge whether this target material is qualified, and when detecting target material and getting into the collection region, control illuminator throws light on, can improve and predetermine the light intensity in the collection region, thereby ensure to predetermine the detection image that detecting instrument can clearly gather target material.
Further, after the step of illuminating the preset collection area by the light-emitting device, the method further includes:
step c1, determining the light intensity corresponding to the preset collection area, and detecting whether the light intensity reaches a preset light intensity threshold value;
and c2, if the light intensity is detected to reach the preset light intensity threshold value, acquiring an image of the target material through the preset detection instrument to obtain a corresponding detection image.
In this embodiment, the light intensity corresponding to the preset collection area can be obtained through components such as a light detector and a light sensor. As long as it reaches certain standard to predetermine the light intensity that the collection area corresponds, just can guarantee to predetermine the detection image that detecting instrument gathered and can be used for detecting whether qualified target material, consequently, can set up the light intensity of a minimum standard for predetermineeing the collection area in advance, predetermine the light intensity threshold value promptly, detect and predetermine whether the light intensity of collection area reaches predetermined light intensity standard. If the light intensity corresponding to the preset collection area is detected to reach the preset light intensity threshold value, the preset detection instrument can be controlled to carry out image collection on the target material, and therefore the detection image corresponding to the target material is obtained.
Further, after the step of detecting whether the light intensity reaches the preset light intensity threshold, the method further includes:
step d1, if the light intensity does not reach the preset light intensity threshold, obtaining the light emitting parameters of the light emitting device, and adjusting the light emitting parameters to adjust the light intensity corresponding to the preset collection area;
and d2, when detecting that the current light intensity of the preset acquisition area reaches the preset light intensity threshold value, acquiring an image of the target material through the preset detection instrument to obtain a corresponding detection image.
In this embodiment, if it is detected that the light intensity corresponding to the preset collection area fails to reach the preset light intensity threshold, that is, it indicates that the current light intensity of the preset collection area has not reached the preset collection standard, the light intensity mechanical energy of the preset collection area can be adjusted by adjusting the light emitting parameters corresponding to the light emitting device, and the current light intensity of the preset collection area in the light adjustment process is detected in real time. When the current light intensity of the preset collection area is detected to reach the corresponding preset light intensity threshold value, the preset detection instrument can be controlled to carry out image collection on the target material, and therefore the detection image of the target material is obtained.
According to the material detection method, when the target material enters the preset collection area, the material detection system can detect the current light intensity of the preset collection area, and if the detected light intensity reaches the preset light intensity threshold value, the current light intensity of the preset collection area is adjusted by adjusting the light emitting parameters of the light emitting device; when the current light intensity of the preset collection area reaches the preset light intensity threshold value, the preset detection instrument is controlled to collect images of the target material, the fact that the real condition of the target material can be accurately reflected by the detection images corresponding to the target material can be guaranteed, and therefore the accuracy of material detection is improved.
Further, a third embodiment of the material detection method is provided based on the first and second embodiments of the material detection method of the present invention.
The third embodiment of the material detecting method is different from the first and second embodiments of the material detecting method in that the step S30 further includes:
step e1, performing target extraction processing on the detection image to extract an area image corresponding to the target material from the detection image;
and e2, comparing the area image with the preset material image to determine whether the target material is qualified.
In this embodiment, a target extraction process is performed on a detected image corresponding to a target material, for example, by using a target feature extraction technique, an image thresholding segmentation technique, or other manners, an area image corresponding to the target material can be accurately extracted from the detected image, and computer pressure during subsequent image comparison can be reduced. And then determining whether the target material is qualified or not by comparing the difference between the area image and a preset material image, wherein the preset material image is a standard material meeting the factory specification. For example, whether the actual size, shape, appearance, electroplating and the like of the target material meet the requirements of factory specifications can be determined through comparison between the area image and a preset material image, and whether the target material is mixed in materials, damaged in a packaging bag and the like in the production and manufacturing process can also be determined, so that whether the target material is qualified or not can be determined.
Further, step e2 further includes:
step e21, comparing the area image with the preset material image, and determining the deviation degree between the target material and the standard material corresponding to the preset material image;
step e22, judging whether the deviation degree is in a preset deviation range;
step e23, if the deviation degree is within the preset deviation range, determining that the target material is qualified;
and e24, if the deviation degree is not in the preset deviation range, determining that the target material is unqualified.
In this embodiment, because manufacturing errors inevitably exist in the manufacturing process of the materials, so that deviations exist between different produced materials, and therefore, the deviation degree between the target material corresponding to the area image and the standard material meeting the factory specifications can be determined by comparing the area image with the preset material image. And judging whether the deviation degree between the target material and the standard material is within a preset deviation range, and determining whether the target material is qualified. Specifically, if the deviation degree between the target material and the standard material is within the preset deviation range, the target material is proved to meet the requirement of delivery specifications, and the target material can be determined to be qualified; if the deviation degree between the target material and the standard material is not within the element and deviation range, the target material is seriously deviated from the requirement of delivery specifications, and the target material can be determined to be unqualified. For example, in the production detection process of a certain type of material a, the PDC pin size of the material a is required to be controlled to be 3.4 ± 0.10mm, then, the size of the standard material corresponding to the preset material image may be 3.4mm, and the size deviation between the target material and the standard material is within ± 0.10mm, and the target material may be determined to be qualified.
According to the material detection method, the target extraction processing is carried out on the detection image, so that not only can the area image corresponding to the target material be accurately extracted from the detection image, but also the computer pressure in the subsequent image comparison can be reduced; moreover, the deviation degree between the target material and the standard material is controlled within a certain range, so that the quality of the material can be guaranteed, the number of defective products of the material is reduced, and resources are saved.
The invention also provides a material detection device. Referring to fig. 3, the material detecting apparatus of the present invention includes:
the test module 10 is used for testing a preset detection instrument and determining whether the preset detection instrument is tested successfully;
the acquisition module 20 is configured to, after it is determined that the preset detection instrument has successfully tested, perform image acquisition on the target material to be detected through the preset detection instrument to obtain a corresponding detection image;
and the comparison module 30 is configured to compare the detection image with a preset material image to determine whether the target material is qualified.
Preferably, the method is applied to a material detection system, the material detection system includes a light-emitting device, and the acquisition module is further configured to:
when the target material is detected to enter a preset collection area, the preset collection area is illuminated through the light-emitting device, and the target material is subjected to image collection through the preset detection instrument to obtain a corresponding detection image.
Preferably, the collection module further comprises a light control unit, the light control unit is configured to:
determining the light intensity corresponding to the preset acquisition area, and detecting whether the light intensity reaches a preset light intensity threshold value;
and if the light intensity reaches the preset light intensity threshold value, carrying out image acquisition on the target material through the preset detection instrument to obtain a corresponding detection image.
Preferably, the light control unit is further configured to:
if the light intensity does not reach the preset light intensity threshold value, acquiring a light-emitting parameter of the light-emitting device, and adjusting the light-emitting parameter to adjust the light intensity corresponding to the preset collection area;
and when detecting that the current light intensity of the preset acquisition area reaches the preset light intensity threshold value, acquiring an image of the target material through the preset detection instrument to obtain a corresponding detection image.
Preferably, the comparison module is further configured to:
carrying out target extraction processing on the detection image so as to extract a region image corresponding to the target material from the detection image;
and comparing the area image with the preset material image to determine whether the target material is qualified.
Preferably, the comparison module is further configured to:
comparing the area image with the preset material image, and determining the deviation degree between the target material and the standard material corresponding to the preset material image;
judging whether the deviation degree is within a preset deviation range or not;
if the deviation degree is within the preset deviation range, determining that the target material is qualified;
and if the deviation degree is not within the preset deviation range, determining that the target material is unqualified.
Preferably, the test module is further configured to:
obtaining pre-test materials, and determining the actual quantity of unqualified materials in the pre-test materials;
detecting the pre-test materials through a preset detection instrument to determine unqualified materials in the pre-test materials and determine the detection quantity corresponding to the unqualified materials;
comparing the detected number to the actual number;
when the detection number is equal to the actual number, determining that the test of the preset detection instrument is successful;
and when the detection number is not equal to the actual number, determining that the test of the preset detection instrument is unsuccessful.
The invention also provides a computer program product comprising a computer program which, when executed by a processor, carries out the steps of the method of determining a default rate as described above.
The invention also provides a readable storage medium.
The readable storage medium of the present invention stores a material detection program, and the material detection program, when executed by a processor, implements the steps of the material detection method as described above.
In the embodiments of the material detection system, the computer program product, and the storage medium of the present invention, reference may be made to the embodiments of the material detection method of the present invention, and details are not described herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal system (e.g., a mobile phone, a computer, a server, an air conditioner, or a network system) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
Claims (10)
1. A material detection method is characterized by comprising the following steps:
testing a preset detection instrument and determining whether the preset detection instrument is tested successfully;
after the preset detection instrument is determined to be successfully tested, image acquisition is carried out on the target material to be detected through the preset detection instrument, and a corresponding detection image is obtained;
and comparing the detection image with a preset material image to determine whether the target material is qualified.
2. The material detection method according to claim 1, wherein the method is applied to a material detection system, the material detection system comprises a light-emitting device, and the step of acquiring the image of the target material to be detected by the preset detection instrument to obtain the corresponding detection image comprises the following steps:
when the target material is detected to enter a preset collection area, the preset collection area is illuminated through the light-emitting device, and the target material is subjected to image collection through the preset detection instrument to obtain a corresponding detection image.
3. The material detection method as claimed in claim 2, wherein after the step of illuminating the preset collection area by the light emitting device, the method further comprises:
determining the light intensity corresponding to the preset acquisition area, and detecting whether the light intensity reaches a preset light intensity threshold value;
and if the light intensity reaches the preset light intensity threshold value, carrying out image acquisition on the target material through the preset detection instrument to obtain a corresponding detection image.
4. The method as claimed in claim 3, wherein after the step of detecting whether the light intensity reaches a predetermined light intensity threshold, the method further comprises:
if the light intensity does not reach the preset light intensity threshold value, acquiring a light-emitting parameter of the light-emitting device, and adjusting the light-emitting parameter to adjust the light intensity corresponding to the preset collection area;
and when detecting that the current light intensity of the preset acquisition area reaches the preset light intensity threshold value, acquiring an image of the target material through the preset detection instrument to obtain a corresponding detection image.
5. The material detection method as claimed in claim 1, wherein the step of comparing the detection image with a preset material image to determine whether the target material is qualified comprises:
carrying out target extraction processing on the detection image so as to extract a region image corresponding to the target material from the detection image;
and comparing the area image with the preset material image to determine whether the target material is qualified.
6. The material detection method as claimed in claim 5, wherein the step of comparing the area image with the preset material image to determine whether the target material is qualified comprises:
comparing the area image with the preset material image, and determining the deviation degree between the target material and the standard material corresponding to the preset material image;
judging whether the deviation degree is within a preset deviation range or not;
if the deviation degree is within the preset deviation range, determining that the target material is qualified;
and if the deviation degree is not within the preset deviation range, determining that the target material is unqualified.
7. The method for detecting materials as claimed in any one of claims 1 to 6, wherein the step of testing a predetermined detecting instrument and determining whether the predetermined detecting instrument is successfully tested comprises:
obtaining pre-test materials, and determining the actual quantity of unqualified materials in the pre-test materials;
detecting the pre-test materials through a preset detection instrument to determine unqualified materials in the pre-test materials and determine the detection quantity corresponding to the unqualified materials;
comparing the detected number to the actual number;
when the detection number is equal to the actual number, determining that the test of the preset detection instrument is successful;
and when the detection number is not equal to the actual number, determining that the test of the preset detection instrument is unsuccessful.
8. A material detection system, comprising: a memory, a processor and a material detection program stored on the memory and executable on the processor, the material detection program when executed by the processor implementing the steps of the material detection method as claimed in any one of claims 1 to 7.
9. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, carries out the steps of the material detection method according to any one of claims 1 to 7.
10. A readable storage medium, having a material detection program stored thereon, which when executed by a processor implements the steps of the material detection method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110450760.2A CN113096111A (en) | 2021-04-25 | 2021-04-25 | Material detection method, system, computer program product and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110450760.2A CN113096111A (en) | 2021-04-25 | 2021-04-25 | Material detection method, system, computer program product and readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113096111A true CN113096111A (en) | 2021-07-09 |
Family
ID=76679825
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110450760.2A Pending CN113096111A (en) | 2021-04-25 | 2021-04-25 | Material detection method, system, computer program product and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113096111A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113562363A (en) * | 2021-08-20 | 2021-10-29 | 北京云迹科技有限公司 | Method for cleaning garbage can |
CN114707904A (en) * | 2022-05-05 | 2022-07-05 | 江苏文友软件有限公司 | Quality detection method and system based on big data |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101982826A (en) * | 2010-11-10 | 2011-03-02 | 中国船舶重工集团公司第七一○研究所 | Finger vein collection and identification method capable of automatically adjusting brightness of light source |
CN102680488A (en) * | 2012-03-31 | 2012-09-19 | 北京农业信息技术研究中心 | Device and method for identifying massive agricultural product on line on basis of PCA (Principal Component Analysis) |
CN102867418A (en) * | 2012-09-14 | 2013-01-09 | 浙江宇视科技有限公司 | Method and device for judging license plate identification accuracy |
WO2018201638A1 (en) * | 2017-05-05 | 2018-11-08 | 深圳市科迈爱康科技有限公司 | Image recognition based information collection method, mobile terminal and storage medium |
CN110020573A (en) * | 2018-01-08 | 2019-07-16 | 上海聚虹光电科技有限公司 | In vivo detection system |
CN110427885A (en) * | 2019-07-31 | 2019-11-08 | Tcl王牌电器(惠州)有限公司 | Detection method, device and the computer readable storage medium of nameplate |
-
2021
- 2021-04-25 CN CN202110450760.2A patent/CN113096111A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101982826A (en) * | 2010-11-10 | 2011-03-02 | 中国船舶重工集团公司第七一○研究所 | Finger vein collection and identification method capable of automatically adjusting brightness of light source |
CN102680488A (en) * | 2012-03-31 | 2012-09-19 | 北京农业信息技术研究中心 | Device and method for identifying massive agricultural product on line on basis of PCA (Principal Component Analysis) |
CN102867418A (en) * | 2012-09-14 | 2013-01-09 | 浙江宇视科技有限公司 | Method and device for judging license plate identification accuracy |
WO2018201638A1 (en) * | 2017-05-05 | 2018-11-08 | 深圳市科迈爱康科技有限公司 | Image recognition based information collection method, mobile terminal and storage medium |
CN110020573A (en) * | 2018-01-08 | 2019-07-16 | 上海聚虹光电科技有限公司 | In vivo detection system |
CN110427885A (en) * | 2019-07-31 | 2019-11-08 | Tcl王牌电器(惠州)有限公司 | Detection method, device and the computer readable storage medium of nameplate |
Non-Patent Citations (3)
Title |
---|
潘海侠,吕科,杨晴虹,白浩杰,檀彦豪编: "《基于机器视觉的农田杂草识别方法》", 30 November 2019, 北京:北京航空航天大学出版社, pages: 80 - 81 * |
潘海侠,吕科,杨晴虹,白浩杰,檀彦豪编: "《深度学习工程师认证初级教程》", 北京:北京航空航天大学出版社, pages: 53 - 54 * |
藤田一弥,高原歩: "《实践深度学习》", 31 July 2020, 北京:机械工业出版社, pages: 111 - 112 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113562363A (en) * | 2021-08-20 | 2021-10-29 | 北京云迹科技有限公司 | Method for cleaning garbage can |
CN113562363B (en) * | 2021-08-20 | 2022-07-08 | 北京云迹科技股份有限公司 | Method for cleaning garbage can |
CN114707904A (en) * | 2022-05-05 | 2022-07-05 | 江苏文友软件有限公司 | Quality detection method and system based on big data |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP7015001B2 (en) | Defect inspection equipment, defect inspection methods, and their programs | |
US11830174B2 (en) | Defect inspecting device, defect inspecting method, and storage medium | |
CN112577969B (en) | Defect detection method and defect detection system based on machine vision | |
KR102058427B1 (en) | Apparatus and method for inspection | |
CN108827970B (en) | AOI system-based method and system for automatically judging defects of different panels | |
CN108445011B (en) | Defect detection system and method based on deep learning | |
CA3098154A1 (en) | System and method for performing automated analysis of air samples | |
CN103785622B (en) | Based on the part method for sorting of the part sorting equipment of machine vision | |
CN113096111A (en) | Material detection method, system, computer program product and readable storage medium | |
JP5168215B2 (en) | Appearance inspection device | |
CN113111903A (en) | Intelligent production line monitoring system and monitoring method | |
CN111882541A (en) | Defect detection method, device, equipment and computer readable storage medium | |
CN104483320A (en) | Digitized defect detection device and detection method of industrial denitration catalyst | |
CN114419038A (en) | Method and device for identifying surface defects of hub, storage medium and electronic equipment | |
CN109461156B (en) | Threaded sealing plug assembly detection method based on vision | |
CN113470018B (en) | Hub defect identification method, electronic device, device and readable storage medium | |
CN105763871A (en) | Real time detection system and detection method for camera definition | |
CN111951225A (en) | PCB welding abnormity detection method and device and storage medium | |
WO2021030322A1 (en) | System and method of object detection using ai deep learning models | |
CN111426693A (en) | Quality defect detection system and detection method thereof | |
JP2022507678A (en) | Optimization of setup stage in automated visual inspection process | |
CN113077416A (en) | Welding spot welding defect detection method and system based on image processing | |
CN114140684A (en) | Method, device and equipment for detecting coal blockage and coal leakage and storage medium | |
CN112730406A (en) | Product testing method, system and readable storage medium | |
CN114226262A (en) | Flaw detection method, flaw classification method and flaw detection system |
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 |