Method and System for Detecting Output Quality of Ticket Printers Based on Smart Terminal Devices

By using image processing and analysis on intelligent terminal devices, the problems of convenience and accuracy in the printing quality inspection of receipt printers have been solved, achieving low-cost and efficient printing quality assessment, which is suitable for diverse scenarios.

CN122089646APending Publication Date: 2026-05-26ZHUHAI XPRINTER ELECTRONICS TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
ZHUHAI XPRINTER ELECTRONICS TECHNOLOGY CO LTD
Filing Date
2025-12-31
Publication Date
2026-05-26

AI Technical Summary

Technical Problem

In existing technologies, the printing quality inspection of receipt printers suffers from problems such as reliance on subjective human judgment leading to misjudgments and low efficiency, or the use of expensive and complex professional equipment resulting in poor universality. In particular, there is a lack of convenient and efficient inspection solutions in the mobile Internet environment.

Method used

By leveraging the camera and image processing capabilities of smart terminal devices, the system generates visual and quantitative inspection reports through uploading expected effect images, capturing printed document images, performing preprocessing and feature comparison analysis, thereby achieving objective and accurate print quality assessment.

Benefits of technology

It reduces testing costs and technical barriers, has a wide range of applications, is simple and efficient to operate, and provides objective and accurate test results, thus improving user experience and testing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122089646A_ABST
    Figure CN122089646A_ABST
Patent Text Reader

Abstract

This invention discloses a method and system for inspecting the output quality of a receipt printer based on a smart terminal device, aiming to solve the problems of high subjectivity, high cost, and complex operation in existing inspection methods. The method uses a smart terminal inspection system to upload a desired effect image as a standard reference. The receipt printer receives the corresponding printing data and outputs the receipt. The smart terminal device captures the receipt image according to specifications and uploads it to the system. After preprocessing, geometric correction, feature extraction, and multi-dimensional algorithm comparison, a visual and quantitative inspection report is generated. The system includes a smart terminal inspection system and a receipt printer. The smart terminal inspection system includes modules for camera, image processing, and display, working together to achieve efficient inspection. This invention utilizes widely available smart terminal devices, requires no specialized instruments, is convenient to operate, low in cost, and provides objective and accurate inspection results, making it suitable for batch quality inspection needs in multiple scenarios.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of printer technology, and in particular relates to a method and system for detecting the output quality of a receipt printer based on a smart terminal device. Background Technology

[0002] In the use cases of receipt printers, print quality inspection is a crucial step in ensuring the accuracy of information transmission and the validity of vouchers. Currently, the industry mainly uses two methods to inspect the print quality of receipt printers. One method is subjective judgment by human eyes, where users evaluate quality by observing the difference between the printed sample and the expected result. This method relies heavily on personal feelings and experience, is highly subjective, and is easily affected by factors such as ambient light and visual fatigue. It cannot achieve accurate comparison and quantitative evaluation, has low inspection efficiency, and is prone to misjudgment, especially unsuitable for large-scale, repetitive quality inspection scenarios. The other method uses specialized inspection equipment, such as high-precision scanners, spectrophotometers, densitometers, optical microscopes, and other professional instruments for measurement. Although such equipment has high detection accuracy, it suffers from problems such as high cost, large size, complex operation, and inconvenience in portability. It requires professional personnel for operation and maintenance, making it difficult for ordinary office or home users to afford and use, and lacking universality.

[0003] With the rapid development of mobile internet, smartphones and other smart terminal devices have become widely used. Their built-in camera image quality is constantly improving, and their computing power is also increasing, providing a solid hardware foundation for low-cost and convenient quality inspection. However, there is currently no mature technical solution that can effectively utilize the convenience of smart terminal devices to solve the aforementioned pain points in the quality inspection process of invoice printers. This results in invoice printing quality inspection still facing high technical barriers and limited application scenarios. Summary of the Invention

[0004] The purpose of this invention is to provide a method and system for detecting the output quality of a receipt printer based on a smart terminal device, so as to solve the problems mentioned in the background art.

[0005] In view of this, the present invention provides a method for detecting the output quality of a receipt printer based on a smart terminal device, comprising the following steps: S1. Upload the expected effect image to the intelligent terminal detection system, and the intelligent terminal detection system sets the expected effect image as the standard reference benchmark for print quality detection. S2. Input printing data into the receipt printer. The printing data is consistent with the original data corresponding to the expected effect diagram in S1. S3. The receipt printer receives the printing data and outputs a printed receipt according to the preset printing parameters. The content format of the printed receipt is completely matched with the expected effect image. S4. Use the camera function of the smart terminal device to capture an image of the printed ticket. During the capture process, keep the printed ticket horizontally laid out and the smart terminal device and the printed ticket on the same horizontal plane. S5. Upload the captured ticket image to the intelligent terminal detection system, which performs integrity verification on the uploaded image; S6, The image processing module of the intelligent terminal detection system preprocesses the expected effect image and the captured image respectively; S7. Using a preset algorithm, perform feature comparison analysis on the preprocessed expected effect image and the captured image, generate a comparison report containing visualization results and quantitative data, and output it.

[0006] In a further embodiment of the present invention, when capturing the image of the printed ticket in S4, the vertical distance between the smart terminal device and the printed ticket is maintained within a preset range, and the light intensity of the shooting environment is within a preset threshold range, so as to avoid image distortion caused by strong direct light or too dark light.

[0007] In a further embodiment of the present invention, the integrity check in S5 includes determining whether the captured image completely contains all the valid content of the printed ticket, and whether the image is blurry, distorted, or obscured. If the check fails, a prompt is sent to the user to retake the photo.

[0008] In a further embodiment of the present invention, the preprocessing in S6 includes performing feature point extraction, positioning mark setting, edge contour division, scaling and size standardization, and geometric correction operations on the expected effect image and the captured image, respectively. The geometric correction is used to eliminate the effects of shooting angle offset and ticket placement deviation.

[0009] In a further embodiment of the present invention, feature point extraction is performed on text edges, graphic contour intersections, color transition areas, and preset logo patterns in the image. The positioning mark setting establishes reference coordinates based on the four corners and center positions of the expected effect image to ensure that the comparison reference between the expected effect image and the captured image is consistent.

[0010] In a further embodiment of the present invention, the preset algorithm in S7 includes a feature point matching algorithm, an edge contour overlap calculation algorithm, a color difference analysis algorithm, and an overall visual consistency verification algorithm, which comprehensively calculates the similarity between the two through multi-dimensional algorithms.

[0011] In a further embodiment of the present invention, the comparison report generated in S7 includes the following: a synchronous comparison display interface between the expected effect image and the captured image, feature point matching success rate data, edge contour overlap percentage, color deviation quantification value, print quality level evaluation results, and explanations of non-conforming items.

[0012] A document printer output quality inspection system based on smart terminal devices includes a smart terminal inspection system and a document printer. The smart terminal inspection system is communicatively connected to the document printer to cooperate in implementing a document printer output quality inspection method based on smart terminal devices. The smart terminal inspection system includes a camera module, an image processing module, a display module, a data storage module, and a communication module.

[0013] In a further embodiment of the present invention, the camera module is used to call the camera interface of the smart terminal device, capture images of the printed ticket according to preset shooting parameters, synchronously transmit the captured original images to the image processing module and the display module, and back up the original images to the data storage module. The image processing module is used to perform preprocessing, feature extraction, comparative analysis and comparison report generation operations of the expected effect image and the captured image, and has built-in a variety of comparison algorithms adapted to different printing scenarios; The display module is used to display the original captured image, the pre-processed image, the synchronous comparison interface, and the final comparison report, allowing users to view detailed differences. The data storage module is used to store the expected effect diagram, captured images, preprocessed data and historical comparison reports, and supports data traceability and export. The communication module is used to realize data transmission between the smart terminal detection system and the ticket printer, and supports wired or wireless communication methods.

[0014] In a further embodiment of the present invention, the receipt printer includes a data receiving module, a parameter configuration module, and a printing execution module. The data receiving module is used to receive printing data sent by a smart terminal detection system or an external device. The parameter configuration module is used to preset multiple printing parameters such as printing resolution, printing density, and paper type, and supports user-defined adjustments. The printing execution module outputs printed receipts according to the received printing data and preset parameters. The intelligent terminal detection system also includes a user interaction module, which allows users to upload expected effect images, trigger shooting commands, view historical data, and adjust detection parameters.

