Printing method and system for the area to be printed of an image
By integrating the camera module and light source module in the printer, the target brightness area of the paper document is identified in real time, which solves the problem that the area to be printed in the paper document cannot be directly determined, and improves printing accuracy and efficiency.
Patent Information
- Application Number
- CN202510542458.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-28
- Publication Date
- 2025-08-05
- Estimated Expiration
- 2045-04-28
AI Technical Summary
In the prior art, the area to be printed in paper documents cannot be directly determined in the printer, which affects printing efficiency.
By integrating the camera module and light source module in the printer, paper documents are captured in real time and local lighting is performed, the target brightness area is identified as the area to be printed, and the printing mode is determined based on the printer's service life, the printing scene and the size of the area to be printed.
It improves the printing accuracy and efficiency of the printer's printing area, taking into account the overall considerations of the printer's service life, the printing scene and the area to be printed, and ensures the accuracy of the printing mode.
Smart Images

Figure CN120066432B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of printers, and in particular to a method and system for a printer to print an area to be printed on an image. Background Art
[0002] With the development of science and technology, printers are gradually used in people's lives. Before the printer prints, the shooting device shoots the paper document to collect the corresponding image, which is presented in the computer, and the area to be printed is selected in the computer. The printing information based on the area to be printed is transmitted to the printer. At this time, the area to be printed of the paper document passes through the shooting device, computer and printer in turn, and the area to be printed of the paper document cannot be directly determined, which affects the printing efficiency of the printer for the area to be printed. Summary of the Invention
[0003] The purpose of the present invention is to overcome the deficiencies of the prior art. The present invention provides a method and system for a printer to print an area to be printed on an image.
[0004] An embodiment of the present invention provides a method for printing a to-be-printed area of an image by a printer, comprising:
[0005] The camera module of the printer shoots the paper document and collects the real-time image of the paper document;
[0006] The light source module of the printer locally illuminates the area to be printed in the paper document so that 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;
[0007] Triggering the printer to autonomously print the area to be printed based on the area to be printed;
[0008] 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 sets 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 sets of printing contents;
[0009] The age of the printer and the size of the area to be printed are collected, and the printing mode of the printer is determined based on the age of the printer, the printing scenario of the printer, and the size of the area to be printed.
[0010] An embodiment of the present invention provides a system for printing an area of an image to be printed by a printer. The system for printing an area of an image to be printed by a printer is applied to the above-mentioned method for printing an area of an image to be printed by a printer. The system for printing an area of an image to be printed by a printer includes:
[0011] An image module is used for the camera module of the printer to shoot paper documents and collect real-time images of the paper documents;
[0012] The to-be-printed area module is used for the light source module of the printer to locally illuminate the to-be-printed area of 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;
[0013] An autonomous printing module, configured to trigger the printer to autonomously print the area to be printed based on the area to be printed;
[0014] a printing scene module for determining, during autonomous printing of the area to be printed, a plurality of sub-target areas according to the division of the area to be printed, determining a plurality of sets of printing contents according to area identification of the plurality of sub-target areas, and determining a printing scene of the printer according to the plurality of sets of printing contents;
[0015] 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.
[0016] Compared with the prior art, the present invention has the following beneficial effects:
[0017] In an embodiment of the present invention, through the method in the embodiment of the present invention, 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 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; based on the area to be printed, the printer is triggered to autonomously print the area to be printed. The printer integrates the shooting of the paper document and the local illumination, and presents the target brightness area in a targeted manner to facilitate the direct determination of the area to be printed, thereby improving the printing accuracy and printing efficiency of the printer for the area to be printed.
[0018] Therefore, 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 groups of printing contents are determined according to the area identification of the multiple sub-target areas, and the printing scene of the printer is determined according to the multiple groups of printing contents; the age 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 age of the printer, the printing scene of the printer and the size of the area to be printed, the area to be printed is further analyzed, and the corresponding printing scene is introduced, which is compatible with the overall consideration of the age of the printer, the printing scene of the printer and the size of the area to be printed, thereby ensuring the accuracy of the printing mode of the printer. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1is a flow chart of a method for printing an area to be printed of an image by a printer in an embodiment of the present invention;
[0020] Figure 2 1 is a flow chart of step S11 in a method for printing an area to be printed of an image by a printer in an embodiment of the present invention;
[0021] Figure 3 1 is a flow chart of step S12 in the method for printing the to-be-printed area of an image by a printer in an embodiment of the present invention;
[0022] Figure 4 1 is a flow chart of step S13 in the method for printing the to-be-printed area of an image by a printer in an embodiment of the present invention;
[0023] Figure 5 1 is a flow chart of step S14 in the method for printing the to-be-printed area of an image by a printer in an embodiment of the present invention;
[0024] Figure 6 1 is a flow chart of step S15 in the method for printing the to-be-printed area of an image by a printer in an embodiment of the present invention;
[0025] Figure 7 It is a schematic diagram of the structure of a printing system for printing an area to be printed of an image by a printer in an embodiment of the present invention. DETAILED DESCRIPTION
[0026] The technical solutions in the embodiments of the present invention will be described clearly and completely below with reference to the accompanying drawings in the embodiments of the present invention.
[0027] See also Figures 1 to 7 A method for printing a to-be-printed area of an image by a printer includes:
[0028] Step S11: the camera module of the printer shoots the paper document and collects a real-time image of the paper document;
[0029] Step S12: The light source module of the printer locally illuminates the area to be printed in the paper document so that 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;
[0030] Step S13: triggering the printer to autonomously print the area to be printed based on the area to be printed;
[0031] Step S14: in the autonomous printing of the to-be-printed area, a plurality of sub-target areas are determined according to the division of the to-be-printed area, a plurality of sets of printing contents are determined according to the area identification of the plurality of sub-target areas, and a printing scenario of the printer is determined according to the plurality of sets of printing contents;
[0032] Step S15: collecting the age of the printer and the size of the area to be printed, and determining the printing mode of the printer according to the age of the printer, the printing scenario of the printer, and the size of the area to be printed;
[0033] refer to Figure 2 , in step S11, the camera module of the printer shoots the paper document and collects a real-time image of the paper document;
[0034] In the specific implementation process of the present invention, the specific steps are:
[0035] S111: 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;
[0036] S112: Performing environmental detection on the camera area, determining multiple surrounding environmental parameters of the paper document based on the environmental detection of the camera area, and determining the environment type of the paper document based on the multiple surrounding environmental parameters and the corresponding position;
[0037] S113: Acquire the model of the camera module, determine the shooting parameters of the camera module according to the model of the camera module and the type of environment of the paper document, and trigger the camera module to shoot the paper document in real time based on the shooting parameters to acquire a real-time image of the paper document.
[0038] In an embodiment of the present application, 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 so that the camera module can take a picture of the paper document.
[0039] In this case, the camera module is installed on the front panel of the printer, above or next to the paper feed port, ensuring that the paper document placed on the printer can be clearly captured. The camera module has high-resolution image capture capabilities and can capture text, images and other content on the paper document and convert them into digital image data.
[0040] To ensure that users can easily place paper documents within the camera area, the camera module is designed to face the user and is easily accessible to the printer. The camera module's field of view is carefully adjusted to ensure that it can cover common document sizes on printers (such as A4, Letter, etc.) while avoiding capturing unnecessary background information.
[0041] The user needs to place the paper document flatly on the printer and ensure that the content of the document is within the field of view of the camera module; the printer will provide alignment marks or instructions to help the user accurately place the document in the camera area.
[0042] Specifically, suppose a user is using a smart printer equipped with an advanced camera 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 content that needs to be clearly captured and printed out; a high-resolution camera module is installed on the front panel of the printer, which is located above the paper feed; the user sees a clear field of view mark indicating where they should place the paper document; the user places the report draft flatly in the camera area of the printer, ensuring that the content of the document is completely within the field of view of the camera module; they also notice that there is an alignment mark on the printer to help them place the document more accurately; once the document is placed correctly, the printer will automatically trigger the camera module to shoot; the camera module will capture the content on the paper document and convert it into digital image data.
[0043] Furthermore, environmental detection is performed on the camera area, and multiple surrounding environmental parameters of the paper document are determined based on the environmental detection of the camera area. The environmental type of the paper document is determined based on the multiple surrounding environmental parameters and the corresponding positions, thereby ensuring the accuracy of the environmental type of the paper document.
[0044] At this time, the printer is equipped with light sensors, color sensors or other types of environmental sensors, which can detect environmental information such as light intensity, color temperature, background complexity, etc. in the camera area; before the camera module is ready to shoot paper documents, these sensors will collect environmental data in the camera area in real time.
[0045] Optionally, a light sensor measures the light intensity in the camera area to determine whether the environment is bright or dim; a color sensor analyzes the color of the light in the camera area to determine whether there is a color temperature deviation, such as yellowish or bluish; and an image processing algorithm is used to analyze the background image in the camera area to evaluate the complexity of the background, such as whether there are a large number of textures or patterns.
[0046] The printer has a preset database of environmental categories. Based on the collected environmental parameters, the printer matches these parameters with the environmental categories in the database. Different locations within the camera area have different environmental parameters. The printer will take these location differences into account to more accurately determine the environmental category of the entire camera area. Ultimately, the printer will combine all collected environmental parameters and location information to make a comprehensive judgment about the type of environment the paper document is in.
[0047] Specifically, suppose a user is using a smart printer to print an important contract document, and this document is prepared in an office environment with dim lighting and a complex background. Before the printer's camera module is started, its built-in light sensor, color sensor, and image processing algorithm are ready to perform environmental detection on the camera area. The light sensor detects that the light intensity in the camera area is low, indicating that the environment is dark. The color sensor analyzes that the light color in the camera area is warm, which is caused by the lighting equipment in the office. The image processing algorithm recognizes that the background in the camera area contains multiple complex patterns and textures, such as bookshelves, filing cabinets, and decorations.
[0048] The printer matches these environmental parameters with its internal preset environment type database; based on the collected parameters, the printer determines that the environment type in the camera area is "dim and with a complex background"; once the environment type is determined, the printer will adjust the shooting parameters of its camera module (such as increasing the exposure time, adjusting the white balance, etc.) to ensure that clear and accurate paper document images can be captured even under adverse environmental conditions; in addition, the printer also adjusts its print settings according to the environment type to optimize the printing effect; through this specific example, we can see the importance of step S112 in actual operation; correctly detecting the environment of the camera area, determining the surrounding environmental parameters of the paper document, and judging the environment type are key steps to ensure that the printing process can adapt to different environmental conditions.
[0049] Therefore, the model of the camera module is collected, the shooting parameters of the camera module are determined according to the model of the camera module and the environmental type of the paper document, and the camera module is triggered to shoot the paper document in real time based on the shooting parameters to collect the real-time image of the paper document. This is compatible with the overall consideration of the model of the camera module and the environmental type of the paper document, and ensures the accuracy of the shooting parameters of the camera module.
[0050] At this time, there is an internal identification system in the printer that can automatically detect and record the model of the current camera module at startup or before each use of the camera module. The model information of the camera module contains data about its key parameters such as performance, resolution, sensor type, etc. The printer has an internal shooting parameter database, and based on the model of the camera module and the previously determined environment type, the most suitable shooting parameters are retrieved from the database. 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 based on the specific performance of the camera module and the characteristics of the environment type, such as using longer exposure time to compensate for low-light environments, or adjusting white balance to correct color temperature deviations.
[0051] Once the shooting parameters are determined, the printer will send a shooting instruction to the camera module while ensuring that all necessary settings are correctly configured; the camera module will immediately start shooting after receiving the instruction, capture the content on the paper document, and convert it into digital image data; after shooting is completed, the image data is transmitted to the printer's processing system, ready for subsequent image processing or printing tasks.
[0052] Specifically, assume that a user is using a high-end smart printer to print a report containing important charts and text, and that the report is being prepared in an office environment with moderate lighting but a slightly cluttered background. When the printer is turned on, its internal recognition system automatically detects the currently installed camera module model as "XYZ-1234" and records the module's detailed performance parameters. Based on the camera module model "XYZ-1234" and the previously determined environment type of "moderate lighting but cluttered background," the printer retrieves the most suitable shooting parameters from the shooting parameter database. These parameters include: exposure time set to 1 / 60 second, ISO set to 200, white balance adjusted to automatic to adapt to different lighting conditions, and focal length set to a focal length suitable for capturing an A4-sized document.
[0053] The printer sends a shooting instruction to the camera module and ensures that all shooting parameters are correctly configured. The camera module starts shooting immediately after receiving the instruction to capture the content on the paper report. After shooting, the image data is transmitted to the printer's processing system to prepare for subsequent image processing, such as image enhancement and content recognition, and finally used for printing tasks. Through this specific example, we can see the importance of step S113 in actual operation. Correctly collecting the model of the camera module, determining the shooting parameters according to the model and environment type, and triggering the camera module to shoot in real time are key steps to ensure that the printing process can capture high-quality images. These steps together ensure that the printed document content is clear and accurate, and can adapt to different environmental conditions and printing needs.
[0054] In one embodiment of the present application, the printer first collects the model of the camera module, and then determines the shooting parameters based on the model of the camera module and the type of environment of the paper document. This is achieved through a predefined camera module matching table, as shown in Table 1:
[0055] Table 1 Camera module matching table
[0056] Camera module model Environmental Type Exposure time ISO White balance focal length XYZ-1234 Bright environment 1 / 125 second 100 automatic automatic XYZ-1234 dim environment 1 / 15 second 800 Warm colors automatic ABC-5678 Complex background 1 / 60 sec 200 automatic Manual adjustment ABC-5678 Simple background 1 / 90 second 100 sunlight automatic
[0057] If the printer's camera module model is XYZ-1234 and the paper document is in a dim environment, the printer will search the camera module matching table, find the corresponding shooting parameters of 1 / 15 second exposure time, 800 ISO, warm white balance, and automatic focus, and trigger the camera module to take a picture.
[0058] refer to Figure 3 In step S12, the light source module of the printer locally illuminates the area to be printed in the paper document so that 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;
[0059] In the specific implementation process of the present invention, the specific steps are:
[0060] S121: determining target content based on detection of the paper document, and using the area where the target content is located as a to-be-printed area, where the to-be-printed area is located in the middle, upper side, or lower side of the paper document;
[0061] S122: 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 to-be-printed area of the paper document is determined based on the current position of the light source module and the current position of the to-be-printed area of the paper document.
[0062] S123: triggering adjustment of the illumination direction of the light source module based on the relative position of the light source module relative to the area to be printed, so that the light source module partially illuminates the area to be printed, wherein when the area to be printed is partially illuminated, 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, and a brightness parameter of the target brightness area is higher than brightness parameters of other areas of the real-time image of the paper document;
[0063] In an embodiment of the present application, the target content is determined based on the detection of the paper document, and the area where the target content is located is used as the area to be printed. The area to be printed is located in the middle, upper side or lower side of the paper document.
[0064] At this point, 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 to-be-printed area; the to-be-printed area is located in the middle, upper side, or lower side of the paper document, depending on the specific location of the target content and the overall layout of the document;
[0065] 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 printer's processing system. The processing system analyzes the captured image data to identify the target content in the document. The target content may include text, images, graphics, barcodes, etc., depending on the printer configuration and user settings.
[0066] Once the target content is identified, the printer determines the area where the content is located. Based on the location and size of the target content, the printer automatically calculates an optimal printable area. The printable area is a rectangular frame that tightly surrounds the target content to ensure that no important information is missed during printing. The printable area is located in the middle, upper side, or lower side of the paper document, depending on the specific location of the target content in the document and the printer's layout strategy. The printer selects a layout to ensure that the printed content is both beautiful and easy to read.
[0067] Specifically, suppose a user is using a smart printer to print a document containing important meeting minutes; the user places the paper document containing the meeting minutes into the printer's scanning area; the printer activates the camera module, scans the document, and captures image data; the printer's processing system analyzes the captured image data; through OCR (optical character recognition) technology, the system recognizes the text content in the document, especially the title and body of the meeting minutes.
[0068] Based on the recognized text content, the printer automatically determines a rectangular printing area containing the meeting minutes; this area tightly surrounds all important information in the meeting minutes, ensuring that nothing is missed during printing; in this example, the printing area is located in the middle of the paper document because the content of the meeting minutes is relatively concentrated and the user wants the printed document to be both beautiful and easy to read; the printer automatically selects the optimal layout method based on these requirements and positions the printing area in the middle of the document; through this operation process, the printer can accurately identify the target content in the paper document and determine an optimal printing area, which provides great convenience for users, allowing them to easily print the required content without manually adjusting or cropping the document.
[0069] Furthermore, 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 relative to the area to be printed is determined based on the current position of the light source module and the current position of the area to be printed of the paper document, which is compatible with the overall consideration of the current position of the light source module and the current position of the area to be printed of the paper document, thereby ensuring the accuracy of the relative position of the light source module relative to the area to be printed.
[0070] At this point, 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 of the paper document to be printed. This process is critical to ensuring print quality because correct lighting significantly improves the clarity and accuracy of image capture.
[0071] 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 type of lighting device, which is used to provide sufficient light to illuminate the paper document; there is a positioning system or sensor inside the printer for detecting the position of the light source module in real time. This position information is absolute (for example, relative to a fixed point of the printer) or relative (for example, relative to the position of the camera module).
[0072] In the previous step (such as S121), the printer has determined the area to be printed of the paper document; the position 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 relative 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, distance or other geometric parameter, which is used to guide the adjustment of the light source module.
[0073] Specifically, let's assume a user is using a high-end smart printer to print a paper document containing detailed drawings. The printer is equipped with two LED light modules, one on the left and one on the right of the camera module. These LED modules provide uniform and adjustable light to illuminate different areas of the paper document. The printer's internal positioning system detects that the LED light modules are located to the left and right of the camera module, approximately 5 cm from the camera module.
[0074] In the previous steps, the printer has determined the rectangular to-be-printed area where the drawing is located, which is located in the upper middle part of the paper document; the printer uses an internal algorithm to calculate the optimal illumination angle of each LED module relative to the to-be-printed area based on the position of the LED light source module and the position of the to-be-printed area; for example, the LED module on the left needs to illuminate downward at an angle of 30 degrees to illuminate the left part of the to-be-printed area; and the LED module on the right needs to illuminate downward at an angle of 45 degrees to illuminate the right part of the to-be-printed area; through this operation process, the printer can accurately determine the relative position of the light source module with respect to the to-be-printed area, and adjust the illumination angle and intensity of the light source module to ensure that the paper document is evenly illuminated, which helps to improve the clarity and accuracy of image capture, thereby ensuring the high quality of the printed drawings.
[0075] Therefore, the adjustment of the irradiation direction of the light source module is triggered based on the relative position of the light source module relative 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, 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. 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.
[0076] At this point, the printer adjusts the irradiation direction of the light source module according to the previously determined relative position of the light source module relative to the area to be printed to ensure that the area to be printed is fully locally irradiated. This process is crucial to improving printing quality and accuracy.
[0077] The printer generates an adjustment instruction based on the relative position of the light source module and the area to be printed determined in step S122. This instruction includes parameters such as the irradiation direction, angle, and intensity to which the light source module needs to be adjusted. The mechanical structure or electronic control system inside the printer receives the adjustment instruction and begins to adjust the irradiation direction of the light source module, which involves operations such as rotating the light source module, adjusting the inclination angle of the light source module, or changing the position of the light source module.
[0078] Once the illumination direction of the light source module is adjusted into place, it will perform local illumination toward the area to be printed. This local illumination 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 illuminated, a higher brightness area will appear in the real-time image of the paper document, namely the target brightness area. The brightness parameters of this area (such as brightness value, contrast, etc.) are significantly higher than those of the rest of the area in the real-time image of the paper document. The printer detects and confirms the position and range of the target brightness area through the built-in image processing algorithm or sensor. Once confirmed, the printer will lock this area as the final area to be printed.
[0079] Specifically, suppose a user is using a smart 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 relative 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 illuminate the area to be printed at a 45-degree angle downward and ensure that the illumination intensity is moderate.
[0080] The printer's mechanical structure receives the adjustment instruction and begins to adjust the illumination direction of the LED light source module; the LED light source module gradually rotates to the specified 45-degree angle and begins to illuminate the area to be printed downward; the LED light source module successfully partially illuminates the area to be printed, ensuring that the charts 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 partially illuminated, a target brightness area with 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 charts and text content more clearly visible.
[0081] The printer uses built-in image processing algorithms to detect and confirm the location and range of the target brightness area. Once confirmed, the printer locks this area as the final area to be printed and prepares for subsequent printing operations. Through this operation process, the printer can ensure that the area to be printed receives sufficient local illumination, thereby improving print quality and accuracy, which provides users with clearer and easier-to-read printouts and enhances the overall performance and user experience of the printer.
[0082] In one 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:
[0083] Table 2 Irradiation direction adjustment parameter matching table
[0084] Light source module position Location of the area to be printed Irradiation direction adjustment parameters Left side Central 45 degrees to the lower right right side Central 45 degrees to the lower left above Lower side Vertically downward, fine-tuning the angle below Upper side Vertical upward, angle fine adjustment
[0085] The printer uses internal sensors to determine the relative positions of the light source module (such as an LED light) and the area to be printed on the paper document; based on the determined position information, the printer searches for the corresponding illumination direction adjustment parameters in the illumination direction adjustment parameter matching table; based on the found adjustment parameters, the printer adjusts the illumination direction of the light source module so that it is directed toward the area to be printed for local illumination.
[0086] After the area to be printed is partially illuminated, a target brightness area with 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 built-in image processing algorithms or sensors, and then locks this area as the final area to be printed.
[0087] refer to Figure 4 In step S13, based on the area to be printed, the printer is triggered to autonomously print the area to be printed;
[0088] In the specific implementation process of the present invention, the specific steps are:
[0089] S131: Acquire the area to be printed, determine multiple edge contour lines of the area to be printed based on edge detection of the area to be printed, and determine multiple boundaries of the area to be printed based on a synthesis of the multiple edge contour lines;
[0090] S132: Determining marked content based on the user's mark on the area to be printed, determining multiple marked areas based on the marked content and multiple boundaries of the area to be printed, and matching corresponding serial numbers to the multiple marked areas to form multiple serial number areas;
[0091] S133: 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.
[0092] In an embodiment of the present application, the area to be printed is collected, multiple edge contour lines of the area to be printed are determined based on edge detection of the area to be printed, and multiple boundaries of the area to be printed are determined based on the synthesis of the multiple edge contour lines, thereby introducing multiple boundaries.
[0093] 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 points in the image where the brightness or color changes significantly, which correspond to the edges of the object. Optional, commonly used edge detection algorithms include the Canny edge detector, the Sobel operator, the 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 the image brightness or color in a certain direction. The edge detection algorithm identifies edges by calculating the gradient of each pixel in the image. In order to determine which gradient values correspond to the true edge, the algorithm sets a threshold. Only when the gradient value exceeds this threshold is the point considered to be an edge point.
[0094] The printer connects the detected edge points into continuous contour lines, which together constitute 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. These contour lines correspond to the external 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 external boundary of the area to be printed. This involves some geometric analysis, such as calculating the perimeter, area and other attributes of the contour lines, and screening them according to these attributes. In order to ensure the accuracy of the boundary, the printer will also perform some optimization operations, such as smoothing and noise removal.
[0095] Specifically, suppose a user wants to print a document containing a photo; the printer first captures an image of the entire document through the camera module; then, the Canny edge detector is used to perform edge detection on the image to identify the edge points of the photo. These edge points are connected into a series of continuous contour lines, one of which corresponds to the outer boundary of the photo; finally, the printer determines this contour line as the outer boundary of the to-be-printed area through geometric analysis and prepares for subsequent printing operations; through this operation process, the printer can accurately identify the boundaries of the to-be-printed area and provide precise guidance for subsequent printing tasks, which helps to improve printing quality and efficiency while reducing user intervention and errors.
[0096] 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 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 is compatible with the overall consideration of the marked content and multiple boundaries of the area to be printed, and ensures the accuracy of multiple marked areas.
[0097] At this time, the printer needs to identify the marks made by the user on the area to be printed, which are 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 supporting software); optionally, if the printer is equipped with a camera module, it identifies physical marks by capturing document images, which involves image processing technologies such as color recognition, shape analysis, etc.; for digital marks, the printer needs to communicate with the supporting software to obtain mark information, which exists in the form of coordinates, color, text, etc.; to ensure the accuracy of recognition, the printer will verify the mark; for example, it will check whether the mark is within the area to be printed and whether the mark conforms to the user's preset rules (such as color, shape, etc.).
[0098] After identifying the user's marks, the printer needs to determine multiple marking areas based on these marks and the boundaries of the area to be printed. These areas correspond to the parts that the user wants to specially process or print. At this time, the printer divides the area to be printed into multiple sub-areas based on the position and shape of the marks. These sub-areas may or may not overlap. To ensure the accuracy of the marking areas, the printer will fine-tune the boundaries based on the actual position and size of the marks. If multiple marks are very close or overlapping, the printer will merge them into a larger marking area.
[0099] The printer assigns a unique serial number to each marking area and generates multiple serial number areas. These serial number areas 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 marking area according to a certain rule (such as from top to bottom, from left to right). The assigned serial number is combined with the corresponding marking area to generate multiple serial number areas. These areas contain all the information required for printing, including position, size, content, etc. The generated serial number area information will be stored in the printer's memory for use in subsequent printing tasks.
[0100] Specifically, suppose a user wants to print a document containing multiple chapters and hopes that the title of each chapter can be printed in a special color or font; the user has digitally marked the title of each chapter when using the supporting software; the printer communicates with the supporting software to obtain the marking information of each chapter title, including position, size, and color; based on the marking information, the printer divides the document into multiple sub-areas, 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 area.
[0101] The printer assigns a serial number to each chapter title in order from top to bottom (such as the first chapter title is 1, the second chapter title is 2, etc.); then, the serial number is combined with the corresponding marking area to generate multiple serial number areas, which contain all the information required for printing, such as position, size, color and content; through this operation process, the printer can accurately identify the content marked by the user and generate multiple serial number areas to provide precise guidance for subsequent printing tasks, which helps to improve printing quality and efficiency while meeting the user's personalized needs.
[0102] Therefore, the user's voice information is collected, and the user's preferred serial number area is determined based on the user's voice information. The final serial number area is determined based on the user's preferred serial number area and the matching of multiple serial number areas, and the final serial number area is converted into a printing signal. Based on the printing signal, the printer is triggered to independently print the area to be printed, which is compatible with the overall consideration of the user's preferred serial number area and the matching of multiple serial number areas, ensuring the accuracy of the final serial number area.
[0103] At this time, the printer needs to collect the user's voice information, which is done 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 the user's voice commands can be clearly captured; if the printer does not have a built-in microphone, the user needs to use an external microphone or other voice input device; when the user issues a voice command, the microphone will convert it into an analog electrical signal, which is then converted into a digital format for subsequent processing; after collecting the voice signal, the printer will perform some preprocessing operations, such as denoising, volume enhancement, etc., to improve the accuracy of voice recognition.
[0104] The printer uses voice recognition technology to convert the user's voice instructions into text or commands, and based on these commands, determines which serial number area the user wants to print first. At this point, the printer uses advanced voice recognition algorithms to convert the voice signal into text. These algorithms are based on deep learning or machine learning models and can recognize various voice features and patterns. Once the voice signal is converted into text, the printer needs to parse the text to identify the user's intention. For example, if the user says "Print area with serial number 1 first", the printer needs to be able to recognize and parse this command. Based on the parsed command, the printer searches for an area that matches the serial number specified by the user among the multiple serial number areas generated previously.
[0105] The printer converts the determined final serial number area into a print signal and triggers the printing process based on the signal; at this time, the printer generates a print signal based on the information of the final serial number area (such as position, size, content, etc.), and these signals contain detailed instructions on how to print the area; before generating the print signal, the printer needs to configure some print task parameters, such as paper type, print quality, color mode, etc., which are set according to user preferences or printing needs; once the print signal is generated and the print task parameters are configured, the printer triggers the printing process, which involves sending the print signal to the print engine, which then sprays ink or toner onto the paper to form the desired image or text.
[0106] Specifically, suppose a user wants to print a document containing multiple chapters and has already used the accompanying software to label and number the titles of each chapter. Now, the user wants to control the printing process through voice commands. The user walks to the printer and says "Print the chapter title with sequence number 2 first" into the microphone. The printer captures this voice command through the built-in microphone. The printer uses voice recognition technology to convert the voice command into text and interprets the user's intention to print the chapter title with sequence number 2 first. Then, it searches for an area that matches the user-specified sequence number among the multiple sequence number areas generated previously. The printer generates a print signal based on the found sequence number area information and configures the print task parameters (such as paper type, print quality, etc.). Then, it triggers the printing process and prints the chapter title with sequence number 2 onto the paper. Through this operation process, the printer can accurately recognize the user's voice command and autonomously complete the printing task according to the command, providing users with a more convenient and efficient printing experience.
[0107] In one embodiment of the present application, the user instructs: "Print the area with serial number 3"; the matching table search result: "Area 3"; print output: the content of "Area 3" is successfully printed on the paper; at this time, the user instructs: "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 "important"), serial number mismatch score 0, final score 1; Area 3: initial score 0, keyword matching score 1 (partial match "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.
[0108] refer to Figure 5 In 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 sets 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 sets of printing contents;
[0109] In the specific implementation process of the present invention, the specific steps are:
[0110] 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 with the remaining serial number areas in the division of the area to be printed to determine corresponding matching coefficients;
[0111] S142: If the matching coefficient is greater than a preset matching coefficient threshold, determining a sub-target region based on a combination of the final sequence number region and the corresponding sequence number region to obtain multiple sub-target regions;
[0112] S143: 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 the multiple groups of printing contents, and the printing scene of the printer is determined based on the ratio between the pattern and text and the scene mapping relationship.
[0113] 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 coefficients, thereby ensuring the accuracy of the matching coefficients.
[0114] At this time, 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.
[0115] 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; coarser granularity reduces processing time but sacrifices some details; 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.
[0116] The system needs to match the final serial number area (i.e. the area specified by the user for priority printing) with the remaining multiple serial number areas; the purpose of 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 matching, the system needs to extract features from each serial number area, such as text content, image features, color histogram, etc.; based on 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.
[0117] The system determines the correspondence between each serial number area and the final serial number area based on the calculated matching coefficients. These matching coefficients will be used in subsequent optimization processing steps. At this time, the system sets a threshold, and only serial number areas with matching coefficients exceeding the threshold will be considered highly correlated with the final serial number area. The calculated matching coefficients will be stored in memory or written to a file for subsequent use. Based on the matching coefficients, the system formulates optimization strategies, such as giving priority to printing highly correlated serial number areas, merging similar content, etc.
[0118] Specifically, suppose 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 chapter title with serial number 3 should be printed first; the system starts monitoring the printing process and collects various data about the printing task; the system divides the document into multiple serial numbered areas, each area corresponds to a chapter title, and these areas are divided based on page layout and content type.
[0119] 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 coefficient between them and the chapter title with serial number 3; the system sets a threshold (such as 0.8) and filters out the serial number areas whose matching coefficient exceeds the threshold; it is assumed that the chapter titles with serial numbers 2 and 4 have a high similarity with the chapter title with serial number 3 (matching coefficients are 0.85 and 0.90 respectively), so they are considered to be highly correlated; through such an operation process, the system can monitor the autonomous printing process of the area to be printed in real time, and divide and match the serial number areas, which provides valuable information for subsequent optimization processing steps.
[0120] Furthermore, if the matching coefficient is greater than the preset matching coefficient threshold, the sub-target area is determined based on the synthesis of the final serial number area and the corresponding serial number area to obtain multiple sub-target areas, which is compatible with the overall consideration of the synthesis of the final serial number area and the corresponding serial number area, and ensures the accuracy of the sub-target area.
[0121] At this time, the system needs to check whether the matching coefficient calculated previously is greater than the preset matching coefficient threshold. This threshold is pre-set based on 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, which is used to measure the high and low matching coefficients; the setting of the threshold needs to take into account the complexity of the printing task and the user's expectations for print 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 believes that there is a high degree of similarity or correlation between the serial number area and the final serial number area, and subsequent processing is required.
[0122] For serial number areas with matching coefficients greater than a preset threshold, the system needs to synthesize them with the final serial number area; the purpose of synthesis is to combine these highly related areas 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 handled to avoid content overlap or omission; based on the synthesis results, the system further optimizes the printing task, such as reducing printing time, saving ink / toner, etc.
[0123] After the synthesis is completed, the system will determine multiple sub-target areas based on the synthesis results. These sub-target areas are smaller units in the printing task that are treated as a whole and processed. At this time, the sub-target 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-target area for reference in subsequent processing steps. The determined sub-target areas will be stored in memory or written to a file for subsequent use and management.
[0124] Specifically, suppose the user wants to print a document containing multiple chapter summaries and has assigned a serial number to the summary of each chapter; the user specifies that the chapter summary with serial number 3 should be printed first; in step S141, the system has calculated the matching coefficient between each serial number area and the chapter summary with serial number 3.
[0125] The system sets a matching coefficient threshold (such as 0.75); after comparison, the system finds that the matching coefficients between the chapter summaries with serial numbers 2 and 4 and the chapter summary with serial number 3 are 0.8 and 0.78 respectively, which are both greater than the preset threshold; the system decides to synthesize the chapter summaries with serial numbers 2, 3 and 4; during the synthesis process, the system merges and formats the contents of these three areas to ensure that they can be printed as a whole; after the synthesis is completed, the system determines two sub-target areas: one is the area after the merger of serial numbers 2 and 3, and the other is a separate area with serial number 4 (although the matching coefficient of serial number 4 is slightly lower, it is retained separately due to the special nature of the content). These two sub-target areas are assigned unique identifiers and stored in memory for subsequent printing processing; through such an operation process, the system can synthesize highly correlated serial number areas according to the matching coefficients, and determine multiple sub-target areas for more efficient printing or subsequent processing.
[0126] Therefore, in each sub-target area, multiple content features are determined based on the area identification of each sub-target area, and the multiple content features are formed into a group of printing content to obtain multiple groups of printing content; patterns and texts are determined based on the identification of multiple groups of printing contents, and the printing scene of the printer is determined based on the proportion between the pattern and text and the scene mapping relationship, which is compatible with the overall consideration of the proportion between the pattern and text and the scene mapping relationship, thereby ensuring the accuracy of the printer's printing scene.
[0127] At this time, the system needs to perform content recognition on each sub-target area to determine the content features it contains; content features include patterns, text, colors, shapes, etc.; at the same time, the system uses image processing technology (such as edge detection, texture analysis, color recognition, etc.) to identify the pattern and color features in the sub-target area; for sub-target areas containing text, the system uses optical character recognition (OCR) technology to extract text content; the system uses specific algorithms to extract key features in the sub-target area, which will be used for subsequent printing content determination and printing scene selection.
[0128] After identifying the content features of each sub-target area, the system combines these features together to form a set of printed content. This process involves screening, sorting, and reorganizing the features to ensure the quality and readability of the printed content. At this time, the system screens out the most important content features for printing based on user preferences or printing requirements. The system sorts the printed content based on the logical order or visual importance of the content. For printing tasks that contain multiple sub-target areas, the system needs to recombine the contents of these sub-target areas to form a coherent printed document.
[0129] After forming the print content groups, the system needs to analyze the proportion of patterns and text in each group of print content. This proportion will be used for subsequent printing scene 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; the system divides the print content into different types according to the proportion, such as text-intensive, pattern-intensive or mixed.
[0130] Finally, the system determines the printing scene of the printer based on the ratio between the pattern and text and the preset scene mapping relationship; the printing scene includes printing mode (such as draft mode, standard mode, high-quality mode), paper type (such as plain paper, glossy paper, photo paper), color settings (such as black and white printing, color printing), etc.; at this time, the system maintains a scene mapping table, which associates different pattern and text ratios with specific printing scenes; based on the ratio analysis results and scene mapping relationship, the system selects the most appropriate printing scene for printing; after selecting the printing scene, the system also needs to set the corresponding printing parameters, such as resolution, color depth, print speed, etc.
[0131] Specifically, suppose the user wants to print a document containing multiple chapter summaries, where each chapter summary is divided into a sub-target area; in step S142, the system has determined multiple sub-target areas; the system performs content recognition on each sub-target area and finds that it contains a large amount of text descriptions and a small amount of chart patterns; the system combines these text descriptions and chart patterns to form multiple groups of printed content; during the combination process, the system typesets the text to ensure the readability of the text; at the same time, the charts are scaled and positioned to ensure their clarity in the printed document.
[0132] The system analyzes the proportion of patterns and text in each set of printed content and finds that text descriptions occupy most of the area, while graphic patterns are relatively small; therefore, the system classifies these printed contents as text-intensive; based on the text-intensive classification results and the preset scene 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 the appropriate resolution and color depth to ensure the quality of the printing effect; through such an operation process, the system can determine the printing content and printing scene according to the content characteristics of the sub-target area, thereby providing users with high-quality printing services.
[0133] In one embodiment of the present application, it is assumed that there are two sets of printed content, which are as follows:
[0134] Print content group 1:
[0135] Pattern ratio: 10%; Text ratio: 90%; Match table description: Text-intensive, with a small amount of pattern embellishment; Score calculation: 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;
[0136] Final choice: High quality mode;
[0137] Print content group 2:
[0138] Pattern ratio: 60%; Text ratio: 40%; Matching table description: mixed text and image type, with balanced patterns and text; Calculation of 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; Taking into account that mixed text and image types require higher clarity to display pattern and text details, although the high-quality mode and standard mode have the same scores, the system is more inclined to select the high-quality mode (or select according to user preferences); Final selection (example): High-quality mode (or standard mode according to system settings / user preferences) Through such an operation process, the system can determine the printing content and printing scenarios based on the content characteristics of the sub-target area, thereby providing users with more personalized printing services.
[0139] refer to Figure 6 In step S15, 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 scene of the printer and the size of the area to be printed;
[0140] In the specific implementation process of the present invention, the specific steps are:
[0141] S151: Collecting the model of the printer, determining the usage record of the printer according to the model of the printer and the printing database, and determining the service life of the printer according to the usage record of the printer;
[0142] S152: Detecting the size of the area to be printed, determining the size of the area to be printed based on the size detection, and determining a first mode coefficient based on the printing scenario of the printer and the size of the area to be printed;
[0143] S153: Determine a 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.
[0144] In an embodiment of the present application, the model of the printer is collected, the usage record of the printer is determined based on the model of the printer and the printing database, and the service life of the printer is determined based on the usage record of the printer. This is compatible with the overall consideration of the printer signal and the printing database, ensuring the accuracy of the printer usage record.
[0145] At this time, the printer model is collected. After obtaining the printer model, the system needs to query the printer usage record from the print database based on the model; the print database contains the following information: Print task log: records 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 ink cartridges, cleaning nozzles, repairing faults, etc.; Error log: records errors and fault information of the printer, as well as corresponding solutions.
[0146] After obtaining the printer's usage records, the system needs to analyze this data to estimate the printer's service life. This involves the following considerations:
[0147] Print times: count the total number of prints by the printer, as well as the number of prints under different print quality settings;
[0148] Maintenance history: Analyze the printer's maintenance records to understand the printer's maintenance frequency and maintenance effect;
[0149] Failure rate: calculate the failure rate of the printer, as well as the repair time and repair effect after the failure occurs;
[0150] Based on these analyses, the system estimates the remaining useful life of the printer, that is, the time the printer can still work normally 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 adjust and optimize according to actual usage.
[0151] Specifically, suppose there is a printer model HP LaserJet M17w, and the user wants to know the service life of the printer; the system identifies the printer model as HP LaserJet M17w through automatic detection technology; the system queries the usage record of this model printer from the print database; the record shows that the printer has printed a total of 5,000 pages in the past year, of which 20% are high-quality prints and 80% are standard prints; in addition, the record also shows that the printer has undergone two maintenance operations in the past year, including one ink cartridge replacement and one nozzle cleaning; the system analyzes these usage records and finds that the printer has a moderate number of prints, a good maintenance record, and a low failure rate; based on this information, the system estimates that the remaining service life of the printer is approximately 3-5 years (the specific years vary due to individual differences in printers, usage environment, and other factors); through such a process, the system can intelligently estimate the service life of the printer based on the printer model and usage record, providing users with valuable reference information.
[0152] Furthermore, the size of the area to be printed is detected, and the size of the area to be printed is determined based on the size detection of the area to be printed. The first mode coefficient is determined based on the printing scene of the printer and the size of the area to be printed, which is compatible with the overall consideration of the printing scene of the printer and the size of the area to be printed, and ensures the accuracy of the first mode coefficient.
[0153] At this time, the system needs to detect the size of 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.
[0154] After obtaining the dimensions of the area to be printed, the system needs to convert these results into specific dimensional information, such as length, width, etc. This involves parsing and processing the detection results to ensure the accuracy and availability of the dimensional 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 dimensional information to ensure that it meets the printing requirements and restrictions of the printer.
[0155] After determining the size of the area to be printed, the system needs to combine the printer's printing scenario (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 for printer performance of the printing task, including printing speed, print quality, consumables utilization rate and other aspects; at this time, the system needs to maintain a mapping relationship table between the printing scenario and the first mode coefficient, so as 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 actual conditions to optimize printing effects and performance.
[0156] Specifically, suppose a user needs to print an A3-sized poster, and the printing scenario is high-quality printing; the system uses image recognition technology to obtain an image of the area to be printed, and identifies the size of the area as 297mmx 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; determines the first mode coefficient according to the printing scenario of the printer and the size of the area to be printed: the system searches for the corresponding first mode coefficient from the mapping relationship table according to the printing scenario (high-quality printing) and the size of the area to be printed (A3 size); assuming that under the high-quality printing scenario, the first mode coefficient corresponding to the A3-sized printing task is 1.2 (indicating that the task has high requirements for printing quality and speed); through such a process, the system can intelligently determine the first mode coefficient according to the size of the area to be printed and the printing scenario of the printer, providing important reference information for the subsequent determination of the printing mode. This first mode coefficient will be used together with other factors (such as the age of the printer, the second mode coefficient, etc.) to jointly determine the final printing mode and settings.
[0157] Therefore, the second mode coefficient is determined according to the printing scenario of the printer and the age 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. This is compatible with the overall consideration of the first mode coefficient, the second mode coefficient and the printing mode mapping relationship, ensuring the accuracy of the printer's printing mode.
[0158] At this time, the system needs to determine a second mode coefficient based on the printer's printing scenarios (such as high-quality printing, draft printing, fast printing, etc.) and the printer's age; the second mode coefficient reflects the impact of the printer's current state on printing performance, including the printer's degree of wear, component aging, maintenance history, etc.; at the same time, different printing scenarios have different performance requirements for printers; for example, high-quality printing requires higher print resolution and finer ink droplet control, while draft printing pays more attention to printing speed and consumables costs; the printer's age is one of the important factors in evaluating its performance; as the years of use increase, the printer's components will gradually age, resulting in problems such as decreased print quality and increased failure rate; therefore, the system needs to evaluate the printer's current state based on its age, and determine the second mode coefficient accordingly; the system needs to be able to dynamically adjust the second mode coefficient according to actual conditions; for example, if the printer has recently undergone comprehensive maintenance and care, its performance has been significantly improved, and the system will adjust the second mode coefficient accordingly.
[0159] After determining the first mode coefficient and the second mode coefficient, the system needs to combine these two coefficients and the preset print mode mapping relationship to determine the final print mode; the print mode mapping relationship is a preset table or function, which determines the corresponding print mode based on the values of the first mode coefficient and the second mode coefficient; at the same time, the print mode mapping relationship includes multiple print mode options, such as draft mode, standard mode, high quality mode, etc.; each print mode corresponds to a specific set of print parameter settings, such as print speed, print quality, consumables 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 print mode based on the print mode mapping relationship. This process involves weighing and optimizing multiple factors to ensure that while meeting printing needs, the printer's life is maximized and operating costs are reduced; in some cases, the system allows users to manually adjust the print mode according to actual needs; for example, if users want to sacrifice some print quality to speed up printing, they choose draft mode or similar fast printing options.
[0160] Specifically, suppose there is a three-year-old printer and the user wants to print an A3-sized poster in high-quality mode. The system determines the second mode coefficient based on the printer's printing scenario (high-quality printing) and age (3 years). Assume that in the high-quality printing scenario, the second mode coefficient corresponding to the three-year-old printer is 0.9 (indicating that the printer still maintains good performance in the high-quality printing scenario, but slightly degrades compared to a brand-new printer). The system has already determined the first mode coefficient to be 1.2 (based on the size of the to-be-printed area and the printing scenario) and the second mode coefficient to be 0.9 (based on the age of the printer and the printing scenario). Next, the system determines the final printing mode based on these two coefficients and the preset printing mode mapping relationship. Assume that the printing mode mapping relationship is as follows:
[0161] If the product of the first mode coefficient and the second mode coefficient is greater than 1.5, the high quality mode is selected;
[0162] If the product is between 1.0 and 1.5, the standard mode is selected;
[0163] If the product is less than 1.0, draft mode is selected;
[0164] 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, so 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 printer's printing scenario, age, and the size of the area to be printed, so as to meet the user's printing needs and optimize the printer's use effect.
[0165] In one embodiment of the present application, a preset printing mode matching table is collected to determine a printing mode; the printing mode matching table sets different printing modes according to the printing scenario, age of the printer, and the first mode coefficient and the second mode coefficient calculated previously; the printing mode matching table is shown in Table 3:
[0166] Table 3 Printing mode matching table
[0167] Print Scene Use life First mode coefficient range Second mode coefficient range Print Mode High-quality printing 0-2 years >1.2 >0.9 High Quality Mode High-quality printing 0-2 years 0.8-1.2 0.7-0.9 Standard Mode High-quality printing 3-5 years >1.0 >0.8 Standard Mode High-quality printing 3-5 years ≤1.0 ≤0.8 Draft Mode Draft Print Any years Any value Any value Draft Mode
[0168] Suppose there is a printer that is 4 years old, and the user wants 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, which belongs to the "3-5 years" range; the first mode coefficient is 1.1, which belongs to the adjacent range of "≤1.0" (but slightly higher, the closest or slightly looser range is used for judgment here, and a more refined division or interpolation method is required for actual implementation); the second mode coefficient is 0.85, which belongs to the range of ">0.8" but close to "≤0.8" (also using the closest or slightly looser judgment); according to the printing 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 printing mode is "standard mode"; therefore, the system selects standard mode as the final printing mode.
[0169] See also Figure 7 , Figure 7 : is a schematic diagram of the structure of a printing system for printing an image to be printed on an area to be printed by a printer in an embodiment of the present invention; the printing system for printing an image to be printed on an area to be printed by a printer includes:
[0170] Image module 21, a camera module for the printer to shoot paper documents and collect real-time images of paper documents;
[0171] The to-be-printed area module 22 is used for the light source module of the printer to locally illuminate the to-be-printed area of 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;
[0172] 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;
[0173] a printing scene module 24 for determining, during autonomous printing of the area to be printed, a plurality of sub-target areas according to the division of the area to be printed, determining a plurality of sets of printing contents according to area identification of the plurality of sub-target areas, and determining a printing scene of the printer according to the plurality of sets of printing contents;
[0174] The printing mode module 25 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.
[0175] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, 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, they should be considered to be within the scope of this specification.
Claims
1. A method for printing an area to be printed 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 irradiation direction of the light source module is adjusted based on the relative position of the light source module of the printer relative to the area to be printed, so that the light source module locally irradiates 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 parameters of the remaining areas of the real-time image of the paper document. The method triggers a printer to autonomously print the area to be printed based on the area to be printed, including: collecting the area to be printed, determining multiple edge contour lines of the area to be printed based on edge detection of the area to be printed, and determining multiple boundaries of the area to be printed based on a synthesis of the multiple edge contour lines; determining marked content based on a user's mark on the area to be printed, determining multiple marked areas based on the marked content and multiple boundaries of the area to be printed, and matching corresponding serial numbers for the multiple marked areas to form multiple serial number areas; collecting user voice information, and determining the user's preferred serial number area based on the user's voice information, and determining the final serial number area based on the matching of the user's preferred serial number area with the multiple serial number areas; real-time monitoring The autonomous printing of the area to be printed is performed by dividing the area to be printed. 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 corresponding matching coefficients; if the matching coefficient is greater than a preset matching coefficient threshold, a sub-target area is determined based on the synthesis of the final serial number area and the corresponding serial number area to obtain multiple sub-target areas; 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 printed content to obtain multiple groups of printed content; patterns and texts are determined based on the recognition of the multiple groups of printed content, and the printing scene of the printer is determined based on the ratio between the pattern and text and the scene mapping relationship; The age of the printer and the size of the area to be printed are collected, and the printing mode of the printer is determined based on the age of the printer, the printing scenario of the printer, and the size of the area to be printed.
2. The method for printing an image area to be printed by a printer according to claim 1, wherein: 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 based on the environmental detection of the camera area, and determining the environment type of the paper document based on the multiple surrounding environmental parameters and the corresponding positions; The model of the acquisition camera module is determined, 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, and the camera module is triggered to shoot the paper document in real time based on the shooting parameters to acquire the real-time image of the paper document.
3. The method for printing an image area to be printed by a printer according to claim 1, wherein: The collecting of 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 scenario 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 print database, and determine the service life of the printer based on the usage record of the printer.
4. The method for printing an image area to be printed by a printer according to claim 3, wherein: The collecting of 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 scenario of the printer and the size of the area to be printed, further includes: Performing size detection on the area to be printed, determining the size of the area to be printed based on the size detection, and determining a first mode coefficient based on a printing scenario 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.
5. A system for printing a region of an image to be printed by a printer, characterized in that: The system for printing the area to be printed by a printer is used to implement the method for printing the area to be printed by a printer as claimed in any one of claims 1 to 4.
Citation Information
Patent Citations
Printing method, printing apparatus, and storage medium storing a program
CN101335811A
Laser printer control method and device, storage medium and electronic equipment
CN114201127A