Printer detection method and system for printing paper labels

By performing local positioning detection and regional comparison of the printing paper label in the printer, and optimizing the image based on the label characteristics, the problem of insufficient detection efficiency and accuracy of the printing paper label in the existing technology is solved, and a more efficient and accurate detection effect is achieved.

CN118494034BActive Publication Date: 2024-09-13珠海恒盛条码设备有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410955010.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-17
Publication Date
2024-09-13
Estimated Expiration
2044-07-17

AI Technical Summary

Technical Problem

The existing printer detection mechanism cannot adapt to the diversity of the surrounding environment of printing paper labels, affecting detection efficiency and accuracy.

Method used

By performing local positioning detection and regional comparison based on the position of the label on the printing paper when the printing paper enters the printer, defining regional difference parameters, regulating the acquisition mode, and optimizing the image based on label characteristics and relative distance, combined with the regulation of the detection mechanism, the detection is optimized. efficiency and accuracy levels.

Benefits of technology

It improves the efficiency and accuracy of the printer's detection of printing paper labels, enhances the environmental adaptability of the detection mechanism, and ensures the optimized image output of printing paper labels and the accuracy of detection results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118494034B
    Figure CN118494034B
Patent Text Reader

Abstract

The present invention discloses a method and system for detecting printing paper labels by a printer, which collects the current image of the printing paper label, thereby fully considering the differences of multiple surrounding areas and the environmental impact of multiple surrounding areas on the printing paper label. At the same time, the current image of the printing paper label is optimized according to the label optimization logic to output the optimized image of the printing paper label, so as to optimize the current printing paper label, and define the detection efficiency of the printing paper label based on the optimized image of the printing paper label and the detection mechanism of the printer, and define the accuracy level of the detection result of the printing paper label based on the optimized image of the printing paper label and the detection mechanism of the printer, so as to introduce the second regulation and the first regulation, thereby triggering the regulation of the detection mechanism of the printer in multiple aspects, and optimizing the detection mechanism of the printer as a whole in combination with the second regulation and the first regulation, thereby ensuring the environmental adaptability of the detection mechanism of the printer.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of a printer detecting a printing paper label, and in particular to a printer detecting a printing paper label and a system. Background Art

[0002] With the development of science and technology, printers are used in people's lives and print on printing paper. At this time, there are multiple patterns in the printing paper, and only one pattern is the printing paper label. In the position where the printing paper label is located, the peripheral part of the position where the printing paper label is located is used as the peripheral area of ​​the printing paper label. The peripheral area of ​​the printing paper label may have an environmental impact effect and cause environmental impact on the printing paper label, thereby affecting the detection of the printing paper label, and the detection mechanism of the existing printer cannot adapt to the environment. Summary of the invention

[0003] The purpose of the present invention is to overcome the shortcomings of the prior art. The present invention provides a method and system for detecting a printing paper label by a printer. The method triggers local positioning detection of the printing paper based on the location of the printing paper label, and performs regional comparison on the location of the printing paper label and multiple areas around it to define regional difference parameters, so as to adjust the acquisition mode of the printing paper by the printer according to the regional difference parameters, and acquire the current image of the printing paper label, thereby fully considering the differences of multiple surrounding areas, and considering the environmental impact of multiple surrounding areas on the printing paper label. At the same time, multiple label features are defined based on the current image of the printing paper label, and the relative distance between the multiple label features is located. Based on the multiple label features, the relative distance between the multiple label features is determined. and relative distance and a combination of multiple label features to match the label optimization logic, and optimize the current image of the printed paper label according to the label optimization logic to output the optimized image of the printed paper label, so as to optimize the current printed paper label, and define the detection efficiency of the printed paper label based on the optimized image of the printed paper label and the detection mechanism of the printer. At the same time, define the accuracy level of the detection result of the printed paper label based on the optimized image of the printed paper label and the detection mechanism of the printer, so as to introduce the second regulation and the first regulation, thereby triggering the regulation of the detection mechanism of the printer in multiple aspects, and combining the second regulation and the first regulation to optimize the detection mechanism of the printer as a whole, thereby ensuring the environmental adaptability of the detection mechanism of the printer.

[0004] In order to solve the above technical problems, an embodiment of the present invention provides a method for detecting a printed paper label by a printer, which is applied to a scenario in which a printer detects a printed paper label;

[0005] The method for detecting a printing paper label by the printer comprises:

[0006] When the printing paper enters the printer, the printer scans the printing paper and defines the location of the printing paper label;

[0007] Triggering local positioning detection of the printing paper based on the location of the printing paper label, and performing regional comparison on the location of the printing paper label and multiple areas around it to define regional difference parameters;

[0008] Controlling the acquisition mode of the printer for the printing paper according to the regional difference parameter, and acquiring the current image of the printing paper label;

[0009] Defining a plurality of label features based on a current image of a printing paper label, locating relative distances between the plurality of label features, matching label optimization logic based on the plurality of label features and the relative distances and a combination of the plurality of label features, and optimizing the current image of the printing paper label according to the label optimization logic to output an optimized image of the printing paper label;

[0010] Defining the detection efficiency of the printed paper label based on the optimized image of the printed paper label and the detection mechanism of the printer; if the detection efficiency of the printed paper label is lower than a preset detection efficiency threshold, triggering a first adjustment of the detection mechanism of the printer according to the detection efficiency difference to optimize the detection mechanism of the printer;

[0011] The accuracy level of the detection results of the printed paper label is defined based on the optimized image of the printed paper label and the detection mechanism of the printer. If the accuracy level of the detection results of the printed paper label is lower than the preset detection result accuracy level threshold, the difference value of the detection result accuracy level triggers the second adjustment of the detection mechanism of the printer. The second adjustment and the first adjustment are combined to optimize the detection mechanism of the printer as a whole.

[0012] Optionally, when the printing paper enters the printer, scanning the printing paper based on the printer and defining the location of the printing paper label includes:

[0013] Position the paper and scanning end of the printer;

[0014] Collect the dynamic distance between the printing paper and the scanning end of the printer, and adjust the state of the scanning end of the printer according to the change of the dynamic distance;

[0015] If the dynamic distance is within the preset distance threshold, the working state of the scanning end of the printer is triggered, and the scanning range of the scanning end is defined according to the size of the printing paper to optimize the scanning efficiency of the printing paper;

[0016] During the scanning process of the printing paper by the scanning end of the printer, multiple patterns are located, and three similar label patterns are selected according to the multiple patterns;

[0017] The printing paper label is determined based on the synchronous recognition of three similar label patterns, and the location of the printing paper label is defined.

[0018] Optionally, triggering local positioning detection of printing paper based on the location of the printing paper label, and performing regional comparison on the location of the printing paper label and multiple areas around it to define regional difference parameters, includes:

