CN111091556B - Automatic detection method for scratches on surface of automobile instrument panel - Google Patents

Automatic detection method for scratches on surface of automobile instrument panel Download PDF

Info

Publication number
CN111091556B
CN111091556B CN201911285288.0A CN201911285288A CN111091556B CN 111091556 B CN111091556 B CN 111091556B CN 201911285288 A CN201911285288 A CN 201911285288A CN 111091556 B CN111091556 B CN 111091556B
Authority
CN
China
Prior art keywords
image
instrument panel
icon
symbol
scratch
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
Application number
CN201911285288.0A
Other languages
Chinese (zh)
Other versions
CN111091556A (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.)
Nanjing Institute of Technology
Original Assignee
Nanjing Institute of Technology
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 Nanjing Institute of Technology filed Critical Nanjing Institute of Technology
Priority to CN201911285288.0A priority Critical patent/CN111091556B/en
Publication of CN111091556A publication Critical patent/CN111091556A/en
Application granted granted Critical
Publication of CN111091556B publication Critical patent/CN111091556B/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
    • G06T7/001Industrial image inspection using an image reference approach
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/187Segmentation; Edge detection involving region growing; involving region merging; involving connected component labelling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/26Segmentation of patterns in the image field; Cutting or merging of image elements to establish the pattern region, e.g. clustering-based techniques; Detection of occlusion
    • G06V10/267Segmentation of patterns in the image field; Cutting or merging of image elements to establish the pattern region, e.g. clustering-based techniques; Detection of occlusion by performing operations on regions, e.g. growing, shrinking or watersheds
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/74Image or video pattern matching; Proximity measures in feature spaces
    • G06V10/75Organisation of the matching processes, e.g. simultaneous or sequential comparisons of image or video features; Coarse-fine approaches, e.g. multi-scale approaches; using context analysis; Selection of dictionaries
    • G06V10/751Comparing pixel values or logical combinations thereof, or feature values having positional relevance, e.g. template matching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/60Type of objects
    • G06V20/62Text, e.g. of license plates, overlay texts or captions on TV images
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • G06V30/14Image acquisition
    • G06V30/148Segmentation of character regions
    • G06V30/153Segmentation of character regions using recognition of characters or words
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V2201/00Indexing scheme relating to image or video recognition or understanding
    • G06V2201/02Recognising information on displays, dials, clocks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Multimedia (AREA)
  • Computing Systems (AREA)
  • Artificial Intelligence (AREA)
  • Health & Medical Sciences (AREA)
  • Databases & Information Systems (AREA)
  • Evolutionary Computation (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Software Systems (AREA)
  • Quality & Reliability (AREA)
  • Image Analysis (AREA)
  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
  • Image Processing (AREA)

Abstract

An automatic detection method for scratches on the surface of an automobile instrument panel relates to the technical field of automatic image detection methods. The invention comprises the following steps: 1) inputting an instrument panel image, preprocessing the instrument panel image and removing noise interference; 2) acquiring a complex printing icon/symbol template at the center of an instrument panel image; 3) matching a printing icon/symbol template; 4) acquiring an area in a circle of the instrument panel by adopting a contour detection method; 5) acquiring a connected region of a region in an instrument panel circle by adopting a contour detection method; 6) judging whether the connected domain of the printed icon has a scratch or not; 7) and identifying the detected complicated printed icon/symbol scratch at the center, background scratch and simple printed icon/symbol scratch at the edge in the image. The scratch detection device has the advantages that the scratch of the automobile instrument panel is automatically detected by the computer, the defect of traditional manual detection can be effectively overcome, the printing quality of the instrument panel is guaranteed, the working efficiency is improved, and the production cost is reduced.

Description

