CN111340795A - Method and device for determining quality of article - Google Patents

Method and device for determining quality of article Download PDF

Info

Publication number
CN111340795A
CN111340795A CN202010159117.XA CN202010159117A CN111340795A CN 111340795 A CN111340795 A CN 111340795A CN 202010159117 A CN202010159117 A CN 202010159117A CN 111340795 A CN111340795 A CN 111340795A
Authority
CN
China
Prior art keywords
article
image
detected
determining
gray value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010159117.XA
Other languages
Chinese (zh)
Other versions
CN111340795B (en
Inventor
蒋泽新
杨智慧
邓及翔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Zhuhai Gree Intelligent Equipment Co Ltd
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Zhuhai Gree Intelligent Equipment Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Gree Electric Appliances Inc of Zhuhai, Zhuhai Gree Intelligent Equipment Co Ltd filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202010159117.XA priority Critical patent/CN111340795B/en
Publication of CN111340795A publication Critical patent/CN111340795A/en
Application granted granted Critical
Publication of CN111340795B publication Critical patent/CN111340795B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0004Industrial image inspection
    • G06T5/73
    • G06T5/90
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10004Still image; Photographic image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30108Industrial image inspection

Abstract

The invention 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 article to be detected; determining the gray value variation of a background image, wherein the background image is an image of a background plate serving as an image acquisition background when an original image of an article to be detected is acquired; processing the original image based on the gray value variation to obtain a target image of the article to be detected; analyzing the target image to obtain state information of the object to be detected; and determining whether the article to be detected is a qualified article according to the state information of the article to be detected. The invention solves the technical problem that the reliability of the detection result is low due to dust or water vapor generated in the production process in the mode of detecting parts in an unmanned workshop in the related technology.

Description

Method and device for determining quality of article
Technical Field
The invention 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 unmanned workshop assembly line part detection device 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 image generates the phenomena of blurring, distortion and the like due to the fog, and the subsequent characteristic detection and other treatment are adversely affected.
Aiming at the problem that in the related art, in a mode of detecting parts in an unmanned workshop, the reliability of a detection result is low due to dust or water vapor generated in the production process, an effective solution is not provided at present.
Disclosure of Invention
The embodiment of the invention provides a method and a device for determining the quality of an article, which are used for at least solving 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 parts in an unmanned workshop in the related art.
According to an aspect of an embodiment of the present invention, there is provided a method for determining quality of an article, including: acquiring an original image of an article to be detected; determining the gray value variation of a background image, wherein the background image is an image of a background plate serving as an image acquisition background when an original image of the article to be detected is acquired; processing the original image based on the gray value variation to obtain a target image of the article to be detected; analyzing the target image to obtain the state information of the article to be detected; and 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 an original image of an article to be detected includes: determining that the article to be detected is located in the visual center of the image acquisition equipment; triggering the image acquisition equipment to acquire the original image of the article to be detected by taking the background plate as an image acquisition background.
Optionally, the determining a 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 article 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 a 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 the pixel gray value of each pixel point in the sample image; the pixel gray value of each pixel point is differed from the actual gray value to obtain a plurality of gray value difference values; and taking the gray value differences as the gray value variation of the background image.
Optionally, the acquiring an environmental gray value of the background plate in an environment where the to-be-detected article 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 a 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 article to be detected according to the background matrix and the gray value variation; and filtering the initial image of the article to be detected to obtain the target image.
Optionally, the determining whether the article to be detected is a qualified article according to the state information of the article to be detected includes: determining the integrity of the article to be detected according to the state information of the article to be detected; determining the article to be detected as a qualified article under the condition that the integrity of the article to be detected reaches a preset condition; and determining the article to be detected as an unqualified article under the condition that the integrity of the article to be detected does not reach the preset condition.
Optionally, the background plate is black.
According to another aspect of the embodiments of the present invention, there is also provided an article quality determination apparatus, including: the acquisition unit is used for acquiring an original image of an article to be detected; the device comprises a first determining unit, a second determining unit and a third determining unit, wherein the first determining unit is used for determining the gray value variation of a background image, and the background image is an image of a background plate which is used as an image acquisition background when an original image of the article 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 article to be detected; the analysis unit is used for analyzing the target image to obtain the state information of the article 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 obtaining unit includes: the first determining module is used for determining that the article to be detected is positioned in the visual center of the image acquisition equipment; and the triggering module is used for triggering the image acquisition equipment to acquire the original image of the article 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 an environment where the article 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: the fourth determining module is used for determining the 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 the pixel gray value of each pixel point in the sample image; the second obtaining 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 the fifth determining module is used for taking the gray value differences as the gray value variation of the background image.
Optionally, the first obtaining module includes: an extraction sub-module for extracting the background image from the original image; and the analysis submodule 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 article 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 article to be detected to obtain the target image.
Optionally, the second determining unit includes: the sixth determining module is used for determining the integrity of the article to be detected according to the state information of the article to be detected; the seventh determining module is used for determining the article to be detected as a qualified article under the condition that the integrity of the article to be detected reaches a preset condition; and the eighth determining module is used for determining that the article to be detected is an unqualified article under the condition that the integrity of the article to be detected does not reach the preset condition.
Optionally, the background plate is black.
According to another aspect of the embodiments of the present invention, there is also provided a storage medium including a stored program, wherein the program executes the method for determining the quality of an article according to any one of the above.
According to another aspect of the embodiment of the present invention, there is further 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 methods.
According to another aspect of the embodiments of the present invention, there is also provided an article quality determination system including: a memory, a processor coupled with the memory, the memory and the processor communicating over a bus system; the memory is used for storing a program, wherein the program when executed by the processor controls the device in which the memory is located to execute any one of the above item quality determination methods; 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 methods.
In the embodiment of the invention, the original image of the article 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 serving as an image acquisition background when an original image of an article to be detected is acquired; processing the original image based on the gray value variation to obtain a target image of the article to be detected; analyzing the target image to obtain state information of the object to be detected; the method for determining the quality of the article realizes the defect of image distortion caused by removing fog under the condition of no need of other peripheral equipment, ensures that the image for determining whether the article to be detected is qualified is reliable, achieves the technical effect of improving the accuracy of quality detection of the article to be detected, and further solves the technical problem that the reliability of a detection result is low due to dust or water vapor generated in the production process in the mode of detecting parts in an unmanned workshop in the related technology.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. 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 invention;
FIG. 2 is a schematic illustration of a method of determining the quality of an item according to an embodiment of the invention;
FIG. 3 is a flow chart of an alternative method of determining the quality of an item in accordance with an embodiment of the present invention;
fig. 4 is a schematic diagram of an article quality determination apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or 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
In accordance with an embodiment of the present invention, there is provided a method embodiment of a method for determining quality of an item, it being noted that the steps illustrated in the flowchart of the drawings may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than that presented herein.
Fig. 1 is a flowchart of an article quality determination method according to an embodiment of the present invention, as shown in fig. 1, the article quality determination method includes the steps of:
step S102, obtaining an original image of an article to be detected.
Optionally, the article to be detected may be a component on the production line. Such as components on an unmanned workshop line.
Optionally, the original image is an image of the object to be detected acquired by using an image acquisition device. Wherein the image may be a distorted, blurred image due to fog from dust or moisture in the vehicle interior environment.
And step S104, determining the gray value variation of the background image, wherein the background image is the image of the background plate serving as the image acquisition background when the original image of the article to be detected is acquired.
Optionally, in the embodiment of the present invention, 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 the quality of an article according to an embodiment of the present invention, and as shown in fig. 2, an image capturing device may be disposed on one side of a running direction of a line for conveying an apparatus to be detected, which is perpendicular to the running direction, while a background plate is disposed on the other side of the line. Because the workshop environment is more complicated, the pollution inevitably appears on the assembly line, in order to avoid making the image detection result wrong because of the pollutant, set up with the background board at the side, use the method that the side gathered the image.
In the embodiment of the present invention, 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 subsequent assistance.
In an alternative embodiment, the background plate is black.
And S106, processing the original image based on the gray value variation to obtain a target image of the article to be detected.
Optionally, the target image is an image obtained by extracting a variation of a gray value from the original image, that is, image distortion caused by fog is removed.
And step S108, analyzing the target image to obtain the state information of the object to be detected.
Optionally, the status information may be used to indicate the integrity of the object to be detected, for example, whether the object to be detected is defective or not, or whether the object to be detected is redundant.
And step S110, determining whether the article to be detected is a qualified article according to the state information of the article to be detected.
Obtaining an original image of the object to be detected; determining the gray value variation of a background image, wherein the background image is an image of a background plate serving as an image acquisition background when an original image of an article to be detected is acquired; processing the original image based on the gray value variation to obtain a target image of the article to be detected; analyzing the target image to obtain state information of the object to be detected; whether the article to be detected is a qualified article is determined according to the state information of the article to be detected, the defect of image distortion caused by fog is overcome under the condition that other external equipment is not needed, the purpose that whether the image of the article to be detected is qualified is determined to be reliable is achieved, and the technical effect of improving the accuracy of quality detection of the article to be detected is achieved.
It is worth noting that in the embodiment of the invention, under the condition that other peripheral devices are not needed, the image distortion caused by the fog can be removed, 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, provided by the embodiment of the invention, solves the technical problem that the reliability of the 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.
According to the above embodiment of the present invention, in step S102, acquiring an original image of an object to be detected includes: determining that an article to be detected is located in a visual center of image acquisition equipment; and triggering the image acquisition equipment to acquire an original image of the article to be detected by taking the background plate as an image acquisition background.
In the above embodiment, in order to enable the object to be detected to be located at the center of the original image, when it is determined that the object to be detected is located at the visual center of the image capturing device, the image capturing device may be triggered to capture the original image of the object to be detected.
In addition, in order to enable the object to be detected to be located at the visual center of the image acquisition device, in the embodiment of the invention, the beat of the image acquisition device (namely, the imaging system) can be adjusted to be consistent with the conveying belt, so that the object to be detected can be effectively located at the center of the original image.
According to the above embodiment of the present invention, in step S104, 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 article 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 obtained 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 the environment where the object to be detected is located, wherein the environment gray value is the gray value of a background image of the background plate obtained in the 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 the background plate; extracting a sample image with a preset specification from a background image in an original image, and determining the pixel gray value of each pixel point in the sample image; the pixel gray value of each pixel point is differed from the actual gray value to obtain a plurality of gray value difference values; and taking the plurality of gray value differences as the gray value variation of the background image.
For example, after acquiring an original image of an object to be detected, a background image may be extracted from the original image, sample images of a predetermined specification may be extracted from the background image, and a gray value variation may be determined based on an average of differences between gray values of the sample images and actual gray values, respectively.
It should be noted that, when estimating imaging, the pixel gray value variation caused by factors such as moisture, dust, etc. may be obtained from the original image of the object to be detected by the image capturing device, and the optical transmission model may be represented 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 (representing the target image), a is the ambient light intensity, and t (x) is the medium transmittance when light propagates between the article to be inspected and the imaging device. J (x) is recovered according to I (x), A and t (x), and the image degradation caused by dust fog in the image can be removed.
Where J (x) represents the reflected light intensity of the target and also represents the ideal unaffected image. As can be seen from the formula, in order to calculate J (x) by using I (x) acquired by the camera, two parameters, i (x), A, are also acquired. T (x) can be estimated through the 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 mean value. J (x) can be calculated by:
Figure BDA0002405140200000071
considering the complexity of calculating t (x) is high, and the estimation of a in the room has a large bias. So here 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 moisture dust, the gray value of the background part of the image acquired by the camera is larger than zero. Therefore, the gray value of some background pixels is extracted, and the variation of the gray value caused by the environment can be estimated. And adjusting the beat of the imaging system to be consistent with the conveying belt, so that the part to be detected can be ensured to be in the center of the image.
In an alternative embodiment, the obtaining an environmental gray value of the background plate in an 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 environmental gray value.
In an optional embodiment, processing the original image based on the variation of the gray value 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 article to be detected according to the background matrix and the gray value variation; and filtering the initial image of the article to be detected to obtain a target image.
Here the number of background pixels in the upper left corner of the image i (x) is extracted, with the size r. And calculating the average value T of the images, wherein T can be approximated to the variation of the image gray value because the imaging distance is short:
Figure BDA0002405140200000081
averaging may improve the robustness of T. And (3) subtracting T from the whole acquired image I (x) to obtain an unaffected image J (x) (namely, a target image): j (x) i (x) -T.
At this time, j (x) is obtained by the operation of the above expression, so that discontinuity occurs in the image. The final desired non-degraded image (i.e., the target image) can be obtained by using the guided filtering process for j (x).
According to the above embodiment of the present invention, in step S110, determining whether the article to be detected is a qualified article according to the status information of the article to be detected includes: determining the integrity of the article to be detected according to the state information of the article to be detected; determining the article to be detected as a qualified article under the condition that the integrity of the article to be detected reaches a preset condition; and determining the article to be detected as an unqualified article under the condition that the integrity of the article to be detected does not reach the preset condition.
Fig. 3 is a flowchart of an optional method for determining the quality of an article according to an embodiment of the present invention, and as shown in fig. 3, an original image of an article to be detected is captured by an image capturing device, a background image matrix and a gray value variation are extracted, the original image is restored, and a filtering process is performed 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 article, provided by the embodiment of the invention, a side imaging mode is adopted, the black background plate is placed on the other side of the camera, the gray value of the background plate and the real value of the background plate are obtained through the camera, and the variation of the gray value increase of the dust water vapor and the like on the image is estimated, so that the influences of image blurring, distortion and the like caused by the dust water vapor are removed. The image is processed clearly, the characteristics of the processed image are more continuous by using the guide filtering, and the precision of the detection device is improved; under the condition of no need of other peripheral equipment, the image distortion caused by fog can be removed, the image is made 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 increasing the equipment cost.
Example 2
According to another aspect of the embodiment of the present invention, there is also provided an article quality determination apparatus, fig. 4 is a schematic view of the article quality determination apparatus according to the embodiment of the present invention, and as shown in fig. 4, the article quality determination apparatus 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 following describes the article quality determination apparatus in detail.
The acquiring unit 41 is configured to acquire an original image of the object to be detected.
The first determining unit 43 is configured to determine a gray value variation of a background image, where the background image is an image of a background plate serving as an image acquisition background when an original image of an object to be detected is acquired.
And the processing unit 45 is configured to process the original image based on the gray value variation to obtain a target image of the object to be detected.
And the analysis unit 47 is used for analyzing the target image to obtain the state information of the article to be detected.
And a second determining unit 49 for determining whether the article to be detected is a qualified article according to the status information of the article to be detected.
It should be noted here that the above-mentioned acquiring unit 41, the first determining unit 43, the processing unit 45, the analyzing unit 47 and the second determining unit 49 correspond to steps S102 to S110 in embodiment 1, and the above-mentioned units are the same as the examples and application scenarios realized by the corresponding steps, but are not limited to the disclosure of embodiment 1. It should be noted that the above-described elements as part of an apparatus may be implemented in a computer system, such as a set of computer-executable instructions.
As can be seen from the above, in the above embodiments of the present application, the obtaining unit may be used to obtain the original image of the object to be detected; the method comprises the steps that a first determining unit determines the gray value variation of a background image, wherein the background image is an image of a background plate which is used as an image acquisition background when an original image of an article 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 article to be detected; the analysis unit analyzes the target image to obtain the state information of the object to be detected; the second determining unit determines whether the article to be detected is a qualified article according to the state information of the article to be detected. The device for determining the quality of the article provided by the embodiment of the invention realizes the defect of image distortion caused by removing fog under the condition of no need of other external equipment, so that the image for determining whether the article to be detected is qualified is reliable, the technical effect of improving the accuracy of quality detection of the article to be detected is achieved, and the technical problem that the reliability of a detection result is low easily caused by dust or water vapor generated in the production process in a mode of detecting parts in an unmanned workshop in the related technology is solved.
In an alternative embodiment, the obtaining 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; and the triggering module is used for triggering the image acquisition equipment to acquire the original image of the article to be detected by taking the background plate as an image acquisition background.
In an alternative embodiment, 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 article 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 includes: the fourth determining module is used for determining the 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 the pixel gray value of each pixel point in the sample image; the second acquisition module is used for subtracting the pixel gray value of each pixel point from the actual gray value to obtain a plurality of gray value difference values; and the fifth determining module is used for taking the multiple gray value differences as the gray value variation of the background image.
In an alternative embodiment, the first obtaining module includes: the extraction submodule is used for extracting a background image from the original image; and the analysis submodule 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 acquiring an initial image of the article 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 article to be detected to obtain a target image.
In an alternative embodiment, the second determining unit includes: the sixth determining module is used for determining the integrity of the article to be detected according to the state information of the article to be detected; the seventh determining module is used for determining the article to be detected as a qualified article under the condition that the integrity of the article to be detected reaches a preset condition; and the eighth determining module is used for determining that the article to be detected is an unqualified article under the condition that the integrity of the article 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 an embodiment of the present invention, 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.
Example 4
According to another aspect of the embodiment of the present invention, there is provided a processor for executing a program, where the program executes the method for determining the quality of an article according to any one of the above methods.
Example 5
According to another aspect of the embodiments of the present invention, there is also provided an article quality determination system including: a memory, a processor coupled to the memory, the memory and the processor communicating via a bus system; the memory is used for storing a program, wherein the program controls the equipment where the memory is arranged to execute any one of the above item quality determination methods when executed by the processor; the processor is configured to execute a program, wherein the program executes the method for determining the quality of an article according to any one of the above.
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.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
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 can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. 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 and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A method for determining the quality of an item, comprising:
acquiring an original image of an article to be detected;
determining the gray value variation of a background image, wherein the background image is an image of a background plate serving as an image acquisition background when an original image of the article to be detected is acquired;
processing the original image based on the gray value variation to obtain a target image of the article to be detected;
analyzing the target image to obtain the state information of the article to be detected;
and determining whether the article to be detected is a qualified article according to the state information of the article to be detected.
2. The method of claim 1, wherein said obtaining an original image of an item to be detected comprises:
determining that the article to be detected is located in the visual center of the image acquisition equipment;
triggering the image acquisition equipment to acquire the original image of the article to be detected by taking the background plate as an image acquisition background.
3. The method of claim 1, wherein determining the variance of the gray value 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 article 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. The method of claim 1, wherein determining the variance of the gray value of the background image comprises:
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 the pixel gray value of each pixel point in the sample image;
the pixel gray value of each pixel point is differed from the actual gray value to obtain a plurality of gray value difference values;
and taking the gray value differences as the gray value variation of the background image.
5. The method according to claim 3 or 4, wherein the obtaining of the environmental gray scale 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.
6. The method according to claim 1, wherein the processing the original image based on the gray value variation to obtain the target image of the object to be detected comprises:
extracting a background matrix of the background image from the original image;
obtaining an initial image of the article to be detected according to the background matrix and the gray value variation;
and filtering the initial image of the article to be detected to obtain the target image.
7. The method according to claim 1, wherein the determining whether the article to be detected is a qualified article according to the status information of the article to be detected comprises:
determining the integrity of the article to be detected according to the state information of the article to be detected;
determining the article to be detected as a qualified article under the condition that the integrity of the article to be detected reaches a preset condition;
and determining the article to be detected as an unqualified article under the condition that the integrity of the article to be detected does not reach the preset condition.
8. The method of any one of claims 1 to 7, wherein the background plate is black.
9. An apparatus for determining the quality of an article, comprising:
the acquisition unit is used for acquiring an original image of an article to be detected;
the device comprises a first determining unit, a second determining unit and a third determining unit, wherein the first determining unit is used for determining the gray value variation of a background image, and the background image is an image of a background plate which is used as an image acquisition background when an original image of the article 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 article to be detected;
the analysis unit is used for analyzing the target image to obtain the state information of the article 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.
10. An article quality determination system, comprising:
a memory, a processor coupled with the memory, the memory and the processor communicating over a bus system;
the memory is used for storing a program, wherein the program when executed by the processor controls the device in which the memory is located to execute the method for determining the quality of an article according to any one of claims 1 to 8;
the processor is configured to execute a program, wherein the program executes the method for determining the quality of an item according to any one of claims 1 to 8.
CN202010159117.XA 2020-03-09 2020-03-09 Method and device for determining quality of article Active CN111340795B (en)

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 true CN111340795A (en) 2020-06-26
CN111340795B 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 (11)

* Cited by examiner, † Cited by third party
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
US20180365845A1 (en) * 2016-08-19 2018-12-20 Soochow University Moving object detection method and 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

Patent Citations (11)

* Cited by examiner, † Cited by third party
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
US20180365845A1 (en) * 2016-08-19 2018-12-20 Soochow University Moving object detection method and system
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)

