CN112286471A - Conference whiteboard image printing method, printing equipment and storage medium - Google Patents

Conference whiteboard image printing method, printing equipment and storage medium Download PDF

Info

Publication number
CN112286471A
CN112286471A CN202011032036.XA CN202011032036A CN112286471A CN 112286471 A CN112286471 A CN 112286471A CN 202011032036 A CN202011032036 A CN 202011032036A CN 112286471 A CN112286471 A CN 112286471A
Authority
CN
China
Prior art keywords
layer
background
color
original
character
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
CN202011032036.XA
Other languages
Chinese (zh)
Other versions
CN112286471B (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.)
Tongcai Audio Visual Technology Shanghai Co ltd
Original Assignee
Tongcai Audio Visual Technology Shanghai 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 Tongcai Audio Visual Technology Shanghai Co ltd filed Critical Tongcai Audio Visual Technology Shanghai Co ltd
Priority to CN202011032036.XA priority Critical patent/CN112286471B/en
Publication of CN112286471A publication Critical patent/CN112286471A/en
Application granted granted Critical
Publication of CN112286471B publication Critical patent/CN112286471B/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
    • 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/1242Image or content composition onto a page
    • 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/1268Job submission, e.g. submitting print job order or request not the print data itself
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention discloses a conference whiteboard image printing method, printing equipment and a storage medium, wherein the conference whiteboard image printing method comprises the following steps: acquiring an image printing request, wherein the image printing request comprises a conference whiteboard image; separating the conference whiteboard image to obtain an original background layer and an original character layer; carrying out layer color conversion on the original background layer and the original character layer to obtain a target background layer and a target character layer; and synthesizing the target background layer and the target character layer to form a target printing image, and printing the target printing image. The target printing image formed by the technical scheme can be more clearly printed in the conventional printing paper during printing, so that the definition of the target printing image is improved, and the cost of printing ink is reduced.

Description

