CN111340795B - Method and device for determining quality of article - Google Patents
Method and device for determining quality of article Download PDFInfo
- Publication number
- CN111340795B CN111340795B CN202010159117.XA CN202010159117A CN111340795B CN 111340795 B CN111340795 B CN 111340795B CN 202010159117 A CN202010159117 A CN 202010159117A CN 111340795 B CN111340795 B CN 111340795B
- Authority
- CN
- China
- Prior art keywords
- image
- detected
- gray value
- determining
- background
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 45
- 239000011159 matrix material Substances 0.000 claims description 13
- 238000001914 filtration Methods 0.000 claims description 10
- 238000004458 analytical method Methods 0.000 claims description 9
- 238000000605 extraction Methods 0.000 claims description 7
- 230000000007 visual effect Effects 0.000 claims description 7
- 238000004891 communication Methods 0.000 claims description 4
- 230000007613 environmental effect Effects 0.000 claims description 3
- 238000001514 detection method Methods 0.000 abstract description 15
- 239000000428 dust Substances 0.000 abstract description 13
- 238000004519 manufacturing process Methods 0.000 abstract description 8
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Chemical compound O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 abstract description 7
- 238000003384 imaging method Methods 0.000 description 7
- 230000008859 change Effects 0.000 description 5
- 230000002093 peripheral effect Effects 0.000 description 5
- 230000007547 defect Effects 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 230000000694 effects Effects 0.000 description 3
- 230000008878 coupling Effects 0.000 description 2
- 238000010168 coupling process Methods 0.000 description 2
- 238000005859 coupling reaction Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 230000002411 adverse Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000015556 catabolic process Effects 0.000 description 1
- 238000006731 degradation reaction Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 239000003595 mist Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000002834 transmittance Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
- 238000004148 unit process Methods 0.000 description 1
- 238000011179 visual inspection Methods 0.000 description 1
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
- G06T5/00—Image enhancement or restoration
- G06T5/73—Deblurring; Sharpening
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/90—Dynamic range modification of images or parts thereof
-
- 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/10—Image acquisition modality
- G06T2207/10004—Still image; Photographic image
-
- 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)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
- Image Analysis (AREA)
Abstract
The application discloses a method and a device for determining the quality of an article. Wherein the method comprises the following steps: acquiring an original image of an object to be detected; determining the gray value variation of a background image, wherein the background image is an image of a background plate used as an image acquisition background when an original image of an object to be detected is acquired; processing the original image based on the gray value variation to obtain a target image of the object to be detected; analyzing the target image to obtain state information of the object to be detected; and determining whether the object to be detected is a qualified object according to the state information of the object to be detected. The application solves the technical problem that the reliability of the detection result is lower easily caused by dust or water vapor generated in the production process by a mode for detecting parts in an unmanned workshop in the related art.
Description
Technical Field
The application relates to the technical field of visual inspection, in particular to a method and a device for determining the quality of an article.
Background
The existing part detection device for the unmanned workshop assembly line usually adopts visible light imaging equipment to detect defects, but dust or water vapor inevitably appears in the air in the production process to present fog, so that the acquired images are blurred and distorted due to the fog, and the like, and the subsequent processing such as feature detection and the like are adversely affected.
Aiming at the problem that the reliability of the detection result is lower due to dust or water vapor generated in the production process in the mode of detecting parts in an unmanned workshop in the related art, no effective solution is proposed at present.
Disclosure of Invention
The embodiment of the application provides a method and a device for determining the quality of an article, which at least solve the technical problem that the reliability of a detection result is lower due to dust or water vapor generated in the production process in a mode of detecting parts in an unmanned workshop in the related art.
According to an aspect of an embodiment of the present application, there is provided a method for determining quality of an article, including: acquiring an original image of an object to be detected; determining the gray value variation of a background image, wherein the background image is an image of a background plate used as an image acquisition background when the original image of the object to be detected is acquired; processing the original image based on the gray value variation to obtain a target image of the object to be detected; analyzing the target image to obtain state information of the object to be detected; and determining whether the object to be detected is a qualified object according to the state information of the object to be detected.
Optionally, the acquiring the original image of the object to be detected includes: determining that the object to be detected is positioned in the visual center of the image acquisition equipment; triggering the image acquisition equipment to acquire the original image of the object to be detected by taking the background plate as an image acquisition background.
Optionally, the determining the gray value variation of the background image includes: determining an actual gray value of the background plate; acquiring an environment gray value of the background plate in the environment where the object to be detected is located; and determining the gray value variation of the background image according to the actual gray value and the environment gray value.
Optionally, the determining the gray value variation of the background image includes: determining an actual gray value of the background plate; extracting a sample image with a preset specification from a background image in the original image, and determining a pixel gray value of each pixel point in the sample image; the pixel gray value of each pixel point is differenced with the actual gray value, and a plurality of gray value difference values are obtained; and taking the gray value difference values as gray value variation of the background image.
Optionally, the acquiring the environmental gray value of the background plate in the environment where the object to be detected is located includes: extracting the background image from the original image; and analyzing the background image to obtain the environment gray value.
Optionally, the processing the original image based on the gray value variation to obtain the target image of the object to be detected includes: extracting a background matrix of the background image from the original image; obtaining an initial image of the object to be detected according to the background matrix and the gray value variation; and filtering the initial image of the object to be detected to obtain the target image.
Optionally, the determining whether the to-be-detected object is a qualified object according to the state information of the to-be-detected object includes: determining the integrity of the object to be detected according to the state information of the object to be detected; under the condition that the integrity of the object to be detected reaches a preset condition, determining that the object to be detected is a qualified object; and under the condition that the integrity of the object to be detected does not reach the preset condition, determining that the object to be detected is a disqualified object.
Optionally, the background plate is black.
According to another aspect of the embodiment of the present application, there is also provided an apparatus for determining quality of an article, including: the acquisition unit is used for acquiring an original image of the object to be detected; a first determining unit, configured to determine a gray value variation of a background image, where the background image is an image of a background plate that is used as an image acquisition background when an original image of the object to be detected is acquired; the processing unit is used for processing the original image based on the gray value variation to obtain a target image of the object to be detected; the analysis unit is used for analyzing the target image to obtain the state information of the object to be detected; and the second determining unit is used for determining whether the article to be detected is a qualified article according to the state information of the article to be detected.
Optionally, the acquiring unit includes: the first determining module is used for determining that the object to be detected is positioned in the visual center of the image acquisition equipment; the triggering module is used for triggering the image acquisition equipment to acquire the original image of the object to be detected by taking the background plate as an image acquisition background.
Optionally, the first determining unit includes: the second determining module is used for determining the actual gray value of the background plate; the first acquisition module is used for acquiring an environment gray value of the background plate in the environment where the object to be detected is located; and the third determining module is used for determining the gray value variation of the background image according to the actual gray value and the environment gray value.
Optionally, the first determining unit includes: a fourth determining module, configured to determine an actual gray value of the background plate; the first extraction module is used for extracting a sample image with a preset specification from a background image in the original image and determining a pixel gray value of each pixel point in the sample image; the second acquisition module is used for making a difference between the pixel gray value of each pixel point and the actual gray value to obtain a plurality of gray value difference values; and a fifth determining module, configured to take the plurality of gray value differences as gray value variation amounts of the background image.
Optionally, the first acquisition module includes: an extraction sub-module for extracting the background image from the original image; and the analysis sub-module is used for analyzing the background image to obtain the environment gray value.
Optionally, the processing unit includes: the second extraction module is used for extracting a background matrix of the background image from the original image; the third acquisition module is used for obtaining an initial image of the object to be detected according to the background matrix and the gray value variation; and the filtering module is used for filtering the initial image of the object to be detected to obtain the target image.
Optionally, the second determining unit includes: a sixth determining module, configured to determine an integrity of the to-be-detected object according to the status information of the to-be-detected object; a seventh determining module, configured to determine that the to-be-detected object is a qualified object when the integrity of the to-be-detected object reaches a predetermined condition; and an eighth determining module, configured to determine that the to-be-detected object is a failed object if the integrity of the to-be-detected object does not reach the predetermined condition.
Optionally, the background plate is black.
According to another aspect of the embodiments of the present application, there is also provided a storage medium including a stored program, wherein the program performs the method of determining the quality of an article according to any one of the above.
According to another aspect of the embodiment of the present application, there is provided a processor, where the processor is configured to execute a program, where the program executes the method for determining the quality of an article according to any one of the above.
According to another aspect of an embodiment of the present application, there is also provided an article quality determining system including: a memory, a processor coupled to the memory, the memory and the processor in communication through a bus system; the memory is used for storing a program, wherein the program, when executed by the processor, controls the equipment where the memory is located to execute the method for determining the quality of the article according to any one of the above; the processor is configured to run a program, where the program when run performs the method of determining the quality of an item as described in any one of the above.
In the embodiment of the application, the original image of the object to be detected is acquired; determining the gray value variation of a background image, wherein the background image is an image of a background plate used as an image acquisition background when an original image of an object to be detected is acquired; processing the original image based on the gray value variation to obtain a target image of the object to be detected; analyzing the target image to obtain state information of the object to be detected; according to the method for determining the quality of the object, the defect of image distortion caused by fog is overcome under the condition that other peripherals are not needed, so that the purpose of determining whether the object to be detected is qualified or not is achieved, the technical effect of improving the accuracy of the quality detection of the object to be detected is achieved, and the technical problem that the reliability of a detection result is low due to dust or water vapor generated in the production process in a mode of detecting the part in an unmanned workshop in the related art is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute a limitation on the application. In the drawings:
FIG. 1 is a flow chart of a method of determining the quality of an item according to an embodiment of the present application;
FIG. 2 is a schematic illustration of a method of determining the quality of an item according to an embodiment of the present application;
FIG. 3 is a flow chart of an alternative method of determining the quality of an item according to an embodiment of the present application;
fig. 4 is a schematic view of an apparatus for determining the quality of an article according to an embodiment of the present application.
Detailed Description
In order that those skilled in the art will better understand the present application, a technical solution in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
According to an embodiment of the present application, there is provided a method embodiment of a method of determining the quality of an article, it being noted that the steps shown in the flowchart of the figures may be performed in a computer system, such as a set of computer executable instructions, and that, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in an order other than that shown or described herein.
Fig. 1 is a flowchart of a method for determining the quality of an article according to an embodiment of the present application, as shown in fig. 1, the method for determining the quality of an article includes the steps of:
step S102, an original image of the object to be detected is acquired.
Optionally, the object to be detected may be a component on a production line. For example, parts on an unmanned shop assembly line.
Optionally, the original image is an image of the object to be detected acquired by the image acquisition device. Wherein the image may be distorted, blurred due to dust or vapor-rendered fog within the shop environment.
Step S104, determining the gray value variation of a background image, wherein the background image is an image of a background plate used as an image acquisition background when acquiring an original image of an object to be detected.
Optionally, in the embodiment of the present application, in order to make the acquired image of the object to be detected clearer, a background plate is disposed on the opposite side of the image acquisition device.
Fig. 2 is a schematic diagram of a method for determining quality of an article according to an embodiment of the present application, and as shown in fig. 2, an image acquisition apparatus may be disposed on one side of a line conveying an apparatus to be detected, which is perpendicular to a running direction, while a background plate is disposed on the other side of the line. Because the workshop environment is complex, the assembly line can inevitably generate pollution, and in order to avoid the error of the image detection result caused by the pollution, a background plate is arranged on the side surface, and a method for acquiring the image by the side surface is used.
In the embodiment of the present application, the color of the background plate is not particularly limited, and is preferably black.
By arranging the black background plate, the collected image background can be ensured to be simple, and the gray value variation of the background image can be calculated in a follow-up help mode.
In an alternative embodiment, the background plate is black.
And step S106, processing the original image based on the gray value variation to obtain a target image of the object to be detected.
Alternatively, the target image here is an image in which the amount of change in gray value is taken out of the original image, that is, the image distortion caused by the fog has been removed.
Step S108, analyzing the target image to obtain the state information of the object to be detected.
Alternatively, the status information herein may be used to indicate the integrity of the article to be inspected, e.g., whether the article to be inspected is incomplete, or redundant.
Step S110, determining whether the object to be detected is a qualified object according to the state information of the object to be detected.
From the above, the original image of the object to be detected is obtained; determining the gray value variation of a background image, wherein the background image is an image of a background plate used as an image acquisition background when an original image of an object to be detected is acquired; processing the original image based on the gray value variation to obtain a target image of the object to be detected; analyzing the target image to obtain state information of the object to be detected; according to the state information of the object to be detected, whether the object to be detected is a qualified object or not is determined, the defect of image distortion caused by fog is overcome under the condition that other peripherals are not needed, the purpose of determining whether the object to be detected is qualified or not is achieved, and the technical effect of improving the accuracy of quality detection of the object to be detected is achieved.
Notably, in the embodiment of the application, the image distortion caused by fog can be removed without other peripheral equipment, so that the image is clearer, the subsequent analysis of the object to be detected based on the image is facilitated, and the quality of the obtained object to be detected is more reliable.
Therefore, the method for determining the quality of the article solves the technical problem that in the related art, the method for detecting the parts in an unmanned workshop is easy to cause lower reliability of detection results due to dust or water vapor generated in the production process.
According to the above embodiment of the present application, in step S102, acquiring an original image of an object to be detected includes: determining that an object to be detected is positioned in the visual center of the image acquisition equipment; triggering the image acquisition equipment to acquire an original image of the object to be detected by taking the background plate as an image acquisition background.
In the above embodiment, in order to make the object to be detected at the center position of the original image, the image capturing device may be triggered to capture the original image of the object to be detected when it is determined that the object to be detected is located at the visual center of the image capturing device.
In addition, in order to locate the object to be detected in the visual center of the image acquisition device, in the embodiment of the application, the beat of the image acquisition device (i.e. the imaging system) can be adjusted to be consistent with the conveyor belt, so that the object to be detected can be effectively located in the center of the original image.
According to the above embodiment of the present application, in step S104, determining the gray value variation amount of the background image includes: determining an actual gray value of a background plate; acquiring an environment gray value of a background plate in an environment where an object to be detected is located; and determining the gray value variation of the background image according to the actual gray value and the environment gray value.
For example, after the set background plate is determined, the actual gray value of the background plate may be acquired as a reference factor for determining the gray value variation of the background plate image of the background plate. Then, collecting an environment gray value of the background plate in an environment where the object to be detected is located, wherein the environment gray value is a gray value of a background image of the background plate obtained in a fog environment in an unmanned workshop; the gray value variation of the background image can then be determined from the actual gray value and the ambient gray value.
In an alternative embodiment, determining the gray value variation of the background image includes: determining an actual gray value of a background plate; extracting a sample image with a preset specification from a background image in an original image, and determining a pixel gray value of each pixel point in the sample image; the pixel gray value of each pixel point is differenced with the actual gray value, and a plurality of gray value difference values are obtained; the plurality of gray value differences are used as gray value variation of the background image.
For example, after the original image of the object to be detected is acquired, a background image may be extracted from the original image, and sample images of a predetermined specification may be extracted from the background image, and the gray value variation amount may be determined based on the average value of the differences between the gray values of the sample images and the actual gray values, respectively.
It should be noted that, when imaging is estimated, the change amount of the gray value of the pixel caused by factors such as moisture and dust can be obtained by the image acquisition device, and the optical transmission model can be expressed as: i (x) =j (x) t (x) +a (1-t (x)), where I (x) is the captured light intensity, J (x) is the target reflected light intensity (used to represent the target image), a is the ambient light intensity, and t (x) is the medium transmittance when light propagates between the item to be detected and the imaging device. According to I (x), A and t (x) recover J (x), and image degradation caused by dust and mist in the image can be removed.
Where J (x) represents the reflected light intensity of the target and also represents the ideal unaffected image. From the formula, to calculate J (x) by the I (x) acquired by the camera, two parameters, t (x), a, are also required. T (x) can be estimated through a dark channel, the first 0.1% of pixel points in the dark channel are extracted and mapped into I (x), and the background light A can be estimated by taking the average value. Then J (x) can be calculated by:considering that the complexity of calculating t (x) is high, and that there is also a large deviation in the indoor estimation of a. A black background plate is placed on the other side of the camera. Thus, the gray value of the background part of the acquired image is almost zero under normal conditions. Due to the influence of the vapor dust, the gray value of the background part of the image acquired by the camera is larger than zero. Therefore, the gray value of the extracted partial background pixels can estimate the change amount of the gray value due to the environment. The beat of the imaging system is adjusted to be consistent with the conveyor belt, so that the part to be detected can be ensured to be at the center of the image.
In an alternative embodiment, acquiring the environmental gray value of the background plate in the environment where the object to be detected is located includes: extracting a background image from an original image; and analyzing the background image to obtain an environment gray value.
In an alternative embodiment, processing the original image based on the gray value variation to obtain a target image of the object to be detected includes: extracting a background matrix of a background image from an original image; obtaining an initial image of the object to be detected according to the background matrix and the gray value variation; and filtering the initial image of the object to be detected to obtain a target image.
Here the upper left corner of the image I (x) is extracted by the number of background pixels of size r x r. Calculating their mean value T, since the imaging distance is close, T can be approximated as the amount of change in the image gray value:taking the average value can improve the robustness of T. Subtracting T from the whole acquired image I (x) yields an unaffected image J (x) (i.e., the target image): j (x) =i (x) -T.
In this case, J (x) is calculated by the above equation, and thus the image is discontinuous. The final desired undegraded image (i.e., the target image) can be obtained using a guided filter process for J (x).
According to the above embodiment of the present application, in step S110, determining whether the object to be detected is a qualified object according to the status information of the object to be detected includes: determining the integrity of the object to be detected according to the state information of the object to be detected; under the condition that the integrity of the object to be detected reaches a preset condition, determining that the object to be detected is a qualified object; and under the condition that the integrity of the object to be detected does not reach the preset condition, determining that the object to be detected is a disqualified object.
FIG. 3 is a flowchart of an alternative method for determining quality of an article according to an embodiment of the present application, as shown in FIG. 3, capturing an original image of an article to be detected by using an image acquisition device, extracting to obtain a background image matrix and a gray value variation, recovering to obtain an original image, and performing filtering processing on the original image to obtain a target object; and obtaining the quality of the object to be detected according to the target image.
According to the method for determining the quality of the object, provided by the embodiment of the application, a side imaging mode is adopted, a black background plate is placed on the other side of the camera, the gray value of the background plate and the true value of the background plate are obtained through the camera, and the change quantity of the gray value increase caused by dust vapor and the like on the image is estimated, so that the influence of the dust vapor on the image blur, distortion and the like is removed. The image is subjected to the definition processing, the characteristics of the processed image are more continuous by using the guide filtering, and the precision of the detection device is improved; the method can remove image distortion caused by fog under the condition of no other peripheral equipment, so that the image is clear, the processing of extracting the image characteristic points of the subsequent detection device is facilitated, the characteristic information of the image is enriched, and the integral precision of the detection device can be improved on the premise of not improving the equipment cost.
Example 2
According to another aspect of the embodiment of the present application, there is provided an apparatus for determining the quality of an article, fig. 4 is a schematic diagram of the apparatus for determining the quality of an article according to the embodiment of the present application, and as shown in fig. 4, the apparatus for determining the quality of an article includes: an acquisition unit 41, a first determination unit 43, a processing unit 45, an analysis unit 47, and a second determination unit 49. The determination device of the quality of the article will be described in detail.
An acquisition unit 41 for acquiring an original image of the object to be inspected.
A first determining unit 43 for determining a gray value variation of a background image, wherein the background image is an image of a background plate as an image acquisition background when acquiring an original image of an object to be detected.
The processing unit 45 is configured to process the original image based on the gray value variation, so as to obtain a target image of the object to be detected.
And an analysis unit 47, configured to analyze the target image to obtain status information of the object to be detected.
A second determining unit 49, configured to determine whether the object to be detected is a qualified object according to the status information of the object to be detected.
Here, the above-described acquisition unit 41, first determination unit 43, processing unit 45, analysis unit 47, and second determination unit 49 correspond to steps S102 to S110 in embodiment 1, which are the same as examples and application scenarios achieved by the corresponding steps, but are not limited to those disclosed in embodiment 1. It should be noted that the above-described elements may be implemented as part of an apparatus in a computer system such as a set of computer-executable instructions.
As can be seen from the above, in the above embodiment of the present application, the original image of the object to be detected may be acquired by the acquisition unit; the method comprises the steps that a first determining unit determines gray value variation of a background image, wherein the background image is an image of a background plate used as an image acquisition background when an original image of an object to be detected is acquired; the processing unit processes the original image based on the gray value variation to obtain a target image of the object to be detected; the analysis unit analyzes the target image to obtain state information of the object to be detected; the second determining unit determines whether the object to be detected is a qualified object according to the state information of the object to be detected. The device for determining the quality of the object provided by the embodiment of the application realizes the defect of removing image distortion caused by fog under the condition of no other peripheral equipment, so that the purpose of determining whether the object to be detected is qualified or not is achieved, the technical effect of improving the accuracy of the quality detection of the object to be detected is achieved, and the technical problem that the reliability of the detection result is lower due to dust or water vapor generated in the production process in a mode of detecting the object in an unmanned workshop in the related art is solved.
In an alternative embodiment, the acquisition unit comprises: the first determining module is used for determining that the object to be detected is positioned in the visual center of the image acquisition equipment; the triggering module is used for triggering the image acquisition equipment to acquire an original image of the object to be detected by taking the background plate as an image acquisition background.
In an alternative embodiment, the first determining unit comprises: the second determining module is used for determining the actual gray value of the background plate; the first acquisition module is used for acquiring an environment gray value of the background plate in the environment where the object to be detected is located; and the third determining module is used for determining the gray value variation of the background image according to the actual gray value and the environment gray value.
In an alternative embodiment, the first determining unit comprises: a fourth determining module, configured to determine an actual gray value of the background plate; the first extraction module is used for extracting a sample image with a preset specification from a background image in an original image and determining a pixel gray value of each pixel point in the sample image; the second acquisition module is used for making a difference between the pixel gray value of each pixel point and the actual gray value to obtain a plurality of gray value difference values; and a fifth determining module, configured to take the plurality of gray value differences as gray value variation amounts of the background image.
In an alternative embodiment, the first acquisition module includes: the extraction submodule is used for extracting a background image from the original image; and the analysis sub-module is used for analyzing the background image to obtain an environment gray value.
In an alternative embodiment, a processing unit includes: the second extraction module is used for extracting a background matrix of the background image from the original image; the third acquisition module is used for obtaining an initial image of the object to be detected according to the background matrix and the gray value variation; the filtering module is used for filtering the initial image of the object to be detected to obtain a target image.
In an alternative embodiment, the second determining unit comprises: a sixth determining module, configured to determine an integrity of the object to be detected according to the status information of the object to be detected; a seventh determining module, configured to determine that the object to be detected is a qualified object when the integrity of the object to be detected reaches a predetermined condition; and the eighth determining module is used for determining that the object to be detected is a disqualified object under the condition that the integrity of the object to be detected does not reach the preset condition.
In an alternative embodiment, the background plate is black.
Example 3
According to another aspect of the embodiments of the present application, there is also provided a storage medium including a stored program, wherein the program performs the method of determining the quality of an article of any one of the above.
Example 4
According to another aspect of the embodiment of the present application, there is also provided a processor, configured to execute a program, where the program executes the method for determining the quality of an article according to any one of the above.
Example 5
According to another aspect of an embodiment of the present application, there is also provided an article quality determining system including: a memory, a processor coupled to the memory, the memory and the processor in communication via a bus system; the memory is used for storing a program, wherein the program, when being executed by the processor, controls the equipment where the memory is located to execute the method for determining the quality of the article in any one of the above steps; the processor is configured to run a program, wherein the program, when run, performs the method of determining the quality of the item of any one of the above.
The foregoing embodiment numbers of the present application are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
In the foregoing embodiments of the present application, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed technology may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, for example, may be a logic function division, and may be implemented in another manner, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely a preferred embodiment of the present application and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present application, which are intended to be comprehended within the scope of the present application.
Claims (7)
1. A method of determining the quality of an article, comprising:
acquiring an original image of an object to be detected;
determining the gray value variation of a background image, wherein the background image is an image of a background plate used as an image acquisition background when the original image of the object to be detected is acquired;
extracting a background matrix of the background image from the original image;
obtaining an initial image of the object to be detected according to the background matrix and the gray value variation;
filtering the initial image of the object to be detected to obtain a target image;
analyzing the target image to obtain state information of the object to be detected;
determining the integrity of the object to be detected according to the state information of the object to be detected;
under the condition that the integrity of the object to be detected reaches a preset condition, determining that the object to be detected is a qualified object;
under the condition that the integrity of the object to be detected does not reach the preset condition, determining that the object to be detected is a disqualified object;
wherein, the determining the gray value variation of the background image includes:
determining an actual gray value of the background plate;
extracting a sample image with a preset specification from a background image in the original image, and determining a pixel gray value of each pixel point in the sample image;
the pixel gray value of each pixel point is differenced with the actual gray value, and a plurality of gray value difference values are obtained;
and taking the gray value difference values as gray value variation of the background image.
2. The method of claim 1, wherein the acquiring the original image of the item to be inspected comprises:
determining that the object to be detected is positioned in the visual center of the image acquisition equipment;
triggering the image acquisition equipment to acquire the original image of the object to be detected by taking the background plate as an image acquisition background.
3. The method of claim 1, wherein determining the gray value variance of the background image comprises:
determining an actual gray value of the background plate;
acquiring an environment gray value of the background plate in the environment where the object to be detected is located;
and determining the gray value variation of the background image according to the actual gray value and the environment gray value.
4. A method according to claim 3, wherein the obtaining the environmental gray value of the background plate in the environment where the object to be detected is located comprises:
extracting the background image from the original image;
and analyzing the background image to obtain the environment gray value.
5. The method of any one of claims 1 to 4, wherein the background plate is black.
6. An apparatus for determining the quality of an article, comprising:
the acquisition unit is used for acquiring an original image of the object to be detected;
a first determining unit, configured to determine a gray value variation of a background image, where the background image is an image of a background plate that is used as an image acquisition background when an original image of the object to be detected is acquired;
a processing unit, configured to extract a background matrix of the background image from the original image; obtaining an initial image of the object to be detected according to the background matrix and the gray value variation; filtering the initial image of the object to be detected to obtain a target image;
the analysis unit is used for analyzing the target image to obtain the state information of the object to be detected;
the second determining unit is used for determining the integrity of the object to be detected according to the state information of the object to be detected; under the condition that the integrity of the object to be detected reaches a preset condition, determining that the object to be detected is a qualified object; under the condition that the integrity of the object to be detected does not reach the preset condition, determining that the object to be detected is a disqualified object;
wherein the first determining unit includes: a fourth determining module, configured to determine an actual gray value of the background plate; the first extraction module is used for extracting a sample image with a preset specification from a background image in the original image and determining a pixel gray value of each pixel point in the sample image; the second acquisition module is used for making a difference between the pixel gray value of each pixel point and the actual gray value to obtain a plurality of gray value difference values; and a fifth determining module, configured to take the plurality of gray value differences as gray value variation amounts of the background image.
7. An article quality determination system, comprising:
a memory, a processor coupled to the memory, the memory and the processor in communication through a bus system;
the memory is configured to store a program, wherein the program, when executed by the processor, controls a device in which the memory is located to perform the method for determining the quality of an article according to any one of claims 2 to 5;
the processor is configured to run a program, wherein the program when run performs the method of determining the quality of an item as claimed in any one of claims 2 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010159117.XA CN111340795B (en) | 2020-03-09 | 2020-03-09 | Method and device for determining quality of article |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010159117.XA CN111340795B (en) | 2020-03-09 | 2020-03-09 | Method and device for determining quality of article |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111340795A CN111340795A (en) | 2020-06-26 |
CN111340795B true CN111340795B (en) | 2023-11-10 |
Family
ID=71187354
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010159117.XA Active CN111340795B (en) | 2020-03-09 | 2020-03-09 | Method and device for determining quality of article |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111340795B (en) |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103903230A (en) * | 2014-03-28 | 2014-07-02 | 哈尔滨工程大学 | Video image sea fog removal and clearing method |
CN104933680A (en) * | 2015-03-13 | 2015-09-23 | 哈尔滨工程大学 | Intelligent unmanned surface vessel visual system video rapid sea fog removing method |
CN106023091A (en) * | 2016-04-22 | 2016-10-12 | 西安电子科技大学 | Image real-time defogging method based on graphics processor |
WO2018068304A1 (en) * | 2016-10-14 | 2018-04-19 | 深圳配天智能技术研究院有限公司 | Image matching method and device |
CN108844966A (en) * | 2018-07-09 | 2018-11-20 | 广东速美达自动化股份有限公司 | A kind of screen detection method and detection system |
CN109166109A (en) * | 2018-08-14 | 2019-01-08 | 珠海格力智能装备有限公司 | Defect inspection method, device, storage medium and processor |
CN109960987A (en) * | 2017-12-25 | 2019-07-02 | 北京京东尚科信息技术有限公司 | Method for checking object and system |
CN110052715A (en) * | 2019-03-15 | 2019-07-26 | 山东红宝自动化有限公司 | A kind of metal plate plastic-spraying part automatic detection marking system |
CN110136123A (en) * | 2019-05-17 | 2019-08-16 | 无锡睿勤科技有限公司 | Article detection method, mobile terminal and computer readable storage medium |
CN110634124A (en) * | 2018-06-22 | 2019-12-31 | 合肥欣奕华智能机器有限公司 | Method and equipment for area detection |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106327520B (en) * | 2016-08-19 | 2020-04-07 | 苏州大学 | Moving target detection method and system |
-
2020
- 2020-03-09 CN CN202010159117.XA patent/CN111340795B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103903230A (en) * | 2014-03-28 | 2014-07-02 | 哈尔滨工程大学 | Video image sea fog removal and clearing method |
CN104933680A (en) * | 2015-03-13 | 2015-09-23 | 哈尔滨工程大学 | Intelligent unmanned surface vessel visual system video rapid sea fog removing method |
CN106023091A (en) * | 2016-04-22 | 2016-10-12 | 西安电子科技大学 | Image real-time defogging method based on graphics processor |
WO2018068304A1 (en) * | 2016-10-14 | 2018-04-19 | 深圳配天智能技术研究院有限公司 | Image matching method and device |
CN109960987A (en) * | 2017-12-25 | 2019-07-02 | 北京京东尚科信息技术有限公司 | Method for checking object and system |
CN110634124A (en) * | 2018-06-22 | 2019-12-31 | 合肥欣奕华智能机器有限公司 | Method and equipment for area detection |
CN108844966A (en) * | 2018-07-09 | 2018-11-20 | 广东速美达自动化股份有限公司 | A kind of screen detection method and detection system |
CN109166109A (en) * | 2018-08-14 | 2019-01-08 | 珠海格力智能装备有限公司 | Defect inspection method, device, storage medium and processor |
CN110052715A (en) * | 2019-03-15 | 2019-07-26 | 山东红宝自动化有限公司 | A kind of metal plate plastic-spraying part automatic detection marking system |
CN110136123A (en) * | 2019-05-17 | 2019-08-16 | 无锡睿勤科技有限公司 | Article detection method, mobile terminal and computer readable storage medium |
Non-Patent Citations (3)
Title |
---|
何艳敏 等.《基于稀疏表示的图像压缩和去噪理论与应用》.电子科技大学出版社,2016,第98-100页. * |
基于机器视觉的烟尘在线监测的研究;任艳君 等;《西南大学学报(自然科学版)》;第30卷(第09期);第163-169页 * |
胶带输送机智能视频监测与预警方法;李占利 等;《图学学报》;第38卷(第02期);第230-235页 * |
Also Published As
Publication number | Publication date |
---|---|
CN111340795A (en) | 2020-06-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109816678B (en) | Automatic nozzle atomization angle detection system and method based on vision | |
WO2022088620A1 (en) | State detection method and apparatus for camera lens, device and storage medium | |
CN112514373B (en) | Image processing apparatus and method for feature extraction | |
CN111489337A (en) | Method and system for removing false defects through automatic optical detection | |
CN114820626B (en) | Intelligent detection method for automobile front face part configuration | |
CN110880184A (en) | Method and device for carrying out automatic camera inspection based on optical flow field | |
JP6616906B1 (en) | Detection device and detection system for defective photographing data | |
CN109636793A (en) | The detection system and its detection method of display | |
CN111369317B (en) | Order generation method, order generation device, electronic equipment and storage medium | |
CN113780484B (en) | Industrial product defect detection method and device | |
CN113065454B (en) | High-altitude parabolic target identification and comparison method and device | |
CN115947066B (en) | Belt tearing detection method, device and system | |
CN111179182B (en) | Image processing method and device, storage medium and processor | |
CN107403429B (en) | Method for quickly and automatically acquiring parameters of periodic sequence image model | |
CN111340795B (en) | Method and device for determining quality of article | |
KR101395666B1 (en) | Surveillance apparatus and method using change of video image | |
CN112950594A (en) | Method and device for detecting surface defects of product and storage medium | |
CN114092385A (en) | Industrial machine fault detection method and device based on machine vision | |
CN111325731A (en) | Installation detection method and device of remote control device | |
CN111563869B (en) | Stain test method for quality inspection of camera module | |
CN115880365A (en) | Double-station automatic screw screwing detection method, system and device | |
CN111935480B (en) | Detection method for image acquisition device and related device | |
CN114202537A (en) | Camera imaging defect detection method, display cabinet and storage medium | |
CN114140417A (en) | Cigarette filter stick identification method and system based on machine vision | |
Miljanovic et al. | Detection of windows in facades using image processing algorithms |
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 |