[0015] The beneficial effects of this invention are: The testing equipment is readily available and has low operating costs. This invention utilizes widely available smart terminal devices as the testing carrier, eliminating the need to purchase expensive dedicated testing instruments. This significantly reduces the economic cost and technical barriers of printing quality inspection, making it convenient for ordinary users and effectively overcoming the shortcomings of traditional dedicated testing equipment in terms of poor versatility.

[0016] Portable and applicable to a wide range of scenarios. The smart terminal device is small and easy to carry, allowing users to conduct testing work in different environments such as offices and mobile scenarios. It breaks the limitations of dedicated testing equipment on the location of use and meets the quality inspection needs in diverse scenarios.

[0017] The operation process is simple and the testing efficiency is high. The testing process only requires uploading the expected effect image, taking photos of printed invoices, and automatic comparison by the system through a smart terminal device. No professional technical training is required, and the operation is convenient and easy to understand. Compared with manual visual judgment, the testing efficiency is greatly improved, and it is especially suitable for high-volume and repetitive quality inspection scenarios.

[0018] The test results are objective, accurate, and comprehensive. Through preprocessing, geometric correction, feature extraction, and intelligent analysis algorithms of the intelligent terminal testing system, environmental interference and human factors can be effectively eliminated, enabling objective judgment and accurate evaluation of print quality. At the same time, it outputs visualized and quantitative test reports, making the test results more intuitive and reliable.

[0019] The system features a simple design and strong collaboration. The inspection system consists of an intelligent terminal inspection system and a ticket printer. The camera module, image processing module, and display module of the intelligent terminal inspection system have clearly defined functions and work collaboratively, with smooth workflow connections. This ensures stable and efficient operation throughout the entire inspection process, further enhancing the user experience. Attached Figure Description

[0020] Figure 1 This is a flowchart of the steps of the method of the present invention. Detailed Implementation

[0021] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.

[0022] In the description of this application, it should be noted that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the exemplary embodiments according to this application. For ease of description, the dimensions of the various parts shown in the drawings are not drawn to actual scale. Techniques, methods, and devices known to those skilled in the art may not be discussed in detail, but where appropriate, such techniques, methods, and devices should be considered part of the specification. In all examples shown and discussed herein, any specific values ​​should be interpreted as merely exemplary and not as limitations. Therefore, other examples of exemplary embodiments may have different values. It should be noted that similar reference numerals and letters in the following drawings denote similar items; therefore, once an item is defined in one drawing, it need not be further discussed in subsequent drawings.

[0023] It should be noted that the terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and are not used to describe a predetermined order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of this application can be implemented in sequences other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class, not limited in number; for example, the first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.

[0024] It should be noted that in the description of this application, the directional terms such as "front, back, up, down, left, right", "horizontal, vertical, horizontal" and "top, bottom" indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are only for the convenience of describing this application and simplifying the description. Unless otherwise stated, these directional terms do not indicate or imply that the device or element referred to must have a preset orientation or be constructed and operated in a preset orientation. Therefore, they should not be construed as limiting the scope of protection of this application. The directional terms "inner" and "outer" refer to the inner and outer contours relative to the outline of each component itself.

[0025] It should be noted that, in this application, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

[0026] Example 1: This embodiment provides a method for detecting the output quality of a receipt printer based on a smart terminal device, including the following steps: S1, uploading the expected effect image to the smart terminal detection system. The smart terminal detection system performs format verification and integrity review on the uploaded expected effect image. After confirming that the image is undamaged and without missing parts, it sets it as the standard reference benchmark for print quality detection. At the same time, it stores the original data information of the expected effect image, including core parameters such as image resolution, color mode, and content layout, to provide a unified benchmark for subsequent comparative analysis, effectively avoiding detection deviations caused by inconsistent standards and ensuring the consistency of detection.

[0027] S2. Input printing data into the receipt printer. The printing data must be completely consistent with the original data corresponding to the expected effect image in S1, including all details such as text information, graphic elements, color parameters, and layout format. This ensures that the printed receipts output by the receipt printer have a basis for comparison with the expected effect image in terms of content, thereby eliminating invalid detection caused by data differences from the source and improving the reliability of the detection results.

