CN114201127A - Laser printer control method and device, storage medium and electronic equipment - Google Patents

Laser printer control method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN114201127A
CN114201127A CN202210146513.8A CN202210146513A CN114201127A CN 114201127 A CN114201127 A CN 114201127A CN 202210146513 A CN202210146513 A CN 202210146513A CN 114201127 A CN114201127 A CN 114201127A
Authority
CN
China
Prior art keywords
area
type
laser printer
determining
printed
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210146513.8A
Other languages
Chinese (zh)
Other versions
CN114201127B (en
Inventor
杨香玉
李�远
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Chenguang Rongxin Technology Co ltd
Original Assignee
Beijing Chenguang Rongxin Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Chenguang Rongxin Technology Co ltd filed Critical Beijing Chenguang Rongxin Technology Co ltd
Priority to CN202210146513.8A priority Critical patent/CN114201127B/en
Publication of CN114201127A publication Critical patent/CN114201127A/en
Application granted granted Critical
Publication of CN114201127B publication Critical patent/CN114201127B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1203Improving or facilitating administration, e.g. print management
    • G06F3/1208Improving or facilitating administration, e.g. print management resulting in improved quality of the output result, e.g. print layout, colours, workflows, print preview
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/23Clustering techniques
    • G06F18/232Non-hierarchical techniques
    • G06F18/2321Non-hierarchical techniques using statistics or function optimisation, e.g. modelling of probability density functions
    • G06F18/23213Non-hierarchical techniques using statistics or function optimisation, e.g. modelling of probability density functions with fixed number of clusters, e.g. K-means clustering
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1237Print job management
    • G06F3/1239Restricting the usage of resources, e.g. usage or user levels, credit limit, consumables, special fonts
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1237Print job management
    • G06F3/1259Print job monitoring, e.g. job status

Abstract

The invention discloses a control method and a device of a laser printer, a storage medium and electronic equipment. Then, by dividing the target document into areas and preferentially printing the areas where the toner consumption is large, even if the toner is insufficient, the print quality of the areas ranked after the target document is not affected too much. The laser printer control method is specially suitable for data processing systems or methods for administrative, commercial, financial, management, supervision or forecasting purposes; processing systems or methods specifically adapted for administrative, commercial, financial, administrative, supervisory or forecasting purposes, not otherwise provided for.

Description

Laser printer control method and device, storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of printing technologies of laser printers, and in particular, to a method and an apparatus for controlling a laser printer, a storage medium, and an electronic device.
Background
With the development of printing technology, the demand of people for printing business is increasing. The laser printer has the characteristics of small volume, clear imaging and the like, and has different colors in a plurality of printing devices.
However, laser printers also have a considerable disadvantage in that as printing continues, the disadvantages associated with toner consumption become more pronounced, potentially affecting print quality. The concrete embodiment is as follows: poor print quality due to insufficient toner amount. Consumption of toner as the printing process continues is inevitable. Although the invention application with application number 202210099878X proposed by the applicant of the present invention provides a printer control method, specifically, the method is to predict the consumption of resources in the process of printing a target document before printing, the consumption is measured by area proportion, so as to achieve the purpose of ignoring the problem of inaccurate prediction of toner consumption caused by insufficient toner; however, according to the technical scheme, after the quantity of the printed files is accumulated continuously, judgment errors are caused by using printer experience/historical data for prejudgment, and therefore the completeness of the printing process is influenced.
How to provide high-quality printing under the condition of toner provided by a printer becomes an urgent problem to be solved.
Disclosure of Invention
The invention provides a laser printer control method, a laser printer control device, a storage medium, electronic equipment and a laser printer, and aims to partially solve the problems in the prior art.
The invention adopts the following technical scheme:
in a first aspect, the present invention provides a laser printer control method, including:
determining a target document from a queue of documents to be printed;
generating an image representing the printed target document by adopting a preset first imaging model, and taking the image as a target image;
determining the distribution of pixel points corresponding to the document content in the page according to the first specified model;
clustering the pixel points corresponding to the document content to obtain a plurality of clusters;
determining, for each cluster, an area of each cluster;
determining the number of targets according to the area of the cluster, so that the number of targets is positively correlated with the area of the cluster, and the number of targets is less than the number of pixel points on any line segment spanning the range of the page where the cluster is located;
if the number of the appointed pixel points in the cluster is larger than the target number, determining that the pixel points in the cluster are pixel points corresponding to the graph; wherein, the periphery of the pixel adjacent to the appointed pixel has the pixel corresponding to the document content;
dividing a target document into a specified number of regions;
determining an area containing graphics as a first type area, and determining an area not containing graphics as a second type area;
sorting the first type areas according to the amount of the ink powder consumed in printing each first type area to obtain a first sequence; sequencing the second type of areas according to the amount of the ink powder consumed when each second type of area is printed to obtain a second sequence;
printing is performed in a first sequence and a second sequence.
In an alternative embodiment of the present invention, the determining the target document from the queue of documents to be printed includes:
monitoring the toner amount in the toner cartridge of the laser printer;
and if the toner quantity is less than the specified capacity proportion of the toner cartridge, determining the target document from the queue of the documents to be printed.
In an alternative embodiment of the present invention, the determining the target document from the queue of documents to be printed includes:
determining the number of documents to be printed;
if the number exceeds the number threshold, the first document to be printed in the queue can be used as the determined target document; wherein the quantity threshold is positively correlated with the printing speed of the printer;
and if the number does not exceed the number threshold, taking the document to be printed with the largest number of pages in the queue as the determined target document.
In an optional embodiment of the present invention, the sorting for the first type of area includes:
for each first type region, determining a first quantity for the first type region using the following equation:
Figure DEST_PATH_IMAGE002
in the formula (I), the compound is shown in the specification,
Figure DEST_PATH_IMAGE004
is a first amount; a is a first coefficient; a is the amount of color toner consumed when printing the first type area; b is a second coefficient; b is the amount of black toner consumed when printing the first type area; n is the total number of first type regions;
and sequencing the first type of areas according to the first quantity from large to small.
In an optional embodiment of the present invention, the sorting for the second type of region includes:
determining an amount of black toner consumed in printing the second type region;
and sorting the second type of area according to the consumption of black toner in printing the second type of area from large to small.
In an alternative embodiment of the invention, clustering of clusters is preferably implemented using a k-means algorithm.
In a second aspect, the present invention provides a laser printer control apparatus for implementing the laser printer control method described in the first aspect above.
The electronic equipment provided by the invention comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, and the laser printer control method can be realized when the processor executes the computer program.
The invention adopts at least one technical scheme which can achieve the following beneficial effects:
according to the control method, the control device, the storage medium and the electronic equipment of the laser printer, the consumption of the toner resources is predicted in the printing process of the target document before printing, and the consumption is measured according to the specified proportion, so that the phenomenon that the prediction of the toner consumption is inaccurate due to insufficient toner can be ignored. Then, by dividing the target document into areas and preferentially printing the areas where the toner consumption is large, even if the toner is insufficient, the print quality of the areas ranked after the target document is not affected too much. The methods herein are particularly applicable to data processing systems or methods for administrative, commercial, financial, administrative, supervisory or prognostic purposes; processing systems or methods specifically adapted for administrative, commercial, financial, administrative, supervisory or forecasting purposes, not otherwise provided for.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention. In the drawings:
fig. 1 is a schematic flow chart of a control method of a laser printer according to a preferred embodiment of the present invention;
fig. 2 is a schematic view of a scene involved in a control method of a laser printer according to a preferred embodiment of the present invention;
FIG. 3 is a schematic diagram of a control device of a laser printer according to a preferred embodiment of the present invention;
fig. 4 is a schematic flow chart of obtaining a lightweight installation package in a laser printer control method according to a preferred embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be described in detail and fully with reference to the accompanying drawings. It is to be understood that the described embodiments are merely a few embodiments of the invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given in the description without making any creative effort, shall fall within the protection scope of the present invention.
The technical solutions provided by the embodiments are described in detail below with reference to the accompanying drawings.
Fig. 1 shows a control process of the laser printer provided in this embodiment, which may specifically include one or more of the following steps:
s100: and determining a target document from the queue of the documents to be printed.
The laser printer control process in this embodiment may be executed by a control system of the laser printer. Meanwhile, the laser printer may be connected to several terminals, as shown in fig. 2, from which documents to be printed are received. In general, a laser printer can only print files to be printed one by one, and documents to be printed, which have not yet started to be printed, are arranged in a queue manner to wait for printing.
In a preferred embodiment, this step is triggered to be executed when the printing of the document currently printed by the printer is finished.
In another preferred embodiment, the amount of toner in a toner cartridge of a laser printer is monitored; and if the toner quantity is less than the specified capacity proportion of the toner cartridge, determining the target document from the queue of the documents to be printed.
Further, determining the number of the documents to be printed; if the number exceeds the number threshold, the first document to be printed in the queue can be used as the determined target document; wherein the quantity threshold is positively correlated with the printing speed of the printer; and if the number does not exceed the number threshold, taking the document to be printed with the largest number of pages in the queue as the determined target document.
S102: and generating an image representing the printed target document as a target image by adopting a preset first imaging model.
The image of the target document output by the first imaging model has an effect of print preview.
S104: and determining the distribution of the pixel points corresponding to the document content in the page according to the first specified model.
When a page is expressed by two-dimensional coordinates, the color value of a pixel point corresponding to the document content on the page is different from the color value of white; the color of the pixel points thereon that do not correspond to the document content is the same as the color value of white.
S106: and clustering the pixel points corresponding to the document content to obtain a plurality of clusters.
Preferably, the clustering is performed according to color values of the pixels. Further, in this embodiment, the algorithm used for clustering is k-means algorithm.
S108: for each cluster, the area of the cluster is determined.
S110: and determining the target quantity according to the area of the cluster, so that the target quantity is positively correlated with the area of the cluster, and the target quantity is less than the quantity of pixel points on any line segment spanning the range of the page where the cluster is located.
In the embodiment, the target number can be used to represent the distribution of the points corresponding to the document content on the image to some extent. Because the distribution of the pixel points forming the graph is relatively concentrated, the graph corresponds to the pixel points which are continuously distributed in at least one direction of the plane where the image is located.
S112: and if the number of the appointed pixel points in the cluster is larger than the target number, determining that the pixel points in the cluster are pixel points corresponding to the graph.
Wherein, the periphery of the pixel adjacent to the appointed pixel has the pixel corresponding to the document content;
if the number of the designated pixel points in the cluster is not more than the target number, the document content corresponding to the cluster is not a graph.
Therefore, in this embodiment, if a certain page has characters with a large font, so that the strokes of the font are thick, the characters are also recognized as graphics instead of characters, and therefore, the specific content of the file to be printed can be distinguished from the actual printing effect of the file content instead of distinguishing the specific content based on the inherent attribute of the file content.
S114: the target document is divided into a specified number of regions.
In a preferred embodiment, the specified number may be a preset value. The regions are rectangular regions arranged in sequence along the paper discharge direction, and the sizes of the regions are the same. Wherein the specified number is inversely related to a paper feed step size of the printer.
S116: and determining the area containing the graphics as a first type area, and determining the area not containing the graphics as a second type area.
S118: sorting the first type area according to the amount of the ink powder consumed when the first type area is printed to obtain a first sequence; then, the second type area is sorted according to the amount of toner consumed when the second type area is printed, and a second sequence is obtained.
Specifically, the process of sorting the first-type regions may be: for each first type region, determining a first quantity of the first type region by adopting the following formula;
Figure DEST_PATH_IMAGE002A
in the formula (I), the compound is shown in the specification,
Figure 912620DEST_PATH_IMAGE004
is a first amount; a is a first coefficient; a is the amount of color toner consumed when printing the first type area; b is a second coefficient; b is the amount of black toner consumed when printing the first type area; n is the total number of first type regions; and sequencing the first type of areas according to the first quantity from large to small.
The process of sorting the second type of region may be: determining an amount of black toner consumed in printing the second type region; and sorting the second type of area according to the consumption of black toner in printing the second type of area from large to small.
In a preferred embodiment, the process of determining the consumed toner amount is to generate an image representing all the documents to be printed after printing as a reference image by using a preset first imaging model. From the history data, the toner amount consumed to historically print the history document having the greatest similarity to the reference image is determined as the expected consumed toner amount.
When the document to be printed has a plurality of pages, a reference image corresponding to each page is generated for each page, and then the toner amount consumed by the history document with the maximum similarity is determined for each reference page from the history data. The sum of the consumed toner amounts obtained for the respective reference images is taken as the consumption amount of the document to be printed.
S120: printing is performed in a first sequence and a second sequence.
The areas corresponding to the first sequence are printed preferentially, and after the areas corresponding to the first sequence are completed, printing of the areas corresponding to the second sequence is performed.
Illustratively, if a document is divided into: region 1, region 2, and region 3. The sorted regions are: region 2 (first sequence), region 3 (first region in second sequence), and region 1 (second region in second sequence). The printer control system first feeds the paper to the location of area 2 and then prints area 2 and area 3. After that, the printer control system retracts the paper to the position of area 1, printing area 1. Finally, the printed paper is sent out of the printer.
The embodiment further provides a control device of the laser printer. As shown in fig. 3, the control device includes:
a target document determination module 300 configured to: and determining a target document from the queue of the documents to be printed.
A target image generation module 302 configured to: and generating an image representing the printed target document as a target image by adopting a preset first imaging model.
A pixel distribution module 304 configured to: and determining the distribution of the pixel points corresponding to the document content in the page according to the first specified model.
A clustering module 306 configured to: and clustering the pixel points corresponding to the document content to obtain a plurality of clusters.
An area determination module 308 configured to: for each cluster, the area of the cluster is determined.
A target number determination module 310 configured to: and determining the target quantity according to the area of the cluster, so that the target quantity is positively correlated with the area of the cluster, and the target quantity is less than the quantity of pixel points on any line segment spanning the range of the page where the cluster is located.
A decision module 312 configured to: if the number of the appointed pixel points in the cluster is larger than the target number, determining that the pixel points in the cluster are pixel points corresponding to the graph; and pixels corresponding to the document content are arranged around the pixel adjacent to the specified pixel.
A partitioning module 314 configured to: the target document is divided into a specified number of regions.
A classification module 316 configured to: and determining the area containing the graphics as a first type area, and determining the area not containing the graphics as a second type area.
A ranking module 318 configured to: sorting the first type area according to the amount of the ink powder consumed when the first type area is printed to obtain a first sequence; then, the second type area is sorted according to the amount of toner consumed when the second type area is printed, and a second sequence is obtained.
A print module 320 configured to: printing is performed in a first sequence and a second sequence.
In a preferred embodiment, the target document determination module 300 is configured to: monitoring the amount of toner in a toner cartridge of a laser printer; and if the toner quantity is less than the specified capacity proportion of the toner cartridge, determining the target document from the queue of the documents to be printed.
In a preferred embodiment, the target document determination module 300 is configured to: determining the number of documents to be printed; if the number exceeds the number threshold, the first document to be printed in the queue can be used as the determined target document; wherein the quantity threshold is positively correlated with the printing speed of the printer; and if the number does not exceed the number threshold, taking the document to be printed with the largest number of pages in the queue as the determined target document.
In a preferred embodiment, the sorting module 318 is configured to: for each first type region, determining a first quantity of the first type region by adopting the following formula;
Figure DEST_PATH_IMAGE002AA
in the formula (I), the compound is shown in the specification,
Figure 833303DEST_PATH_IMAGE004
is a first amount; a is a first coefficient; a is the amount of color toner consumed in printing the first type area(ii) a B is a second coefficient; b is the amount of black toner consumed in printing the first type area; n is the total number of first type regions;
and sequencing the first type of areas according to the first quantity from large to small.
In a preferred embodiment, the sorting module 318 is configured to: determining an amount of black toner consumed in printing the second type region; and sorting the second type of area according to the consumption of black toner in printing the second type of area from large to small.
In a preferred embodiment, clustering of clusters is implemented using a k-means algorithm.
The present embodiment further provides a computer-readable storage medium storing a computer program, which can be used to execute the laser printer control process provided in fig. 1.
Further, this embodiment also provides a schematic structure diagram of the electronic device shown in fig. 4. In fig. 4, at the hardware level, the electronic device may include a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and may also include hardware required for other services. The processor reads a corresponding computer program from the nonvolatile memory into the memory and then runs the computer program to realize the implementation process of the control method of the laser printer described in any one aspect.
Of course, besides the software implementation, the embodiments of the present invention do not exclude other implementations, such as logic devices or a combination of software and hardware, and the execution subject of the following processing flow is not limited to each logic unit, and may also be hardware or logic devices.
In the 90 s of the 20 th century, improvements in a technology could clearly distinguish between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Furthermore, nowadays, instead of manually making an Integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as abel (advanced Boolean Expression Language), ahdl (alternate Hardware Description Language), traffic, pl (core universal Programming Language), HDCal (jhdware Description Language), lang, Lola, HDL, laspam, hardward Description Language (vhr Description Language), vhal (Hardware Description Language), and vhigh-Language, which are currently used in most common. It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic for the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may thus be considered a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functions of the various elements may be implemented in the same one or more software and/or hardware implementations of the present description.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The invention may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The invention may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments of the invention are all described in a progressive mode, the same and similar parts among the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the present invention. Various modifications and alterations to this invention will become apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.

Claims (10)

1. A laser printer control method, comprising:
determining a target document from a queue of documents to be printed;
generating an image representing the printed target document by adopting a preset first imaging model, and taking the image as a target image;
determining the distribution of pixel points corresponding to the document content in the page according to the first specified model;
clustering the pixel points corresponding to the document contents to obtain a plurality of clusters;
determining, for each cluster, an area of each cluster;
determining the target quantity according to the area of each cluster, so that the target quantity is positively correlated with the area of each cluster, and the target quantity is smaller than the quantity of pixel points on any line segment spanning the page range of each cluster;
if the number of the appointed pixel points in the cluster is larger than the target number, determining that the pixel points in the cluster are pixel points corresponding to the graph; the periphery of the pixel adjacent to the specified pixel is provided with pixels corresponding to the document content;
dividing the target document into a specified number of regions;
determining an area containing graphics as a first type area, and determining an area not containing graphics as a second type area;
sorting the first type areas according to the amount of the ink powder consumed in printing each first type area to obtain a first sequence; sequencing the second type of areas according to the amount of the ink powder consumed when each second type of area is printed to obtain a second sequence;
printing is performed in a first sequence and a second sequence.
2. The laser printer control method of claim 1, wherein said determining a target document from a queue of documents to be printed comprises:
monitoring the toner amount in the toner cartridge of the laser printer;
and if the toner amount is less than the specified capacity proportion of the toner cartridge, determining a target document from the queue of the documents to be printed.
3. The laser printer control method of claim 1, wherein said determining a target document from a queue of documents to be printed comprises:
determining the number of documents to be printed;
if the number exceeds a number threshold value, taking a first document to be printed in the queue as a target document; the quantity threshold value is positively correlated with the printing speed of the printer;
and if the number does not exceed the number threshold, taking the document to be printed with the largest number of pages in the queue as the target document.
4. The laser printer control method according to claim 1, wherein said sorting for the first type of area comprises:
for each first type of area, a first quantity for that first type of area is determined using the following formula,
Figure 617733DEST_PATH_IMAGE002
in the formula (I), the compound is shown in the specification,
Figure DEST_PATH_IMAGE003
is a first amount; a is a first coefficient; a is the amount of color toner consumed when printing the first type area; b is a second coefficient; b is the amount of black toner consumed in printing the first type area; n is the total number of said first type of regions;
and sequencing the first type of area according to the first quantity from large to small.
5. The laser printer control method according to claim 1, wherein said sorting for the second type of area comprises:
determining an amount of black toner consumed in printing the second type region;
and sequencing the second type of area according to the fact that the black toner consumed in printing the second type of area is reduced from large to small.
6. The laser printer control method according to claim 1, wherein the clustering is clustering implemented using a k-means algorithm.
7. A control apparatus for a laser printer, the control apparatus being configured to implement the control method for a laser printer according to any one of claims 1 to 6.
8. A laser printer having the laser printer control apparatus according to claim 7.
9. An electronic device comprising a processor, a communication interface, a memory, and a communication bus; the processor, the communication interface and the memory complete mutual communication through a communication bus;
a memory for storing a computer program;
a processor for implementing the steps of the method of controlling a laser printer according to any one of claims 1 to 6 when executing a program stored in the memory.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method for controlling a laser printer according to any one of claims 1 to 6.
CN202210146513.8A 2022-02-17 2022-02-17 Laser printer control method and device, storage medium and electronic equipment Active CN114201127B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210146513.8A CN114201127B (en) 2022-02-17 2022-02-17 Laser printer control method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210146513.8A CN114201127B (en) 2022-02-17 2022-02-17 Laser printer control method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN114201127A true CN114201127A (en) 2022-03-18
CN114201127B CN114201127B (en) 2022-05-17

Family

ID=80645613

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210146513.8A Active CN114201127B (en) 2022-02-17 2022-02-17 Laser printer control method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN114201127B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115809031A (en) * 2023-01-29 2023-03-17 国网信息通信产业集团有限公司 Printer control system and method thereof

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040080783A1 (en) * 2002-10-29 2004-04-29 Kevin Owen Selective printing after consumable exhaustion
CN102346656A (en) * 2010-08-03 2012-02-08 奥多比公司 System and method of re-purposing a document to save ink and paper
US20130128315A1 (en) * 2010-08-03 2013-05-23 Adobe Systems Incorporated Content-aware method for saving paper and ink while printing a pdf document
CN111061440A (en) * 2019-12-13 2020-04-24 上海旷沃科技有限公司 Method for accurately metering ink powder consumption, control system and laser printer
CN113341668A (en) * 2021-06-23 2021-09-03 南京立思辰智能设备有限公司 Laser printer with printing quality self-adaptive adjustment based on printing substrate detection
CN113602020A (en) * 2021-09-30 2021-11-05 北京辰光融信技术有限公司 Printing method, system and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040080783A1 (en) * 2002-10-29 2004-04-29 Kevin Owen Selective printing after consumable exhaustion
CN102346656A (en) * 2010-08-03 2012-02-08 奥多比公司 System and method of re-purposing a document to save ink and paper
US20130128315A1 (en) * 2010-08-03 2013-05-23 Adobe Systems Incorporated Content-aware method for saving paper and ink while printing a pdf document
CN111061440A (en) * 2019-12-13 2020-04-24 上海旷沃科技有限公司 Method for accurately metering ink powder consumption, control system and laser printer
CN113341668A (en) * 2021-06-23 2021-09-03 南京立思辰智能设备有限公司 Laser printer with printing quality self-adaptive adjustment based on printing substrate detection
CN113602020A (en) * 2021-09-30 2021-11-05 北京辰光融信技术有限公司 Printing method, system and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115809031A (en) * 2023-01-29 2023-03-17 国网信息通信产业集团有限公司 Printer control system and method thereof
CN115809031B (en) * 2023-01-29 2023-05-09 国网信息通信产业集团有限公司 Printer control system and method thereof

Also Published As

Publication number Publication date
CN114201127B (en) 2022-05-17

Similar Documents

Publication Publication Date Title
CN114138213B (en) Printer control method and device, storage medium and electronic equipment
CN114201127B (en) Laser printer control method and device, storage medium and electronic equipment
US10671006B2 (en) Image processing apparatus, image processing method, and storage medium, that determine a type of edge pixel
CN106649420B (en) Image processing apparatus and image processing method
US10929727B2 (en) Image processing apparatus with color replacement with achromatic colors, and image processing method and storage medium thereof
US8810830B2 (en) System and method for scheduling a print job
CN117472301B (en) Thermal printer buffer printing method and related device
JP5539066B2 (en) Clustering processing apparatus and clustering processing method
US20100191912A1 (en) Systems and Methods for Memory Management on Print Devices
JP2010218249A (en) Document image processing apparatus, document image processing method, and document image processing program
US20240153042A1 (en) Image processing method, electronic device, and storage medium
US9286012B2 (en) System and method for efficiently imposing a print job in a print production workflow
JP5796392B2 (en) Image processing apparatus and computer program
US9489603B2 (en) Image processing apparatus, image processing method, and storage medium that determine whether a white character exists inside a graphics object and convert density information accordingly
CN113506305A (en) Image enhancement method, semantic segmentation method and device for three-dimensional point cloud data
CN112365513A (en) Model training method and device
EP4181081B1 (en) Energy efficient hierarchical snn architecture for classification and segmentation of high-resolution images
US8687235B2 (en) Print saving page deduction suppression processing minimizing the number of color pages
CN107020845B (en) Image processing apparatus and image processing method for estimating time required for print processing
US10409533B2 (en) Image forming apparatus with an improved memory management system
US20180150237A1 (en) Electronic device and page merging method therefor
JP2022042209A (en) Information processing apparatus
JP6915455B2 (en) Image processing equipment, image forming equipment, and programs
US10394509B2 (en) Display list generation apparatus
CN113934384B (en) Data rendering method, device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant