[go: up one dir, main page]

CN120580237B - Map printed matter quality detection method and system - Google Patents

Map printed matter quality detection method and system

Info

Publication number
CN120580237B
CN120580237B CN202511086107.7A CN202511086107A CN120580237B CN 120580237 B CN120580237 B CN 120580237B CN 202511086107 A CN202511086107 A CN 202511086107A CN 120580237 B CN120580237 B CN 120580237B
Authority
CN
China
Prior art keywords
target
area
region
map
grayscale image
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
CN202511086107.7A
Other languages
Chinese (zh)
Other versions
CN120580237A (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.)
China Coal Land Xi'an Map Printing Co ltd
Aerial Photogrammetry and Remote Sensing Co Ltd
Original Assignee
China Coal Land Xi'an Map Printing Co ltd
Aerial Photogrammetry and Remote Sensing 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 China Coal Land Xi'an Map Printing Co ltd, Aerial Photogrammetry and Remote Sensing Co Ltd filed Critical China Coal Land Xi'an Map Printing Co ltd
Priority to CN202511086107.7A priority Critical patent/CN120580237B/en
Publication of CN120580237A publication Critical patent/CN120580237A/en
Application granted granted Critical
Publication of CN120580237B publication Critical patent/CN120580237B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Image Analysis (AREA)

Abstract

The invention belongs to the technical field of image processing, and particularly relates to a map printed matter quality detection method and system, wherein the method comprises the steps of partitioning all gray level images; the method comprises the steps of obtaining first integrity of each region in a target gray level image according to differential expression of each region in the target gray level image and a corresponding region in a standard gray level image, obtaining second integrity of each region in the target gray level image according to presentation of an associated map structure of each region in the target gray level image and a neighborhood region, obtaining overall integrity of each region in the target gray level image, marking a central defect region and a corresponding radiation defect region of the target gray level image as a defect region, calculating defect indexes of the defect regions, and evaluating quality of map prints. The invention improves the accuracy and speed of the quality detection of the map printed matter.

Description