[0019] The location of the freeze-frame printing paper label;

[0020] The spatial position of the printing paper label is defined based on the position of the printing paper label and the overall space of the printing paper, and the orientation and position of the scanning end of the printing paper are adjusted according to the spatial position of the printing paper label until the scanning end of the printing paper is directly opposite to the position of the printing paper label;

[0021] Triggering local positioning detection of the printing paper according to the location of the printing paper label, and defining multiple areas around the printing paper label according to the size of the printing paper label;

[0022] Conduct the first regional comparison based on multiple surrounding areas and define the environmental coefficient of the surrounding areas;

[0023] Define the label area according to the location of the printing paper label, and define the label coefficient according to the label area;

[0024] The label coefficient and the environment coefficient are associated, and regional difference parameters are defined based on the label coefficient and the environment coefficient.

[0025] Optionally, regulating the acquisition mode of the printer for the printing paper according to the regional difference parameter and acquiring the current image of the printing paper label includes:

[0026] Fixed regional difference parameters;

[0027] Define regional difference levels according to regional difference parameters;

[0028] Defining the sub-region difference level of the label region in each direction based on the regional difference level, the label region and the directional relationship of the plurality of surrounding regions;

[0029] Collecting the difference levels of each sub-region, and adjusting the environmental parameters of the surrounding area of ​​the printed paper label according to the difference levels of each sub-region, so as to optimize the surrounding area of ​​the printed paper label;

[0030] According to the label area and the surrounding area of ​​the optimized printing paper label, the printer controls the collection mode of the printing paper;

[0031] In this acquisition mode, the current image of the printed paper label is acquired.

[0032] Optionally, the method of defining a plurality of label features based on the current image of the printing paper label, locating the relative distance between the plurality of label features, matching the label optimization logic based on the plurality of label features and the relative distance and the combination of the plurality of label features, and optimizing the current image of the printing paper label according to the label optimization logic to output an optimized image of the printing paper label includes:

[0033] Freeze the current image of the printed paper label;

[0034] defining a plurality of label features based on image recognition of a current image of a printed paper label;

[0035] Defining a relative distance based on multiple label features, and defining a distance difference by comparing multiple relative distances;

[0036] Construct corresponding feature combinations based on multiple features.

[0037] Optionally, the method further includes defining a plurality of label features based on the current image of the printing paper label, locating the relative distance between the plurality of label features, matching the label optimization logic based on the plurality of label features, the relative distance and the combination of the plurality of label features, and optimizing the current image of the printing paper label according to the label optimization logic to output an optimized image of the printing paper label:

[0038] Match the relative distance, distance difference, and feature combination with the optimization comparison table to match the label optimization logic;

[0039] Associate the current image of the printed paper label and the label optimization logic;

[0040] Define the part of the current image of the printed paper label to be optimized;

[0041] The optimized part is determined according to the part to be optimized and the label optimization logic, and the optimized part replaces the part to be optimized to output the optimized image of the printing paper label.

[0042] Optionally, the detection efficiency of the printed paper label is defined based on the optimized image of the printed paper label and the detection mechanism of the printer; if the detection efficiency of the printed paper label is lower than a preset detection efficiency threshold, triggering a first adjustment of the detection mechanism of the printer according to the detection efficiency difference to optimize the detection mechanism of the printer, including:

[0043] Optimized images of freeze-frame printed paper labels and detection mechanisms of printers;

[0044] Correlating the optimized image of the printed paper label and the detection mechanism of the printer and defining a correlation coefficient;

[0045] Define the level of association based on the association coefficient;

[0046] When the optimized image of the printed paper label triggers the detection mechanism of the printer, monitoring the detection time of the printed paper label, and defining the detection efficiency of the printed paper label according to the detection time and the image area of ​​the optimized image of the printed paper label;

[0047] Compare the detection efficiency of the printed paper label with a preset detection efficiency threshold;

[0048] If the detection efficiency of the printed paper label is lower than the preset detection efficiency threshold, a detection efficiency difference is defined according to the detection efficiency of the printed paper label and the preset detection efficiency threshold;

[0049] The first regulation of the detection mechanism of the printer is triggered according to the detection efficiency difference. At this time, the first regulation logic is defined based on the detection efficiency difference and the first regulation matching table, and the detection mechanism of the printer is regulated according to the first regulation logic to optimize the detection mechanism of the printer.

[0050] Optionally, the detection mechanism of the printer defines the accuracy level of the detection result of the printing paper label based on the optimized image of the printing paper label and the printer, and if the accuracy level of the detection result of the printing paper label is lower than a preset detection result accuracy level threshold, the difference value of the detection result accuracy level triggers the second regulation of the detection mechanism of the printer, and the second regulation is combined with the first regulation to optimize the detection mechanism of the printer as a whole, including:

[0051] Optimized images of freeze-frame printed paper labels and detection mechanisms of printers;

[0052] Correlating the optimized image of the printed paper label and the detection mechanism of the printer and defining a correlation coefficient;

[0053] Define the level of association based on the association coefficient;

[0054] When the optimized image of the printing paper label triggers the detection mechanism of the printer, the detection result of the printing paper label is monitored, and the result accuracy of the printing paper label is defined according to the detection result of the printing paper label and the preset result.

[0055] Optionally, the detection mechanism of the printer defines the accuracy level of the detection result of the printing paper label based on the optimized image of the printing paper label and the printer, and if the accuracy level of the detection result of the printing paper label is lower than a preset detection result accuracy level threshold, the difference value of the detection result accuracy level triggers the second regulation of the detection mechanism of the printer, and the second regulation and the first regulation are combined to optimize the detection mechanism of the printer as a whole, and further includes:

[0056] Compare the result accuracy with the preset result accuracy threshold;

[0057] If the result accuracy is lower than the preset result accuracy threshold, the result accuracy difference is defined according to the result accuracy of the printed paper label and the preset result accuracy threshold;

[0058] The second regulation of the detection mechanism of the printer is triggered according to the result accuracy difference. At this time, the second regulation logic is defined based on the result accuracy difference and the second regulation matching table, and the detection mechanism of the printer is regulated according to the second regulation logic to optimize the detection mechanism of the printer;

[0059] The second regulation is associated with the first regulation, and the detection mechanism of the printer is optimized as a whole by combining the second regulation with the first regulation.

[0060] In addition, an embodiment of the present invention further provides a system for detecting a printing paper label by a printer, wherein the system for detecting a printing paper label by a printer comprises:

[0061] A scanning module, used for scanning the printing paper based on the printer when the printing paper enters the printer, and defining the location of the printing paper label;