Automatic detection method for scratches on surface of automobile instrument panel
Technical Field
The invention relates to the technical field of automatic detection methods for scratches on the surface of an automobile instrument panel.
Background
In recent years, the automobile industry is rapidly developed, the automobile sales volume in China exceeds 2800 thousands in 2018, and the automobile industry is the first in the world in 10 years. As an indispensable guarantee for safe driving of automobiles, the instrument panel is a very important automobile part, and the correctness and the clarity of printing of each warning symbol and icon on the panel are important prerequisites for ensuring the quality and the safety of automobile products.
Scratches on the dashboard of the car may be present in the target area or background area where the scratches may be present on either a complex printed icon/symbol in the center or a simple printed icon/symbol at the edge. At present, the automobile industry in China generally adopts a manual mode to detect the printing quality of instrument panels, the method is greatly influenced by subjective factors of people and external environment, when large batches of instrument panels are detected in the printing quality, the long-time and repeated work easily causes visual fatigue of inspectors, causes false detection and missed detection, and has the defect of low detection efficiency.
Disclosure of Invention
The invention aims to provide an automatic detection method for scratches on the surface of an automobile instrument panel, which adopts a computer to automatically detect scratches of the automobile instrument panel, can effectively overcome the defects of the traditional manual detection, not only ensures the printing quality of the instrument panel, but also improves the working efficiency and reduces the production cost.
An automatic detection method for scratches on the surface of an automobile instrument panel is characterized by comprising the following steps:
1) inputting an instrument panel image, preprocessing the instrument panel image and removing noise interference;
2) acquiring a complex printing icon/symbol template at the center of an instrument panel image;
3) adopting a template matching method to carry out template matching on the printed icons/symbols, judging whether scratches exist in the matched complex printed icon/symbol area at the center, if so, marking out the complex printed icon/symbol area, otherwise, removing the matched complex printed icon/symbol at the center from the instrument panel image;
the template matching method is specifically realized as follows:
and sliding the template image on the original image, and moving one pixel position at a time according to the sequence from left to right and from top to bottom. At each position, the matching metric value R (x, y) is calculated using the following formula, where T (x ', y') is the gray-level value of the template image at (x ', y'), and I (x + x ', y + y') is the gray-level value of the original image at (x + x ', y + y').
Figure BDA0002317799980000021
And counting the sum of squares of the gray difference values of all pixels in the template image and the pixels of the corresponding original image to obtain a matching metric value R (x, y), wherein the smaller the matching value is, the more similar the area corresponding to the original image and the template image are, and otherwise, the more dissimilar the area corresponding to the original image and the template image are.
4) Acquiring an area in a circle of the instrument panel by adopting a contour detection method;
extracting the outlines of all connected domains in the instrument panel image by an outline detection method, then calculating the circumferences of all the outlines, sorting the outlines according to the descending order of the circumferences, and selecting the outline corresponding to the second large circumference value, namely the outline of the circular area in the instrument panel in the graph. Setting the gray value of the pixel outside the outline as 0, and obtaining the image of the area inside the instrument panel circle, as shown in fig. 7.
5) Acquiring a connected region of a region in an instrument panel circle by adopting a contour detection method; judging whether the connected domain is the connected domain of the printed icon at the edge, if so, judging whether the connected domain of the printed icon has a scratch, and if not, judging that the connected domain of the printed icon has the background scratch;
and extracting the outlines of all target areas in the instrument panel circle by adopting an outline detection method, wherein the outlines are represented by a series of pixel point sets, and one pixel point set corresponds to one outline. The region outlined by these pixel point sets is the connected domain. Calculating the average gray value of all pixels in each connected domain, and if the average gray value is between 75 and 160, judging that the region is a background scratch at a non-target region; otherwise, the printing icon connected domain.
6) Judging whether the connected domain of the printed icons has the scratch or not, if so, displaying the simple printed icons/symbols scratch at the edge;
and further judging whether scratches exist in the residual communication area at the edge, carrying out size normalization on the residual communication area image, carrying out binarization operation on the normalized image, counting the number of target pixels in each line in each binary image, comparing the number of the target pixels with the number of the target pixels of the binary image of the corresponding edge standard simple icon/symbol template line by line, and if the difference of the number of the target pixels of n continuous lines is greater than a threshold value T, wherein n is greater than or equal to 5, and T is greater than or equal to 6, judging that the scratches exist in the small communication area.
7) Identifying in the image the complex printed icon/symbol scratch at the center detected in step 3), the background scratch detected in step 5), and the simple printed icon/symbol scratch at the edge detected in step 6).
By adopting the technical scheme, compared with the prior art, the invention has the following advantages:
the invention detects the printed icons/symbols in the input instrument dial circle, and marks the scratches in the target area (the central complex printed icon/symbol), the non-target area (the background) and the target area (the edge simple printed icon/symbol) by using a template matching corner point detection method and a contour detection method. The whole process is automatically completed through a computer, so that the detection precision is improved, the detection time is shortened, and the printing quality detection automation of the automobile instrument panel is realized. False detection and missing detection caused by human eye detection are effectively avoided, the working efficiency is improved, and the production cost is reduced.
Drawings
FIG. 1 is an overall flow chart of the present invention.
Fig. 2a is a schematic illustration of a scratch at the target area (central complex printed icon/symbol).
Fig. 2b is a schematic illustration of a scratch at a non-target area (background).
Figure 2c is a schematic illustration of the scratch at the target area (simply printed icon/symbol at the edge).
Fig. 3 is a schematic illustration of a complex printed icon/symbol template.
Figure 4 is a schematic view of a simple edge printed icon/symbol template.
Fig. 5a is a schematic diagram of the matching of the scratched icon/symbol image.
Fig. 5b is a schematic diagram of a standard complex printed icon/symbol template corresponding to fig. 5 a.
Fig. 6a is a schematic diagram of fig. 2a after the image is removed.
Fig. 6b is a schematic diagram of fig. 2b after the image is removed.
Fig. 6c is a schematic diagram of fig. 2c after the image is removed.
Fig. 7a is a schematic view of the circled area in fig. 2 a.
Fig. 7b is a schematic view of the circled area in fig. 2 b.
Fig. 7c is a schematic view of the circled area in fig. 2 c.
Fig. 8a is a scratch at the non-target area (background) detected in fig. 7 b.
Fig. 8b is a scratch at the non-target area (background) detected in fig. 7 c.
Fig. 9a is a schematic illustration showing the scratched area in fig. 7 c.
Fig. 9b is a schematic diagram of a standard simple printed icon/symbol template corresponding to fig. 9 a.
Fig. 10a is a schematic illustration of a scratch at the target area (central complex printed icon/symbol).
Fig. 10b is a schematic illustration of a scratch at a non-target area (background).
Fig. 10c is a schematic illustration of the scratch at the target area (simply print icon/symbol at the edge).
Detailed Description
The technical scheme of the invention is explained in the following with the accompanying drawings:
as shown in fig. 1, an automatic detection method for scratches on the surface of an automobile instrument panel includes the following steps:
1) inputting an instrument panel image, preprocessing the instrument panel image and removing noise interference;
2) acquiring a complex printing icon/symbol template at the center of an instrument panel image;
3) performing template matching on the printed icons/symbols by adopting a template matching method, and removing the matched complex printed icons/symbols at the center from the instrument panel image;
the template matching method is specifically realized as follows:
the template image of fig. 3 is slid on the original image of fig. 2, and the positions are shifted one pixel at a time in the order of left to right and top to bottom. At each position, the matching metric value R (x, y) is calculated using the formula, where T (x ', y') is the gray-level value of the template image at (x ', y'), and I (x + x ', y + y') is the gray-level value of the original image at (x + x ', y + y').
Figure BDA0002317799980000051
And counting the sum of squares of the gray difference values of all pixels in the template image and the pixels of the corresponding original image to obtain a matching metric value R (x, y), wherein the smaller the matching value is, the more similar the area corresponding to the original image and the template image are, and otherwise, the more dissimilar the area corresponding to the original image and the template image are.
4) Acquiring an area in a circle of the instrument panel by adopting a contour detection method;
the specific method comprises the following steps:
extracting the outlines of all connected domains in the instrument panel image by an outline detection method, then calculating the circumferences of all the outlines, sorting the outlines according to the descending order of the circumferences, and selecting the outline corresponding to the second large circumference value, namely the outline of the circular area in the instrument panel in the graph. Setting the gray value of the pixel outside the outline as 0, and obtaining the image of the area inside the instrument panel circle, as shown in fig. 7.
5) Acquiring a connected region of a region in an instrument panel circle by adopting a contour detection method; judging whether the connected domain is the connected domain of the printed icon at the edge, if so, judging whether the connected domain of the printed icon has a scratch, and if not, judging that the connected domain of the printed icon has the background scratch;
and extracting the outlines of all target areas in the instrument panel circle by adopting an outline detection method, wherein the outlines are represented by a series of pixel point sets, and one pixel point set corresponds to one outline. The region outlined by these pixel point sets is the connected domain. Calculating the average gray value of all pixels in each connected domain, and if the average gray value is between 75 and 160, judging that the region is a background scratch at a non-target region; otherwise, the printing icon connected domain.
6) Judging whether the connected domain of the printed icons has a scratch result, if so, displaying simple printed icons/symbols scratches at the edge;
the specific method comprises the following steps:
and further judging whether scratches exist in the residual communication area at the edge, carrying out size normalization on the residual communication area image, carrying out binarization operation on the normalized image, counting the number of target pixels in each line in each binary image, comparing the number of the target pixels with the number of the target pixels of the binary image of the corresponding edge standard simple icon/symbol template line by line, and if the difference of the number of the target pixels of n continuous lines is greater than a threshold value T, wherein n is greater than or equal to 5, and T is greater than or equal to 6, judging that the scratches exist in the small communication area.
7) Identifying in the image the complex printed icon/symbol scratch at the center detected in step 3), the background scratch detected in step 5), and the simple printed icon/symbol scratch at the edge detected in step 6).
In the step 1), the input instrument panel image is manually cut, and a plurality of small icons which belong to the same printed icon/symbol but are not communicated in area are integrally cut to manufacture a template; meanwhile, a contour detection method is adopted to obtain simple icon/symbol templates with communicated edge areas.
Acquiring a complex printed icon/symbol template at the center of an instrument panel image in step 2) of the invention, carrying out template matching on an automobile instrument panel image, and carrying out size normalization on the matched icon/symbol image; and (3) carrying out binarization operation on the normalized image, counting the number of target pixels of each line in each binary image, comparing the counted number of the target pixels of each line with the number of the target pixels of each line of the corresponding standard template binary image, and if the difference of the number of the target pixels of n continuous lines is greater than a threshold value T, wherein n is greater than or equal to 5, and T is greater than or equal to 6, judging that the matched printed icon/symbol has a scratch.
In the step 5), all connected regions in the graph are obtained by adopting a contour detection method, the contour of each target region in the instrument panel circle is extracted by adopting a contour detection method, the contours are represented by a series of pixel point sets, and one pixel point set corresponds to one contour. The region outlined by these pixel point sets is the connected domain. Calculating the average gray value of each connected region, and if the average gray value is between 75 and 160, judging that the region is a scratch at a non-target region; and further judging whether scratches exist in the residual communication area at the edge, carrying out size normalization on the residual communication area image, carrying out binarization operation on the normalized image, counting the number of target pixels in each line in each binary image, comparing the number of the target pixels with the number of the target pixels of the binary image of the corresponding edge standard simple icon/symbol template line by line, and if the difference of the number of the target pixels of n continuous lines is greater than a threshold value T, wherein n is greater than or equal to 5, and T is greater than or equal to 6, judging that the scratches exist in the small communication area.
As shown in fig. 2a, 2b, and 2c, three types of car dashboard images are inputted, wherein fig. 2a shows that the scratch is at the target area (the central complex printed icon/symbol), fig. 2b shows that the scratch is at the non-target area (background), and fig. 2c shows that the scratch is at the target area (the edge simple printed icon/symbol). Since there are many kinds of printed icons/symbols in the central area of the dashboard, and the same printed icon/symbol is composed of a plurality of small icons, it is not convenient to judge the whole connected domain, therefore, a manual cutting method is adopted here to cut the whole of the plurality of small icons which belong to the same printed icon/symbol but are not connected in the area, and make into a template, as shown in fig. 3. Meanwhile, a simple icon/symbol template with connected edge regions is obtained by adopting a contour detection method, as shown in fig. 4.
And (3) performing template matching on the automobile instrument panel image by using the complex printed icon/symbol template (as shown in figure 3) at the center acquired in the step (2), and performing size normalization on the matched icon/symbol image. And (3) carrying out binarization operation on the normalized image, counting the number of target pixels in each line of each binary image, comparing the counted number of the target pixels in each line with the number of the target pixels in each line of the corresponding standard template binary image, and if the difference between the number of the target pixels in n continuous lines (n is more than or equal to 5) is more than a threshold value T (T is more than or equal to 6), judging that the matched printing icon/symbol has a scratch, as shown in fig. 5a and 5 b. Fig. 5a is a matching image of a scratched icon/symbol. Fig. 5b is a schematic diagram of a standard complex printed icon/symbol template corresponding to fig. 5 a.
Removing the complex icon/symbol at the center obtained by matching in step 3 from the dashboard image, as shown in fig. 6a, 6b, and 6c, where fig. 6a is a display diagram of fig. 2a after the image is removed, fig. 6b is a display diagram of fig. 2b after the image is removed, and fig. 6c is a display diagram of fig. 2c after the image is removed. And obtaining the area in the instrument panel circle by adopting a contour detection method, extracting the contour of each connected area in the instrument panel image by adopting the contour detection method, then calculating the perimeter of each contour, sequencing the contours in a descending order according to the size of the perimeter, and selecting the contour corresponding to the second large perimeter value, namely the contour of the area in the instrument panel circle in the image. Setting the gray value of the pixel outside the outline to 0, to obtain the image of the area inside the circle of the instrument panel, as shown in fig. 7a, 7b, and 7c, wherein fig. 7a is a schematic display diagram of the area inside the circle of fig. 2a, fig. 7b is a schematic display diagram of the area inside the circle of fig. 2b, and fig. 7c is a schematic display diagram of the area inside the circle of fig. 2 c.
On the basis of fig. 7, all connected small regions in the map are obtained by using a contour detection method, an average gray value of each connected small region is calculated, and if the average gray value is between 75 and 160, the region is determined to be a scratch at a non-target region (background), as shown in fig. 8a and 8 b. Where fig. 8a is the scratch at the non-target area (background) detected in fig. 7b, and fig. 8b is the scratch at the non-target area (background) detected in fig. 7 c.
And further judging whether scratches exist in the residual connected small areas at the edges. Performing size normalization on the remaining connected small region images, performing binarization operation on the normalized images, counting the number of target pixels in each line of each binary image, and comparing the number of target pixels with the number of target pixels of a corresponding edge standard simple icon/symbol template (such as fig. 4) line by line, if the difference between the number of target pixels of n consecutive lines (n is greater than or equal to 5) is greater than a threshold value T (T is greater than or equal to 6), determining that a scratch exists in the connected small region, as shown in fig. 9a and 9b, wherein fig. 9a is the scratch detected in fig. 7c at the target region (edge simple printed icon/symbol), and fig. 9b is the standard simple printed icon/symbol template corresponding to fig. 9 a.
Finally, the scratches detected in steps 3, 5 and 6 are marked with red frames on the original drawing, as shown in fig. 10, where fig. 10a is a graph of the detection result of the scratch in the target area (the center complex printed icon/symbol), fig. 10b is a graph of the detection result of the scratch in the non-target area (the background), and fig. 10c is a graph of the detection result of the scratch in the target area (the edge simple printed icon/symbol). Note that fig. 10c also includes the scratch detection result at the non-target region (background).
The invention detects the printed icons/symbols in the input instrument dial circle, and marks the scratches in the target area (the central complex printed icon/symbol), the non-target area (background) and the target area (the edge simple printed icon/symbol) by using a template matching method and a contour detection method. The whole process is automatically completed through a computer, so that the detection precision is improved, the detection time is shortened, and the printing quality detection automation of the automobile instrument panel is realized.