Map printed matter quality detection method and system
Technical Field
The invention relates to the technical field of image processing. More particularly, the invention relates to a map printing quality detection method and system.
Background
In the map printing production process, defects such as missing printing and spots of map printed matters may occur due to factors such as printing process, mechanical precision, detection environment and the like, so that the printed map products need to be detected. At present, a machine vision technology is commonly adopted, quality detection is carried out on a printed matter by a reference method, the process comprises the steps of selecting a standard printed matter template, collecting a printed matter image, preprocessing the printed matter image, carrying out image difference with the standard printed matter template, and determining the quality of the printed matter according to a difference result.
In the related art, for example, chinese patent document CN109840499B discloses a method for rapidly detecting print and binding quality of a printed matter, which discloses a feature matching algorithm based on dynamic time warping to measure similarity between an image to be detected and a reference image, and determine quality of the printed matter to be detected. The Chinese patent document with the authorized bulletin number of CN119130972B discloses a printed matter quality online detection method and a system, which detect defects of printed matters by setting different scanning frame sizes and multi-level scanning methods, and compare a subarea of an image to be detected with a subarea of a standard image so as to enable type division to be more detailed and accurate.
However, in the quality detection process of the printed matter, because the map product has higher information content than the general printed matter, taking a natural geographic diagram as an example, different administrative areas are distinguished by lines and color blocks, and natural geographic features such as mountains, rivers and the like and place names exist in each administrative area, the map printed matter needs higher detection precision, and defects can cause associated interference and the actual influence of amplification defects, so that the current quality detection effect on the map printed matter is poor.
Disclosure of Invention
In order to solve the above-described problem of poor detection effect when a map print is detected by using a reference method, the present invention provides the following aspects.
In a first aspect, the present invention provides a map print quality detection method, including:
the method comprises the steps of obtaining images of a plurality of maps to be tested of a map, preprocessing all the images of the map to be tested through manual screening of standard images, registering the images in the same coordinate system to obtain a plurality of grey maps to be tested and standard grey maps, recording any grey map to be tested as a target grey map, partitioning all the grey maps based on an edge detection algorithm and grey distribution to obtain a plurality of areas of any grey map, obtaining first integrity of each area in the target grey map according to differential expression of each area in the target grey map and a corresponding area in the standard grey map, obtaining second integrity of each area in the target grey map according to an associated map structure of each area in the target grey map and a neighborhood area, combining the first integrity with the second integrity to obtain overall integrity of each area in the target grey map, obtaining a central defect area and a corresponding radiation defect area of the target grey map according to change rules of the overall integrity of the areas in the target grey map, calculating the overall integrity of the areas and evaluating the map to be used for printing quality of the map.
According to the invention, the map printed matter is divided according to the regional shape according to the map characteristics, so that the defect area can be rapidly positioned during quality detection, and the efficiency of detecting the quality of the map printed matter is improved. According to the method and the device, the overall integrity of the region is obtained according to the shape of the region and the associated map structure, and the quality judgment is carried out on the subareas of the map from a more accurate angle, so that the quality detection of the map printed matter is more accurate and more effective.
Preferably, the acquiring several areas of any gray scale map includes:
Performing edge detection on all the gray images to obtain corresponding edge images of the gray images;
The ith edge pixel point of the edge image of the target gray scale image is marked as Acquisition ofPresetting a first threshold value in a left neighborhood A pixel point and a right neighborhood A pixel point in the normal direction of an edge, and recording the difference value between the gray average value of the left neighborhood A pixel point and the gray average value of the right neighborhood A pixel point asIf (if)Greater than the first threshold value, thenMarking as boundary pixel point ifLess than or equal to the first threshold value, thenMarking as characteristic pixel points;
Any gray level map is divided into a plurality of closed subareas by boundary pixel points, and the any closed subareas are marked as one area to obtain a plurality of areas of the gray level map.
The invention effectively divides the areas according to the regional color block difference and the edge pixel points of the map, so that the integrity of the map region is ensured on the basis of reducing the quality detection range and improving the quality detection effect.
Preferably, the obtaining the first integrity of each region in the target gray scale image includes:
marking any area of the target gray scale map as a target area, and making a difference between a gray scale matrix of the target area and a gray scale matrix of a corresponding area in the standard gray scale map to obtain a differential gray scale matrix of the target area;
The first integrity of the target region satisfies the expression:
;
In the formula, Representing a first integrity of the target region; The DTW distance between the chain code of the target area and the chain code of the corresponding area of the target area in the standard gray scale map is represented; An average value of the differential gray matrix representing the target area; the number of values greater than 0 in the differential gray matrix representing the target area.
The invention compares the target area with the corresponding area in the standard gray scale image based on the differential technology, and the differential technology shows that the larger the differential result value is, the larger the difference between the target area and the corresponding area is, so that the lower the first integrity of the target area is embodied.
Preferably, the obtaining the chain code of the target area includes:
And acquiring the eight-direction chain code of the boundary pixel point of the target area in the clockwise direction by taking the pixel point of the target area closest to the origin point of the coordinate system as a starting point.
Preferably, the obtaining the second integrity of each region in the target gray scale image includes:
acquiring natural features of any gray level diagram, taking a pixel point with the nearest distance between the natural features and the origin of a coordinate system as a starting point, acquiring eight-direction chain codes of the natural features in a clockwise direction, and marking a v-th region of a u-th natural feature of a standard gray level diagram as a v-th region of the standard gray level diagram Acquiring the sum of the target gray level diagramCorresponding regions, noted as target gray-scale mapIs a control region of (2);
Calculating target gray scale map The second integrity of the target gray map with respect to the comparison area of the belonging area is marked as the second integrity of the target area if the comparison area of the target area is not the comparison area, and the second integrity of the target area is marked as 1 if the target area is not the comparison area.
According to the invention, natural features are used as key areas, and the second integrity of each area is calculated, so that the quality detection precision of the map printed matter is ensured and the accuracy of the quality detection of the map printed matter is improved from the aspect of being beneficial to practical use.
Preferably, the acquiring the natural characteristic of the arbitrary gray scale map includes:
And obtaining boundary pixel points adjacent to the characteristic pixel points, marking the boundary pixel points as equivalent characteristic pixel points, marking the arbitrary characteristic pixel points as growth seeds, carrying out regional growth, wherein the growth condition is that the adjacent pixel points have the characteristic pixel points or the equivalent characteristic pixel points, the growth stop condition is that the adjacent pixel points have no adjacent pixel points and have no equivalent characteristic pixel points, and after the growth is stopped, if the non-grown characteristic pixel points exist, selecting the growth seeds from the non-grown characteristic pixel points until all the characteristic pixel points have the growth regions, marking the arbitrary growth regions as a natural characteristic, and obtaining a plurality of natural characteristics of the gray map.
Preferably, the target gray scale map relates toThe second degree of integrity of the control region of (2) satisfies the expression:
;
In the formula, Representing target gray-scale image with respect toIs a second integrity of the control zone of (a); representing target gray-scale image with respect to The number of pixels belonging to the natural feature in the comparison area; Representation of The number of pixels belonging to the natural feature; representing target gray-scale image with respect to Is a natural feature quantity of the control region; representing target gray-scale image with respect to Chain code of the r-th natural feature of the comparison region, andDTW distance of the chain code of the natural features.
Preferably, the obtaining the overall integrity of each region in the target gray scale image includes:
and adding the first integrity of the target area and the second integrity of the target area, and carrying out positive correlation normalization to obtain the overall integrity of the target area.
Preferably, the defect index of the arbitrary defect region satisfies the expression:
;
In the formula, A defect index indicating an h-th defect region; representing the number of areas of the h-th defective area; The number of pixels in the s-th region representing the h-th defective region; Indicating the overall integrity of the s-th region of the h-th defective region.
The invention obtains the defect index of the defect area more comprehensively based on the area of the defect area and the total integrity of each area, so that the map quality can be judged from multiple dimensions, and the accuracy of the quality detection of the map printed matter is further improved.
In a second aspect, the present invention provides a map print quality detection system comprising a processor and a memory, the memory storing computer program instructions which, when executed by the processor, implement a map print quality detection method as described above.
By adopting the technical scheme, the map printing quality detection method generates a computer program, stores the computer program in the memory and is loaded and executed by the processor, so that terminal equipment is manufactured according to the memory and the processor, and the map printing quality detection method is convenient to use.
The invention has the beneficial effects that:
(1) Based on the image characteristics of the map, the quality of the map is analyzed from the shape and natural geographic characteristics of the map printed matter, so that the quality detection accuracy of the map printed matter is improved;
(2) The invention also divides the map gray level map according to the regional distribution, so that the defect region can be rapidly positioned when the defect is found, the defect region is referred to, and the quality detection efficiency of the map printed matter is improved;
(3) The invention combines the areas of the defects, considers the associated interference and further improves the quality detection accuracy of the map printed matter.
Drawings
Fig. 1 is a flowchart schematically showing a map print quality detection method in the present invention;
fig. 2 is a schematic diagram schematically showing boundary pixel points and feature pixel points.
Detailed Description
The embodiment of the invention discloses a map printed matter quality detection method, which comprises the following steps of S1-S4 with reference to FIG. 1:
S1, acquiring images of a plurality of maps to be detected of a map, preprocessing the images of all the maps to be detected through manual screening of standard images, registering to obtain a plurality of gray level images to be detected and standard gray level images, which are commonly called gray level images, and recording any gray level image to be detected as a target gray level image.
It should be noted that, the map printing environment is complex, and the difference between the map printing environment and the map template in the computer environment is large, so in order to obtain the quality of the map printed matter more accurately, the invention screens the images of all the maps to be detected manually, thereby obtaining the map detection result more in line with the real environment.
Specifically, an industrial camera is used for collecting images of all printed matters after map printing, the images are respectively recorded as images of a map to be detected, and standard images are screened manually. The standard image can present the details in the map to the maximum extent, and there is no region such as a defect or shadow that affects the viewing of the map.
The method comprises the steps of preprocessing images of all the maps to be detected, including graying and geometric correction, wherein the graying can keep colors to the greatest extent through a weighted average method, for example, the weights of RGB three spaces can be set to be 0.3, 0.6 and 0.1, the geometric correction method can adopt SIFT algorithm-based feature matching of the images of the maps to be detected and standard images, all matching points are placed in the same coordinate system, image registration of the maps to be detected is completed, and a plurality of gray maps to be detected and standard gray maps are obtained and are commonly called as gray maps. The origin of the coordinate system is the first pixel point of the lower left corner of the standard image, and the positive direction of the horizontal axis and the positive direction of the vertical axis of the coordinate system are the right side and the upper side of the first pixel point of the sitting corner of the standard image respectively.
Thus, a gray scale image set consisting of a plurality of gray scale images to be measured and a standard gray scale image is obtained.
S2, partitioning all gray level images based on an edge detection algorithm and gray level distribution to obtain a plurality of areas of any gray level image, and obtaining first integrity of each area in the target gray level image according to differential expression of each area in the target gray level image and a corresponding area in the standard gray level image.
It should be noted that, the map printed matter has a greater influence on the defect of the text printed matter, for example, when ink marks appear at the boundary of the area, all adjacent areas are affected to view, so that the map printed matter is divided according to the areas in consideration of the uniqueness of the map printed matter, thereby establishing a map printed matter quality detection model from a more accurate dimension, rapidly positioning the defect and determining the influence caused.
It should be further noted that, comparing the region of the target gray scale map with the corresponding region in the standard gray scale map can obtain the relative difference of the region of the target gray scale map, the map print is used for accurately showing the region shape and the natural geographic features, so that the difference of the non-feature pixels does not affect the quality of the map print, and therefore, the invention firstly determines the feature expression of the pixels with larger relative difference between the region of the target gray scale map and the corresponding region in the standard gray scale map, and further calculates the first integrity of each region in the target gray scale map.
Specifically, based on an edge detection algorithm and gray distribution, all gray maps are partitioned, and a plurality of areas of any gray map are obtained, including:
And carrying out edge detection on all the gray level images to obtain corresponding edge images of the gray level images.
It should be noted that, in the corresponding edge image of the gray scale image, the edges are divided into boundary type edges and feature type edges, the boundary type edges are used for distinguishing different regions, the feature type edges are used for representing natural features such as rivers, the rivers flow through multiple places, so that the feature type edges can intersect with the boundary type edges, each partition cannot be guaranteed to be a complete region only according to the edge detection result, and map color blocks of adjacent regions are different, so that the regions can be divided by combining gray scale distribution.
The ith edge pixel point of the edge image of the target gray scale image is marked asAcquisition ofPresetting a first threshold value in a left neighborhood A pixel point and a right neighborhood A pixel point in the normal direction of an edge, and recording the difference value between the gray average value of the left neighborhood A pixel point and the gray average value of the right neighborhood A pixel point asIf (if)Greater than the first threshold value, thenMarking as boundary pixel point ifLess than or equal to the first threshold value, thenAnd is marked as a characteristic pixel point. The value of A is a preset value, which can be set to 5, and the first threshold value is set to 10. It should be noted that, the boundary pixel points are pixel points for distinguishing different areas of the map, and the feature pixel points are used for representing natural features. Fig. 2 is a schematic diagram of boundary pixels and feature pixels.
Any gray level map is divided into a plurality of closed subareas by boundary pixel points, and the any closed subareas are marked as one area to obtain a plurality of areas of the gray level map.
Thus, several areas of each gray scale map are acquired.
What is needed is that the gray matrix of the corresponding area in the standard gray map is differentiated from the area of the target gray map, when the shape of the area of the target gray map is complete and has no defect, the differential result is zero matrix, and the more serious the defect of the area of the target gray map is, the more the matrix of the differential result is, and when the area of the target gray map has interference defect, the data in the matrix of the differential result is regularly distributed, so the first integrity of each area in the target gray map is obtained according to the differential expression and the data distribution of each area in the target gray map and the corresponding area in the standard gray map.
Preferably, the obtaining the first integrity of each region in the target gray scale image according to the differential expression of each region in the target gray scale image and the corresponding region in the standard gray scale image includes:
And marking any region of the target gray scale map as a target region, and obtaining a differential gray scale matrix of the target region by making a difference between the gray scale matrix of the target region and the gray scale matrix of the corresponding region in the standard gray scale map.
And acquiring the chain code of any region, namely taking the target region as an example, taking the pixel point with the closest distance between the target region and the origin of the coordinate system as a starting point, and acquiring the eight-direction chain code of the boundary pixel point of the target region in the clockwise direction. The chain codes are numerical sequences describing the shapes, and the shapes are similar when the chain codes are similar.
The first integrity of the target region satisfies the expression:
;
In the formula, Representing a first integrity of the target region; The DTW distance between the chain code of the target area and the chain code of the corresponding area of the target area in the standard gray scale map is represented; An average value of the differential gray matrix representing the target area; The number of values greater than 0 in the differential gray matrix representing the target area. The DTW distance is an index for evaluating the similarity between two sequences in the dynamic time warping algorithm.
In the formula,The ratio of each value larger than 0 in the average value of the differential gray matrix representing the target area is larger, and the larger the value is, the smaller the value larger than 0 is at the same time of the larger average value, so that the defects of the target area are more concentrated and can be focused by human eyes, thereby influencing map viewing, and further representing that the first integrity of the target area is lower; The larger the value representing the difference between the shape of the target region and the shape of the corresponding region of the target region in the standard gray scale map, the larger the shape difference, thereby representing that the target region has difficulty in satisfying the description of the shape of the relevant region by the map, and the lower the first integrity of the target region.
Thus, the first integrity of each region is obtained.
S3, according to the association map structure of each region and the neighborhood region in the target gray scale image, the second integrity of each region in the target gray scale image is obtained through presentation in the standard gray scale image, and the first integrity and the second integrity are combined to obtain the overall integrity of each region in the target gray scale image.
It should be noted that, since the pixel points of the natural feature such as the river pass through multiple regions, if a defect exists in one region, the overall knowledge of the natural feature may be wrong, so that the integrity of the natural feature in other regions is affected. Therefore, the invention analyzes the defect condition of all pixel points of each characteristic and obtains the second integrity of all the passed areas. And finally, combining the first integrity of the region with the second integrity of the region to obtain the overall integrity of each region, wherein the first integrity is used for describing the integrity of the shape and the gray level of the region, and the second integrity is used for describing the integrity of the critical natural features in the region.
Specifically, according to the association map structure of each region and the neighborhood region in the target gray scale map, the second integrity of each region in the target gray scale map is obtained by presenting in the standard gray scale map, which comprises the following steps:
And obtaining boundary pixel points adjacent to the characteristic pixel points, marking the boundary pixel points as equivalent characteristic pixel points, marking the arbitrary characteristic pixel points as growth seeds, carrying out regional growth, wherein the growth condition is that the adjacent pixel points have the characteristic pixel points or the equivalent characteristic pixel points, the growth stop condition is that the adjacent pixel points have no adjacent pixel points and have no equivalent characteristic pixel points, and after the growth is stopped, if the non-grown characteristic pixel points exist, selecting the growth seeds from the non-grown characteristic pixel points until all the characteristic pixel points have the growth regions, marking the arbitrary growth regions as a natural characteristic, and obtaining a plurality of natural characteristics of the gray map.
The v-th region of the standard gray scale image to which the u-th natural feature belongs is recorded asAcquiring the sum of the target gray level diagramCorresponding regions, noted as target gray-scale mapIs related to the acquisition of the target gray-scale imageIs a natural feature of the control region of (c).
It should be noted that, the u-th natural feature of the standard gray scale map completely records the trend of the natural feature, and if the natural feature of the comparison area is defective, the situation of disconnection and redundancy of the pixel points exists, so that the integrity of the natural feature of the comparison area can be obtained according to the difference of the pixel point trend and the number of the u-th natural feature of the standard gray scale map and the natural feature of the comparison area.
And acquiring chain codes of all the natural features, namely taking a pixel point with the nearest distance between any natural feature and the origin of the coordinate system as a starting point, and acquiring eight-direction chain codes of the natural features in a clockwise direction.
Target gray scale mapThe second degree of integrity of the control region of (2) satisfies the expression:
;
In the formula, Representing target gray-scale image with respect toIs a second integrity of the control zone of (a); representing target gray-scale image with respect to The number of pixels belonging to the natural feature in the comparison area; Representation of The number of pixels belonging to the natural feature; representing target gray-scale image with respect to Is a natural feature quantity of the control region; representing target gray-scale image with respect to Chain code of the r-th natural feature of the comparison region, andDTW distance of the chain code of the natural features.
In the formula,Representing target gray-scale image with respect toThe larger the difference between the number of pixels belonging to the natural feature and the number of pixels belonging to the natural feature in the region under the standard condition, the more the value is, the more the target gray-scale image is aboutThe worse and less complete the natural characteristic behavior of the control region of (c), and thus the target gray scale map is relative toThe lower the second integrity of the control zone of (c); Expressed in relation to the target gray scale In the case where natural features are split or superfluous in the control region of (a), each natural feature is associated withThe larger the value, the more the trend difference of the natural features in the middle, the target gray map is represented with respect toThe less the trend of the natural features in the control region is in line with the standard case, the more the target gray scale map is related toThe lower the second integrity of the control zone of (c).
If the target region is a comparison region, the second integrity of the target gray map relative to the comparison region of the region is marked as the second integrity of the target region; if the target area is not the control area, the second integrity of the target area is noted as 1.
Thus, the second integrity of each region is obtained.
Preferably, the first integrity and the second integrity are combined to obtain the overall integrity of each region in the target gray scale image, and the method comprises the steps of adding the first integrity of the target region and the second integrity of the target region, and performing positive correlation normalization to obtain the overall integrity of the target region.
So far, the overall integrity of each region is obtained.
S4, acquiring a central defect area and a corresponding radiation defect area of the target gray level image according to the change rule of the overall integrity among the areas in the target gray level image, and recording the central defect area and the corresponding radiation defect area as a defect area, calculating the defect index of any defect area according to the overall integrity of the area contained in the defect area, and evaluating the quality of a map print.
It should be noted that, due to irregular distribution of defects, one defect may be distributed in a plurality of adjacent regions, and the regions include a central defect region with the lowest overall integrity of the defect source and a plurality of defect regions with gradually reduced overall integrity of outward radiation.
Specifically, according to the change rule of the overall integrity between the regions in the target gray level image, a center defect region and a corresponding radiation defect region of the target gray level image are obtained, and the defect region is recorded as a defect region, which comprises:
and acquiring minimum values of the overall integrity of all the areas, respectively marking the minimum values as a central defect area, performing breadth-first traversal on the central defect area until the neighborhood has no defect area, marking all the traversed areas as radiation defect areas corresponding to the central defect area, and combining the central defect area and all the radiation defect areas into one defect area. The second threshold value may be set by an operator according to actual implementation, and for example, the second threshold value may be set to 0.8.
The larger the defective area is, the lower the overall integrity of the defective area is, and the higher the defect index of the defective area is, and thus the defect index of any defective area is calculated.
Preferably, the defect index of any defective region satisfies the expression:
;
In the formula, A defect index indicating an h-th defect region; representing the number of areas of the h-th defective area; The number of pixels in the s-th region representing the h-th defective region; Indicating the overall integrity of the s-th region of the h-th defective region.
In the formula,The number of pixel points of the h defect area is represented, the larger the value is, the larger the area of the h defect area is, and the larger the influence of the area of the h defect area on the quality of the map printed matter is, so that the defect index of the h defect area is represented to be higher; the larger the value is, the more serious the defect of the h-th defective area is, and thus the higher the defect index of the h-th defective area is.
Thus, the defect index of each defective area is obtained.
Preferably, evaluating the quality of the map print comprises:
And (3) obtaining defect indexes of all defect areas of all the gray maps to be detected by the method in the step (S1-S3), setting a third threshold value, and if the defect areas with the defect indexes larger than the third threshold value exist in the gray maps to be detected, marking the quality of the map printed matter corresponding to the gray maps to be detected as unqualified. The third threshold value may be set by an operator according to the accuracy requirement of the actual map print, and may be set to 0.3, for example.
Thus, the quality detection of the map printed matter is completed.
The embodiment of the invention also discloses a map print quality detection system, which comprises a processor and a memory, wherein the memory stores computer program instructions, and the computer program instructions realize the map print quality detection method according to the invention when being executed by the processor.
The above system further comprises other components well known to those skilled in the art, such as a communication bus and a communication interface, the arrangement and function of which are known in the art and therefore are not described in detail herein.
While various embodiments of the present invention have been shown and described herein, it will be obvious to those skilled in the art that such embodiments are provided by way of example only. Many modifications, changes, and substitutions will now occur to those skilled in the art without departing from the spirit and scope of the invention. It should be understood that various alternatives to the embodiments of the invention described herein may be employed in practicing the invention.