[0062] A comparison module, used for triggering local positioning detection of printing paper based on the location of the printing paper label, and performing regional comparison on the location of the printing paper label and multiple areas around it to define regional difference parameters;

[0063] A first image module, used for adjusting the acquisition mode of the printer for the printing paper according to the regional difference parameter, and acquiring the current image of the printing paper label;

[0064] A second image module is used to define a plurality of label features based on the current image of the printing paper label, locate the relative distance between the plurality of label features, match the label optimization logic based on the plurality of label features and the relative distance and the combination of the plurality of label features, and optimize the current image of the printing paper label according to the label optimization logic to output an optimized image of the printing paper label;

[0065] A first control module is used to define the detection efficiency of the printed paper label based on the optimized image of the printed paper label and the detection mechanism of the printer; if the detection efficiency of the printed paper label is lower than a preset detection efficiency threshold, triggering the first control of the detection mechanism of the printer according to the detection efficiency difference to optimize the detection mechanism of the printer;

[0066] The second control module is used to define the accuracy level of the detection result of the printed paper label based on the optimized image of the printed paper label and the detection mechanism of the printer. If the accuracy level of the detection result of the printed paper label is lower than the preset detection result accuracy level threshold, the difference value of the detection result accuracy level triggers the second control of the detection mechanism of the printer. The second control and the first control are combined to optimize the detection mechanism of the printer as a whole.

[0067] In an embodiment of the present invention, through the method in the embodiment of the present invention, local positioning detection of printing paper is triggered based on the location of the printing paper label, and the location of the printing paper label and multiple areas around it are regionally compared to define regional difference parameters, so as to adjust the acquisition mode of the printer for the printing paper according to the regional difference parameters, and collect the current image of the printing paper label, so as to fully consider the differences of multiple surrounding areas, and consider the environmental impact of multiple surrounding areas on the printing paper label. At the same time, multiple label features are defined based on the current image of the printing paper label, and the relative distance between the multiple label features is located. Based on the multiple label features and the relative distance and multiple label features, the detection method of the local positioning detection of the printing paper is triggered based on the location of the printing paper label, and the local positioning detection of the printing paper is triggered based on the location of the printing paper label. The combination of features matches the label optimization logic, and optimizes the current image of the printing paper label according to the label optimization logic to output the optimized image of the printing paper label, so as to optimize the current printing paper label, and define the detection efficiency of the printing paper label based on the optimized image of the printing paper label and the detection mechanism of the printer. At the same time, define the accuracy level of the detection result of the printing paper label based on the optimized image of the printing paper label and the detection mechanism of the printer, so as to introduce the second regulation and the first regulation, thereby triggering the regulation of the detection mechanism of the printer in multiple aspects, and combining the second regulation and the first regulation to optimize the detection mechanism of the printer as a whole, thereby ensuring the environmental adaptability of the detection mechanism of the printer. BRIEF DESCRIPTION OF THE DRAWINGS

[0068] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0069] Figure 1 is a flow chart of a method for detecting a printing paper label by a printer in an embodiment of the present invention;

[0070] Figure 2 is a flow chart of S11 in the method for detecting a printing paper label by a printer in an embodiment of the present invention;

[0071] Figure 3 is a flow chart of S12 in the method for detecting a printing paper label by a printer in an embodiment of the present invention;

[0072] Figure 4 is a flow chart of S13 in the method for detecting a printing paper label by a printer in an embodiment of the present invention;

[0073] Figure 5is a flow chart of S14 in the method for detecting a printing paper label by a printer in an embodiment of the present invention;

[0074] Figure 6 is a flow chart of S15 in the method for detecting a printing paper label by a printer in an embodiment of the present invention;

[0075] Figure 7 is a flow chart of S16 in the method for detecting a printing paper label by a printer in an embodiment of the present invention;

[0076] Figure 8 Schematic diagram of the structure of the detection system of the printing paper label of the printer in the embodiment of the present invention;

[0077] Fig. 9 The figure is a hardware diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0078] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0079] First embodiment

[0080] See also Figures 1 to 9 , a method for detecting a printing paper label by a printer, which is applied to a scene where a printer detects a printing paper label; the method for detecting a printing paper label by a printer includes:

[0081] Step S11: When the printing paper enters the printer, the printer scans the printing paper and defines the location of the printing paper label;

[0082] Step S12: triggering local positioning detection of the printing paper based on the location of the printing paper label, and performing regional comparison on the location of the printing paper label and multiple areas around it to define regional difference parameters;

[0083] Step S13: adjusting the acquisition mode of the printer for the printing paper according to the regional difference parameter, and acquiring the current image of the printing paper label;

[0084] Step S14: defining a plurality of label features based on the current image of the printing paper label, locating the relative distances between the plurality of label features, matching the label optimization logic based on the plurality of label features and the relative distances and the combination of the plurality of label features, and optimizing the current image of the printing paper label according to the label optimization logic to output an optimized image of the printing paper label;

[0085] Step S15: defining the detection efficiency of the printed paper label based on the optimized image of the printed paper label and the detection mechanism of the printer; if the detection efficiency of the printed paper label is lower than a preset detection efficiency threshold, triggering the first adjustment of the detection mechanism of the printer according to the detection efficiency difference to optimize the detection mechanism of the printer;

[0086] Step S16: Define the accuracy level of the detection result of the printed paper label based on the optimized image of the printed paper label and the detection mechanism of the printer. If the accuracy level of the detection result of the printed paper label is lower than the preset detection result accuracy level threshold, the difference value of the detection result accuracy level triggers the second adjustment of the detection mechanism of the printer. The second adjustment and the first adjustment are combined to optimize the detection mechanism of the printer as a whole.

[0087] In an embodiment of the present invention, through the method in the embodiment of the present invention, the current image of the printed paper label is collected, thereby fully considering the differences of multiple surrounding areas and the environmental impact of multiple surrounding areas on the printed paper label. At the same time, the current image of the printed paper label is optimized according to the label optimization logic to output the optimized image of the printed paper label, so as to optimize the current printed paper label, and define the detection efficiency of the printed paper label based on the optimized image of the printed paper label and the detection mechanism of the printer, and define the accuracy level of the detection result of the printed paper label based on the optimized image of the printed paper label and the detection mechanism of the printer, so as to introduce the second regulation and the first regulation, thereby triggering the regulation of the detection mechanism of the printer in multiple aspects, and optimizing the detection mechanism of the printer as a whole in combination with the second regulation and the first regulation, thereby ensuring the environmental adaptability of the detection mechanism of the printer.

[0088] refer to Figure 2 In step S11, when the printing paper enters the printer, the printing paper is scanned by the printer and the location of the printing paper label is defined;