[0028] S3. After receiving the printing data, the receipt printer calls the preset printing parameters through the built-in parameter configuration module, including printing resolution, printing density, paper type adaptation parameters, etc., and accurately outputs the printed receipt according to the combination of these parameters, so that the content format, size and ratio of the printed receipt are completely matched with the expected effect image, creating the same physical basis for subsequent image comparison, reducing detection errors caused by inconsistent printing parameters, and ensuring the accuracy of detection.

[0029] S4. Use the camera function of the smart terminal device to capture an image of the printed receipt. During the shooting process, the printed receipt must be laid flat and level on a flat table, without wrinkles or tilting. The smart terminal device and the printed receipt should be on the same horizontal plane, ensuring that the shooting angle is perpendicular to the surface of the receipt. Furthermore, the vertical distance between the smart terminal device and the printed receipt should be maintained within a preset range of 15-30 cm. This distance range has been verified through extensive experiments, ensuring that it can fully cover the entire content of the receipt while guaranteeing image clarity. At the same time, the light intensity of the shooting environment should be within a preset threshold range of 500-1500 lux. The light intensity is monitored in real time by the light sensor of the smart terminal device, and a prompt is issued when the light exceeds the threshold. This avoids glare distortion caused by direct sunlight or image blurring caused by insufficient light, ensuring that the captured image accurately reflects the actual quality of the printed receipt and provides high-quality image data for subsequent analysis.

[0030] S5. The captured image of the receipt is uploaded to the intelligent terminal detection system via the wireless communication module of the intelligent terminal device. The intelligent terminal detection system immediately performs an integrity check on the uploaded image. The check process includes using an edge detection algorithm to determine whether the captured image completely contains all valid content of the printed receipt, using a sharpness evaluation algorithm such as the variance method to detect whether the image is blurry, using a geometric distortion correction algorithm to determine whether the image is distorted, and using pixel grayscale value analysis to determine whether there is occlusion. If any of the above problems are found during the check process, the system immediately prompts the user to retake the image through the display module, clearly stating the type of problem, such as the image not completely containing the receipt content or the image being blurry, etc., to ensure that the uploaded image meets the detection requirements, avoid interruption of the detection process or distortion of results due to invalid images, and improve detection efficiency.

[0031] The image processing module of the S6 intelligent terminal detection system performs standardized preprocessing on both the expected result image and the captured image. The preprocessing specifically includes feature point extraction, positioning markers, edge contour division, scaling, standardization, and geometric correction operations. The feature point extraction process employs the SIFT algorithm, which detects key points in the image, including the intersection points of text edges and graphic contours, color transition areas, and preset logo patterns. It extracts feature points with scale and rotation invariance to ensure accurate matching across different scales and angles. Positioning markers are established based on five reference coordinate points at the four corners and center of the expected image, forming a three-dimensional spatial positioning system. The captured image is marked accordingly according to these reference coordinate points, ensuring a consistent comparison benchmark between the expected image and the captured image. Edge contour segmentation utilizes the Canny edge detection algorithm, employing Gaussian filtering for noise reduction, gradient magnitude calculation, and non-maximum suppression of direction, along with double threshold detection, to accurately extract image edge contours. Scaling and size standardization uses an interpolation algorithm to uniformly scale the expected image and the captured image to a standard size of 1920×1080 pixels, eliminating the impact of size differences on the comparison results. Geometric correction employs a perspective transformation algorithm, solving for the perspective transformation matrix to correct geometric distortions caused by shooting angle shifts and document placement deviations in the captured image. This ensures that the captured image and the expected image maintain geometric consistency, effectively eliminating detection interference caused by spatial position deviations and improving the accuracy of comparative analysis.