Claims (9)

1.一种地图印刷品质量检测方法,其特征在于,包括:1. A method for detecting the quality of printed map materials, comprising: 获取一种地图的若干待测地图的图像,通过人工筛选标准图像,对所有待测地图的图像进行预处理,并配准于同一坐标系,得到若干待测灰度图以及标准灰度图,共称为灰度图;将任意待测灰度图记为目标灰度图;Obtain images of several maps to be tested of a map, manually screen standard images, pre-process all images of the maps to be tested, and align them to the same coordinate system to obtain several grayscale images to be tested and standard grayscale images, collectively referred to as grayscale images; any grayscale image to be tested is recorded as a target grayscale image; 基于边缘检测算法和灰度分布,对所有灰度图进行分区,获取任意灰度图的若干区域;根据目标灰度图中各区域与标准灰度图中对应区域的差分表现,获取目标灰度图中各区域的第一完整度;获取任意灰度图的若干区域,包括:Based on the edge detection algorithm and grayscale distribution, all grayscale images are partitioned to obtain several regions of any grayscale image; according to the difference between each region in the target grayscale image and the corresponding region in the standard grayscale image, the first integrity of each region in the target grayscale image is obtained; several regions of any grayscale image are obtained, including: 对所有灰度图进行边缘检测,得到各灰度图的对应边缘图像;将目标灰度图的边缘图像的第i个边缘像素点记为,获取在边缘的法线方向的左邻域A个像素点和右邻域A个像素点,预设第一阈值,将所述左邻域A个像素点的灰度均值与所述右邻域A个像素点的灰度均值的差值记为,若大于第一阈值,则将记为边界像素点;若小于等于第一阈值,则将记为特征像素点;任意灰度图被边界像素点将分成了若干个闭合的分区,将任意闭合的分区记为一个区域,得到所述灰度图的若干区域;Perform edge detection on all grayscale images to obtain the corresponding edge images of each grayscale image; the i-th edge pixel point of the edge image of the target grayscale image is recorded as , get At the left neighboring A pixels and the right neighboring A pixels in the normal direction of the edge, a first threshold is preset, and the difference between the grayscale mean of the left neighboring A pixels and the grayscale mean of the right neighboring A pixels is recorded as ,like is greater than the first threshold, then Recorded as the boundary pixel; if is less than or equal to the first threshold, then Recorded as feature pixel points; any grayscale image is divided into several closed partitions by boundary pixels, and any closed partition is recorded as a region, thereby obtaining several regions of the grayscale image; 根据目标灰度图中各区域与邻域区域的关联地图结构,在标准灰度图中的呈现,获取目标灰度图中各区域的第二完整度;将所述第一完整度与所述第二完整度进行结合,获取目标灰度图中各区域的总体完整度;Obtaining a second completeness of each region in the target grayscale image based on the presentation of the associated map structure of each region and the neighboring regions in the target grayscale image in the standard grayscale image; and combining the first completeness with the second completeness to obtain an overall completeness of each region in the target grayscale image; 根据目标灰度图中区域间的总体完整度的变化规律,获取目标灰度图的中心缺陷区域以及对应的辐射缺陷区域,共记为一个缺陷区域;根据缺陷区域包含的区域的总体完整度,计算任意缺陷区域的缺陷指数,并用于评估地图印刷品的质量。According to the variation pattern of the overall integrity between regions in the target grayscale image, the central defect area of the target grayscale image and the corresponding radiation defect area are obtained and recorded as one defect area. According to the overall integrity of the areas contained in the defect area, the defect index of any defect area is calculated and used to evaluate the quality of map prints. 2.根据权利要求1所述的一种地图印刷品质量检测方法,其特征在于,所述获取目标灰度图中各区域的第一完整度,包括:2. The method for detecting the quality of map prints according to claim 1, wherein obtaining the first degree of completeness of each region in the target grayscale image comprises: 将目标灰度图的任意区域记为目标区域,将目标区域的灰度矩阵与标准灰度图中的对应区域的灰度矩阵作差,得到目标区域的差分灰度矩阵;Any area of the target grayscale image is recorded as the target area, and the grayscale matrix of the target area is subtracted from the grayscale matrix of the corresponding area in the standard grayscale image to obtain the differential grayscale matrix of the target area; 目标区域的第一完整度满足表达式:The first integrity of the target area satisfies the expression: ; 式中,表示目标区域的第一完整度;表示目标区域的链码与目标区域在标准灰度图中的对应区域的链码的DTW距离;表示目标区域的差分灰度矩阵的平均数值;表示目标区域的差分灰度矩阵中大于0的数值数量。Where, Indicates the first degree of completeness of the target area; The DTW distance between the chain code of the target area and the chain code of the corresponding area of the target area in the standard grayscale image; Represents the average value of the differential grayscale matrix of the target area; Indicates the number of values greater than 0 in the differential grayscale matrix of the target area. 3.根据权利要求2所述的一种地图印刷品质量检测方法,其特征在于,所述目标区域的链码的获取,包括:3. The method for detecting the quality of map prints according to claim 2, wherein obtaining the chain code of the target area comprises: 以目标区域与坐标系原点距离最近的像素点为起始点,顺时针方向获取目标区域的边界像素点的八方向链码。Taking the pixel point closest to the origin of the coordinate system in the target area as the starting point, the eight-direction chain code of the boundary pixel points of the target area is obtained in a clockwise direction. 4.根据权利要求1所述的一种地图印刷品质量检测方法,其特征在于,所述获取目标灰度图中各区域的第二完整度,包括:4. The method for detecting the quality of map prints according to claim 1, wherein obtaining the second completeness of each region in the target grayscale image comprises: 获取任意灰度图的自然特征;将任意自然特征与坐标系原点距离最近的像素点作为起始点,顺时针方向获取所述自然特征的八方向链码;将标准灰度图的第u个自然特征所属的第v个区域记为,获取目标灰度图中与对应的区域,记为目标灰度图关于的对照区域;Get the natural features of any grayscale image; take the pixel point closest to the origin of the coordinate system as the starting point, and get the eight-direction chain code of the natural feature in clockwise direction; record the vth region to which the uth natural feature of the standard grayscale image belongs as , get the target grayscale image with The corresponding area is recorded as the target grayscale image about control area; 计算目标灰度图关于的对照区域的第二完整度;若目标区域的对照区域,则将目标灰度图关于所属区域的对照区域的第二完整度,记为目标区域的第二完整度;若目标区域不是对照区域,则将目标区域的第二完整度记为1。Calculate the target grayscale image about the second completeness of the control area of the target area; if the target area is the control area, the second completeness of the target grayscale image with respect to the control area of the area to which it belongs is recorded as the second completeness of the target area; if the target area is not the control area, the second completeness of the target area is recorded as 1. 5.根据权利要求4所述的一种地图印刷品质量检测方法,其特征在于,所述获取任意灰度图的自然特征,包括:5. The method for detecting the quality of map prints according to claim 4, wherein obtaining the natural features of any grayscale image comprises: 对任意灰度图,获取与特征像素点相邻的边界像素点,记为等效特征像素点,将任意特征像素点记为生长种子,并进行区域生长,生长条件是相邻像素点存在特征像素点或等效特征像素点,生长停止条件是相邻像素点没有相邻像素点且没有等效特征像素点,生长停止后,若还有没有生长过的特征像素点,则从没有生长过的特征像素点中选择生长种子,直至所有特征像素点均有所属生长区域,将任意生长区域记为一个自然特征,得到所述灰度图的若干自然特征。For any grayscale image, boundary pixels adjacent to feature pixels are obtained and recorded as equivalent feature pixels. Any feature pixel is recorded as a growth seed, and regional growth is performed. The growth condition is that there are feature pixels or equivalent feature pixels between adjacent pixels. The growth stop condition is that there are no adjacent pixels and no equivalent feature pixels between adjacent pixels. After the growth stops, if there are still feature pixels that have not grown, growth seeds are selected from the feature pixels that have not grown until all feature pixels have their own growth regions. Any growth region is recorded as a natural feature, and several natural features of the grayscale image are obtained. 6.根据权利要求4所述的一种地图印刷品质量检测方法,其特征在于,所述目标灰度图关于的对照区域的第二完整度满足表达式:6. A method for detecting the quality of map prints according to claim 4, wherein the target grayscale image is about The second integrity of the control area satisfies the expression: ; 式中,表示目标灰度图关于的对照区域的第二完整度;表示目标灰度图关于的对照区域中属于自然特征的像素点数量;表示中属于自然特征的像素点数量;表示目标灰度图关于的对照区域的自然特征数量;表示目标灰度图关于的对照区域的第r个自然特征的链码,与中自然特征的链码的DTW距离。Where, Represents the target grayscale image about The second completeness of the control area; Represents the target grayscale image about The number of pixels in the control area that belong to natural features; express The number of pixels belonging to natural features in ; Represents the target grayscale image about the number of natural features in the control area; Represents the target grayscale image about The chain code of the rth natural feature of the control area is DTW distance of the chain code of natural features in . 7.根据权利要求1所述的一种地图印刷品质量检测方法,其特征在于,所述获取目标灰度图中各区域的总体完整度,包括:7. The method for detecting the quality of map prints according to claim 1, wherein obtaining the overall integrity of each region in the target grayscale image comprises: 将目标区域的第一完整度和目标区域的第二完整度相加,并进行正相关归一化,得到目标区域的总体完整度。The first integrity of the target area and the second integrity of the target area are added together and normalized for positive correlation to obtain the overall integrity of the target area. 8.根据权利要求1所述的一种地图印刷品质量检测方法,其特征在于,所述任意缺陷区域的缺陷指数满足表达式:8. The method for detecting the quality of map prints according to claim 1, wherein the defect index of any defective area satisfies the expression: ; 式中,表示第h个缺陷区域的缺陷指数;表示第h个缺陷区域的区域数量;表示第h个缺陷区域的第s个区域的像素点数量;表示第h个缺陷区域的第s个区域的总体完整度。Where, represents the defect index of the h-th defect area; represents the number of regions of the h-th defective region; The number of pixels in the sth region representing the hth defect area; represents the overall integrity of the sth region of the hth defect region. 9.一种地图印刷品质量检测系统,其特征在于,包括:处理器和存储器,所述存储器存储有计算机程序指令,当所述计算机程序指令被所述处理器执行时实现根据权利要求1-8任一项所述的一种地图印刷品质量检测方法。9. A map print quality inspection system, characterized in that it comprises: a processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, a map print quality inspection method according to any one of claims 1 to 8 is implemented.
CN202511086107.7A 2025-08-05 2025-08-05 Map printed matter quality detection method and system Active CN120580237B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202511086107.7A CN120580237B (en) 2025-08-05 2025-08-05 Map printed matter quality detection method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202511086107.7A CN120580237B (en) 2025-08-05 2025-08-05 Map printed matter quality detection method and system