[0089] In the specific implementation process of the present invention, the specific steps may be:

[0090] S111: Positioning the printing paper and the scanning end of the printer;

[0091] S112: collecting a dynamic distance between the printing paper and the scanning end of the printer, and adjusting the state of the scanning end of the printer according to a change in the dynamic distance;

[0092] S113: If the dynamic distance is within the preset distance threshold, triggering the working state of the scanning end of the printer, and defining the scanning range of the scanning end according to the size of the printing paper to optimize the scanning efficiency of the printing paper;

[0093] S114: during the scanning process of the printing paper by the scanning end of the printer, multiple patterns are located, and three similar label patterns are selected according to the multiple patterns;

[0094] S115: Determine the printing paper label based on the synchronous recognition of the three similar label patterns, and define the location of the printing paper label.

[0095] In an embodiment of the present application, the printing paper and the scanning end of the printer are positioned, and the printer is scanned with respect to the scanning end of the printer. At this time, the dynamic distance between the printing paper and the scanning end of the printer is collected, and the state of the scanning end of the printer is regulated according to the change in the dynamic distance, so as to dynamically adjust the state of the scanning end of the printer, thereby gradually ensuring the working state of the state of the scanning end.

[0096] At this time, if the dynamic distance is within the preset distance threshold, the working state of the scanning end of the printer is triggered, and the scanning range of the scanning end is defined according to the size of the printing paper to optimize the scanning efficiency of the printing paper. At this time, the size of the printing paper is introduced to facilitate adjusting the scanning range of the scanning end according to the size of the printing paper, thereby ensuring the adaptability of the scanning range of the scanning end to the size of the printing paper, thereby optimizing the scanning efficiency of the printing paper.

[0097] During the scanning process of the printing paper at the scanning end of the printer, multiple patterns are located, and three similar label patterns are screened out based on the multiple patterns; the printing paper label is determined based on the synchronous recognition of the three similar label patterns, thereby ensuring the accuracy of the printing paper label, and performing refined screening on multiple patterns to further define the location of the printing paper label, thereby performing targeted control on the location of the printing paper label.

[0098] refer to Figure 3 In step S12, local positioning detection of the printing paper is triggered based on the location of the printing paper label, and the location of the printing paper label and multiple areas around it are regionally compared to define regional difference parameters;

[0099] In the specific implementation process of the present invention, the specific steps may be:

[0100] S121: fixing the position of the printing paper label;

[0101] S122: defining a spatial position of the printing paper label based on the position of the printing paper label and the overall space of the printing paper, and adjusting the orientation and position of the scanning end of the printing paper according to the spatial position of the printing paper label until the scanning end of the printing paper faces the position of the printing paper label;

[0102] S123: triggering local positioning detection of the printing paper according to the location of the printing paper label, and defining a plurality of areas around the printing paper label according to the size of the printing paper label;

[0103] S124: performing a first regional comparison based on a plurality of surrounding regions, and defining an environmental coefficient of the surrounding region;

[0104] S125: defining a label area according to the location of the printing paper label, and defining a label coefficient according to the label area;

[0105] S126: Associating the label coefficient and the environment coefficient, and defining a regional difference parameter based on the label coefficient and the environment coefficient.

[0106] In an embodiment of the present application, the position of the printing paper label is fixed; the spatial position of the printing paper label is defined based on the position of the printing paper label and the overall space of the printing paper, so as to clarify the spatial position of the printing paper label, and then the orientation and position of the scanning end of the printing paper are regulated according to the spatial position of the printing paper label, until the scanning end of the printing paper is facing the position of the printing paper label, so as to ensure that the scanning end of the printing paper scans the position of the printing paper label, thereby ensuring the scanning effect of the printing paper label.

[0107] At this time, the location of the printing paper label is introduced to trigger local positioning detection of the printing paper according to the location of the printing paper label, thereby effectively processing the printing paper label and improving processing efficiency. Furthermore, multiple areas around the printing paper label are defined according to the size of the printing paper label, thereby introducing the management and control of the printing paper label and multiple areas around it, and compatibility with the influence of multiple surrounding areas.

[0108] Furthermore, a first area comparison is performed based on multiple surrounding areas, and an environmental coefficient of the surrounding area is defined, so that the environmental impact level of the surrounding area can be presented through the environmental coefficient of the surrounding area. At the same time, a label area is defined according to the location of the printed paper label, and a label coefficient is defined according to the label area; therefore, the label coefficient and the environmental coefficient are associated, and regional difference parameters are defined based on the label coefficient and the environmental coefficient, so that the differences between the printed paper label and multiple surrounding areas can be presented based on the regional difference parameters, and then the surrounding environment of the printed paper label is controlled, the impact of the surrounding environment of the printed paper label is managed and controlled, and the detection effect of the printed paper label is guaranteed.

[0109] refer to Figure 4 , in step S13, adjusting the acquisition mode of the printer for the printing paper according to the regional difference parameter, and acquiring the current image of the printing paper label;

[0110] In the specific implementation process of the present invention, the specific steps may be:

[0111] S131: freeze-frame regional difference parameters;

[0112] S132: defining a regional difference level according to the regional difference parameter;

[0113] S133: defining sub-region difference levels of the label region in each direction based on the region difference level, the label region, and the directional relationship between the plurality of surrounding regions;

[0114] S134: collecting the difference levels of each sub-region, and adjusting the environmental parameters of the surrounding area of ​​the printed paper label according to the difference levels of each sub-region, so as to optimize the surrounding area of ​​the printed paper label;

[0115] S135: regulating the collection mode of the printer for the printing paper according to the label area and the peripheral area of ​​the optimized printing paper label;

[0116] S136: In this acquisition mode, the current image of the printing paper label is acquired.

[0117] In the embodiment of the present application, the regional difference parameters are fixed; the regional difference levels are defined according to the regional difference parameters, so that the regional difference degrees are presented through the regional difference levels, so as to facilitate the control of the regional difference levels.

[0118] At this time, the sub-region difference levels of the label area in various directions are defined based on the directional relationship between the regional difference level, the label area and multiple surrounding areas, so that regional difference assessments are performed on the surrounding areas of the label area, and then the sub-region difference levels of the label area in various directions are introduced to facilitate the management and control of the sub-region difference levels of the label area in various directions, thereby performing environmental processing on the sub-regions of the label area in various directions.

[0119] Furthermore, the difference levels of each sub-region are collected, and the environmental parameters of the surrounding area of ​​the printed paper label are adjusted according to the difference levels of each sub-region to optimize the surrounding area of ​​the printed paper label, thereby reducing the environmental impact of the surrounding area of ​​the printed paper label on the printed paper label, thereby ensuring the detection effect of the printed paper label.

