Method and system for printing area to be printed of image by printer
The printer's camera module and light source module perform real-time shooting and local lighting on paper documents, determine the area to be printed, and trigger independent printing based on this area, solving the problem of inaccurate identification of the area to be printed in the prior art, and improving printing efficiency and accuracy.
Patent Information
- Application Number
- CN202510542458.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-28
- Publication Date
- 2025-05-30
- Estimated Expiration
- 2045-04-28
AI Technical Summary
The prior art cannot directly determine the area to be printed in paper documents, which affects the printing efficiency of the printer.
The printer's camera module takes real-time photos of paper documents, and uses the light source module to light the printing area to be partially illuminated, and determines the target brightness area as the area to be printed. The printer is triggered based on the area to be printed, and the sub-target area, printing content and printing scene are determined according to the division of the area to be printed, and the printing mode is finally determined.
It realizes accurate identification and independent printing of the area to be printed on paper documents, improves printing accuracy and efficiency, and is compatible with the printer's service life and the size of the area to be printed.
Smart Images

Figure CN120066432A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of printers, and in particular, to a printing method and system for a to-be-printed area of an image by a printer. Background Art
[0002] With the development of technology, printers are gradually applied to people's lives. Before printing by a printer, a shooting device shoots a paper document to collect a corresponding image, which is presented on a computer, and a to-be-printed area is determined on the computer. Based on the printing information of the to-be-printed area, it is transmitted to the printer. At this time, the to-be-printed area of the paper document passes through the shooting device, the computer, and the printer in sequence, and the to-be-printed area of the paper document cannot be directly determined, which affects the printing efficiency of the printer for the to-be-printed area. Summary of the Invention
[0003] An object of the present invention is to overcome the deficiencies of the prior art, and the present invention provides a printing method and system for a to-be-printed area of an image by a printer.
[0004] An embodiment of the present invention provides a printing method for a to-be-printed area of an image by a printer, including: The camera module of the printer shoots a paper document and collects a real-time image of the paper document; The light source module of the printer performs local illumination on the to-be-printed area of the paper document, so that there is a target brightness area in the real-time image of the paper document, and the target brightness area is used as the to-be-printed area; Based on the to-be-printed area, trigger the printer to autonomously print the to-be-printed area; In the autonomous printing of the to-be-printed area, multiple sub-target areas are determined according to the division of the to-be-printed area, multiple sets of printing contents are determined according to the area recognition of the multiple sub-target areas, and the printing scenario of the printer is determined according to the multiple sets of printing contents; Collect the service life of the printer and the size of the to-be-printed area, and determine the printing mode of the printer according to the service life of the printer, the printing scenario of the printer, and the size of the to-be-printed area.
[0005] An embodiment of the present invention provides a printing system for a to-be-printed area of an image by a printer. The printing system for a to-be-printed area of an image by the printer is applied to the above printing method for a to-be-printed area of an image by a printer. The printing system for a to-be-printed area of an image by the printer includes: An image module, configured to enable the camera module of the printer to shoot a paper document and collect a real-time image of the paper document; A to-be-printed area module is used for the light source module of a printer to perform local illumination on the to-be-printed area in a paper document, so that there is a target brightness area in the real-time image of the paper document, and the target brightness area is used as the to-be-printed area; An autonomous printing module is used to trigger the printer to autonomously print the to-be-printed area based on the to-be-printed area; A printing scenario module is used to determine multiple sub-target areas according to the division of the to-be-printed area during the autonomous printing of the to-be-printed area, determine multiple groups of printing contents according to the area recognition of the multiple sub-target areas, and determine the printing scenario of the printer according to the multiple groups of printing contents; A printing mode module is used to collect the service life of the printer and the size of the to-be-printed area, and determine the printing mode of the printer according to the service life of the printer, the printing scenario of the printer, and the size of the to-be-printed area.
[0006] Compared with the prior art, the beneficial effects of the present invention are: In the embodiment of the present invention, through the method in the embodiment of the present invention, the camera module of the printer takes a picture of the paper document and collects the real-time image of the paper document; the light source module of the printer performs local illumination on the to-be-printed area in the paper document, so that there is a target brightness area in the real-time image of the paper document, and the target brightness area is used as the to-be-printed area; based on the to-be-printed area, the printer is triggered to autonomously print the to-be-printed area. The printer integrates the shooting of the paper document and local illumination, and presents the target brightness area specifically, so as to directly determine the to-be-printed area, improving the printing accuracy and printing efficiency of the printer for the to-be-printed area.
[0007] Therefore, during the autonomous printing of the to-be-printed area, multiple sub-target areas are determined according to the division of the to-be-printed area, multiple groups of printing contents are determined according to the area recognition of the multiple sub-target areas, and the printing scenario of the printer is determined according to the multiple groups of printing contents; the service life of the printer and the size of the to-be-printed area are collected, and the printing mode of the printer is determined according to the service life of the printer, the printing scenario of the printer, and the size of the to-be-printed area. The to-be-printed area is further analyzed, and the corresponding printing scenario is introduced, taking into account the service life of the printer, the printing scenario of the printer, and the size of the to-be-printed area as a whole, ensuring the accuracy of the printing mode of the printer. Description of the Drawings
[0008] Figure 1 is a schematic flowchart of the printing method for the to-be-printed area of an image by the printer in the embodiment of the present invention; Figure 2 is a schematic flowchart of step S11 in the printing method for the to-be-printed area of an image by the printer in the embodiment of the present invention; Figure 3It is a schematic flowchart of step S12 in the printing method of the printer for the area to be printed of the image in the embodiment of the present invention; Figure 4 It is a schematic flowchart of step S13 in the printing method of the printer for the area to be printed of the image in the embodiment of the present invention; Figure 5 It is a schematic flowchart of step S14 in the printing method of the printer for the area to be printed of the image in the embodiment of the present invention; Figure 6 It is a schematic flowchart of step S15 in the printing method of the printer for the area to be printed of the image in the embodiment of the present invention; Figure 7 It is a schematic diagram of the structural composition of the printing system of the printer for the area to be printed of the image in the embodiment of the present invention. Detailed implementation manners
[0009] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention.
[0010] Please refer to Figures 1 to 7 , a printing method of a printer for an area to be printed of an image includes: Step S11: The camera module of the printer takes a picture of the paper document and collects the real-time image of the paper document; Step S12: The light source module of the printer performs local illumination on the area to be printed in the paper document, so that there is a target brightness area in the real-time image of the paper document, and the target brightness area is used as the area to be printed; Step S13: Trigger the printer to perform autonomous printing on the area to be printed based on the area to be printed; Step S14: In the autonomous printing of the area to be printed, multiple sub-target areas are determined according to the division of the area to be printed, multiple sets of printing contents are determined according to the area recognition of the multiple sub-target areas, and the printing scenario of the printer is determined according to the multiple sets of printing contents; Step S15: Collect the service life of the printer and the size of the area to be printed, and determine the printing mode of the printer according to the service life of the printer, the printing scenario of the printer and the size of the area to be printed; Refer to Figure 2 , in step S11, the camera module of the printer takes a picture of the paper document and collects the real-time image of the paper document; In the specific implementation process of the present invention, the specific steps are: S111: The printer is configured with a camera module, and the camera module is in front of the printer. At this time, the paper document is placed in the imaging area of the camera module; S112: Perform environmental detection on the imaging area, determine multiple peripheral environmental parameters of the paper document based on the environmental detection of the imaging area, and determine the environmental type of the paper document based on the multiple peripheral environmental parameters and the corresponding positions. S113: Collect the model of the imaging module, determine the shooting parameters of the imaging module according to the model of the imaging module and the environmental type of the paper document, and trigger the imaging module to perform real-time shooting of the paper document based on the shooting parameters to collect the real-time image of the paper document.
[0011] In an embodiment of the present application, the printer is configured with an imaging module, and the imaging module is in front of the printer. At this time, the paper document is placed in the imaging area of the imaging module so that the imaging module can shoot the paper document.
[0012] At this time, the imaging module is installed on the front panel of the printer, above or beside the paper feed inlet, ensuring that it can clearly capture the paper document placed on the printer; the imaging module has the ability to capture high-resolution images, can shoot the text, images and other contents on the paper document, and convert them into digital image data. To ensure that users can easily place the paper document in the imaging area, the imaging module is designed to face the user and is located in an easily accessible position of the printer; the field of view of the imaging module is carefully adjusted to ensure that it can cover common document sizes (such as A4, Letter, etc.) on the printer, while avoiding capturing unnecessary background information.
[0013] The user needs to place the paper document flat on the printer, ensuring that the content of the document is within the field of view of the imaging module; the printer will provide alignment marks or instructions to help the user accurately place the document in the imaging area.
[0014] Specifically, assume that the user is using an intelligent printer equipped with an advanced imaging module to print a report; the user places the printed report draft (paper document) on the printer. This report draft contains some important charts and text contents that need to be clearly captured and printed; a high-resolution imaging module is installed on the front panel of the printer, which is above the paper feed inlet; the user sees a clear field of view mark indicating where they should place the paper document; the user places the report draft flat in the imaging area of the printer, ensuring that the content of the document is completely within the field of view of the imaging module; they also notice an alignment mark on the printer to help them place the document more accurately; once the document is correctly placed, the printer will automatically trigger the imaging module to take a picture; the imaging module will capture the content on the paper document and convert it into digital image data.
[0015] Furthermore, the environment of the imaging area is detected, and multiple surrounding environment parameters of the paper document are determined based on the environmental detection of the imaging area. The environmental type of the paper document is determined based on the multiple surrounding environment parameters and the corresponding positions, ensuring the accuracy of the environmental type of the paper document.
[0016] At this time, the printer is equipped with a light sensor, a color sensor or other types of environmental sensors, which can detect environmental information such as the light intensity, color temperature, and background complexity in the imaging area; before the imaging module is ready to capture the paper document, these sensors will collect environmental data in the imaging area in real time.
[0017] Optionally, the light sensor measures the light intensity in the imaging area to determine whether the environment is bright or dim; the color sensor analyzes the light color in the imaging area to determine whether there is a color temperature deviation, such as yellowish or bluish; the background image in the imaging area is analyzed through an image processing algorithm to evaluate the complexity of the background, such as whether there are a large number of textures or patterns.
[0018] There is a preset environmental type database inside the printer. According to the collected environmental parameters, the printer matches these parameters with the environmental types in the database; different positions in the imaging area have different environmental parameters; the printer will consider these position differences to more accurately determine the environmental type of the entire imaging area; finally, the printer will make a comprehensive judgment on the environmental type of the paper document by integrating all the collected environmental parameters and position information.
[0019] Specifically, assume that the user is using an intelligent printer to print an important contract document, and this document is prepared in an office environment with dim light and a complex background; before the imaging module of the printer is activated, its built-in light sensor, color sensor, and image processing algorithm are ready to detect the environment of the imaging area; the light sensor detects that the light intensity in the imaging area is low, indicating that the environment is dim; the color sensor analyzes that the light color in the imaging area is warm due to the lighting equipment in the office; the image processing algorithm identifies that the background in the imaging area contains multiple complex patterns and textures, such as bookshelves, filing cabinets, and decorations.
[0020] The printer matches these environmental parameters with the environmental type database preset internally; based on the collected parameters, the printer determines that the environmental type within the imaging area is "dim and complex background"; once the environmental type is determined, the printer adjusts the shooting parameters of its imaging module (such as increasing the exposure time, adjusting the white balance, etc.) to ensure that clear and accurate paper document images can be captured under adverse environmental conditions; in addition, the printer also adjusts its printing settings according to the environmental type to optimize the printing effect; through this specific example, the importance of step S112 in actual operation can be seen; correctly detecting the environment of the imaging area, determining the surrounding environmental parameters of the paper document, and judging the environmental type are the key steps to ensure that the printing process can adapt to different environmental conditions.
[0021] Therefore, the model of the imaging module is collected, the shooting parameters of the imaging module are determined according to the model of the imaging module and the environmental type of the paper document, and based on these shooting parameters, the imaging module is triggered to perform real-time shooting of the paper document to collect the real-time image of the paper document, which takes into account the overall consideration of the model of the imaging module and the environmental type of the paper document, and ensures the accuracy of the shooting parameters of the imaging module.
[0022] At this time, there is an identification system inside the printer that can automatically detect and record the current model of the imaging module at startup or before each use of the imaging module; the model information of the imaging module contains data on key parameters such as its performance, resolution, sensor type, etc.; there is a shooting parameter database inside the printer, and according to the model of the imaging module and the previously determined environmental type, the most suitable shooting parameters are retrieved from the database, and these shooting parameters include exposure time, ISO, white balance, focal length, etc., to ensure that high-quality images can be captured under different environmental conditions; in some cases, the printer will adopt specific optimization strategies according to the specific performance of the imaging module and the characteristics of the environmental type, such as using a longer exposure time to compensate for low-light environments, or adjusting the white balance to correct color temperature deviation.
[0023] Once the shooting parameters are determined, the printer sends a shooting instruction to the imaging module, while ensuring that all necessary settings have been correctly configured; the imaging module starts shooting immediately after receiving the instruction, captures the content on the paper document, and converts it into digital image data; after the shooting is completed, the image data is transmitted to the processing system of the printer, ready for subsequent image processing or printing tasks.
[0024] Specifically, assume that the user is using a high-end intelligent printer to print a report containing important charts and text, and this report is prepared in an office environment with moderate light but a slightly cluttered background; when the printer starts, its internal recognition system automatically detects that the currently installed camera module model is "XYZ-1234" and records the detailed performance parameters of this module; the printer retrieves the most suitable shooting parameters from the shooting parameter database according to the model of the camera module "XYZ-1234" and the previously determined environmental type "moderate light but cluttered background"; these parameters include: the exposure time is set to 1 / 60 second, the ISO is set to 200, the white balance is adjusted automatically to adapt to different light conditions, and the focal length is set to a focal length suitable for capturing documents of A4 paper size; The printer sends a shooting instruction to the camera module, while ensuring that all shooting parameters are correctly configured; after receiving the instruction, the camera module immediately starts shooting to capture the content on the paper report; after shooting is completed, the image data is transmitted to the processing system of the printer for subsequent image processing, such as image enhancement, content recognition, etc., and is ultimately used for the printing task; through this specific example, the importance of step S113 in actual operation can be seen; correctly collecting the model of the camera module, determining the shooting parameters according to the model and the environmental type, and triggering the camera module to perform real-time shooting are the key steps to ensure that high-quality images can be captured during the printing process, and these steps together ensure that the content of the printed document is clear, accurate, and can adapt to different environmental conditions and printing requirements.
[0025] In an embodiment of the present application, the printer first collects the model of the camera module, and then determines the shooting parameters according to the model of the camera module and the environmental type of the paper document. This is achieved through a pre-defined camera module matching table, and the camera module matching table is shown in Table 1: Table 1 Camera Module Matching Table
[0026] If the camera module model of the printer is XYZ-1234 and the paper document is in a dim environment, then the printer will look up the camera module matching table, find the corresponding shooting parameters with an exposure time of 1 / 15 second, an ISO of 800, a warm white balance, and an automatic focal length, and trigger the camera module to shoot.
[0027] Reference Figure 3 , in step S12, the light source module of the printer performs local illumination on the area to be printed on the paper document, so that there is a target brightness area in the real-time image of the paper document, and the target brightness area is used as the area to be printed; In the specific implementation process of the present invention, the specific steps are as follows: S121: Determine the target content based on the detection of the paper document, and use the area where the target content is located as the area to be printed. The area to be printed is located in the middle, upper part or lower part of the paper document. S122: The printer is configured with a light source module, which is located on one side of the camera module. At this time, determine the relative position of the light source module with respect to the area to be printed according to the current position of the light source module and the current position of the area to be printed on the paper document. S123: Trigger the adjustment of the irradiation direction of the light source module based on the relative position of the light source module with respect to the area to be printed, so that the light source module performs local irradiation towards the area to be printed. When the area to be printed is locally irradiated, there is a target brightness area in the real-time image of the paper document, and use the target brightness area as the area to be printed. The brightness parameter of the target brightness area is higher than the brightness parameters of the other areas of the real-time image of the paper document. In the embodiments of the present application, determine the target content based on the detection of the paper document, and use the area where the target content is located as the area to be printed. The area to be printed is located in the middle, upper part or lower part of the paper document.
[0028] At this time, the printer determines the target content in the paper document through a series of operations, and marks the area where the content is located as the area to be printed; the area to be printed is located in the middle, upper part or lower part of the paper document, which depends on the specific position of the target content and the overall layout of the document; The printer first uses the built-in camera module to scan the paper document; during the scanning process, the camera module captures the image data of the document and transmits it to the processing system of the printer; the processing system analyzes the captured image data to identify the target content in the document; the target content includes text, images, charts, barcodes, etc., which specifically depends on the configuration of the printer and the settings of the user.
[0029] Once the target content is identified, the printer will determine the area where the content is located; according to the position and size of the target content, the printer will automatically calculate an optimal area to be printed; the area to be printed is a rectangular frame that tightly surrounds the target content to ensure that no important information is missed during printing; the area to be printed is located in the middle, upper part or lower part of the paper document, which depends on the specific position of the target content in the document and the layout strategy of the printer; the printer will select a layout method to ensure that the printed content is both beautiful and easy to read.
[0030] Specifically, assume that the user is using an intelligent printer to print a document containing important meeting minutes; the user places the paper document containing the meeting minutes into the scanning area of the printer; the printer activates the camera module to scan the document and capture image data; the processing system of the printer analyzes the captured image data; through OCR (Optical Character Recognition) technology, the system identifies the text content in the document, especially the title and body of the meeting minutes.
[0031] Based on the identified text content, the printer automatically determines a rectangular area to be printed that contains the meeting minutes; this area tightly encloses all the important information of the meeting minutes to ensure that nothing is missed during printing; in this example, the area to be printed is located in the middle of the paper document because the content of the meeting minutes is relatively concentrated and the user hopes that the printed document is both beautiful and easy to read; the printer automatically selects the best layout method according to these requirements and positions the area to be printed in the middle of the document; through such an operation process, the printer can accurately identify the target content in the paper document and determine an optimal area to be printed, which provides great convenience for users, enabling them to easily print the content they need without manual adjustment or cropping of the document.
[0032] Furthermore, the printer is configured with a light source module, which is located on one side of the camera module. At this time, based on the current position of the light source module and the current position of the area to be printed on the paper document, the relative position of the light source module with respect to the area to be printed is determined, taking into account the overall consideration of the current position of the light source module and the current position of the area to be printed on the paper document, ensuring the accuracy of the relative position of the light source module with respect to the area to be printed.
[0033] At this time, the printer uses the built-in light source module and camera module to determine the relative position of the light source module with respect to the area to be printed on the paper document. This process is crucial for ensuring printing quality because proper lighting significantly improves the clarity and accuracy of image capture.
[0034] The printer is equipped with one or more light source modules, which are located on one side or around the camera module; the light source module is an LED lamp, a halogen lamp, or other types of lighting devices used to provide sufficient light to illuminate the paper document; there is a positioning system or sensor inside the printer to detect the position of the light source module in real time, and this position information is absolute (e.g., relative to a fixed point of the printer) or relative (e.g., relative to the position of the camera module).
[0035] In previous steps (such as S121), the printer has determined the area to be printed on the paper document; the location information of the area to be printed is stored in the printer's memory for subsequent use; the printer uses an algorithm or a lookup table to calculate the relative position of the light source module with respect to the area to be printed based on the current position of the light source module and the current position of the area to be printed. This relative position is an angle, a distance, or other geometric parameters, which are used to guide the adjustment of the light source module.
[0036] Specifically, assume that the user is using a high-end intelligent printer to print a paper document containing detailed drawings; the printer is equipped with two LED light source modules, which are located on the left and right sides of the camera module respectively. These LED modules provide uniform and adjustable light to illuminate different areas of the paper document; the positioning system inside the printer detects that the LED light source modules are located on the left and right sides of the camera module respectively, about 5 centimeters away from the camera module. In previous steps, the printer has determined the rectangular area to be printed where the drawing is located. This area is located in the upper-middle position of the paper document; the printer uses an internal algorithm to calculate the optimal irradiation angle of each LED module with respect to the area to be printed based on the positions of the LED light source modules and the area to be printed. For example, the left LED module needs to irradiate downward at an angle of 30 degrees to illuminate the left part of the area to be printed; while the right LED module needs to irradiate downward at an angle of 45 degrees to illuminate the right part of the area to be printed; through such an operation process, the printer can accurately determine the relative position of the light source module with respect to the area to be printed and adjust the irradiation angle and intensity of the light source module to ensure uniform illumination of the paper document, which helps to improve the clarity and accuracy of image capture, thus ensuring high-quality printed drawings.
[0037] Therefore, based on the relative position of the light source module with respect to the area to be printed, the adjustment of the irradiation direction of the light source module is triggered, so that the light source module performs local irradiation towards the area to be printed. When the area to be printed is locally irradiated, there is a target brightness area in the real-time image of the paper document, and this target brightness area is used as the area to be printed. The brightness parameter of this target brightness area is higher than that of the remaining areas of the real-time image of the paper document.
[0038] At this time, the printer adjusts the irradiation direction of the light source module according to the previously determined relative position of the light source module with respect to the area to be printed to ensure sufficient local irradiation of the area to be printed. This process is crucial for improving the printing quality and accuracy.
[0039] The printer generates an adjustment instruction based on the relative position between the light source module and the area to be printed determined in step S122. This instruction contains parameters such as the irradiation direction, angle, and intensity that the light source module needs to be adjusted to. The mechanical structure or electronic control system inside the printer receives the adjustment instruction and starts to adjust the irradiation direction of the light source module, which involves operations such as rotating the light source module, adjusting the tilt angle of the light source module, or changing the position of the light source module.
[0040] Once the irradiation direction of the light source module is adjusted in place, it will perform local irradiation towards the area to be printed. This local irradiation ensures that the area to be printed receives sufficient light while avoiding unnecessary illumination of other parts of the paper document. When the area to be printed is locally irradiated, a brighter area, i.e., the target brightness area, will appear in the real-time image of the paper document. The brightness parameters (such as brightness value, contrast, etc.) of this area are significantly higher than those of the rest of the real-time image of the paper document. The printer detects and confirms the position and range of the target brightness area through built-in image processing algorithms or sensors. Once confirmed correctly, the printer locks this area as the final area to be printed.
[0041] Specifically, assume that the user is using an intelligent printer equipped with an adjustable LED light source module to print a document containing complex charts and text. The printer has determined the relative position of the LED light source module with respect to the area to be printed (the area where the charts and text are located). Based on this position information, the printer generates an adjustment instruction requiring the LED light source module to irradiate the area to be printed at an angle of 45 degrees downward and ensure that the irradiation intensity is appropriate.
[0042] The mechanical structure of the printer receives the adjustment instruction and starts to adjust the irradiation direction of the LED light source module. The LED light source module gradually rotates to the specified 45-degree angle and starts to irradiate the area to be printed downward. The LED light source module successfully performs local irradiation on the area to be printed, ensuring that the chart and text parts receive sufficient light. At the same time, other parts of the paper document (such as blank areas or background patterns) remain relatively dark. After the area to be printed is locally irradiated, a target brightness area with a higher brightness appears in the real-time image of the paper document. The brightness parameters of this area are significantly higher than those of other parts of the paper document, making the chart and text content more clearly visible.
[0043] The printer detects and confirms the position and range of the target brightness area through built-in image processing algorithms. Once confirmed correctly, the printer locks this area as the final area to be printed and prepares for subsequent printing operations. Through such an operation process, the printer can ensure that the area to be printed receives sufficient local irradiation, thereby improving the printing quality and accuracy, which provides the user with a clearer and more readable printed output and enhances the overall performance and user experience of the printer.
[0044] In an embodiment of the present application, an irradiation direction adjustment parameter matching table is collected. The irradiation direction adjustment parameter matching table defines the irradiation direction adjustment parameters when the light source module is at different positions relative to the area to be printed. The irradiation direction adjustment parameter matching table is shown in Table 2 as follows: Table 2 Irradiation Direction Adjustment Parameter Matching Table
[0045] The printer determines the relative positions of the light source module (such as an LED lamp) and the area to be printed on the paper document through an internal sensor; the printer looks up the corresponding irradiation direction adjustment parameters in the irradiation direction adjustment parameter matching table according to the determined position information; the printer adjusts the irradiation direction of the light source module according to the found adjustment parameters so that it is directed towards the area to be printed for local irradiation.
[0046] After the area to be printed is locally irradiated, a target brightness area with a higher brightness appears in the real-time image of the paper document; the printer detects and confirms the position and range of the target brightness area through a built-in image processing algorithm or sensor, and then locks this area as the final area to be printed.
[0047] Reference Figure 4 , in step S13, the printer is triggered to perform autonomous printing on the area to be printed based on the area to be printed; In the specific implementation process of the present invention, the specific steps are as follows: S131: Collect the area to be printed, determine multiple edge contour lines of the area to be printed according to the edge detection of the area to be printed, and determine multiple boundaries of the area to be printed according to the synthesis of the multiple edge contour lines; S132: Determine the marked content based on the user's mark on the area to be printed, determine multiple marked areas according to the marked content and the multiple boundaries of the area to be printed, and match corresponding serial numbers to the multiple marked areas to form multiple serial number areas; S133: Collect the user's voice information, determine the serial number area preferred by the user according to the user's voice information, determine the final serial number area based on the matching of the serial number area preferred by the user and the multiple serial number areas, convert the final serial number area into a print signal, and trigger the printer to perform autonomous printing on the area to be printed based on the print signal.
[0048] In an embodiment of the present application, when collecting the area to be printed, multiple edge contour lines of the area to be printed are determined according to the edge detection of the area to be printed, and multiple boundaries of the area to be printed are determined according to the synthesis of the multiple edge contour lines, thereby introducing multiple boundaries.
[0049] At this time, the area to be printed is captured, and the printer uses an image processing algorithm to perform edge detection on the image of the area to be printed. The purpose of edge detection is to identify the points where the brightness or color in the image changes significantly, and these points correspond to the edges of the object. Optionally, common edge detection algorithms include the Canny edge detector, Sobel operator, Prewitt operator, etc. These algorithms detect edges by calculating the gradient of each pixel in the image. The gradient is a vector that represents the rate of change of image brightness or color in a certain direction. Edge detection algorithms identify edges by calculating the gradient of each pixel in the image. To determine which gradient values correspond to real edges, the algorithm sets a threshold. Only when the gradient value exceeds this threshold is the point considered an edge point.
[0050] The printer connects the detected edge points into continuous contour lines, and these contour lines together form the boundary of the area to be printed. This process involves some geometric and topological processing to ensure the continuity and accuracy of the contour lines. At this time, by connecting adjacent edge points, a series of continuous contour lines are formed, and these contour lines correspond to the outer boundary or internal features (such as holes, text, etc.) of the area to be printed. After synthesizing the contour lines, the printer needs to determine which contour lines correspond to the outer boundary of the area to be printed, which involves some geometric analysis, such as calculating properties such as the perimeter and area of the contour lines and screening based on these properties. To ensure the accuracy of the boundary, the printer also performs some optimization operations, such as smoothing and noise removal.
[0051] Specifically, assume that the user wants to print a document containing a photo. The printer first captures an image of the entire document through the camera module. Then, it uses the Canny edge detector to perform edge detection on the image to identify the edge points of the photo, and these edge points are connected into a series of continuous contour lines. One of the contour lines corresponds to the outer boundary of the photo. Finally, the printer determines this contour line as the outer boundary of the area to be printed through geometric analysis and prepares for subsequent printing operations. Through such an operation process, the printer can accurately identify the boundary of the area to be printed, provide precise guidance for subsequent printing tasks, which helps to improve printing quality and efficiency, and at the same time reduces user intervention and errors.
[0052] Furthermore, the marked content is determined based on the user's marking of the area to be printed. Multiple marked areas are determined according to the marked content and the multiple boundaries of the area to be printed, and corresponding serial numbers are matched to the multiple marked areas to form multiple serial number areas, which takes into account the overall consideration of the marked content and the multiple boundaries of the area to be printed and ensures the accuracy of the multiple marked areas.
[0053] At this time, the printer needs to recognize the marks made by the user on the area to be printed. These marks can be physical marks (such as marks made with a pen on a paper document) or digital marks (such as annotations made on an electronic document using the supporting software). Optionally, if the printer is equipped with a camera module, it recognizes physical marks by capturing document images, which involves image processing techniques such as color recognition and shape analysis. For digital marks, the printer needs to communicate with the supporting software to obtain mark information, which exists in the form of coordinates, colors, text, etc. To ensure the accuracy of recognition, the printer verifies the marks. For example, it checks whether the marks are within the area to be printed and whether the marks comply with the rules preset by the user (such as color, shape, etc.).
[0054] After recognizing the user marks, the printer needs to determine multiple marked areas based on these marks and the boundaries of the area to be printed. These areas correspond to the parts that the user hopes to process or print specifically. At this time, the printer divides the area to be printed into multiple sub-areas according to the positions and shapes of the marks. These sub-areas may or may not overlap. To ensure the accuracy of the marked areas, the printer fine-tunes the boundaries according to the actual positions and sizes of the marks. If multiple marks are very close or overlapping, the printer combines them into a larger marked area.
[0055] The printer assigns a unique serial number to each marked area and generates multiple numbered areas, which will be used for subsequent printing tasks to ensure the accuracy of the printing order and content. At this time, the printer assigns a serial number to each marked area according to a certain rule (such as from top to bottom, from left to right). Combining the assigned serial numbers with the corresponding marked areas, multiple numbered areas are generated. These areas contain all the information required for printing, including position, size, content, etc. The generated numbered area information is stored in the printer's memory for use in subsequent printing tasks.
[0056] Specifically, assume that the user wants to print a document containing multiple chapters and hopes that the titles of each chapter can be printed in a special color or font. When using the supporting software, the user has made digital marks on the titles of each chapter. The printer communicates with the supporting software to obtain the mark information of the titles of each chapter, including position, size, and color, etc. According to the mark information, the printer divides the document into multiple sub-areas, and each sub-area corresponds to a chapter title. At the same time, the printer fine-tunes the boundaries to ensure the accuracy of the marked areas.
[0057] The printer assigns a serial number to each chapter title in the order from top to bottom (for example, the first chapter title is 1, the second chapter title is 2, etc.); then, combines the serial number with the corresponding marked area to generate multiple serial number areas, which contain all the information required for printing, such as position, size, color, and content, etc.; through such an operation process, the printer can accurately identify the content marked by the user and generate multiple serial number areas, providing precise guidance for subsequent printing tasks, which helps to improve printing quality and efficiency and meet the personalized needs of users at the same time.
[0058] Therefore, collect the user's voice information, determine the serial number area preferred by the user according to the user's voice information, determine the final serial number area based on the matching of the serial number area preferred by the user and multiple serial number areas, convert the final serial number area into a printing signal, and trigger the printer to autonomously print the area to be printed based on this printing signal, taking into account the overall matching of the serial number area preferred by the user and multiple serial number areas, and ensuring the accuracy of the final serial number area.
[0059] At this time, the printer needs to collect the user's voice information, which is completed through a built-in microphone or an externally connected voice input device; at the same time, the printer is equipped with a high-quality microphone to ensure that it can clearly capture the user's voice commands; if the printer does not have a built-in microphone, the user needs to use an external microphone or other voice input devices; when the user issues a voice command, the microphone will convert it into an analog electrical signal, and these signals are then converted into digital format for subsequent processing; after collecting the voice signal, the printer will perform some preprocessing operations, such as noise reduction, volume enhancement, etc., to improve the accuracy of voice recognition.
[0060] The printer uses voice recognition technology to convert the user's voice commands into text or commands, and determines which serial number area the user hopes to print first according to these commands; at this time, the printer uses advanced voice recognition algorithms to convert the voice signal into text, and these algorithms are based on deep learning or machine learning models and can identify various voice features and patterns; once the voice signal is converted into text, the printer needs to parse this text to identify the user's intention; for example, when the user says "print the area with serial number 1 first", the printer needs to be able to identify and parse this command; according to the parsed command, the printer searches for the area that matches the serial number specified by the user among the multiple serial number areas generated before.
[0061] The printer converts the determined final serial number area into a print signal and triggers the printing process based on this signal; at this time, the printer generates a print signal according to the information of the final serial number area (such as position, size, content, etc.), and these signals contain detailed instructions on how to print this area; before generating the print signal, the printer needs to configure some print task parameters, such as paper type, print quality, color mode, etc., and these parameters are set according to the user's preferences or printing requirements; once the print signal is generated and the print task parameters are configured, the printer will trigger the printing process, which involves sending the print signal to the print engine, and the engine will then spray ink or toner onto the paper to form the required image or text.
[0062] Specifically, assume that the user wants to print a document containing multiple chapters and has used the supporting software to mark and assign serial numbers to the titles of each chapter; now, the user hopes to control the printing process through voice commands; the user walks to the printer and says into the microphone "Print the title of the chapter with serial number 2 first"; the printer captures this voice command through the built-in microphone; the printer uses speech recognition technology to convert the voice command into text and parses that the user's intention is to print the title of the chapter with serial number 2 first; then, it searches in the multiple serial number areas generated before to find the area that matches the serial number specified by the user. The printer generates a print signal according to the information of the found serial number area and configures the print task parameters (such as paper type, print quality, etc.); then, it triggers the printing process and prints the title of the chapter with serial number 2 onto the paper; through such an operation process, the printer can accurately identify the user's voice command and independently complete the printing task according to the command, which provides a more convenient and efficient printing experience for the user.
[0063] In an embodiment of the present application, user instruction: "Print the area with serial number 3"; matching table search result: "Area 3"; print output: The content of "Area 3" is successfully printed on the paper; at this time, user instruction: "Print the important area with serial number 3"; Area 1: initial score 0, keyword matching score 0 (no match), final score 0; Area 2: initial score 0, keyword matching score 1 (partial match of "important"), serial number mismatch score 0, final score 1; Area 3: initial score 0, keyword matching score 1 (partial match of "important"), serial number complete match score +10, final score 11; determine the final serial number area: "Area 3" print output: The content of "Area 3" (including its identification or processing as an "important area") is successfully printed on the paper.
[0064] Reference Figure 5In step S14, in the autonomous printing of the area to be printed, a plurality of sub-target areas are determined according to the division of the area to be printed, a plurality of groups of printing contents are determined according to the area identification of the plurality of sub-target areas, and a printing scene of the printer is determined according to the plurality of groups of printing contents; In the specific implementation process of the present invention, the specific steps are: S141: monitoring the autonomous printing of the area to be printed in real time, dividing the area to be printed, and matching the final serial number area and the remaining multiple serial number areas in the division of the area to be printed to determine the corresponding matching coefficients; S142: if the matching coefficient is greater than a preset matching coefficient threshold, determining a sub-target region according to a synthesis of the final sequence number region and the corresponding sequence number region to obtain a plurality of sub-target regions; S143: In each sub-target area, multiple content features are determined based on area recognition of each sub-target area, and the multiple content features are formed into a group of printing contents to obtain multiple groups of printing contents; patterns and texts are determined based on the recognition of the multiple groups of printing contents, and the printing scene of the printer is determined based on the proportion between the pattern and the text and the scene mapping relationship.
[0065] In an embodiment of the present application, the autonomous printing of the area to be printed is monitored in real time, the area to be printed is divided, and in the division of the area to be printed, the final serial number area and the remaining multiple serial number areas are matched to determine the corresponding matching coefficient, thereby ensuring the accuracy of the matching coefficient.
[0066] At this point, the system needs to monitor the autonomous printing process of the area to be printed in real time, which involves continuous monitoring of the printer status, including the start, progress and end of the printing task, as well as any errors or warnings that occur during the printing process; at the same time, the system uses sensors, network interfaces or APIs provided by the printer driver to monitor the printing process; during the monitoring process, the system will collect various data about the printing task, such as printing speed, ink / toner usage, paper type, etc.; the system will also detect any errors that occur during the printing process, such as paper jam, insufficient ink, etc., and take corresponding corrective measures.
[0067] While monitoring the printing process, the system needs to divide the area to be printed, which involves splitting the area to be printed into smaller, more manageable units for subsequent analysis and processing; at this time, the division is based on factors such as content type (such as text, images, graphics, etc.), color distribution, page layout, etc.; the granularity of the division is adjusted as needed; a coarser granularity reduces processing time but sacrifices some details; a finer granularity provides more accurate analysis but increases processing complexity; during the division process, the system needs to determine the boundaries of each unit to ensure that the content between them does not overlap or be missed.
[0068] The system needs to match the final serial number area (i.e., the area specified by the user for priority printing) with multiple remaining serial number areas; the purpose of the matching is to determine the similarity or correlation between them for subsequent optimization processing; at this time, the system uses various algorithms for matching, such as cosine similarity, Jaccard similarity coefficient, edit distance, etc.; before performing the matching, the system needs to extract features from each serial number area, such as text content, image features, color histograms, etc.; according to the extracted features and the selected matching algorithm, the system calculates the matching coefficient between each serial number area and the final serial number area; the matching coefficient reflects the similarity or correlation between them.
[0069] The system determines the correspondence between each serial number area and the final serial number area based on the calculated matching coefficients, and these matching coefficients will be used in subsequent optimization processing steps; at this time, the system sets a threshold, and only the serial number areas with matching coefficients exceeding this threshold will be regarded as highly relevant to the final serial number area; the calculated matching coefficients will be stored in memory or written to a file for subsequent use; according to the matching coefficients, the system formulates optimization strategies, such as preferentially printing highly relevant serial number areas, merging similar contents, etc.
[0070] Specifically, assume that the user wants to print a document containing multiple chapters and has assigned serial numbers to the titles of each chapter; the user specifies that the title of the chapter with serial number 3 is to be printed preferentially; the system starts monitoring the printing process and collects various data about the printing task; the system divides the document into multiple serial number areas, each area corresponding to the title of a chapter, and these areas are divided based on page layout and content type.
[0071] The system extracts the features of each serial number area (such as text content and font size) and uses the cosine similarity algorithm to calculate the matching coefficients between them and the title of the chapter with serial number 3; the system sets a threshold (such as 0.8) and filters out the serial number areas with matching coefficients exceeding this threshold; assume that the titles of the chapters with serial numbers 2 and 4 have a high similarity with the title of the chapter with serial number 3 (the matching coefficients are 0.85 and 0.90 respectively), so they are regarded as highly relevant; through such an operation process, the system can monitor the autonomous printing process of the areas to be printed in real time and perform division and matching analysis on the serial number areas, which provides valuable information for subsequent optimization processing steps.
[0072] Furthermore, if the matching coefficient is greater than the preset matching coefficient threshold, sub-goal areas are determined according to the synthesis of the final serial number area and the corresponding serial number area to obtain multiple sub-goal areas, taking into account the overall synthesis of the final serial number area and the corresponding serial number area, and ensuring the accuracy of the sub-goal areas.
[0073] At this time, the system needs to check whether the previously calculated matching coefficient is greater than a preset matching coefficient threshold, which is preset according to factors such as the nature of the printing task, user preferences, or system performance; at the same time, the threshold is a value between 0 and 1, used to measure the level of the matching coefficient; the setting of the threshold needs to consider the complexity of the printing task and the user's expectation for printing quality; the system will compare the matching coefficient between each serial number area and the final serial number area with the preset threshold; if the matching coefficient is greater than the threshold, the system considers that there is a high similarity or correlation between the serial number area and the final serial number area, and subsequent processing is required.
[0074] For the serial number areas whose matching coefficients are greater than the preset threshold, the system needs to synthesize them with the final serial number area; the purpose of synthesis is to combine these highly relevant areas together for more efficient printing or subsequent processing; at this time, synthesis involves operations such as content merging, format adjustment, and color correction; the specific method depends on the requirements of the printing task and user preferences; during the synthesis process, the system needs to ensure that the boundaries between each area are properly processed to avoid content overlap or omission; according to the synthesis result, the system further optimizes the printing task, such as reducing printing time, saving ink / toner, etc.
[0075] After synthesis is completed, the system will determine multiple sub-goal areas based on the synthesis result. These sub-goal areas are smaller units that are treated as a whole in the printing task; at this time, the sub-goal areas are defined based on factors such as content type, page layout, and printing requirements; the system needs to assign a unique identifier to each sub-goal area for reference in subsequent processing steps; the determined sub-goal areas will be stored in memory or written to a file for subsequent use and management.
[0076] Specifically, assume that the user wants to print a document containing abstracts of multiple chapters and has assigned serial numbers to the abstracts of each chapter; the user specifies to print the abstract of the chapter with serial number 3 first; in step S141, the system has calculated the matching coefficients between each serial number area and the abstract of the chapter with serial number 3.
[0077] The system sets a matching coefficient threshold (such as 0.75); after comparison, the system finds that the matching coefficients between the abstracts of chapters numbered 2 and 4 and the abstract of chapter numbered 3 are 0.8 and 0.78 respectively, both greater than the preset threshold; the system decides to synthesize the abstracts of chapters numbered 2, 3, and 4; during the synthesis process, the system merges and formats the content of these three regions to ensure that they can be printed as a whole; after synthesis, the system determines two sub-goal regions: one is the region merged from chapters numbered 2 and 3, and the other is the separate region numbered 4 (although the matching coefficient of number 4 is slightly lower, it is separately retained due to the special nature of the content). These two sub-goal regions are assigned unique identifiers and stored in memory for subsequent printing processing; through such an operation process, the system can synthesize highly relevant numbered regions according to the matching coefficient and determine multiple sub-goal regions for more efficient printing or subsequent processing.
[0078] Therefore, in each sub-goal region, multiple content features are determined according to the region recognition of each sub-goal region, and multiple content features are formed into a set of printing content to obtain multiple sets of printing content; patterns and texts are determined according to the recognition of multiple sets of printing content, and the printing scenario of the printer is determined according to the proportion between the pattern and the text and the scene mapping relationship, taking into account the overall proportion between the pattern and the text and the scene mapping relationship, and ensuring the accuracy of the printing scenario of the printer.
[0079] At this time, the system needs to perform content recognition on each sub-goal region to determine the content features it contains; content features include patterns, texts, colors, shapes, etc.; at the same time, the system uses image processing technologies (such as edge detection, texture analysis, color recognition, etc.) to identify the pattern and color features in the sub-goal region; for the sub-goal region containing text, the system uses optical character recognition (OCR) technology to extract the text content; the system uses specific algorithms to extract the key features in the sub-goal region, and these features will be used for subsequent determination of printing content and selection of printing scenarios.
[0080] After identifying the content features of each sub-goal region, the system combines these features together to form a set of printing content. This process involves screening, sorting, and reorganizing the features to ensure the quality and readability of the printing content; at this time, the system filters out the most important content features for printing according to user preferences or printing requirements; the system sorts the printing content according to the logical order or visual importance of the content; for a printing task containing multiple sub-goal regions, the system needs to recombine the content of these sub-goal regions to form a coherent printed document.
[0081] After forming the print content groups, the system needs to analyze the proportion of patterns and text in each group of print content, which will be used for subsequent print scenario selection; at this time, the system uses area proportion, pixel proportion or other methods to calculate the proportion of patterns and text in the print content; according to the proportion situation, the system classifies the print content into different types, such as text-intensive, pattern-intensive or mixed type.
[0082] Finally, the system determines the print scenario of the printer according to the proportion between the pattern and the text and the preset scenario mapping relationship; the print scenario includes print mode (such as draft mode, standard mode, high-quality mode), paper type (such as plain paper, glossy paper, photo paper), color setting (such as black and white printing, color printing), etc.; at this time, the system maintains a scenario mapping table, which associates different proportions of patterns and text with specific print scenarios; according to the proportion analysis result and the scenario mapping relationship, the system selects the most suitable print scenario for printing; after selecting the print scenario, the system also needs to set the corresponding print parameters, such as resolution, color depth, print speed, etc.
[0083] Specifically, assume that the user wants to print a document containing abstracts of multiple chapters, and each chapter abstract is divided into a sub-goal area; in step S142, the system has determined multiple sub-goal areas; the system performs content recognition on each sub-goal area and finds that it contains a large amount of text description and a small amount of chart patterns; the system combines these text descriptions and chart patterns to form multiple groups of print content; during the combination process, the system typesets the text to ensure its readability; at the same time, it scales and adjusts the position of the chart to ensure its clarity in the printed document.
[0084] The system analyzes the proportion of patterns and text in each group of print content and finds that the text description occupies most of the area, while the chart pattern is relatively small; therefore, the system classifies these print contents as text-intensive; according to the classification result of text-intensive and the preset scenario mapping relationship, the system selects the standard mode for printing and selects plain paper as the paper type; at the same time, the system also sets appropriate resolution and color depth to ensure the quality of the printing effect; through such an operation process, the system can determine the print content and print scenario according to the content characteristics of the sub-goal area, so as to provide high-quality printing services for users.
[0085] In an embodiment of the present application, assume that there are two groups of print content, as follows: Print content group 1: Pattern proportion: 10%; Text proportion: 90%; Matching table description: Text-intensive with a small amount of pattern embellishment; Calculated scores: High-quality mode score = 10% * 5 + 90% * 5 = 5; Standard mode score = 10% * 3 + 90% * 3 = 3; Draft mode score = 10% * 1 + 90% * 1 = 1; Final selection: High-quality mode; Print content group 2: Pattern proportion: 60%; Text proportion: 40%; Matching table description: Graphic and text hybrid type, with balanced patterns and text; Calculated scores: High-quality mode score = 60% * 5 + 40% * 5 = 5; Standard mode score = 60% * 3 + 40% * 3 = 3; Draft mode score = 60% * 1 + 40% * 1 = 1; Considering that the graphic and text hybrid type requires higher clarity to display pattern and text details, although the high-quality mode and the standard mode have the same score, the system prefers to select the high-quality mode (or select according to user preferences); Final selection (example): High-quality mode (or select the standard mode according to system settings / user preferences). Through such an operation process, the system can determine the print content and print scenario according to the content characteristics of the sub-goal area, so as to provide more personalized printing services for users.
[0086] Reference Figure 6 , in step S15, collect the service life of the printer and the size of the area to be printed, and determine the printing mode of the printer according to the service life of the printer, the printing scenario of the printer, and the size of the area to be printed; In the specific implementation process of the present invention, the specific steps are as follows: S151: Collect the model of the printer, determine the usage record of the printer according to the model of the printer and the print database, and determine the service life of the printer according to the usage record of the printer; S152: Detect the size of the area to be printed, and determine the size of the area to be printed according to the size detection of the area to be printed, and determine the first mode coefficient according to the printing scenario of the printer and the size of the area to be printed; S153: Determine the second mode coefficient according to the printing scenario of the printer and the service life of the printer, and determine the printing mode of the printer according to the first mode coefficient, the second mode coefficient, and the printing mode mapping relationship.
[0087] In the embodiment of the present application, collecting the model of the printer, determining the usage record of the printer according to the model of the printer and the print database, and determining the service life of the printer according to the usage record of the printer takes into account the signal of the printer and the overall consideration of the print database, ensuring the accuracy of the usage record of the printer.
[0088] At this time, the model of the printer is collected. After obtaining the printer model, the system needs to query the usage records of the printer from the print database according to this model. The print database contains the following information: Print task log: Records the detailed information of each print task, such as print time, number of printed pages, print quality settings, etc.; Maintenance record: Records the maintenance history of the printer, such as replacing the ink cartridge, cleaning the print head, repairing faults, etc.; Error log: Records the errors and fault information that occurred in the printer, as well as the corresponding solutions.
[0089] After obtaining the usage records of the printer, the system needs to analyze these data to estimate the service life of the printer. This involves the following aspects of consideration: Number of prints: Counts the total number of prints of the printer, as well as the number of prints under different print quality settings; Maintenance history: Analyzes the maintenance records of the printer to understand the maintenance frequency and maintenance effect of the printer; Failure rate: Calculates the failure rate of the printer, as well as the repair time and repair effect after a failure occurs; Based on these analyses, the system estimates the remaining service life of the printer, that is, the time the printer can still work properly under the current usage status. In addition, the system needs to continuously optimize its estimation algorithm to improve the accuracy of the service life estimation. The system allows users to provide feedback on the estimation results so that the system can be adjusted and optimized according to the actual usage situation.
[0090] Specifically, assume there is a printer with the model HP LaserJet M17w, and the user wants to know the service life of this printer. The system identifies the printer model as HP LaserJet M17w through automatic detection technology. The system queries the usage records of printers of this model from the print database. The records show that this printer has printed a total of 5,000 pages in the past year, among which high-quality prints account for 20% and standard prints account for 80%. In addition, the records also show that this printer has been maintained twice in the past year, including replacing the ink cartridge once and cleaning the print head once. The system analyzes these usage records and finds that the number of prints of this printer is moderate, the maintenance record is good, and the failure rate is low. Based on this information, the system estimates that the remaining service life of this printer is about 3 - 5 years (the specific number of years varies due to factors such as individual differences of printers and usage environment). Through such a process, the system can intelligently estimate the service life of the printer according to the printer model and usage records, providing valuable reference information for users.
[0091] Further, perform size detection on the area to be printed, determine the size of the area to be printed based on the size detection of the area to be printed, and determine the first mode coefficient according to the printing scenario of the printer and the size of the area to be printed, taking into account the overall compatibility of the printing scenario of the printer and the size of the area to be printed, and ensuring the accuracy of the first mode coefficient.
[0092] At this time, the system needs to perform size detection on the area to be printed specified by the user, which is achieved through the following methods: At this time, the system uses a camera or scanner to obtain an image of the area to be printed, and identifies the size of the area to be printed through an image processing algorithm.
[0093] After obtaining the size of the area to be printed, the system needs to convert these results into specific size information, such as length, width, etc. This involves parsing and processing the detection results to ensure the accuracy and usability of the size information; at this time, the system needs to support conversion between different units, such as millimeters, centimeters, inches, etc., to meet the needs of different users; the system needs to verify the size information to ensure that it meets the printing requirements and limitations of the printer.
[0094] After determining the size of the area to be printed, the system needs to combine the printing scenario of the printer (such as high-quality printing, draft printing, fast printing, etc.) and the size information of the area to be printed to determine a parameter called the first mode coefficient. This parameter reflects the degree of demand of the printing task on the printer performance, including aspects such as printing speed, printing quality, and consumable usage rate; at this time, the system needs to maintain a mapping relationship table between the printing scenario and the first mode coefficient to quickly determine the first mode coefficient according to the printing scenario and size information; the system needs to be able to dynamically adjust the first mode coefficient according to the actual situation to optimize the printing effect and performance.
[0095] Specifically, assume that the user needs to print an A3-sized poster with a high-quality printing scenario. The system uses image recognition technology to obtain the image of the area to be printed and identifies the size of this area as 297mm x 420mm (A3 size) through an image processing algorithm. The system converts the identified size information into specific length and width values, namely 297mm and 420mm. The system determines the first mode coefficient based on the printing scenario of the printer and the size of the area to be printed: According to the printing scenario (high-quality printing) and the size of the area to be printed (A3 size), the system looks up the corresponding first mode coefficient from the mapping relationship table. Assume that in the high-quality printing scenario, the first mode coefficient corresponding to the A3-sized printing task is 1.2 (indicating that this task has relatively high requirements for printing quality and speed). Through such a process, the system can intelligently determine the first mode coefficient based on the size of the area to be printed and the printing scenario of the printer, providing important reference information for subsequent determination of the printing mode. This first mode coefficient, together with other factors (such as the service life of the printer, the second mode coefficient, etc.), will jointly determine the final printing mode and settings.
[0096] Therefore, the second mode coefficient is determined according to the printing scenario of the printer and the service life of the printer, and the printing mode of the printer is determined based on the first mode coefficient, the second mode coefficient, and the printing mode mapping relationship, taking into account the overall consideration of the first mode coefficient, the second mode coefficient, and the printing mode mapping relationship, ensuring the accuracy of the printing mode of the printer.
[0097] At this time, the system needs to combine the printing scenario of the printer (such as high-quality printing, draft printing, fast printing, etc.) and the service life of the printer to determine a second mode coefficient. The second mode coefficient reflects the impact of the current state of the printer on printing performance, including the degree of wear of the printer, component aging, maintenance history, etc. At the same time, different printing scenarios have different requirements for the performance of the printer. For example, high-quality printing requires higher printing resolution and more precise ink droplet control, while draft printing pays more attention to printing speed and consumable costs. The service life of the printer is one of the important factors for its performance evaluation. As the service life increases, the components of the printer will gradually age, resulting in problems such as a decline in printing quality and an increase in failure rates. Therefore, the system needs to evaluate the current state of the printer based on its service life and determine the second mode coefficient accordingly. The system needs to be able to dynamically adjust the second mode coefficient according to the actual situation. For example, if the printer has recently undergone a comprehensive maintenance and repair, and its performance has been significantly improved, the system will adjust the second mode coefficient accordingly.
[0098] After determining the first mode coefficient and the second mode coefficient, the system needs to combine these two coefficients and the preset printing mode mapping relationship to determine the final printing mode; the printing mode mapping relationship is a preset table or function that determines the corresponding printing mode according to the values of the first mode coefficient and the second mode coefficient; at the same time, the printing mode mapping relationship includes multiple printing mode options, such as draft mode, standard mode, high-quality mode, etc.; each printing mode corresponds to a specific set of printing parameter settings, such as printing speed, printing quality, consumable usage rate, etc.; the system needs to comprehensively consider the values of the first mode coefficient and the second mode coefficient and determine the final printing mode according to the printing mode mapping relationship. This process involves weighing and optimizing multiple factors to ensure that while meeting the printing requirements, the service life of the printer is maximally extended and the operating cost is reduced; in some cases, the system allows users to manually adjust the printing mode according to actual needs; for example, if users want to sacrifice some printing quality to speed up the printing speed, they choose the draft mode or a similar fast printing option.
[0099] Specifically, suppose there is a printer with a service life of 3 years, and the user wants to print an A3-sized poster in high-quality mode; the system determines the second mode coefficient based on the printing scenario (high-quality printing) and the service life (3 years) of the printer; assume that in the high-quality printing scenario, the second mode coefficient corresponding to a printer with a service life of 3 years is 0.9 (indicating that the printer can still maintain good performance in the high-quality printing scenario, but is slightly degraded compared to a brand-new printer); the system has already determined that the first mode coefficient is 1.2 (based on the size of the area to be printed and the printing scenario), and the second mode coefficient is 0.9 (based on the service life of the printer and the printing scenario); next, the system determines the final printing mode according to these two coefficients and the preset printing mode mapping relationship; assume the printing mode mapping relationship is as follows: If the product of the first mode coefficient and the second mode coefficient is greater than 1.5, then select the high-quality mode; If the product is between 1.0 and 1.5, then select the standard mode; If the product is less than 1.0, then select the draft mode; In this example, the product of the first mode coefficient and the second mode coefficient is 1.2 * 0.9 = 1.08, which falls within the range of 1.0 to 1.5. Therefore, the system selects the standard mode as the final printing mode; through such a process, the system can intelligently determine the final printing mode based on multiple factors such as the printing scenario, service life of the printer, and the size of the area to be printed, so as to meet the user's printing requirements and optimize the usage effect of the printer.
[0100] In an embodiment of the present application, a preset print mode matching table is collected to determine the print mode; the print mode matching table sets different print modes according to the printing scenario, service life of the printer, and the previously calculated first mode coefficient and second mode coefficient; the print mode matching table is shown in Table 3: Table 3 Print Mode Matching Table
[0101] Suppose there is a printer with a service life of 4 years, and the user hopes to print a document in high-quality mode; according to the previous calculation, the first mode coefficient is 1.1 and the second mode coefficient is 0.85; the printing scenario is "high-quality printing"; the service life is 4 years, belonging to the range of "3 - 5 years"; the first mode coefficient is 1.1, belonging to the adjacent range of "≤1.0" (but slightly higher, here the closest or slightly looser range is used for judgment, and more refined division or interpolation methods are required in actual implementation); the second mode coefficient is 0.85, belonging to the range of ">0.8" but close to "≤0.8" (similarly, the closest or slightly looser judgment is used); according to the print mode matching table, the closest match is "high-quality printing, 3 - 5 years, ≤1.0 (approximate judgment of the first mode coefficient), >0.8 (actual judgment of the second mode coefficient)", and the corresponding print mode is "standard mode"; therefore, the system selects the standard mode as the final print mode.
[0102] Please refer to Figure 7 , Figure 7 which is a schematic structural diagram of the printing system for the area to be printed of an image by the printer in an embodiment of the present invention; the printing system for the area to be printed of an image by the printer includes: An image module 21, configured to use the camera module of the printer to photograph a paper document and collect a real-time image of the paper document; An area-to-be-printed module 22, configured to use the light source module of the printer to perform local illumination on the area to be printed in the paper document, so that there is a target brightness area in the real-time image of the paper document, and use the target brightness area as the area to be printed; An autonomous printing module 23, configured to trigger the printer to autonomously print the area to be printed based on the area to be printed; A printing scenario module 24, configured to determine multiple sub-target areas according to the division of the area to be printed during the autonomous printing of the area to be printed, determine multiple sets of printing content according to the area recognition of the multiple sub-target areas, and determine the printing scenario of the printer according to the multiple sets of printing content; A print mode module 25, configured to collect the service life of the printer and the size of the area to be printed, and determine the print mode of the printer according to the service life of the printer, the printing scenario of the printer, and the size of the area to be printed.
[0103] For any combination of the technical features of the above embodiments, for the sake of brevity of description, not all combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered to be within the scope described in this specification.
Claims
1. A method for printing a to-be-printed area of an image by a printer, characterized in that: include: The camera module of the printer shoots the paper document and collects the real-time image of the paper document; The light source module of the printer locally illuminates the area to be printed in the paper document, so that the real-time image of the paper document has a target brightness area, and the target brightness area is used as the area to be printed; Triggering the printer to autonomously print the area to be printed based on the area to be printed; In the autonomous printing of the area to be printed, a plurality of sub-target areas are determined according to the division of the area to be printed, a plurality of groups of printing contents are determined according to the area identification of the plurality of sub-target areas, and a printing scene of the printer is determined according to the plurality of groups of printing contents; The service life of the printer and the size of the area to be printed are collected, and the printing mode of the printer is determined according to the service life of the printer, the printing scenario of the printer and the size of the area to be printed.
2. The method for printing an area to be printed by a printer according to claim 1, characterized in that: The camera module of the printer shoots the paper document and collects the real-time image of the paper document, including: The printer is equipped with a camera module, which is located in front of the printer. At this time, a paper document is placed in the camera area of the camera module; Performing environmental detection on the camera area, determining multiple surrounding environmental parameters of the paper document according to the environmental detection of the camera area, and determining the environmental type of the paper document based on the multiple surrounding environmental parameters and corresponding positions; The model of the camera module is collected, and the shooting parameters of the camera module are determined according to the model of the camera module and the environment type of the paper document. Based on the shooting parameters, the camera module is triggered to shoot the paper document in real time to collect the real-time image of the paper document.
3. The method for printing an area to be printed by a printer according to claim 1, characterized in that: The light source module of the printer locally illuminates the area to be printed in the paper document so that the real-time image of the paper document has a target brightness area, and the target brightness area is used as the area to be printed, including: Determine the target content based on the detection of the paper document, and use the area where the target content is located as the area to be printed, where the area to be printed is in the middle, upper side or lower side of the paper document; The printer is equipped with a light source module, which is located on one side of the camera module. At this time, the relative position of the light source module with respect to the area to be printed is determined according to the current position of the light source module and the current position of the area to be printed of the paper document; The adjustment of the irradiation direction of the light source module is triggered based on the relative position of the light source module with respect to the area to be printed, so that the light source module performs local irradiation toward the area to be printed. When the area to be printed is locally irradiated, a target brightness area exists in the real-time image of the paper document, and the target brightness area is used as the area to be printed. The brightness parameter of the target brightness area is higher than the brightness parameter of the remaining areas of the real-time image of the paper document.
4. The method for printing a to-be-printed area of an image by a printer according to claim 1, characterized in that: The method of triggering the printer to autonomously print the area to be printed based on the area to be printed includes: The area to be printed is collected, a plurality of edge contour lines of the area to be printed are determined according to edge detection of the area to be printed, and a plurality of boundaries of the area to be printed are determined according to synthesis of the plurality of edge contour lines.
5. The method for printing a to-be-printed area of an image by a printer according to claim 4, characterized in that: The method of triggering the printer to autonomously print the area to be printed based on the area to be printed also includes: Determine the marked content based on the user's mark on the area to be printed, determine multiple marked areas according to the marked content and multiple boundaries of the area to be printed, and match corresponding serial numbers to the multiple marked areas to form multiple serial number areas; Collect the user's voice information, and determine the user's preferred serial number area based on the user's voice information, determine the final serial number area based on the user's preferred serial number area and the matching of multiple serial number areas, convert the final serial number area into a printing signal, and trigger the printer to autonomously print the area to be printed based on the printing signal.
6. The method for printing an area to be printed by a printer according to claim 5, characterized in that: In the autonomous printing of the area to be printed, a plurality of sub-target areas are determined according to the division of the area to be printed, a plurality of groups of printing contents are determined according to the area identification of the plurality of sub-target areas, and a printing scene of the printer is determined according to the plurality of groups of printing contents, including: Real-time monitoring of the autonomous printing of the area to be printed, dividing the area to be printed, and in the division of the area to be printed, matching the final serial number area and the remaining multiple serial number areas to determine the corresponding matching coefficients; If the matching coefficient is greater than a preset matching coefficient threshold, a sub-target region is determined according to a synthesis of the final sequence number region and the corresponding sequence number region to obtain a plurality of sub-target regions.
7. The method for printing an area to be printed by a printer according to claim 6, characterized in that: In the autonomous printing of the area to be printed, a plurality of sub-target areas are determined according to the division of the area to be printed, a plurality of groups of printing contents are determined according to the area identification of the plurality of sub-target areas, and a printing scene of the printer is determined according to the plurality of groups of printing contents, further comprising: In each sub-target area, multiple content features are determined based on the area recognition of each sub-target area, and the multiple content features are formed into a group of printing contents to obtain multiple groups of printing contents; patterns and texts are determined based on the recognition of multiple groups of printing contents, and the printing scene of the printer is determined based on the proportion between the pattern and the text and the scene mapping relationship.
8. The method for printing a to-be-printed area of an image by a printer according to claim 1, characterized in that: The collecting the service life of the printer and the size of the area to be printed, and determining the printing mode of the printer according to the service life of the printer, the printing scene of the printer and the size of the area to be printed, includes: Collect the model of the printer, determine the usage record of the printer based on the model of the printer and the printing database, and determine the service life of the printer based on the usage record of the printer.
9. The method for printing a to-be-printed area of an image by a printer according to claim 8, characterized in that: The collecting the service life of the printer and the size of the area to be printed, and determining the printing mode of the printer according to the service life of the printer, the printing scene of the printer and the size of the area to be printed, also includes: Performing size detection on the area to be printed, and determining the size of the area to be printed according to the size detection of the area to be printed, and determining the first mode coefficient according to the printing scene of the printer and the size of the area to be printed; The second mode coefficient is determined according to the printing scenario of the printer and the service life of the printer, and the printing mode of the printer is determined according to the first mode coefficient, the second mode coefficient and the printing mode mapping relationship.
10. A system for printing a region of an image to be printed by a printer, characterized in that: The printing system of the printer for the area to be printed of the image is applied to the printing method of the printer for the area to be printed of the image as claimed in any one of claims 1 to 9, and the printing system of the printer for the area to be printed of the image comprises: An image module is used for the camera module of the printer to shoot paper documents and collect real-time images of paper documents; The to-be-printed area module is used for the light source module of the printer to locally illuminate the to-be-printed area in the paper document, so that the real-time image of the paper document has a target brightness area, and the target brightness area is used as the to-be-printed area; An autonomous printing module, used for triggering the printer to autonomously print the area to be printed based on the area to be printed; A printing scene module, used for determining a plurality of sub-target areas according to the division of the area to be printed, determining a plurality of groups of printing contents according to the area identification of the plurality of sub-target areas, and determining a printing scene of the printer according to the plurality of groups of printing contents in the autonomous printing of the area to be printed; The printing mode module is used to collect the service life of the printer and the size of the area to be printed, and determine the printing mode of the printer according to the service life of the printer, the printing scene of the printer and the size of the area to be printed.
Citation Information
Patent Citations
Printing method, printing apparatus, and storage medium storing a program
CN101335811A
Printing method for image local area based on portable printer
CN102436360A
Laser printer control method and device, storage medium and electronic equipment
CN114201127A
Thermal transfer printing method and system of thermal transfer printing printer
CN119567743A
Photograph printer
JP2006243341A