[0032] S7. Using preset algorithms, perform multi-dimensional feature comparison analysis on the pre-processed expected effect image and the captured image, generating and outputting a comparison report containing visualization results and quantitative data. The preset algorithms specifically include a feature point matching algorithm, an edge contour overlap calculation algorithm, a color difference analysis algorithm, and an overall visual consistency verification algorithm. Feature point matching uses the FLANN matching algorithm to match the SIFT feature points of the expected effect image and the captured image, calculating the ratio of the number of successfully matched feature points to the total number of feature points to obtain the feature point matching success rate. Edge contour overlap calculation involves calculating the Hamming distance between the edge contours of the two images, and then using formula 1 - Hamming distance / total number of contour pixels × 100% to obtain the edge contour overlap percentage. Color difference analysis uses the CIELab color space model to calculate the difference between the three channels (L (lightness), a (red / green axis), and b (yellow / blue axis)) of corresponding pixels in the two images, using the formula ΔE = √ΔL. 2 +Δa 2 +Δb 2The system calculates a quantitative value for color deviation, with a smaller ΔE value indicating a smaller color difference. Overall visual consistency verification uses the Structural Similarity Simulation (SSIM) algorithm, calculating the similarity index between two images across three dimensions: brightness, contrast, and structure. Based on these multi-dimensional calculations, the system automatically assesses the print quality level as excellent, good, acceptable, or unacceptable, accurately marking any non-compliant items, such as feature point matching success rate below 85%, edge contour overlap less than 90%, or local color deviation ΔE greater than 3. The generated comparison report includes a synchronized comparison display interface between the expected result image and the captured image, supporting split-screen viewing and magnified comparison of local features, feature point matching success rate data, edge contour overlap percentage, quantitative value for color deviation, print quality level assessment results, and explanations of non-compliant items. This visualizes and quantifies the detection results, completely eliminating the limitations of subjective human judgment, making the detection results objective, accurate, and traceable, while reducing the difficulty of interpreting the results for users and improving the user experience.

[0033] Example 2: The document printer output quality inspection system based on smart terminal devices includes a smart terminal inspection system and a document printer. The smart terminal inspection system and the document printer establish a stable communication connection through a communication module to cooperate in implementing the aforementioned document printer output quality inspection method based on smart terminal devices. The smart terminal inspection system includes a camera module, an image processing module, a display module, a data storage module, and a communication module. All modules work together to ensure efficient and accurate operation of the inspection process.

[0034] Furthermore, the camera module is used to call the camera interface of the smart terminal device to capture images of printed receipts according to preset shooting parameters, including a shooting distance of 15-30 cm, a light intensity of 500-1500 lux, and a shooting resolution of 1920×1080 pixels. During the acquisition process, the camera module monitors in real time whether the shooting parameters meet the preset requirements. If not, it issues a prompt through the display module. After acquisition, the original image is synchronously transmitted to the image processing module and the display module through the internal data bus. At the same time, the original image is backed up to the data storage module through the data interface, realizing multi-terminal synchronization and backup of image data. This ensures the smooth progress of subsequent processing, facilitates users to view the original image in real time, supports data traceability, and improves the data security and availability of the system.

[0035] The image processing module, as the core processing unit of the system, employs a high-performance processor chip to perform preprocessing feature extraction, comparative analysis, and comparison report generation operations on the expected effect image and the captured image. This module incorporates multiple comparison algorithms adapted to different printing scenarios, including character recognition-assisted comparison algorithms for text-based documents, shape matching algorithms for graphic documents, and accurate color analysis algorithms for color documents. Users can select the corresponding algorithm based on the document type, or the system can automatically identify the document type and match the optimal algorithm. During processing, the image processing module utilizes multi-threaded parallel computing technology to simultaneously handle preprocessing feature extraction and comparative analysis tasks, significantly improving processing efficiency. This ensures that the entire analysis of a single document is completed within 3 seconds, meeting the rapid detection needs of large batches of documents. Simultaneously, algorithm optimization ensures detection accuracy, making the detection results comparable to professional detection equipment.

[0036] The display module uses a high-definition touch screen that supports multi-touch operation. It is used to display a synchronous comparison interface for pre-processed original captured images and the final comparison report. During the display, users can zoom in, zoom out, and pan the images to easily view detailed differences. The synchronous comparison interface uses a split-screen display mode, with the expected effect image on the left and the captured image on the right. Corresponding areas are linked in real time, and users can click on any area to zoom in on both images synchronously. The final comparison report is presented in a combination of text and graphics. Quantitative data is displayed intuitively with numbers and charts such as bar charts and line graphs. Unqualified items are highlighted in red, allowing users to quickly grasp key information, reducing the difficulty of interpreting results, and improving the human-computer interaction experience.

[0037] The data storage module employs a combination of local and cloud storage. Local storage caches recent detection data, while cloud storage stores all detection data long-term. Specifically, this module stores intermediate data and historical comparison reports from the preprocessing of images for the expected results. It supports data retrieval by keywords such as detection time, document type, and detection results. Historical data can also be exported to PDF, Excel, and other formats for user-friendly data statistics and analysis. Through this data storage module, users can trace the complete data of any single detection, providing data support for quality optimization and troubleshooting of document printers, while simultaneously meeting compliance requirements and enhancing the system's usability and scalability.

[0038] The communication module supports both wired communication (such as USB interface communication) and wireless communication (such as Wi-Fi, Bluetooth, 4G / 5G) to achieve bidirectional data transmission between the smart terminal detection system and the ticket printer. During data transmission, an encrypted transmission protocol is used to encrypt the data, preventing leakage or tampering. Through this module, the smart terminal detection system can send printing data and parameter configuration commands to the ticket printer, while the ticket printer can provide feedback on printing status, such as printing completion or printing failure, to the smart terminal detection system. This ensures smooth collaboration between the two, automating and intelligentizing the detection process, reducing manual intervention, and improving detection efficiency.

[0039] Furthermore, the ticket printer includes a data receiving module, a parameter configuration module, and a printing execution module. The data receiving module adopts a multi-protocol compatible design, supporting the reception of various formats of print data sent by smart terminal detection systems or external devices such as computer servers, including PDF, Word, and image formats. After receiving the data, it parses and verifies it to ensure its integrity before transmitting it to the printing execution module, thus guaranteeing the accuracy of the printed data.

[0040] The parameter configuration module has a variety of preset printing parameter combinations, covering common printing resolutions such as 203dpi to 300dpi, printing density levels 1-10, and paper types such as thermal paper, plain paper, and label paper. It also supports users to customize and adjust parameters through the user interaction module of the smart terminal detection system or the local operation panel of the ticket printer. Users can flexibly configure the parameters according to their actual printing needs to ensure that the printing effect meets the detection requirements and improve the system's adaptability.

[0041] The printing execution module employs a high-precision printhead, precisely controlling its temperature, impact force, and movement speed based on received printing data and preset parameters to output printed documents. During printing, the module monitors the printing status in real time. If paper jams, paper shortages, or printhead malfunctions occur, the module immediately sends fault information to the intelligent terminal detection system via the communication module. The system then promptly notifies the user through the display module, facilitating quick troubleshooting and ensuring a smooth printing process.

[0042] The intelligent terminal inspection system also includes a user interaction module. This module includes physical buttons or touch-sensitive virtual buttons, allowing users to upload desired effect images, select local files, or upload photos to trigger a shooting command, enabling one-click activation of the camera module for recording, viewing historical data, retrieving past inspection reports, and adjusting inspection parameters such as shooting distance threshold, light intensity threshold, algorithm selection, and print quality rating standards. The user interaction module's operation logic is simple and clear, requiring no professional technical training for proficiency, lowering the user threshold, and enhancing the system's versatility. This allows ordinary office users and small businesses to easily use the system for invoice printing quality inspection.

[0043] The embodiments of this application have been described above with reference to the accompanying drawings. Unless otherwise specified, the embodiments and features in the embodiments of this application can be combined with each other. This application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

Claims

1. A method for detecting the output quality of a receipt printer based on a smart terminal device, characterized in that, Includes the following steps: S1. Upload the expected effect image to the intelligent terminal detection system, and the intelligent terminal detection system sets the expected effect image as the standard reference benchmark for print quality detection. S2. Input printing data into the receipt printer. The printing data is consistent with the original data corresponding to the expected effect diagram in S1. S3. The receipt printer receives the printing data and outputs a printed receipt according to the preset printing parameters. The content format of the printed receipt is completely matched with the expected effect image. S4. Use the camera function of the smart terminal device to capture an image of the printed ticket. During the capture process, keep the printed ticket horizontally laid out and the smart terminal device and the printed ticket on the same horizontal plane. S5. Upload the captured ticket image to the intelligent terminal detection system, which performs integrity verification on the uploaded image; S6, The image processing module of the intelligent terminal detection system preprocesses the expected effect image and the captured image respectively; S7. Using a preset algorithm, perform feature comparison analysis on the preprocessed expected effect image and the captured image, generate a comparison report containing visualization results and quantitative data, and output it.