[0120] At the same time, the printer's acquisition mode of the printing paper is adjusted according to the label area and the peripheral area of ​​the optimized printing paper label, so as to be compatible with the overall consideration of the label area and the peripheral area of ​​the optimized printing paper label, and then the label area and the peripheral area of ​​the optimized printing paper label are controlled as a whole. At this time, in this acquisition mode, the current image of the printing paper label is acquired to ensure the accuracy of the current image of the printing paper label.

[0121] refer to Figure 5, S14: defining a plurality of label features based on the current image of the printing paper label, and locating the relative distance between the plurality of label features, matching the label optimization logic based on the plurality of label features and the relative distance and the combination of the plurality of label features, and optimizing the current image of the printing paper label according to the label optimization logic to output an optimized image of the printing paper label;

[0122] In the specific implementation process of the present invention, the specific steps may be:

[0123] S141: freeze the current image of the printing paper label;

[0124] S142: defining a plurality of label features based on image recognition of a current image of a printed paper label;

[0125] S143: defining a relative distance based on a plurality of tag features, and defining a distance difference by comparing the plurality of relative distances;

[0126] S144: constructing a corresponding feature combination based on multiple features;

[0127] S145: matching the relative distance, the distance difference, and the feature combination with the optimization comparison table to match the label optimization logic;

[0128] S146: Associating the current image of the printing paper label and the label optimization logic;

[0129] S147: defining a portion of the current image of the printing paper label to be optimized;

[0130] S148: Determine the optimized part according to the part to be optimized and the label optimization logic, and replace the part to be optimized with the optimized part to output the optimized image of the printing paper label.

[0131] In an embodiment of the present application, the current image of the printed paper label is frozen, and image recognition is performed on the current image of the printed paper label, so as to define multiple label features based on the image recognition of the current image of the printed paper label, thereby achieving decomposition of the current image of the printed paper label and ensuring the integration of multiple label features.

[0132] At this time, relative distances are defined based on multiple label features, and distance differences are defined by comparing multiple relative distances, so as to introduce distance differences, thereby presenting distance differences of multiple label features through distance differences, and at the same time, corresponding feature combinations are constructed based on multiple features.

[0133] Furthermore, the relative distance, distance difference and feature combination are matched with the optimization comparison table to facilitate the use of the mapping relationship in the optimization comparison table, thereby matching the relative distance, distance difference and feature combination according to the mapping relationship, and then outputting the corresponding label optimization logic based on the mapping relationship, thereby achieving the matching of the relative distance, distance difference and feature combination with the label optimization logic, and ensuring the accuracy of the label optimization logic.

[0134] Therefore, the current image of the printed paper label and the label optimization logic are associated so as to apply the label optimization logic to the current image of the printed paper label. At this time, the current image of the printed paper label is traversed, and the part to be optimized of the current image of the printed paper label is defined. The part to be optimized is used as the abnormal part of the current image of the printed paper label. Further, the optimized part is determined according to the part to be optimized and the label optimization logic, and the optimized part replaces the part to be optimized to output the optimized image of the printed paper label, thereby realizing the optimization of the printed paper label, so as to improve the detection effect of the printed paper label and avoid the influence of the surrounding environment.

[0135] At the same time, multiple label features are defined based on the current image of the printing paper label, and the relative distances between the multiple label features are located. The label optimization logic is matched based on the multiple label features, the relative distances, and the combination of the multiple label features. The current image of the printing paper label is optimized according to the label optimization logic to output an optimized image of the printing paper label, so as to optimize the current printing paper label, and the detection efficiency of the printing paper label is defined based on the optimized image of the printing paper label and the detection mechanism of the printer.

[0136] refer to Figure 6 , S15: defining the detection efficiency of the printed paper label based on the optimized image of the printed paper label and the detection mechanism of the printer; if the detection efficiency of the printed paper label is lower than a preset detection efficiency threshold, triggering the first adjustment of the detection mechanism of the printer according to the detection efficiency difference to optimize the detection mechanism of the printer;

[0137] In the specific implementation process of the present invention, the specific steps may be:

[0138] S151: Optimized image of freeze-frame printed paper labels and detection mechanism of printer;

[0139] S152: Associating the optimized image of the printing paper label with the detection mechanism of the printer, and defining a correlation coefficient;

[0140] S153: defining a correlation level according to the correlation coefficient;

[0141] S154: when the optimized image of the printing paper label triggers the detection mechanism of the printer, monitoring the detection time of the printing paper label, and defining the detection efficiency of the printing paper label according to the detection time and the image area of ​​the optimized image of the printing paper label;

[0142] S155: comparing the detection efficiency of the printed paper label with a preset detection efficiency threshold;

[0143] S156: If the detection efficiency of the printed paper label is lower than the preset detection efficiency threshold, define a detection efficiency difference value according to the detection efficiency of the printed paper label and the preset detection efficiency threshold;

[0144] S157: Triggering the first regulation of the detection mechanism of the printer according to the detection efficiency difference. At this time, the first regulation logic is defined based on the detection efficiency difference and the first regulation matching table, and the detection mechanism of the printer is regulated according to the first regulation logic to optimize the detection mechanism of the printer.

[0145] In an embodiment of the present application, the optimized image of the printed paper label and the detection mechanism of the printer are frozen to facilitate association between the optimized image of the printed paper label and the detection mechanism of the printer, and a correlation coefficient is defined, thereby defining a correlation level based on the correlation coefficient, and presenting the degree of association between the optimized image of the printed paper label and the detection mechanism of the printer based on the correlation level.

[0146] At this time, when the optimized image of the printed paper label triggers the detection mechanism of the printer, the detection time of the printed paper label is monitored, and the detection efficiency of the printed paper label is defined based on the detection time and the image area of ​​the optimized image of the printed paper label, thereby compatibly considering the detection time and the image area of ​​the optimized image of the printed paper label, and defining the detection efficiency of the printed paper label under the overall calculation of the detection time and the image area of ​​the optimized image of the printed paper label.

[0147] Furthermore, the detection efficiency of the printed paper label is compared with a preset detection efficiency threshold; if the detection efficiency of the printed paper label is lower than the preset detection efficiency threshold, the detection efficiency difference is defined according to the detection efficiency of the printed paper label and the preset detection efficiency threshold, thereby triggering optimization for the detection efficiency difference, and then triggering the first regulation of the detection mechanism of the printer according to the detection efficiency difference. At this time, the first regulation logic is defined based on the detection efficiency difference and the first regulation matching table, and the detection mechanism of the printer is regulated according to the first regulation logic to optimize the detection mechanism of the printer.