* Cited by examiner, † Cited by third party
Title
任艳君 等: "基于机器视觉的烟尘在线监测的研究", 《西南大学学报(自然科学版)》, vol. 30, no. 09, pages 163 - 169 *
何艳敏 等, 电子科技大学出版社 *
李占利 等: "胶带输送机智能视频监测与预警方法", 《图学学报》, vol. 38, no. 02, pages 230 - 235 *

Also Published As

Publication number Publication date
CN111340795B (en) 2023-11-10

Similar Documents

Publication Publication Date Title
CN109816678B (en) Automatic nozzle atomization angle detection system and method based on vision
EP2817780A2 (en) Image processing method for detail enhancement and noise reduction
CN115205223B (en) Visual inspection method and device for transparent object, computer equipment and medium
CN109698906B (en) Image-based jitter processing method and device and video monitoring system
CN110880184A (en) Method and device for carrying out automatic camera inspection based on optical flow field
CN108174198B (en) Video image quality diagnosis analysis detection device and application system
CN109636793A (en) The detection system and its detection method of display
JP6616906B1 (en) Detection device and detection system for defective photographing data
CN107909554B (en) Image noise reduction method and device, terminal equipment and medium
CN113096062B (en) Gaussian image quality analysis tool and operation method
KR20180096096A (en) Coastline monitoring apparatus and method using ocean color image
CN115947066B (en) Belt tearing detection method, device and system
KR101395666B1 (en) Surveillance apparatus and method using change of video image
CN116067671B (en) Method, system and medium for testing vehicle paint quality
CN111325731A (en) Installation detection method and device of remote control device
CN111340795A (en) Method and device for determining quality of article
CN115423861A (en) Gas leakage detection method and device, equipment and storage medium
CN115620079A (en) Sample label obtaining method and lens failure detection model training method
CN114972084A (en) Image focusing accuracy evaluation method and system
CN114205578A (en) Video fuzzy anomaly detection method and system based on frequency domain skewness and frequency domain peak value
CN108776146B (en) Method and device for detecting silk-screen lines
CN114219758A (en) Defect detection method, system, electronic device and computer readable storage medium
CN106872483A (en) Optical detection apparatus are solved because of the method for the aeration detection in transparent material
CN111563869B (en) Stain test method for quality inspection of camera module
CN112967224A (en) Electronic circuit board detection system, method and medium based on artificial intelligence

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