Conference whiteboard image printing method, printing equipment and storage medium
Technical Field
The invention relates to the field of image printing, in particular to a conference whiteboard image printing method, printing equipment and a storage medium.
Background
When using a conference whiteboard on a conference system combo, in order to protect the eyes of conference staff, the conference whiteboard display background is usually set to a dark background.
However, when the conference staff needs to print out the written characters written on the conference whiteboard, the original display background of the conference whiteboard is printed out together with the written characters written on the conference whiteboard in the form of images. On one hand, because the display background of the conference whiteboard is usually a dark display background, the written characters written on the conference whiteboard can be clearly printed only by special dark printing paper, and when no special dark printing paper exists, the written characters written on the conference whiteboard cannot be printed in time, so that the user experience is influenced; on the other hand, when the printing device directly prints the written characters written on the conference whiteboard onto the conventional printing paper in the form of images, the conference whiteboard displays the display background in a dark color, so that the printing part corresponding to the conference whiteboard display background on the conventional printing paper is large-area printing ink, the conventional printing paper becomes wet and soft, and the written characters written on the printed conference whiteboard are not clear, which affects normal use.
Disclosure of Invention
The embodiment of the invention provides a conference whiteboard image printing method, printing equipment and a storage medium, and aims to solve the problem that written characters written on a conference whiteboard are not clear.
A conference whiteboard image printing method comprises the following steps:
acquiring an image printing request, wherein the image printing request comprises a conference whiteboard image;
separating the conference whiteboard image to obtain an original background layer and an original character layer;
performing layer color conversion on the original background layer and the original character layer to obtain a target background layer and a target character layer;
and synthesizing the target background layer and the target character layer to form a target printing image, and printing the target printing image.
Further, the separating the conference whiteboard image to obtain an original background layer and an original text layer includes:
analyzing the conference whiteboard image to obtain a whiteboard background mark and a whiteboard character mark;
and separating the conference whiteboard image based on the whiteboard background mark and the whiteboard character mark to obtain an original background layer and an original character layer.
Further, after the conference whiteboard image is separated to obtain an original background layer and an original text layer, the conference whiteboard image printing method further includes:
carrying out color identification on the original background layer and the original character layer to obtain an image color type;
if the image color type is the target color type, printing the conference whiteboard image;
and if the image color type is not the target color type, executing layer color conversion on the original background layer and the original text layer to obtain a target background layer and a target text layer.
Further, the color recognition of the original background layer and the original text layer to determine the image color type includes:
carrying out color identification processing on the original background layer to obtain the current background color;
carrying out color identification processing on the original character layer to obtain the current character color;
and determining the image color type according to the current background color and the current character color.
Further, the determining the image color type according to the current background color and the current text color comprises:
if the current background color is a preset background color and the current character color is a preset character color, the image color type is a target color type;
and if the current background color is not the preset background color and/or the current character color is not the preset character color, the image color type is not the target color type.
Further, the performing layer color conversion on the original background layer and the original text layer to obtain a target background layer and a target text layer includes:
performing layer color conversion on the original background layer by adopting background layer conversion logic to obtain a target background layer;
and adopting character image conversion logic to perform layer color conversion on the original character layer to obtain a target character layer.
Further, the performing layer color conversion on the original background layer by using a background layer conversion logic to obtain a target background layer includes:
acquiring a background gray value corresponding to the original background layer, and judging whether the background gray value corresponding to the original background layer meets a first gray threshold value;
if the background gray value corresponding to the original background layer meets a first gray threshold, determining the background gray value corresponding to the original background layer as a target background gray value;
if the background gray value corresponding to the original background layer does not meet a first gray threshold, performing gray value adjustment on the background gray value corresponding to the original background layer to obtain a target background gray value;
and converting the layer color of the original background layer into a preset background color based on a preset background color and the target background gray value, and acquiring the target background layer corresponding to the target background gray value.
Further, the performing layer color conversion on the original text layer by using text-to-image conversion logic to obtain a target text layer includes:
acquiring a character gray value corresponding to the original character layer, and judging whether the character gray value corresponding to the original character layer meets a second gray threshold value;
if the character gray value corresponding to the original character layer meets a second gray threshold, determining the character gray value corresponding to the original character layer as a target character gray value;
if the gray value of the character corresponding to the original character layer does not meet a second gray threshold, adjusting the gray value of the character corresponding to the original character layer to obtain a target gray value of the character;
and converting the layer color of the original text layer into a preset text color based on the preset text color and the target text gray value, and acquiring the target text layer corresponding to the target text gray value.
A printing device comprises a memory, a processor and a printing program which is stored in the memory and can run on the processor, wherein the processor realizes the conference whiteboard image printing method when executing the printing program.
A computer-readable storage medium storing a printing program which, when executed by a processor, implements the above-described conference whiteboard image printing method.
According to the conference whiteboard image printing method, the printing device and the storage medium, the printing device obtains the image printing request, and the image printing request comprises the conference whiteboard image; the conference whiteboard image is separated to obtain an original background layer and an original character layer, so that the original background layer and the original character layer are respectively processed in the subsequent steps, and the pertinence and the effectiveness of the subsequent layer color conversion are improved; the method comprises the steps of carrying out layer color conversion on an original background layer and an original character layer, obtaining a target background layer and a target character layer, carrying out synthesis processing on the target background layer and the target character layer to form a target printing image, printing the formed target printing image in conventional printing paper more clearly when printing, improving the definition of the printed target printing image and reducing the cost of printing ink.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
Fig. 1 is a schematic diagram of an application environment of a method for printing a conference whiteboard image according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for printing a conference whiteboard image according to an embodiment of the present invention;
fig. 3 is another flowchart of a method for printing a conference whiteboard image according to an embodiment of the present invention;
fig. 4 is another flowchart of a method for printing a conference whiteboard image according to an embodiment of the present invention;
fig. 5 is another flowchart of a method for printing a conference whiteboard image according to an embodiment of the present invention;
fig. 6 is another flowchart of a method for printing a conference whiteboard image according to an embodiment of the present invention;
fig. 7 is another flowchart of a method for printing a conference whiteboard image according to an embodiment of the present invention;
fig. 8 is another flowchart of a method for printing a conference whiteboard image according to an embodiment of the present invention;
FIG. 9 is a schematic diagram of a printing device in one embodiment of the invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The conference whiteboard image printing method provided by the embodiment of the invention can be applied to printing equipment, the printing equipment comprises a memory, a processor and a printing program which is stored in the memory and can be run on the processor, and the conference whiteboard image printing method in the following embodiment is realized when the processor executes the printing program.
In an embodiment, as shown in fig. 1, a conference whiteboard image printing method is provided, which is described by taking an example of the method applied to a printing apparatus, and includes the following steps:
s10: an image printing request is acquired, the image printing request including a conference whiteboard image.
Wherein the image printing request is a request for printing the conference whiteboard image. The image print request includes a conference whiteboard image. The conference whiteboard image is acquired by the printing equipment from the conference system all-in-one machine. The conference system all-in-one machine is equipment with functions including but not limited to computers, projectors, televisions, conference whiteboards, advertising machines, sounds and the like. The conference whiteboard image is an image which is obtained based on the conference whiteboard function in the conference system all-in-one machine and comprises character contents such as writing or annotation of a user and the display background of the conference whiteboard.
S20: and separating the conference whiteboard image to obtain an original background layer and an original character layer.
The original background layer is a layer corresponding to a conference whiteboard display background in the conference whiteboard image. The original text layer is a layer corresponding to text contents such as writing or annotation of a user.
Specifically, the separation processing performed on the conference whiteboard image by the printing device specifically refers to layer separation processing performed on the conference whiteboard image. It should be noted that the conference whiteboard image includes a whiteboard background identifier corresponding to the original background layer and a whiteboard character identifier corresponding to the original character layer, and the rapid separation processing can be implemented according to the whiteboard background identifier and the whiteboard character identifier. The whiteboard background mark is used for marking an original background layer in the conference whiteboard image. The whiteboard character mark is a mark used for marking an original character layer in the conference whiteboard image.
As an example, the printing device performs layer separation processing on a conference whiteboard image according to a whiteboard background identifier and a whiteboard character identifier, and acquires an original background layer and an original character layer. The printing equipment separates the conference whiteboard image through the whiteboard background mark and the whiteboard character mark to obtain the original background layer and the original character layer, so that the original background layer and the original character layer are processed in the subsequent steps, and the definition of printing the conference whiteboard image is improved.
S30: and carrying out layer color conversion on the original background layer and the original character layer to obtain a target background layer and a target character layer.
The target background layer is a background layer obtained by performing layer color conversion on the original background layer. The target character layer is a character layer obtained by performing layer color conversion on the original character layer. The layer color conversion mode is specifically to perform layer color conversion on the original background layer according to a preset background color, and perform layer color conversion on the original background layer according to a preset character color. The preset background color is a background color which is set by a user in a user-defined mode and comprises a light color, such as white or light yellow. The preset text color is a text color which is set by a user in a user-defined mode and comprises a dark color, such as black or brown.
Specifically, the printing equipment performs layer color conversion on an original background layer to obtain a target background layer; and the original text layer is subjected to layer color conversion to obtain a target text layer, and the original background layer and the original text layer are respectively subjected to layer color conversion, so that the pertinence and the effectiveness of the layer color conversion can be improved. As an example, the preset background color is white, the preset text color is black, the color corresponding to the original background layer is black, and the color corresponding to the original text layer is red. The printing equipment converts the color corresponding to the original background layer from black to white according to the preset background color to obtain a target background layer; and converting the color corresponding to the original text layer from red to black according to the preset text color to obtain the target text layer. Can understand ground, printing apparatus carries out the picture layer colour conversion to original background layer, the colour that corresponds original background layer converts the light colour into, the colour that corresponds original text layer converts the dark colour into, when can making meeting whiteboard image print, the part that corresponds original text layer is more clear prints out, improve the definition of printing meeting whiteboard image, and simultaneously, when meeting whiteboard image prints, avoid printing the printing ink of the part that original background layer corresponds and appear large tracts of land, can effectively save the printing ink that meeting whiteboard image printing process adopted, the cost is saved, avoid extravagant.
S40: and synthesizing the target background layer and the target character layer to form a target printing image, and printing the target printing image.
The target printing image is a conference whiteboard image obtained by synthesizing a target background layer and a target character layer.
Specifically, the printing apparatus performs a synthesizing process on the target background layer and the target text layer, forms a target print image, and prints the target print image. As an example, the color of the target background layer is white, the color of the target character layer is black, the target background layer and the target character layer are subjected to synthesis processing, a target print image of black characters with a white background is formed, and the target print image is printed. The target text layer with the black color and the target background layer with the white color are synthesized, the formed target printing image can be printed in conventional printing paper more clearly during printing, the definition of the printing target printing image is improved, and the cost of printing ink is reduced.
In this embodiment, a printing device acquires an image printing request, where the image printing request includes a conference whiteboard image; the conference whiteboard image is separated to obtain an original background layer and an original character layer, so that the original background layer and the original character layer are respectively processed in the subsequent steps, and the pertinence and the effectiveness of the subsequent layer color conversion are improved; the method comprises the steps of carrying out layer color conversion on an original background layer and an original character layer, obtaining a target background layer and a target character layer, carrying out synthesis processing on the target background layer and the target character layer to form a target printing image, printing the formed target printing image in conventional printing paper more clearly when printing, improving the definition of the printed target printing image and reducing the cost of printing ink.
In an embodiment, as shown in fig. 2, in step S20, the separating process is performed on the conference whiteboard image to obtain an original background layer and an original text layer, and the method includes:
s201: and analyzing the conference whiteboard image to obtain a whiteboard background mark and a whiteboard character mark.
Specifically, the printing device analyzes the conference whiteboard image, and obtains a whiteboard background identifier and a whiteboard character identifier in the conference whiteboard image. It should be noted that, when a user writes a character on the conference whiteboard, the conference system all-in-one machine creates an original character layer when the user writes a character once, and marks a corresponding whiteboard character identifier on the original character layer, the conference system all-in-one machine displays a background on the conference whiteboard, that is, marks a corresponding whiteboard background identifier on the original background layer, and forms a conference whiteboard image with all the original character layers and the original background layer. Therefore, the printing device can obtain the whiteboard background identifier corresponding to the original background layer and the whiteboard character identifier corresponding to the original character layer by analyzing the conference whiteboard image, so that the conference whiteboard image is further processed based on the whiteboard background identifier and the whiteboard character identifier in the following process.
S202: and separating the conference whiteboard images based on the whiteboard background marks and the whiteboard character marks to obtain an original background layer and an original character layer.
Specifically, the printing device obtains an original background layer corresponding to the whiteboard background identifier based on the whiteboard background identifier, and obtains an original character layer corresponding to the whiteboard character identifier based on the whiteboard character identifier. As an example, the whiteboard background identifier is a1/a2/. to.. a./Am, the whiteboard text identifier includes B1/B2/. to.. a./Bn, corresponding to the original text layer B1/original text layer B2/. to.. a./original text layer Bn, respectively, corresponding to the original text layer where the 1 st written text/the original text layer where the 2 nd written text on the conference whiteboard by the user is located/. to./the original text layer where the n nd written text is located. It is to be understood that the same original background layer may correspond to at least one original text layer.
The printing equipment separates the conference whiteboard image based on the whiteboard background mark and the whiteboard character mark, acquires an original background layer and an original character layer, and can independently perform color conversion processing on the original background layer and the original character layer when performing layer color conversion processing on the original background layer and the original character layer in the subsequent process, so that the situation of color conversion errors is prevented, and the accuracy and the reliability of the color conversion processing on the original background layer and the original character layer are improved.
In this embodiment, the printing device analyzes the conference whiteboard image, obtains a whiteboard background identifier and a whiteboard character identifier in the conference whiteboard image, and can obtain a whiteboard background identifier corresponding to the original background layer and a whiteboard character identifier corresponding to the original character layer, so as to further process the conference whiteboard image based on the whiteboard background identifier and the whiteboard character identifier in the following; based on the whiteboard background mark and the whiteboard character mark, the conference whiteboard image is separated to obtain an original background layer and an original character layer, and the original background layer and the original character layer can be independently subjected to color conversion processing, so that the situation of color conversion errors is prevented, and the accuracy and the reliability of the color conversion processing on the original background layer and the original character layer are improved.
In an embodiment, as shown in fig. 3, after step S20, that is, after the conference whiteboard image is subjected to the separation process to obtain the original background layer and the original text layer, the method for printing a conference whiteboard image further includes:
s21: and carrying out color identification on the original background layer and the original character layer to obtain the image color type.
The image color type is a color corresponding to the original background layer and a color combination type corresponding to the original character layer. As an example, the color corresponding to the original background layer is black, the color corresponding to the original text layer is red, and the image color type is a black-background red character.
Specifically, the printing device performs color recognition on an original background layer and an original character layer, determines a color corresponding to the original background layer and a color corresponding to the original character layer, and acquires an image color type.
S22: and if the image color type is the target color type, printing the conference whiteboard image.
And the target color type is an image color type set by a user in a self-defined way. For example, the target color type may be black-on-white, that is, the color corresponding to the original background layer is white, and the color corresponding to the original text layer is black. It is understood that the target color type is a color type that enables the conference whiteboard image to be printed clearly on a conventional printing paper.
As an example, when the image color type is a white-on-black character, the printing apparatus directly prints the conference whiteboard image. It can be understood that, when the image color type is a black character with white background, because the color corresponding to the original background layer is white, the large-area printing ink can be prevented from being generated when the part corresponding to the original background layer is printed, the printing cost is reduced, and the conventional printing paper is prevented from becoming damp and soft due to the large-area printing ink, so that the printing experience is improved.
S23: and if the image color type is not the target color type, performing layer color conversion on the original background layer and the original character layer to obtain a target background layer and a target character layer.
As an example, the target color type is black-on-white, and the image color type is red-on-black; when the image color type is not a white-background black word, step S30 is executed to perform layer color conversion on the original background layer and the original text layer to obtain a target background layer and a target text layer, the printing device performs layer color conversion on the original background layer to convert the color corresponding to the original background layer from black to white, and converts the color corresponding to the original text layer from red to black, so that when the conference whiteboard image is printed, the portion corresponding to the original text layer is printed more clearly, and large-area printing ink is prevented from being printed on the portion corresponding to the original background layer, thereby reducing the printing cost, and preventing the conventional printing paper from becoming damp and soft due to the large-area printing ink, and improving the printing experience of the user.
In the embodiment, the printing equipment performs color identification on an original background layer and an original character layer to acquire an image color type; when the image color type is the target color type, printing the conference whiteboard image; when the image color type is not the target color type, layer color conversion is performed on the original background layer and the original character layer, the target background layer and the target character layer are obtained, when the conference whiteboard image is printed, the part corresponding to the original character layer is printed more clearly, large-area printing ink is prevented from being printed on the part corresponding to the original background layer, the printing cost is reduced, further, based on the judgment of the image color type, when the image color type is the target color type, the conference whiteboard image is directly printed, and the printing efficiency of the conference whiteboard image can be improved.
In one embodiment, as shown in fig. 4, in step S21, performing color recognition on the original background layer and the original text layer, and determining the image color type includes:
s211: and carrying out color identification processing on the original background layer to obtain the current background color.
S212: and carrying out color identification processing on the original character layer to obtain the current character color.
S213: and determining the image color type according to the current background color and the current character color.
And the current background color is the color corresponding to the original background layer in the current conference whiteboard image to be printed. And the current character color is the color corresponding to the original character layer in the conference whiteboard image needing to be printed currently.
As an example, the printing device performs color recognition processing on an original background layer to acquire that the current background color is black; and carrying out color identification processing on the original character layer to obtain that the current character color is red. And the printing equipment determines the type of the image color as a black background red character according to the current background color and the current character color.
In this embodiment, the printing device performs color recognition processing on the original background layer to obtain a current background color; carrying out color identification processing on the original character layer to obtain the current character color; and determining the image color type according to the current background color and the current character color so as to judge the image color type subsequently, and directly printing the conference whiteboard image when the image color type is the target color type, so that the printing efficiency of the conference whiteboard image can be improved.
In one embodiment, as shown in fig. 5, the step S213 of determining the image color type according to the current background color and the current text color includes:
s2131: and if the current background color is the preset background color and the current character color is the preset character color, the image color type is the target color type.
S2132: and if the current background color is not the preset background color and/or the current character color is not the preset character color, the image color type is not the target color type.
The preset background color is a color corresponding to an original background layer preset by a user. The preset character color is a color corresponding to an original character layer preset by a user.
As an example, the preset background color is white, and the preset text color is black. And if the current background color is white and the current character color is black, the image color type is the target color type.
As another example, the preset background color is white and the preset text color is black. If the current background color is black, the current character color is black; or the current background color is black, and the current character color is red; or, if the current background color is black and the current text color is black, the image color type is not the target color type.
In this embodiment, when the current background color is the preset background color and the current character color is the preset character color, the printing device determines that the image color type is the target color type; and when the current background color is not the preset background color and/or the current character color is not the preset character color, determining that the image color type is not the target color type. The printing equipment determines the image color type according to the current background color and the current character color so as to judge the image color type subsequently, and when the image color type is the target color type, the conference whiteboard image is directly printed, so that the printing efficiency of the conference whiteboard image can be improved.
In an embodiment, as shown in fig. 6, in step S30, performing layer color conversion on the original background layer and the original text layer to obtain a target background layer and a target text layer, includes:
s31: and adopting background layer conversion logic to perform layer color conversion on the original background layer to obtain a target background layer.
The background layer conversion logic is logic for performing layer color conversion on the original background layer. The background layer conversion logic comprises the step of performing layer color conversion on the original background layer according to the background gray value and the preset background color. The background gray value is the gray value corresponding to the original background layer. As an example, whether the background gray-level value meets the background gray-level value determination rule is determined, and if the background gray-level value meets the background gray-level value determination rule, the color corresponding to the original background layer is converted into the preset background color. The method has the advantages that the background gray value can reflect whether the original background layer can be clearly displayed, and layer color conversion is carried out on the original background layer according to the background gray value, so that the target background layer can be clearly displayed, and the definition of the conference whiteboard image during printing is improved.
S32: and adopting character image conversion logic to perform layer color conversion on the original character layer to obtain a target character layer.
The text-image conversion logic is logic for performing layer color conversion on an original text layer. The text-image conversion logic comprises the step of performing layer color conversion on the original text layer according to the text gray value and the preset text color. The gray value of the character is the gray value corresponding to the original character layer. As an example, it is determined whether the gray level value of the text conforms to the gray level value determination rule, and if the gray level value of the text conforms to the gray level value determination rule, the color corresponding to the original text layer is converted into the preset text color. The method has the advantages that the gray value of the characters can reflect whether the original character layer can be clearly displayed or not, and the layer color conversion is carried out on the original character layer according to the gray value of the characters, so that the target character layer can be clearly displayed, and the definition of the conference whiteboard image during printing is improved.
In this embodiment, the printing device performs layer color conversion on an original background layer by using a background layer conversion logic to obtain a target background layer; by adopting the text image conversion logic, the layer color conversion is carried out on the original text layer, the target text layer is obtained, the display that the target background layer and the target text layer can be clear can be ensured, and the definition of the conference whiteboard image during printing is improved.
In an embodiment, as shown in fig. 7, in step S31, that is, performing layer color conversion on the original background layer by using a background layer conversion logic, to obtain a target background layer, includes:
s311: and acquiring a background gray value corresponding to the original background layer, and judging whether the background gray value corresponding to the original background layer meets a first gray threshold value.
S312: and if the background gray value corresponding to the original background layer meets the first gray threshold, determining the background gray value corresponding to the original background layer as the target background gray value.
S313: and if the background gray value corresponding to the original background layer does not meet the first gray threshold, performing gray value adjustment on the background gray value corresponding to the original background layer to obtain a target background gray value.
S314: and converting the layer color of the original background layer into a preset background color based on the preset background color and the target background gray value, and acquiring the target background layer corresponding to the target background gray value.
The first gray threshold is a gray value range preset by a user and used for judging whether the background gray value meets the background gray value judgment rule or not. The target background gray value is a background gray value that meets the first gray threshold.
As an example, since the background grayscale value can reflect whether the original background layer can be clearly displayed during printing, the printing device obtains the background grayscale value corresponding to the original background layer and determines whether the background grayscale value corresponding to the original background layer satisfies the first grayscale threshold.
As another example, when the background grayscale value corresponding to the original background layer satisfies the first grayscale threshold, the printing device determines the background grayscale value corresponding to the original background layer as the target background grayscale value.
As another example, when the background grayscale value corresponding to the original background layer does not satisfy the first grayscale threshold, the printing device performs grayscale adjustment on the background grayscale value corresponding to the original background layer, adjusts the background grayscale value to a range corresponding to the first grayscale threshold, and obtains the target background grayscale value.
As another example, the printing device converts the layer color of the original background layer into a preset background color meeting the target background gray value according to the target background gray value, obtains the target background layer corresponding to the target background gray value, and improves the definition of the target printed image.
In this embodiment, the printing device obtains a background gray value corresponding to an original background layer, and determines whether the background gray value corresponding to the original background layer meets a first gray threshold; when the background gray value corresponding to the original background layer meets a first gray threshold, determining the background gray value corresponding to the original background layer as a target background gray value; when the background gray value corresponding to the original background layer does not meet the first gray threshold, performing gray value adjustment on the background gray value corresponding to the original background layer to obtain a target background gray value; and converting the color of the original background layer into a preset background color based on the preset background color and the target background gray value, acquiring the target background layer corresponding to the target background gray value, and improving the definition of the target printed image.
In an embodiment, as shown in fig. 8, in step S32, performing layer color conversion on the original text layer by using text-image conversion logic to obtain a target text layer, includes:
s321: acquiring a character gray value corresponding to the original character layer, and judging whether the character gray value corresponding to the original character layer meets a second gray threshold value;
s322: if the character gray value corresponding to the original character layer meets the second gray threshold, determining the character gray value corresponding to the original character layer as a target character gray value;
s323: if the gray value of the character corresponding to the original character layer does not meet the second gray threshold, adjusting the gray value of the character corresponding to the original character layer to obtain a target gray value of the character;
s324: and converting the layer color of the original text layer into a preset text color based on the preset text color and the target text gray value, and acquiring the target text layer corresponding to the target text gray value.
The second gray level threshold is a gray level range preset by a user and used for judging whether the character gray level value meets the character gray level value judgment rule or not. The target text gray value is a text gray value meeting the second gray threshold.
As an example, since the gray-level value of the text can reflect whether the original text layer can be clearly displayed during printing, the printing device obtains the gray-level value of the text corresponding to the original text layer and determines whether the gray-level value of the text corresponding to the original text layer meets the second gray-level threshold.
As another example, when the gray-level value of the text corresponding to the original text layer satisfies the second gray-level threshold, the printing device determines the gray-level value of the text corresponding to the original text layer as the target gray-level value of the text.
As another example, when the gray value of the text corresponding to the original text layer does not satisfy the second gray threshold, the printing device performs gray value adjustment on the gray value of the text corresponding to the original text layer, adjusts the gray value of the text to a range corresponding to the second gray threshold, and obtains the target gray value of the text.
As another example, the printing device converts the layer color of the original text layer into a preset text color meeting the target text grayscale value according to the target text grayscale value, obtains the target text layer corresponding to the target text grayscale value, and improves the definition of the target printed image.
In this embodiment, the printing device obtains a text gray value corresponding to the original text layer, and determines whether the text gray value corresponding to the original text layer meets a second gray threshold; when the character gray value corresponding to the original character layer meets the second gray threshold, determining the character gray value corresponding to the original character layer as a target character gray value; when the gray value of the character corresponding to the original character layer does not meet the second gray threshold, adjusting the gray value of the character corresponding to the original character layer to obtain a target gray value of the character; and converting the color of the original character layer into the preset character color based on the preset character color and the target character gray value, acquiring a target background layer corresponding to the target character gray value, and improving the definition of a target printed image.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
In one embodiment, a printing device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 9. The printing device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the printing device is configured to provide computing and control capabilities. The memory of the printing device includes a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a printing program, and a database. The internal memory provides an environment for the operation of the operating system and the printing program in the nonvolatile storage medium. The database of the printing device is used for printing the conference whiteboard image. The network interface of the printing apparatus is used for communicating with an external terminal through a network connection. The printing program is executed by a processor to implement a conference whiteboard image printing method.
In one embodiment, a printing apparatus is provided, which includes a memory, a processor, and a printing program stored in the memory and executable on the processor, and when the processor executes the printing program, the method for printing a conference whiteboard image in the foregoing embodiments is implemented, for example, steps S10 to S40, which is not described herein again to avoid repetition.
In an embodiment, a computer-readable storage medium is provided, where a printing program is stored on the computer-readable storage medium, and the printing program, when executed by a processor, implements the method for printing a conference whiteboard image in the foregoing embodiments, for example, steps S10 to S40, and details are not repeated here to avoid repetition.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a printing program, which can be stored in a non-volatile computer-readable storage medium, and the printing program can include the processes of the embodiments of the methods described above when executed. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (10)