[0148] Therefore, the first regulation of the detection mechanism of the printer is triggered based on the detection efficiency difference, so as to control the detection efficiency of the detection mechanism of the printer, thereby optimizing the detection mechanism of the printer.

[0149] refer to Figure 7, S16: defining the accuracy level of the detection result of the printing paper label based on the optimized image of the printing paper label and the detection mechanism of the printer, if the accuracy level of the detection result of the printing paper label is lower than the preset detection result accuracy level threshold, then triggering the second regulation of the detection mechanism of the printer based on the difference value of the detection result accuracy level, and combining the second regulation with the first regulation to optimize the detection mechanism of the printer as a whole;

[0150] In the specific implementation process of the present invention, the specific steps may be:

[0151] S161: Optimized image of freeze-frame printed paper labels and detection mechanism of printer;

[0152] S162: Associating the optimized image of the printing paper label with the detection mechanism of the printer, and defining a correlation coefficient;

[0153] S163: defining a correlation level according to the correlation coefficient;

[0154] S164: When the optimized image of the printing paper label triggers the detection mechanism of the printer, monitoring the detection result of the printing paper label, and defining the result accuracy of the printing paper label according to the detection result of the printing paper label and a preset result;

[0155] S165: Compare the result accuracy with a preset result accuracy threshold;

[0156] S166: If the result accuracy is lower than the preset result accuracy threshold, define the result accuracy difference according to the result accuracy of the printed paper label and the preset result accuracy threshold;

[0157] S167: triggering a second regulation of the detection mechanism of the printer according to the result accuracy difference. At this time, a second regulation logic is defined based on the result accuracy difference and the second regulation matching table, and the detection mechanism of the printer is regulated according to the second regulation logic to optimize the detection mechanism of the printer.

[0158] S168: Associating the second regulation with the first regulation, and optimizing the detection mechanism of the printer as a whole by combining the second regulation with the first regulation.

[0159] In the specific implementation process of the present invention, the optimized image of the printed paper label and the detection mechanism of the printer are fixed; the optimized image of the printed paper label and the detection mechanism of the printer are associated, and a correlation coefficient is defined; and the correlation level is defined according to the correlation coefficient.

[0160] At this time, when the optimized image of the printed paper label triggers the detection mechanism of the printer, the detection results of the printed paper label are monitored, and the result accuracy of the printed paper label is defined based on the detection results of the printed paper label and the preset results, so as to introduce the result accuracy of the printed paper label and control the detection results of the printed paper label.

[0161] Furthermore, the result accuracy is compared with a preset result accuracy threshold; if the result accuracy is lower than the preset result accuracy threshold, the result accuracy difference is defined according to the result accuracy of the printing paper label and the preset result accuracy threshold; the second regulation of the detection mechanism of the printer is triggered according to the result accuracy difference, at this time, the second regulation logic is defined based on the result accuracy difference and the second regulation matching table, and the detection mechanism of the printer is regulated according to the second regulation logic to optimize the detection mechanism of the printer.

[0162] Therefore, the second regulation and the first regulation are associated, and the detection mechanism of the printer is optimized as a whole in combination with the second regulation and the first regulation. Therefore, the accuracy level of the detection result of the printed paper label is defined based on the optimized image of the printed paper label and the detection mechanism of the printer, so as to introduce the second regulation and the first regulation, thereby triggering the regulation of the detection mechanism of the printer in multiple aspects, and the detection mechanism of the printer is optimized as a whole in combination with the second regulation and the first regulation, thereby ensuring the environmental adaptability of the detection mechanism of the printer.

[0163] Therefore, local positioning detection of the printing paper is triggered based on the location of the printing paper label, and regional comparison is performed on the location of the printing paper label and multiple areas around it to define regional difference parameters, so as to adjust the printer's acquisition mode of the printing paper according to the regional difference parameters and acquire the current image of the printing paper label, thereby fully considering the differences of multiple surrounding areas and the environmental impact of multiple surrounding areas on the printing paper label.

[0164] At the same time, multiple label features are defined based on the current image of the printing paper label, and the relative distances between the multiple label features are located. The label optimization logic is matched based on the multiple label features, the relative distances, and the combination of the multiple label features. The current image of the printing paper label is optimized according to the label optimization logic to output an optimized image of the printing paper label, so as to optimize the current printing paper label, and the detection efficiency of the printing paper label is defined based on the optimized image of the printing paper label and the detection mechanism of the printer.

[0165] At the same time, the accuracy level of the detection results of the printed paper labels is defined based on the optimized image of the printed paper labels and the detection mechanism of the printer, so as to introduce the second regulation and the first regulation, thereby triggering the regulation of the printer's detection mechanism in multiple aspects, and combining the second regulation and the first regulation to optimize the printer's detection mechanism as a whole, thereby ensuring the environmental adaptability of the printer's detection mechanism.

[0166] Second embodiment

[0167] See also Figure 8 , Figure 8 It is a schematic diagram of the structure of the detection system of the printing paper label of the printer in the embodiment of the present invention.

[0168] like Figure 8 As shown, a detection system for a printer to a printed paper label, the detection system for a printer to a printed paper label comprises:

[0169] The scanning module 21 is used to scan the printing paper based on the printer when the printing paper enters the printer, and define the location of the printing paper label;

[0170] A comparison module 22, for triggering local positioning detection of the printing paper based on the location of the printing paper label, and performing regional comparison on the location of the printing paper label and multiple areas around it to define regional difference parameters;

[0171] The first image module 23 is used to adjust the acquisition mode of the printer for the printing paper according to the regional difference parameter, and to acquire the current image of the printing paper label;

[0172] A second image module 24 is used to define a plurality of label features based on the current image of the printing paper label, locate the relative distance between the plurality of label features, match the label optimization logic based on the plurality of label features and the relative distance and the combination of the plurality of label features, and optimize the current image of the printing paper label according to the label optimization logic to output an optimized image of the printing paper label;

[0173] A first control module 25, configured to define a detection efficiency of the printed paper label based on the optimized image of the printed paper label and the detection mechanism of the printer; if the detection efficiency of the printed paper label is lower than a preset detection efficiency threshold, triggering a first control of the detection mechanism of the printer according to the detection efficiency difference, so as to optimize the detection mechanism of the printer;

[0174] The second control module 26 is used to define the accuracy level of the detection result of the printed paper label based on the optimized image of the printed paper label and the detection mechanism of the printer. If the accuracy level of the detection result of the printed paper label is lower than the preset detection result accuracy level threshold, the difference value of the detection result accuracy level triggers the second control of the detection mechanism of the printer, and the second control is combined with the first control to optimize the detection mechanism of the printer as a whole.

[0175] Third embodiment

[0176] See also Fig. 9 , refer to the following Fig. 9 The electronic device 40 according to this embodiment of the present invention will be described. Fig. 9 The electronic device 40 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0177] like Fig. 9 As shown, the electronic device 40 is in the form of a general computing device. The components of the electronic device 40 may include but are not limited to: at least one processing unit 41, at least one storage unit 42, and a bus 43 connecting different system components (including the storage unit 42 and the processing unit 41).

[0178] The storage unit stores program codes, which can be executed by the processing unit 41, so that the processing unit 41 executes the steps according to various exemplary embodiments of the present invention described in the above “Embodiment Method” section of this specification.

[0179] The storage unit 42 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 421 and / or a cache memory unit 422 , and may further include a read-only memory unit (ROM) 423 .

[0180] The storage unit 42 may also include a program / utility 424 having a set of (at least one) second control modules 425, such second control modules 425 including but not limited to: an operating system, one or more application programs, other second control modules and program data, each of these examples or some combination may include the implementation of a network environment.

[0181] Bus 43 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.

[0182] The electronic device 40 may also communicate with one or more external devices (e.g., keyboards, pointing devices, Bluetooth devices, etc.), one or more devices that enable a user to interact with the electronic device 40, and / or any device that enables the electronic device 40 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 44. Furthermore, the electronic device 40 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 45. Fig. 9 As shown, the network adapter 45 communicates with other modules of the electronic device 40 via the bus 43. It should be understood that although Fig. 9 Not shown, other hardware and / or software modules may be used in conjunction with the electronic device 40, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup planning systems.

[0183] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes a number of instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation of the present disclosure.

[0184] Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium can include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc. In addition, it stores computer program instructions, and when the computer program instructions are executed by a computer, the computer executes the above method.

[0185] In addition, the above is a detailed introduction to the detection method and system for printing paper labels by the printer provided in the embodiment of the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A method for detecting a printing paper label by a printer, characterized in that: Applicable to the scene where the printer detects the printed paper label; The method for detecting a printing paper label by the printer comprises: When the printing paper enters the printer, the printing paper is scanned based on the printer, and the location of the printing paper label is defined; the printing paper and the scanning end of the printer are positioned; the dynamic distance between the printing paper and the scanning end of the printer is collected, and the state of the scanning end of the printer is adjusted according to the change in the dynamic distance; if the dynamic distance is within a preset distance threshold, the working state of the scanning end of the printer is triggered, and the scanning range of the scanning end is defined according to the size of the printing paper to optimize the scanning efficiency of the printing paper; in the process of the scanning end of the printer scanning the printing paper, multiple patterns are positioned, and three similar label patterns are screened out according to the multiple patterns; the printing paper label is determined based on the synchronous recognition of the three similar label patterns, and the location of the printing paper label is defined; Based on the location of the printing paper label, local positioning detection of the printing paper is triggered, and the location of the printing paper label and multiple areas around it are regionally compared to define regional difference parameters; the location of the printing paper label is fixed; based on the location of the printing paper label and the overall space of the printing paper, the spatial position of the printing paper label is defined, and the orientation and position of the scanning end of the printing paper are adjusted according to the spatial position of the printing paper label until the scanning end of the printing paper is facing the location of the printing paper label; based on the location of the printing paper label, local positioning detection of the printing paper is triggered, and multiple areas around it are defined according to the size of the printing paper label; a first regional comparison is performed based on multiple surrounding areas, and an environmental coefficient of the surrounding area is defined; a label area is defined according to the location of the printing paper label, and a label coefficient is defined according to the label area; the label coefficient and the environmental coefficient are associated, and regional difference parameters are defined based on the label coefficient and the environmental coefficient; According to the regional difference parameters, the acquisition mode of the printer for the printing paper is adjusted, and the current image of the printing paper label is collected; the regional difference parameters are fixed; the regional difference level is defined according to the regional difference parameters; based on the directional relationship between the regional difference level, the label area and multiple peripheral areas, the sub-region difference level of the label area in each direction is defined; the difference level of each sub-region is collected, and the environmental parameters of the peripheral area of ​​the printing paper label are adjusted according to each sub-region difference level to optimize the peripheral area of ​​the printing paper label; according to the label area and the peripheral area of ​​the optimized printing paper label, the acquisition mode of the printer for the printing paper is adjusted; in this acquisition mode, the current image of the printing paper label is collected; Defining a plurality of label features based on a current image of a printing paper label, locating relative distances between the plurality of label features, matching label optimization logic based on the plurality of label features and the relative distances and a combination of the plurality of label features, and optimizing the current image of the printing paper label according to the label optimization logic to output an optimized image of the printing paper label; Defining the detection efficiency of the printed paper label based on the optimized image of the printed paper label and the detection mechanism of the printer; if the detection efficiency of the printed paper label is lower than a preset detection efficiency threshold, triggering a first adjustment of the detection mechanism of the printer according to the detection efficiency difference to optimize the detection mechanism of the printer; The accuracy level of the detection results of the printed paper label is defined based on the optimized image of the printed paper label and the detection mechanism of the printer. If the accuracy level of the detection results of the printed paper label is lower than the preset detection result accuracy level threshold, the difference value of the detection result accuracy level triggers the second adjustment of the detection mechanism of the printer. The second adjustment and the first adjustment are combined to optimize the detection mechanism of the printer as a whole.

2. The method for detecting a printing paper label by a printer according to claim 1, characterized in that: The method defines a plurality of label features based on the current image of the printing paper label, locates the relative distance between the plurality of label features, matches the label optimization logic based on the plurality of label features, the relative distance and the combination of the plurality of label features, and optimizes the current image of the printing paper label according to the label optimization logic to output an optimized image of the printing paper label, including: Freeze the current image of the printed paper label; defining a plurality of label features based on image recognition of a current image of a printed paper label; Defining a relative distance based on multiple label features, and defining a distance difference by comparing multiple relative distances; Construct corresponding feature combinations based on multiple features.

3. The method for detecting a printing paper label by a printer according to claim 2, characterized in that: The method further comprises: defining a plurality of label features based on the current image of the printing paper label, locating the relative distance between the plurality of label features, matching the label optimization logic based on the plurality of label features, the relative distance and the combination of the plurality of label features, and optimizing the current image of the printing paper label according to the label optimization logic to output the optimized image of the printing paper label, and further comprising: Match the relative distance, distance difference, and feature combination with the optimization comparison table to match the label optimization logic; Associate the current image of the printed paper label and the label optimization logic; Define the part of the current image of the printed paper label to be optimized; The optimized part is determined according to the part to be optimized and the label optimization logic, and the optimized part replaces the part to be optimized to output the optimized image of the printing paper label.