Claims (4)

1. An automatic detection method for scratches on the surface of an automobile instrument panel is characterized by comprising the following steps:
1) inputting an instrument panel image, preprocessing the instrument panel image and removing noise interference;
2) acquiring a complex printing icon/symbol template at the center of an instrument panel image;
3) adopting a template matching method to carry out template matching on the printed icons/symbols, judging whether scratches exist in the matched complex printed icon/symbol area at the center, if so, marking out the complex printed icons/symbols, and if not, removing the matched complex printed icons/symbols at the center from the instrument panel image;
the template matching method is specifically realized as follows:
sliding the template image on the original image, moving one pixel position at a time according to the sequence from left to right and from top to bottom, and calculating a matching metric value R (x, y) at each position by using the following formula, wherein T (x ', y') is the gray value of the template image on (x ', y'), and I (x + x ', y + y') is the gray value of the original image on (x + x ', y + y');
Figure FDA0002317799970000011
counting the sum of squares of gray difference values of all pixels in the template image and pixels of the corresponding original image to obtain a matching metric value R (x, y), wherein the smaller the matching value is, the more similar the area corresponding to the original image and the template image are, and otherwise, the more dissimilar the area corresponding to the original image and the template image are;
4) acquiring an area in a circle of the instrument panel by adopting a contour detection method;
extracting the outlines of all connected areas in the instrument panel image through an outline detection method, then calculating the perimeters of all the outlines, sorting the perimeters of the outlines according to descending order of the sizes, and selecting the outline corresponding to the second large perimeter value, namely the outline of the area in the instrument panel circle in the graph; setting the gray value of the pixel outside the outline as 0 to obtain an area image inside the instrument panel circle;
5) acquiring a connected region of a region in an instrument panel circle by adopting a contour detection method; judging whether the connected domain is the connected domain of the printed icon at the edge, if so, judging whether the connected domain of the printed icon has a scratch, and if not, judging that the connected domain of the printed icon has the background scratch;
extracting the outlines of all target areas in the instrument panel circle by adopting an outline detection method, wherein the outlines are represented by a series of pixel point sets, one pixel point set corresponds to one outline, the areas outlined by the pixel point sets are connected areas, the average gray value of all pixels in each connected area is calculated, and if the average gray value is 75-160, the area is judged to be a background scratch in a non-target area; otherwise, the printing icon is a connected domain;
6) judging whether the connected domain of the printed icon has a scratch or not; if so, then a simple print icon/symbol scratch at the edge is displayed;
judging whether scratches exist in the remaining connected regions at the edges, carrying out size normalization on the images of the remaining connected regions, carrying out binarization operation on the normalized images, counting the number of target pixels in each line of each binary image, comparing the number of the target pixels with the number of target pixels of the binary images of the corresponding standard simple icon/symbol templates at the edges line by line, and if the difference of the number of the target pixels of n continuous lines is greater than a threshold value T, wherein n is greater than or equal to 5, and T is greater than or equal to 6, judging that the scratches exist in the small connected regions;
7) identifying in the image the complex printed icon/symbol scratch at the center detected in step 3), the background scratch detected in step 5), and the simple printed icon/symbol scratch at the edge detected in step 6).
2. The method according to claim 1, wherein in step 1), the inputted dashboard image is manually cut, and a plurality of small icons belonging to the same printed icon/symbol but not connected in area are integrally cut to form a template; meanwhile, a contour detection method is adopted to obtain simple icon/symbol templates with communicated edge areas.
3. The method for automatically detecting scratches on the surface of an automobile instrument panel according to claim 1, wherein the complex printed icon/symbol template obtained in the center of the instrument panel image in step 2) is used for template matching of the automobile instrument panel image, and the size normalization of the matched icon/symbol image is performed; and (3) carrying out binarization operation on the normalized image, counting the number of target pixels of each line in each binary image, comparing the counted number of the target pixels of each line with the number of the target pixels of each line of the corresponding standard template binary image, and if the difference of the number of the target pixels of n continuous lines is greater than a threshold value T, wherein n is greater than or equal to 5, and T is greater than or equal to 6, judging that the matched printed icon/symbol has a scratch.
4. The method according to claim 1, wherein in the step 5), a contour detection method is used to obtain connected regions of the area in the dashboard circle, an average gray value of each connected region is calculated, and if the average gray value is between 75 and 160, the area is determined to be the scratch in the non-target area; and further judging whether scratches exist in the residual communication area at the edge, carrying out size normalization on the residual communication area image, carrying out binarization operation on the normalized image, counting the number of target pixels in each line in each binary image, comparing the number of the target pixels with the number of the target pixels of the binary image of the corresponding edge standard simple icon/symbol template line by line, and if the difference of the number of the target pixels of n continuous lines is greater than a threshold value T, wherein n is greater than or equal to 5, and T is greater than or equal to 6, judging that the scratches exist in the small communication area.
CN201911285288.0A 2019-12-13 2019-12-13 Automatic detection method for scratches on surface of automobile instrument panel Active CN111091556B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911285288.0A CN111091556B (en) 2019-12-13 2019-12-13 Automatic detection method for scratches on surface of automobile instrument panel

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911285288.0A CN111091556B (en) 2019-12-13 2019-12-13 Automatic detection method for scratches on surface of automobile instrument panel