1. A conference whiteboard image printing method is characterized by comprising the following steps:
acquiring an image printing request, wherein the image printing request comprises a conference whiteboard image;
separating the conference whiteboard image to obtain an original background layer and an original character layer;
performing layer color conversion on the original background layer and the original character layer to obtain a target background layer and a target character layer;
and synthesizing the target background layer and the target character layer to form a target printing image, and printing the target printing image.
2. The method for printing the conference whiteboard image according to claim 1, wherein the step of separating the conference whiteboard image to obtain an original background layer and an original text layer comprises:
analyzing the conference whiteboard image to obtain a whiteboard background mark and a whiteboard character mark;
and separating the conference whiteboard image based on the whiteboard background mark and the whiteboard character mark to obtain an original background layer and an original character layer.
3. The method for printing a conference whiteboard image according to claim 1, wherein after the conference whiteboard image is separated to obtain an original background layer and an original text layer, the method for printing a conference whiteboard image further comprises:
carrying out color identification on the original background layer and the original character layer to obtain an image color type;
if the image color type is the target color type, printing the conference whiteboard image;
and if the image color type is not the target color type, executing layer color conversion on the original background layer and the original text layer to obtain a target background layer and a target text layer.
4. The method for printing the conference whiteboard image according to claim 3, wherein the performing color recognition on the original background layer and the original text layer to determine the image color type comprises:
carrying out color identification processing on the original background layer to obtain the current background color;
carrying out color identification processing on the original character layer to obtain the current character color;
and determining the image color type according to the current background color and the current character color.
5. The method for printing a conference whiteboard image according to claim 4, wherein the determining the image color type according to the current background color and the current text color comprises:
if the current background color is a preset background color and the current character color is a preset character color, the image color type is a target color type;
and if the current background color is not the preset background color and/or the current character color is not the preset character color, the image color type is not the target color type.
6. The method for printing the conference whiteboard image according to claim 1, wherein the obtaining the target background layer and the target text layer by performing layer color conversion on the original background layer and the original text layer comprises:
performing layer color conversion on the original background layer by adopting background layer conversion logic to obtain a target background layer;
and adopting character image conversion logic to perform layer color conversion on the original character layer to obtain a target character layer.
7. The method for printing the conference whiteboard image according to claim 6, wherein the obtaining the target background layer by performing layer color conversion on the original background layer by using a background layer conversion logic comprises:
acquiring a background gray value corresponding to the original background layer, and judging whether the background gray value corresponding to the original background layer meets a first gray threshold value;
if the background gray value corresponding to the original background layer meets a first gray threshold, determining the background gray value corresponding to the original background layer as a target background gray value;
if the background gray value corresponding to the original background layer does not meet a first gray threshold, performing gray value adjustment on the background gray value corresponding to the original background layer to obtain a target background gray value;
and converting the layer color of the original background layer into a preset background color based on a preset background color and the target background gray value, and acquiring the target background layer corresponding to the target background gray value.
8. The method for printing the conference whiteboard image according to claim 6, wherein the obtaining of the target text layer by performing layer color conversion on the original text layer by using text image conversion logic comprises:
acquiring a character gray value corresponding to the original character layer, and judging whether the character gray value corresponding to the original character layer meets a second gray threshold value;
if the character gray value corresponding to the original character layer meets a second gray threshold, determining the character gray value corresponding to the original character layer as a target character gray value;
if the gray value of the character corresponding to the original character layer does not meet a second gray threshold, adjusting the gray value of the character corresponding to the original character layer to obtain a target gray value of the character;
and converting the layer color of the original text layer into a preset text color based on the preset text color and the target text gray value, and acquiring the target text layer corresponding to the target text gray value.
9. A printing apparatus comprising a memory, a processor and a printing program stored in the memory and executable on the processor, wherein the processor implements the conference whiteboard image printing method according to any one of claims 1 to 8 when executing the printing program.
10. A computer-readable storage medium storing a printing program, wherein the printing program, when executed by a processor, implements the conference whiteboard image printing method according to any one of claims 1 to 8.
CN202011032036.XA 2020-09-27 2020-09-27 Conference whiteboard image printing method, printing equipment and storage medium Active CN112286471B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011032036.XA CN112286471B (en) 2020-09-27 2020-09-27 Conference whiteboard image printing method, printing equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011032036.XA CN112286471B (en) 2020-09-27 2020-09-27 Conference whiteboard image printing method, printing equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112286471A true CN112286471A (en) 2021-01-29
CN112286471B CN112286471B (en) 2023-04-21