4. The method for detecting a printing paper label by a printer according to claim 3, characterized in that: The detection efficiency of the printed paper label is defined based on the optimized image of the printed paper label and the detection mechanism of the printer; If the detection efficiency of the printed paper label is lower than the preset detection efficiency threshold, the first adjustment of the detection mechanism of the printer is triggered according to the detection efficiency difference to optimize the detection mechanism of the printer, including: Optimized images of freeze-frame printed paper labels and detection mechanisms of printers; Correlating the optimized image of the printed paper label and the detection mechanism of the printer and defining a correlation coefficient; Define the level of association based on the association coefficient; When the optimized image of the printed paper label triggers the detection mechanism of the printer, monitoring the detection time of the printed paper label, and defining the detection efficiency of the printed paper label according to the detection time and the image area of ​​the optimized image of the printed paper label; Compare the detection efficiency of the printed paper label with a preset detection efficiency threshold; If the detection efficiency of the printed paper label is lower than the preset detection efficiency threshold, a detection efficiency difference is defined according to the detection efficiency of the printed paper label and the preset detection efficiency threshold; The first regulation of the printer's detection mechanism is triggered according to the detection efficiency difference. At this time, the first regulation logic is defined based on the detection efficiency difference and the first regulation matching table, and the printer's detection mechanism is regulated according to the first regulation logic to optimize the printer's detection mechanism.

5. The method for detecting a printing paper label by a printer according to claim 1, characterized in that: The optimized image based on the printed paper label and the detection mechanism of the printer defines the accuracy level of the detection result of the printed paper label. If the accuracy level of the detection result of the printed paper label is lower than a preset detection result accuracy level threshold, the difference value of the detection result accuracy level triggers the second regulation of the detection mechanism of the printer, and the second regulation and the first regulation are combined to optimize the detection mechanism of the printer as a whole, including: Optimized images of freeze-frame printed paper labels and detection mechanisms of printers; Correlating the optimized image of the printed paper label and the detection mechanism of the printer and defining a correlation coefficient; Define the level of association based on the association coefficient; When the optimized image of the printing paper label triggers the detection mechanism of the printer, the detection result of the printing paper label is monitored, and the result accuracy of the printing paper label is defined according to the detection result of the printing paper label and the preset result.

6. The method for detecting a printing paper label by a printer according to claim 5, characterized in that: The optimized image based on the printed paper label and the detection mechanism of the printer defines the accuracy level of the detection result of the printed paper label. If the accuracy level of the detection result of the printed paper label is lower than a preset detection result accuracy level threshold, the difference value of the detection result accuracy level triggers the second regulation of the detection mechanism of the printer, and the second regulation and the first regulation are combined to optimize the detection mechanism of the printer as a whole, and further includes: Compare the result accuracy with the preset result accuracy threshold; If the result accuracy is lower than the preset result accuracy threshold, the result accuracy difference is defined according to the result accuracy of the printed paper label and the preset result accuracy threshold; The second regulation of the detection mechanism of the printer is triggered according to the result accuracy difference. At this time, a second regulation logic is defined based on the result accuracy difference and the second regulation matching table, and the detection mechanism of the printer is regulated according to the second regulation logic to optimize the detection mechanism of the printer; The second regulation is associated with the first regulation, and the detection mechanism of the printer is optimized as a whole by combining the second regulation with the first regulation.

7. A printer detecting system for printing paper labels, characterized in that: The printer to print paper label detection system is applied to the printer to print paper label detection method as claimed in any one of claims 1 to 6, and the printer to print paper label detection system comprises: The scanning module is used to scan the printing paper based on the printer when the printing paper enters the printer, and define the location of the printing paper label; locate the printing paper and the scanning end of the printer; collect the dynamic distance between the printing paper and the scanning end of the printer, and adjust the state of the scanning end of the printer according to the change of the dynamic distance; if the dynamic distance is within a preset distance threshold, trigger the working state of the scanning end of the printer, and define the scanning range of the scanning end according to the size of the printing paper to optimize the scanning efficiency of the printing paper; in the process of scanning the printing paper by the scanning end of the printer, locate multiple patterns, and select three similar label patterns according to the multiple patterns; determine the printing paper label based on the synchronous recognition of the three similar label patterns, and define the location of the printing paper label; A comparison module is used to trigger local positioning detection of printing paper based on the location of the printing paper label, and perform regional comparison on the location of the printing paper label and multiple areas around it to define regional difference parameters; freeze the location of the printing paper label; define the spatial position of the printing paper label based on the location of the printing paper label and the overall space of the printing paper, and adjust the direction and position of the scanning end of the printing paper according to the spatial position of the printing paper label until the scanning end of the printing paper is facing the location of the printing paper label; trigger local positioning detection of the printing paper according to the location of the printing paper label, and define multiple areas around it according to the size of the printing paper label; perform a first regional comparison based on multiple surrounding areas, and define an environmental coefficient of the surrounding area; define a label area according to the location of the printing paper label, and define a label coefficient according to the label area; associate the label coefficient and the environmental coefficient, and define regional difference parameters based on the label coefficient and the environmental coefficient; The first image module is used to adjust the acquisition mode of the printer for printing paper according to the regional difference parameter, and to acquire the current image of the printing paper label; freeze the regional difference parameter; define the regional difference level according to the regional difference parameter; define the sub-region difference level of the label area in each direction based on the directional relationship between the regional difference level, the label area and multiple peripheral areas; acquire each sub-region difference level, and adjust the environmental parameters of the peripheral area of ​​the printing paper label according to each sub-region difference level to optimize the peripheral area of ​​the printing paper label; adjust the acquisition mode of the printer for printing paper according to the label area and the peripheral area of ​​the optimized printing paper label; in this acquisition mode, acquire the current image of the printing paper label; A second image module is used to define a plurality of label features based on the current image of the printing paper label, locate the relative distance between the plurality of label features, match the label optimization logic based on the plurality of label features and the relative distance and the combination of the plurality of label features, and optimize the current image of the printing paper label according to the label optimization logic to output an optimized image of the printing paper label; A first control module is used to define the detection efficiency of the printed paper label based on the optimized image of the printed paper label and the detection mechanism of the printer; if the detection efficiency of the printed paper label is lower than a preset detection efficiency threshold, triggering the first control of the detection mechanism of the printer according to the detection efficiency difference to optimize the detection mechanism of the printer; The second control module is used to define the accuracy level of the detection result of the printed paper label based on the optimized image of the printed paper label and the detection mechanism of the printer. If the accuracy level of the detection result of the printed paper label is lower than the preset detection result accuracy level threshold, the difference value of the detection result accuracy level triggers the second control of the detection mechanism of the printer. The second control and the first control are combined to optimize the detection mechanism of the printer as a whole.