2. The method for detecting the output quality of a receipt printer based on a smart terminal device according to claim 1, characterized in that, When capturing images of printed receipts in the S4, the vertical distance between the smart terminal device and the printed receipt is kept within a preset range, and the light intensity of the shooting environment is within a preset threshold range to avoid image distortion caused by direct strong light or excessively dark light.

3. The method for detecting the output quality of a receipt printer based on a smart terminal device according to claim 1, characterized in that, The integrity check in S5 includes determining whether the captured image completely contains all the valid content of the printed ticket, and whether the image is blurry, distorted, or obstructed. If the check fails, the user is prompted to retake the photo.

4. The method for detecting the output quality of a receipt printer based on a smart terminal device according to claim 1, characterized in that, The preprocessing in S6 includes performing feature point extraction, positioning mark setting, edge contour division, scaling and normalization, and geometric correction operations on the expected effect image and the captured image, respectively. The geometric correction is used to eliminate the effects of shooting angle offset and ticket placement deviation.

5. The method for detecting the output quality of a receipt printer based on a smart terminal device according to claim 4, characterized in that, Feature point extraction targets text edges, graphic contour intersections, color transition areas, and preset logo patterns in the image. Positioning markers are set based on the four corners and center of the expected effect image to establish reference coordinates, ensuring that the comparison reference between the expected effect image and the captured image is consistent.

6. The method for detecting the output quality of a receipt printer based on a smart terminal device according to claim 1, characterized in that, The preset algorithms in S7 include feature point matching algorithm, edge contour overlap calculation algorithm, color difference analysis algorithm, and overall visual consistency verification algorithm, which comprehensively calculate the similarity between the two through multi-dimensional algorithms.

7. The method for detecting the output quality of a receipt printer based on a smart terminal device according to claim 1, characterized in that, The comparison report generated in S7 includes the following: a synchronized comparison display interface between the expected effect image and the captured image, feature point matching success rate data, edge contour overlap percentage, color deviation quantification value, print quality level rating results, and explanations of non-conforming items.

8. A receipt printer output quality inspection system based on intelligent terminal equipment, characterized in that, The invention includes a smart terminal detection system and a ticket printer. The smart terminal detection system is communicatively connected to the ticket printer to cooperate in implementing the ticket printer output quality detection method based on a smart terminal device as described in any one of claims 1-7. The smart terminal detection system includes a camera module, an image processing module, a display module, a data storage module, and a communication module.

9. The document printer output quality inspection system based on intelligent terminal equipment according to claim 8, characterized in that, The camera module is used to call the camera interface of the smart terminal device, capture images of the printed tickets according to preset shooting parameters, and synchronously transmit the captured raw images to the image processing module and the display module, while backing up the raw images to the data storage module. The image processing module is used to perform preprocessing, feature extraction, comparative analysis and comparison report generation operations of the expected effect image and the captured image, and has built-in a variety of comparison algorithms adapted to different printing scenarios; The display module is used to display the original captured image, the pre-processed image, the synchronous comparison interface, and the final comparison report, allowing users to view detailed differences. The data storage module is used to store the expected effect diagram, captured images, preprocessed data and historical comparison reports, and supports data traceability and export. The communication module is used to realize data transmission between the smart terminal detection system and the ticket printer, and supports wired or wireless communication methods.

10. The document printer output quality inspection system based on intelligent terminal equipment according to claim 8, characterized in that, The receipt printer includes a data receiving module, a parameter configuration module, and a printing execution module. The data receiving module is used to receive printing data sent by a smart terminal detection system or external devices. The parameter configuration module is used to preset multiple printing parameters such as printing resolution, printing density, and paper type, and supports user-defined adjustments. The printing execution module outputs printed receipts based on the received printing data and preset parameters. The intelligent terminal detection system also includes a user interaction module, which allows users to upload expected effect images, trigger shooting commands, view historical data, and adjust detection parameters.