Family

ID=74423079

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011032036.XA Active CN112286471B (en) 2020-09-27 2020-09-27 Conference whiteboard image printing method, printing equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112286471B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1447583A (en) * 2002-03-22 2003-10-08 佳能株式会社 Appts. and method of recording file recorded by using marking language
CN1955982A (en) * 2005-10-28 2007-05-02 致伸科技股份有限公司 Processing system and method of image data
JP2012145978A (en) * 2011-01-06 2012-08-02 Konica Minolta Business Technologies Inc Character detecting device, character detecting method, and computer program
CN104063380A (en) * 2013-03-18 2014-09-24 北京百度网讯科技有限公司 Method and device for converting picture files into webpage files
CN105825535A (en) * 2016-03-18 2016-08-03 广东欧珀移动通信有限公司 Layer merging method and layer merging system
US20170010870A1 (en) * 2015-07-06 2017-01-12 Oracle International Corporation Optimized retrieval of custom string resources
US20170274673A1 (en) * 2015-01-30 2017-09-28 S-Printing Solution Co., Ltd. Image forming apparatus, recording medium, terminal, server, note printing method, and storage medium
CN109597592A (en) * 2018-12-03 2019-04-09 珠海趣印科技有限公司 A kind of App text intelligence Enhancement Method
CN110750748A (en) * 2019-10-24 2020-02-04 杭州网景汇网络科技有限公司 Webpage display method
CN110880164A (en) * 2018-09-06 2020-03-13 中兴通讯股份有限公司 Image processing method, device and equipment and computer storage medium
CN110942126A (en) * 2019-11-08 2020-03-31 广州追溯信息科技有限公司 Method for generating star array three-dimensional code
CN110992251A (en) * 2019-11-29 2020-04-10 北京金山云网络技术有限公司 Logo replacing method and device in video and electronic equipment

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1447583A (en) * 2002-03-22 2003-10-08 佳能株式会社 Appts. and method of recording file recorded by using marking language
CN1955982A (en) * 2005-10-28 2007-05-02 致伸科技股份有限公司 Processing system and method of image data
JP2012145978A (en) * 2011-01-06 2012-08-02 Konica Minolta Business Technologies Inc Character detecting device, character detecting method, and computer program
CN104063380A (en) * 2013-03-18 2014-09-24 北京百度网讯科技有限公司 Method and device for converting picture files into webpage files
US20170274673A1 (en) * 2015-01-30 2017-09-28 S-Printing Solution Co., Ltd. Image forming apparatus, recording medium, terminal, server, note printing method, and storage medium
US20170010870A1 (en) * 2015-07-06 2017-01-12 Oracle International Corporation Optimized retrieval of custom string resources
CN105825535A (en) * 2016-03-18 2016-08-03 广东欧珀移动通信有限公司 Layer merging method and layer merging system
CN110880164A (en) * 2018-09-06 2020-03-13 中兴通讯股份有限公司 Image processing method, device and equipment and computer storage medium
CN109597592A (en) * 2018-12-03 2019-04-09 珠海趣印科技有限公司 A kind of App text intelligence Enhancement Method
CN110750748A (en) * 2019-10-24 2020-02-04 杭州网景汇网络科技有限公司 Webpage display method
CN110942126A (en) * 2019-11-08 2020-03-31 广州追溯信息科技有限公司 Method for generating star array three-dimensional code
CN110992251A (en) * 2019-11-29 2020-04-10 北京金山云网络技术有限公司 Logo replacing method and device in video and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
吕宇国主编, 中国铁道出版社 *

Also Published As

Publication number Publication date
CN112286471B (en) 2023-04-21

Similar Documents

Publication Publication Date Title
US8248411B2 (en) Image processing apparatus, image processing method, and program
JP2006251902A (en) Device, program, and method for generating translation document image
CN110443140B (en) Text positioning method, device, computer equipment and storage medium
US11574489B2 (en) Image processing system, image processing method, and storage medium
CN107085505B (en) CDR file automatic processing and automatic comparison method and system
US20100020351A1 (en) Image processing apparatus, image processing method, and computer readable medium
CN111291741B (en) Receipt identification method and device, computer equipment and storage medium
CN111783795B (en) Method, device, equipment and medium for converting image into laser scanning path
JPH1052947A (en) Method for determining amount of colorant used for printing process black region
CN112906532B (en) Image processing method and device, electronic equipment and storage medium
CN113537184A (en) OCR (optical character recognition) model training method and device, computer equipment and storage medium
CN112286471A (en) Conference whiteboard image printing method, printing equipment and storage medium
US8767265B2 (en) Image processing apparatus and processing method of the image processing apparatus
CN112580499A (en) Text recognition method, device, equipment and storage medium
CN115249362B (en) OCR table recognition method and system based on connectivity of pixels in stable direction
US20230071008A1 (en) Computer-readable, non-transitory recording medium containing therein image processing program for generating learning data of character detection model, and image processing apparatus
US20160110140A1 (en) Method and device for image processing and computer-readable recording medium
CN110134347B (en) Image processing method, image processing device, computer equipment and storage medium
US8643895B2 (en) Image processing device capable of saving ink consumption
CN112083898B (en) Building design drawing printing method, device, computer equipment and storage medium
CN111241974A (en) Bill information acquisition method and device, computer equipment and storage medium
CN114387429A (en) Vehicle property right processing method, device, equipment and medium based on RPA and AI
TWM609320U (en) Server used for creating seal recognition model
JP5790000B2 (en) Printing apparatus and printing method therefor
JP6205893B2 (en) Image processing apparatus, image processing method, and program

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