Publications (2)

Publication Number Publication Date
CN120580237A CN120580237A (en) 2025-09-02
CN120580237B true CN120580237B (en) 2025-10-03

Family

ID=96863187

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202511086107.7A Active CN120580237B (en) 2025-08-05 2025-08-05 Map printed matter quality detection method and system

Country Status (1)

Country Link
CN (1) CN120580237B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117237265A (en) * 2022-06-08 2023-12-15 腾讯科技(深圳)有限公司 Method, device, equipment and storage medium for detecting frozen image frames
CN117541588A (en) * 2024-01-10 2024-02-09 大连建峰印业有限公司 A printing defect detection method for paper products

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002366929A (en) * 2001-06-11 2002-12-20 Printing Bureau Ministry Of Finance Method and apparatus for extracting defective defects in printed matter
JP2004177215A (en) * 2002-11-26 2004-06-24 Dainippon Printing Co Ltd Printed matter inspection apparatus, printed matter inspection method, printed matter inspection processing program, and recording medium on which the program is recorded
CN118134886A (en) * 2024-03-19 2024-06-04 北京大恒图像视觉有限公司 Laser printed matter imaging defect detection method
CN118247259B (en) * 2024-04-16 2024-09-27 山东润声印务有限公司 High-speed printed matter quality online detection method
CN119130972B (en) * 2024-09-04 2025-02-28 成都中永印务有限责任公司 A method and system for online detection of printed product quality

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117237265A (en) * 2022-06-08 2023-12-15 腾讯科技(深圳)有限公司 Method, device, equipment and storage medium for detecting frozen image frames
CN117541588A (en) * 2024-01-10 2024-02-09 大连建峰印业有限公司 A printing defect detection method for paper products

Also Published As

Publication number Publication date
CN120580237A (en) 2025-09-02

Similar Documents

Publication Publication Date Title
CN113379680B (en) Defect detection method, defect detection device, electronic device and computer readable storage medium
CN116559183B (en) Method and system for improving defect judging efficiency
CN109472271B (en) Printed circuit board image contour extraction method and device
CN115100206B (en) Printing defect identification method for textile with periodic pattern
CN114972173B (en) Defect detection method, defect detection device and system
CN118501177B (en) Appearance defect detection method and system for formed foil
US7564587B2 (en) Method of scoring a printed form having targets to be marked
CN112560837A (en) Reading method, device, equipment and storage medium of pointer instrument
CN113469171A (en) Method, device and medium for identifying interest area in SFR test card image
CN113989482B (en) Automatic reading identification method of optical imaging level based on image processing
CN117830318A (en) Printing ink printing defect detection method based on image processing
CN114187363A (en) A method, device and mobile terminal for obtaining radial distortion parameter value
CN118967798B (en) Positioning method and device for display screen sub-pixel bright clusters and storage medium
CN119915381A (en) Color detection method and device
CN119492522A (en) Bad pixel detection method, system, device and storage medium for liquid crystal display screen
CN115452845A (en) LED screen surface damage detection method based on machine vision
CN120580237B (en) Map printed matter quality detection method and system
CN116228601B (en) Visual monitoring method for coal leveling effect of bidirectional coal leveling of train
CN118247252A (en) Data quality noise detection method based on multi-method joint variation
CN114638805B (en) Track slab crack detection method, system and storage medium
CN114254605B (en) Answer sheet template generation method, answer sheet recognition method, device and electronic device
CN115511780A (en) Paper archive damage identification method and device based on machine vision
CN119444699B (en) A printing quality assessment method based on machine vision
CN119963547B (en) LED lamp bead defect detection method and system
CN119477924B (en) Method, device, electronic equipment and storage medium for repeated X-ray weld film detection

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