Publications (2)

Publication Number Publication Date
CN111091556A CN111091556A (en) 2020-05-01
CN111091556B true CN111091556B (en) 2022-04-12

Family

ID=70396109

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911285288.0A Active CN111091556B (en) 2019-12-13 2019-12-13 Automatic detection method for scratches on surface of automobile instrument panel

Country Status (1)

Country Link
CN (1) CN111091556B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105447854A (en) * 2015-11-12 2016-03-30 程涛 Small-size glass panel surface defect detection method and small-size glass panel surface defect detection system
CN107255641A (en) * 2017-06-06 2017-10-17 西安理工大学 A kind of method that Machine Vision Detection is carried out for GRIN Lens surface defect
CN108355987A (en) * 2018-01-08 2018-08-03 西安交通大学 A kind of screen printing of battery quality determining method based on piecemeal template matches
CN108389179A (en) * 2018-01-15 2018-08-10 湖南大学 A kind of cover detection method of surface flaw based on machine vision
CN110533660A (en) * 2019-09-03 2019-12-03 博科视(苏州)技术有限公司 A kind of detection method of electronic product casing silk-screen defect

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105447854A (en) * 2015-11-12 2016-03-30 程涛 Small-size glass panel surface defect detection method and small-size glass panel surface defect detection system
CN107255641A (en) * 2017-06-06 2017-10-17 西安理工大学 A kind of method that Machine Vision Detection is carried out for GRIN Lens surface defect
CN108355987A (en) * 2018-01-08 2018-08-03 西安交通大学 A kind of screen printing of battery quality determining method based on piecemeal template matches
CN108389179A (en) * 2018-01-15 2018-08-10 湖南大学 A kind of cover detection method of surface flaw based on machine vision
CN110533660A (en) * 2019-09-03 2019-12-03 博科视(苏州)技术有限公司 A kind of detection method of electronic product casing silk-screen defect

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
汽车仪表盘印刷片缺陷检测技术应用研究;邓书勤;《中国优秀硕士学位论文全文数据库 (工程科技Ⅱ辑)》;20180815;全文 *

Also Published As

Publication number Publication date
CN111091556A (en) 2020-05-01

Similar Documents

Publication Publication Date Title
CN109816644B (en) Bearing defect automatic detection system based on multi-angle light source image
CN103439348B (en) Remote controller key defect detection method based on difference image method
CN105913093A (en) Template matching method for character recognizing and processing
CN111986190A (en) Printed matter defect detection method and device based on artifact elimination
CN110567976B (en) Mobile phone cover plate silk-screen defect detection device and detection method based on machine vision
CN109409355B (en) Novel transformer nameplate identification method and device
EP3556576A1 (en) Process and system for the detection of defects in a tyre
CN109767445B (en) High-precision PCB defect intelligent detection method
CN106845545B (en) Image recognition method and device in automatic digital electric meter calibration device
CN113083804A (en) Laser intelligent derusting method and system and readable medium
CN111127410B (en) Automatic detection method for printing flaws of automobile instrument panel
CN114926410A (en) Method for detecting appearance defects of brake disc
CN109472257B (en) Character layout determining method and device
CN114627089A (en) Defect identification method, defect identification device, computer equipment and computer readable storage medium
CN104112123A (en) Defect characteristic extraction and identification method of AOI system used for bullet apparent defect detection
CN114897868A (en) Pole piece defect identification and model training method and device and electronic equipment
CN111091556B (en) Automatic detection method for scratches on surface of automobile instrument panel
CN113916893A (en) Method for detecting die-cutting product defects
CN113569677A (en) Paper test report generation method based on scanning piece
CN113724322A (en) Cargo pallet positioning method and system for unmanned forklift
CN116402822B (en) Concrete structure image detection method and device, electronic equipment and storage medium
CN111028209B (en) Telephone silk-screen quality detection method and system
CN109886912B (en) Method for detecting surface defects of thrust bearing retainer
CN115170561A (en) Roundness detection method and system of laser cutting workpiece based on visual processing
CN111861997B (en) Method, system and device for detecting circular hole size of patterned plate

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