CN114996219A - Code file generation method, device, image forming apparatus and storage medium - Google Patents

Code file generation method, device, image forming apparatus and storage medium Download PDF

Info

Publication number
CN114996219A
CN114996219A CN202210610512.4A CN202210610512A CN114996219A CN 114996219 A CN114996219 A CN 114996219A CN 202210610512 A CN202210610512 A CN 202210610512A CN 114996219 A CN114996219 A CN 114996219A
Authority
CN
China
Prior art keywords
image
preset
point code
document data
background point
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.)
Pending
Application number
CN202210610512.4A
Other languages
Chinese (zh)
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.)
Zhuhai Pantum Electronics Co Ltd
Original Assignee
Zhuhai Pantum Electronics 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 Zhuhai Pantum Electronics Co Ltd filed Critical Zhuhai Pantum Electronics Co Ltd
Priority to CN202210610512.4A priority Critical patent/CN114996219A/en
Publication of CN114996219A publication Critical patent/CN114996219A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/164File meta data generation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/126Character encoding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/186Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being a colour or a chrominance component
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/42Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Artificial Intelligence (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

The application relates to a code file generation method, a device, an image forming device and a storage medium, wherein the code file generation method comprises the following steps: acquiring a preset background point code image; generating preset coding image data based on the document data to be formed and the preset background point code image; and executing data output operation based on the preset coding image data to generate a coding file. According to the technical scheme, the user can conveniently acquire the electronic file with the background point code so as to perform subsequent printout, and obtain a medium which can be written and identified by the intelligent pen.

Description

Code file generation method, device, image forming apparatus and storage medium
Technical Field
The present invention relates to the field of image forming technologies, and in particular, to a method and an apparatus for generating a code file, an image forming device, and a storage medium.
Background
At present, with the development of informatization and intellectualization of the education industry, related technical schemes of 'intelligent notes' appear on the market, namely, a user can write on media such as paper by using an intelligent pen, handwriting can be transmitted to terminals such as a mobile phone and a computer in real time, and functions such as data storage or data lookup are further realized.
The writing medium involved in the "smart note" solution is a specially treated medium. The writing medium is printed with original document contents and also contains encoded regular background point codes, and the intelligent pen is carried with an infrared sensing device and the like, so that the background point codes are recognized, and the writing position of the handwriting is recognized.
The inventor of the application finds in research that in the prior art, when the special media are formed, the special media are usually customized by contacting a printing factory, a user can only obtain paper media with background point codes, and a mode is lacked, so that the user can obtain electronic files with the background point codes in real time, the electronic files are convenient to print and output according to needs, the autonomy is stronger, and the user experience is improved.
Disclosure of Invention
The embodiment of the invention provides a method and a device for generating a coding file, image forming equipment and a storage medium, which can facilitate a user to obtain an electronic file with a background point code for subsequent printing output so as to obtain a medium which can be written and identified by an intelligent pen.
In a first aspect, the present application provides a method for generating a code file, which is applied to an image forming apparatus and/or a computer apparatus installed with a driver corresponding to the image forming apparatus, and includes:
acquiring document data to be formed;
acquiring a preset background point code image;
generating preset coding image data based on the document data to be formed and the preset background point code image;
and executing data output operation based on the preset coding image data to generate a coding file.
With reference to the first aspect, in a possible implementation manner, the obtaining a preset background point code image includes: and directly generating the preset background point code image based on a preset rule, or receiving the preset background point code image provided by the outside.
With reference to the first aspect, in a possible implementation manner, before the acquiring the document data to be formed and the preset background point code image, the method further includes:
acquiring preset mode information, wherein the acquiring of the preset mode information comprises acquiring a preset mode setting instruction or judging that the preset background point code image exists.
With reference to the first aspect, in a possible implementation manner, the obtaining a preset background point code image includes: and acquiring a preset background point code image based on the user information.
With reference to the first aspect, in one possible implementation manner, the performing an output operation based on the preset encoded image data includes: and acquiring user information, and executing output operation based on the user information and the preset coding image data.
With reference to the first aspect, in one possible implementation manner, the performing an output operation based on the user information and the preset encoded image data includes:
determining the number of users based on the user information;
and determining the number of times of the output operation based on the number of the users.
With reference to the first aspect, in a possible implementation manner, the generating preset encoded image data based on the document data to be formed and the preset background point code image includes:
judging whether the preset background point code image is a grating image or not;
and if so, generating preset coded image data based on the pixel information corresponding to the document data to be formed and the pixel information corresponding to the preset background point code image.
With reference to the first aspect, in a possible implementation manner, the generating preset encoded image data based on the document data to be formed and the preset background point code image includes:
judging whether the preset background point code image is a loss image or not;
and if so, generating preset coded image data based on the document data to be formed and the loss information corresponding to the preset background point code image.
With reference to the first aspect, in a possible implementation manner, before the performing a data output operation based on the preset encoded image data and generating an encoded file, the method further includes:
performing color conversion processing on the document data to be formed so as to set a color conversion target value corresponding to the document data to be formed to a first color;
performing color conversion processing on the preset background point code image so as to set a color conversion target value corresponding to the document data to be formed to be a second color;
and when the color conversion target value corresponding to the to-be-formed document data is set to be a first color and the color conversion target value corresponding to the to-be-formed document data is set to be a second color, printing an output medium obtained by the coded file, wherein the output medium comprises a first part corresponding to the to-be-formed document data and a second part corresponding to the preset background point code image, the color information of the first part is the first color, and the color information of the second part is the second color, and the first color is different from the second color.
In a second aspect, the present application provides an encoding file generating apparatus, including:
a document acquisition unit configured to acquire document data to be formed;
the background point code image acquisition unit is used for acquiring a preset background point code image;
an image generating unit configured to generate preset encoded image data based on the document data to be formed and the preset background point code image;
and the output unit is used for executing data output operation based on the preset coding image data to generate a coding file.
With reference to the second aspect, in a possible implementation manner, the background point code image obtaining unit is configured to directly generate the preset background point code image based on a preset rule, or receive the preset background point code image provided from the outside.
With reference to the second aspect, in a possible implementation manner, the system further includes a mode setting unit, configured to acquire preset mode information before the background point code image acquisition unit acquires a preset background point code image, where the acquiring of the preset mode information includes acquiring a preset mode setting instruction, or determining that the preset background point code image exists.
With reference to the second aspect, in a possible implementation manner, the background point code image obtaining unit is configured to obtain a preset background point code image based on user information.
With reference to the second aspect, in a possible implementation manner, the output unit is configured to acquire user information, and perform an output operation based on the user information and the preset encoded image data.
With reference to the second aspect, in a possible implementation manner, the output unit determines the number of users based on the user information, and determines the number of times of the output operation based on the number of users.
With reference to the second aspect, in a possible implementation manner, the image generating unit is configured to determine whether the preset background point code image is a raster image; and if so, generating preset coded image data based on the pixel information corresponding to the to-be-formed document data and the pixel information corresponding to the preset background point code image.
With reference to the second aspect, in a possible implementation manner, the image generating unit is configured to determine whether the preset background point code image is a loss image; and if so, generating preset coded image data based on the document data to be formed and the loss information corresponding to the preset background point code image.
With reference to the second aspect, in a possible implementation manner, the output unit is specifically configured to perform color conversion processing on the to-be-formed document data, so as to set a color conversion target value corresponding to the to-be-formed document data to a first color; performing color conversion processing on the preset background point code image so as to set a color conversion target value corresponding to the document data to be formed to be a second color; and when the color conversion target value corresponding to the to-be-formed document data is set to be a first color and the color conversion target value corresponding to the to-be-formed document data is set to be a second color, printing an output medium obtained by the coded file, wherein the output medium comprises a first part corresponding to the to-be-formed document data and a second part corresponding to the preset background point code image, the color information of the first part is the first color, and the color information of the second part is the second color, and the first color is different from the second color.
In a third aspect, the present application provides a computer-readable storage medium, where the storage medium includes a stored program, and when the program runs, the storage medium controls a device on which the storage medium is located to execute the method for generating an encoded file according to the first aspect.
In a fourth aspect, the present application provides an image forming apparatus, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the encoded file generating method of the first aspect when executing the computer program.
According to the method and the device for generating the coding file, the document data to be formed are acquired, the preset background point code image is acquired, the preset coding image data are generated based on the document data to be formed and the preset background point code image, the data output operation is performed based on the preset coding image data, the coding file is generated, a user can conveniently acquire the electronic file with the background point code for subsequent printing output, and a medium which can be written and identified by an intelligent pen is obtained.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments 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 to obtain other drawings based on these drawings without inventive labor.
Fig. 1 is a schematic flowchart of a method for generating an encoded file according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a method for generating a code file according to another embodiment of the present application;
fig. 3 is a schematic flowchart of a method for generating a code file according to another embodiment of the present application;
FIG. 4 is a schematic timing diagram of a process of applying a method for generating an encoded file to a print scenario according to an embodiment of the present application;
fig. 5 is a schematic view of a program executed by a method for generating a code file applied to a printing scenario according to an embodiment of the present application;
FIG. 6 is a flow chart illustrating processing of a background point code image according to an embodiment of the present application;
fig. 7 is a functional block diagram of an encoding file generating apparatus according to another embodiment of the present application;
fig. 8 is a schematic structural diagram of an image forming apparatus provided in the present application.
Detailed Description
For better understanding of the technical solutions of the present invention, the following detailed descriptions of the embodiments of the present invention are provided with reference to the accompanying drawings.
It should be understood that the described embodiments are only some 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 herein without making any creative effort, shall fall within the protection scope of the present invention.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be understood that the term "and/or" as used herein is merely one type of association that describes an associated object, meaning that three relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter associated objects are in an "or" relationship.
It should be understood that although the terms first, second, third, etc. may be used to describe terminals in embodiments of the present invention, these terminals should not be limited by these terms. These terms are only used to distinguish one terminal from another. For example, a first terminal may also be referred to as a second terminal, and similarly, a second terminal may also be referred to as a first terminal, without departing from the scope of embodiments of the present invention.
The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
Referring to fig. 1, in an embodiment of the present application, a code file generation method is provided, which is applied to an image forming apparatus and/or a computer apparatus installed with a driver corresponding to the image forming apparatus, that is, a main body executing the code file generation method may be the image forming apparatus, or the computer apparatus, or a system composed of the image forming apparatus and the computer apparatus, and is not limited herein. Wherein, the image forming apparatus refers to various apparatuses for executing an image forming job, the image forming job may be at least one of generation, printing, copying, scanning and the like, the image forming apparatus may also be used to receive and transmit image data, and may be, for example, an inkjet printer, a laser printer, an LED (Light Emitting Diode) printer, a copier, a scanner, or a multifunction Peripheral (MFP) that performs the above functions in a single apparatus, the driver corresponding to the image forming apparatus is developed specifically for a graphic device interface based on an operating system, the system is used for converting data to be printed in documents to be printed output by various application programs into binary data which can be interpreted by an image forming device and outputting the binary data to the image forming device.
The method for generating the encoded file in the embodiment includes:
s10, acquiring document data to be formed; specifically, the document data to be formed may be document data from various files, and the formats of the files may include, but are not limited to, pdf, word, and the like. The file content is included in the file, and the file content may include image content and non-image content. The non-image content may include text, table, etc.
In the embodiment of the present application, the manner of obtaining the document data to be formed is not limited, and the document data to be formed sent by other devices connected to the image forming device may be received by the image forming device, where the other devices include the computer device installed with the driver, and are not limited herein; or the image forming apparatus directly accesses to-be-formed document data stored therein to obtain to-be-formed document data, specifically, the to-be-formed document data is stored in a storage unit built in the image forming apparatus, and the image forming apparatus directly accesses to obtain the document data stored in the image forming apparatus based on the received instruction.
Further, the acquiring of the document data to be formed may also be that the computer device directly acquires, through the driver, the document data to be formed stored in the storage unit of the computer device, or may also acquire the document data to be formed by directly communicating with other devices in which the document data to be formed is stored, which is not limited herein.
S20, acquiring a preset background point code image;
the preset background point code image comprises point codes arranged according to a certain rule, and when the intelligent pen point slides over the point codes, the intelligent pen obtains the arrangement information of the point codes which are slid by the pen point, so that the position information combination corresponding to the pen point is determined, and the writing track of the pen point is determined.
In some embodiments, the manner of acquiring the preset background point code image may include: and directly generating a preset background point code image based on a preset rule. That is, when the image forming apparatus or the corresponding computer device determines that the background point code needs to be set for the document data to be formed, the image forming apparatus or the corresponding computer device directly generates a preset background point code image according to a preset rule.
Optionally, the preset rule may include an arrangement rule of the background dot codes and a size rule of the background dot codes. When the document data to be formed needs to be provided with the background point codes, the image forming device or the corresponding computer equipment can generate the background point code image according to the arrangement rule of the background point codes and/or the size rule of the background point codes.
Optionally, the preset rule may further include: the arrangement and/or dimensional rules of the background dot codes are associated with the type of document to be formed into document data, the size of paper used in image formation, and printing parameters such as a margin device. When the document data to be formed needs to be provided with the background point codes, the image forming apparatus or the corresponding computer device may determine the arrangement rule of the background point codes and/or the size of the background point codes matched with the document data to be formed currently according to the association relationship to generate the corresponding background point code image.
Optionally, the preset rule may further include: and (4) association rules of the background point codes and the user information. When the document data to be formed needs to be provided with the background point codes, the image forming apparatus or the corresponding computer device may determine the arrangement and/or the size rule of the background point codes matching with the user information to generate the corresponding background point code image.
In some embodiments, the manner of obtaining the preset background point code image may further include: and receiving an externally provided preset background point code image.
Alternatively, the image forming apparatus or the corresponding computer device may be provided with a point code folder for storing a preset background point code image from an external device. Alternatively, the image forming apparatus or the corresponding computer device may obtain the point code file from a usb disk or a hard disk. Alternatively, the image forming apparatus or the corresponding computer device may acquire the point code file from a terminal device having a connection relationship. Wherein the terminal device having a connection relationship with the image forming apparatus or the corresponding computer device may include: a terminal device that establishes physical connection with the image forming apparatus or a corresponding computer device; or, a terminal device that establishes wireless connection with the image forming apparatus or a corresponding computer device; alternatively, a terminal device connected to the same local area network as the image forming apparatus or the corresponding computer device.
Alternatively, when the background dot code needs to be set for document data to be formed, the image forming apparatus or the corresponding computer device may acquire a preset background dot code image from the dot code folder. Of course, when the image forming apparatus or the corresponding computer device acquires the preset background dot code image in the dot code folder, the association relationship between the printing parameters of the document data to be formed and the arrangement and/or size rules of the background dot codes and/or the association rules between the user information of the document data to be formed and the background dot codes may be further combined to acquire the preset background dot code image matched with the document data to be formed from the dot code folder. In one example, an image forming apparatus or a corresponding computer device first determines user information of document data to be formed, and then acquires a background point code image matching the user information from a point code file.
In some embodiments, the user information may include: document name, document signature, document author, device information indicating a terminal device that prints the document data to be formed, or user name bound to the terminal device. For example, when the document name of the document data to be formed contains "three by three", the background point code image matching "three by three" may be determined as the target background point code image. Alternatively, when it is instructed that the terminal device to print document data to be formed includes "computer of lie four", the background dot code image matching with "lie four" may be determined as the target background dot code image. Based on the mode, different background point codes can be set for the document data to be formed of different users according to the personalized requirements of the users. In some embodiments, before acquiring the document data to be formed and the preset background point code image, an embodiment of the present invention further includes: acquiring preset mode information, and determining that the background point code needs to be set for the corresponding document data to be formed according to the preset mode information. Optionally, the obtaining of the preset mode information may include obtaining a preset mode setting instruction, or determining that a preset background point code image exists. When a preset mode setting instruction is acquired or a preset background point code image is determined to exist, it is determined that a background point code needs to be set for corresponding document data to be formed.
In some embodiments, obtaining the preset mode setting instruction may include: and acquiring the preset mode setting instruction according to the setting operation of the user on the image forming device. For example, when a user issues a print job of document data to be formed through a terminal device, a prompt message of "whether to set a background dot code" may be displayed on the image forming device, and the preset mode setting instruction is acquired through a confirmation operation of the user on the relevant prompt. Alternatively, the image forming apparatus may integrate operation options, and the user may select the operation options according to the image forming apparatus. When the image forming apparatus sets: when the operation option of the background point code is set for the printed document, the image forming apparatus sets the background point code for all the received document data to be formed.
In some embodiments, the image forming apparatus may further acquire a preset mode setting instruction according to a terminal apparatus that provides document data to be formed. Specifically, when a user issues a print instruction of document data to be formed through a terminal device, the print instruction may include the preset mode setting instruction. Optionally, after the user issues the print instruction of the document data to be formed through the terminal device, before the document data to be formed is printed, the user may also issue the preset mode setting instruction through the terminal device.
In some embodiments, the obtaining the preset mode information may further include: and judging that the document data to be formed is of a preset document type or contains preset keywords. And when the document data to be formed is of a preset document type and/or contains preset keywords, determining that the background point codes are required to be set for the corresponding document data to be formed. For example, when the document data to be formed is of a word document type, or when the document data to be formed contains a "test paper" keyword, it is determined that the background dot code needs to be set to the corresponding document data to be formed.
S30, generating preset encoded image data based on the document data to be formed and the preset background point code image;
in some embodiments, after acquiring the document data to be formed and the preset background point code image, the preset background point code image may be set to a background layer of the document data to be formed to generate the preset encoded image data.
In some embodiments, the preset background point code image may include a raster image or a vector image. When the preset encoded image data is generated, it may be determined whether the preset background point code image is a raster image. When the preset background point code image is a raster image, preset encoded image data can be generated based on pixel information corresponding to document data to be formed and pixel information corresponding to the preset background point code image.
Specifically, when the preset background dot code image is a raster image, one implementation may use the preset background dot code image as a background layer, so as to perform pixel operation with the document data to be formed, so as to prevent the document data to be formed from covering the background dot code image.
Optionally, the image forming apparatus may perform pixel operation on the preset background point code image and the document data to be formed through a rendering function (bitblt), so as to realize transparentization of the preset background point code image or the document data to be formed, and enable the document data to be formed and the background point code image not to be covered by each other. Note that when the image accuracy requirement is high when adding the background point code to document data to be formed, it is preferable not to perform processing such as stretching on the background point code.
In some embodiments, when the background dot code image is preset as a raster image, the bit depth bit number corresponding to the raster image may also be obtained. And judging whether the bit depth bit number corresponding to the raster image is greater than 1, and if the bit number is greater than 1, performing binarization processing on the preset background point code image. And then, generating preset encoded image data according to the preset background point code image subjected to binarization processing and the document data to be formed, and reducing the data volume of the preset encoded image data so as to reduce the size of the generated encoded file.
In some embodiments, when generating the preset encoded image data, it may be determined whether the preset background point code image is a lost image. If the preset background point code image is a loss image, preset encoded image data may be generated based on the document data to be formed and the loss information corresponding to the preset background point code image. Optionally, when the preset background point code image is a vector image, the vector coordinates of each background point code in the vector image may be acquired. The background dot code may then be formed in the document data to be formed according to the vector coordinates of the background dot code. Specifically, the background point code may be drawn on the surface of the document data to be formed by using a StrokePath tool and a brush tool according to the vector coordinates of the background point code.
S40, data output operation is performed based on the preset encoded image data, and an encoded file is generated.
After the preset encoded image data is acquired, the image forming device or the computer device directly generates an encoded file based on the preset encoded image data, the encoded file may directly display a display unit of the image forming device or the computer device, or the encoded file may directly be stored in a memory of the image forming device or the computer device, or the encoded file may also be subsequently directly exported from the image forming device or the computer device in a file manner.
According to the code file generation method provided by the embodiment of the application, the document data to be formed and the preset background point code image are obtained, the preset code image data are generated based on the document data to be formed and the preset background point code image, the data output operation is performed based on the preset code image data, and the code file is generated.
Before generating the encoded file, the embodiment of the present application further includes performing color processing on the document data to be formed and the preset background point code image by using a color conversion unit provided in a driving unit installed in the image forming apparatus or the computer device, so that color information of a portion corresponding to the document data to be formed in an output medium obtained by printing the encoded file by using the image forming apparatus is different from a color of a portion corresponding to the preset background point code image, specifically, when the color conversion unit receives the document data to be formed, the color conversion unit sets preset first information indicating that the processing of the document data to be formed is currently performed, and changes a color conversion target color into the first color; when the color conversion unit receives the preset background point code image, the preset mark information is set as preset second information, which indicates that the preset background point code image is currently processed, and the color conversion target color is changed into a second color; and respectively processing the document data to be formed and the preset background point code image according to the determined color conversion target color.
Specifically, when the driver is of an RGB color space type such as PCL, the driver converts the received document data to be formed and the preset background dot code image into CMYK color space data, so that the colors corresponding to the document data and the preset background dot code image in an output medium obtained by converting the CMYK color space data by image forming printing are different.
When the driver is of a CMYK color space type such as PS, the driver performs color conversion on the received document data to be formed and the preset background dot code image, so that the output medium obtained by printing the converted data by the image forming device has different corresponding colors.
Specifically, taking the first color as cyan as an example, when the driver is of an RGB color space type such as PCL, the RGB value of one pixel in the document data to be formed received by the driver is (100, 150, 200), the RGB value of the converted pixel is (255, 255, 140), and then the CMYK value obtained by spatially converting the RGB value obtained by conversion into CMYK is (45, 0, 0, 0), so that the portion of the output piece corresponding to the document data to be formed, which is obtained by the image forming apparatus performing the output operation, is cyan.
Specifically, taking the second color as black as an example, when the driver is of an RGB color space type such as PCL, the RGB value of one pixel in the preset background dot code image received by the driver is (255, 255, 255), and the CMYK value obtained by spatial conversion of CMYK obtained by the conversion is (0, 0, 0, 100), so that the output piece and the corresponding part of the preset background dot code image obtained by the image forming apparatus performing the output operation are black.
Therefore, the coded file generated by the image forming device or the computer equipment is printed and output subsequently, a medium which can be written and identified by the intelligent pen is obtained, and convenience is brought to users.
The flow and advantages of the above-described method are described in some more detailed embodiments of the present application.
Fig. 2 shows a method for generating a code file according to the present application.
The method for generating the code file of the embodiment comprises the following steps:
s21, document data to be formed is acquired.
Specifically, the document data to be formed may be document data from various files, and the formats of the files may include, but are not limited to, pdf, word, and the like. The file content is included in the file, and the file content may include image content and non-image content. The non-image content may include text, table, etc.
And S22, generating a preset background point code image based on a preset rule.
Specifically, in the present embodiment, the preset background dot code image is generated according to a preset rule, and is used for fusing with the document data to be formed.
The preset rule is used for customizing a generation mode of the preset background point code image, and for example, the preset background point code image can be corresponding to user information. The preset rule may further specify a correspondence relationship between contents of the preset background point code image and page numbers of the document, and specify background point code information at different pixel positions of different page numbers. The preset rule of the background point code image is customized, the size and the color of the pixel area of the background point code can also be specified, and the color of the background point code can be generally specified as black, does not contain other color components and is distinguished from the color of the document content.
S23, preset encoded image data is formed based on the document data to be formed and the preset background point code image.
Specifically, the document data to be formed and the preset background point code image are fused to form preset encoded image data. In the fusion process, the preset background point code image can be set to be a preset color, and the preset background point code image can also be set to be a certain transparency, so that the document to be formed and the background point code can be distinguished in the preset coded image data.
S24, an output operation is performed based on the preset encoded image data.
Specifically, after the preset encoded image data is generated, a data output operation may be performed. For example, a coded file can be generated for the user to perform subsequent printing and copying operations. The data may also be directly output for an image forming apparatus such as a printer to execute a print job.
As shown in fig. 3, a method for generating a code file according to another embodiment is provided.
The method for generating the coding file comprises the following steps:
and S31, acquiring a preset mode setting instruction.
Specifically, in order to facilitate the user to acquire the document with the background point code or to facilitate the user to perform image forming operation on the document with the background point code based on the image forming apparatus, the embodiment sets a preset mode to facilitate the user to perform operation. The preset mode may be, for example, a "background dot code file forming mode" for fusing a document and a background dot code and saving the fused document and the background dot code as a document with a background dot code, or a "dot code printing mode" or the like for directly performing a print job based on a document content and a preset background dot code image.
The mode setting instruction in this embodiment may be an operation performed by a user on an operation panel of the image forming apparatus, or an operation performed by a user on a computer apparatus in which a driver of the image forming apparatus is installed, and the computer apparatus is communicatively connected to the image forming apparatus and configured to transmit the mode setting instruction to the image forming apparatus.
When a mode setting instruction of a user operating on a panel or a host of the image forming apparatus is received, the user is also required to specify a corresponding user, a document to be formed, a preset background dot code image, and the like.
S32, document data to be formed is acquired.
Specifically, the document data to be formed is data in a document specified by a user.
The document data to be formed may be document data from various files, and the formats of the above-mentioned files may include, but are not limited to, pdf, word, and the like. The file content is included in the file, and the file content may include image content and non-image content. The non-image content may include text, table, etc. In order to enable the original file to finally form a document with background point codes, the content of the original file needs to be analyzed, the image content and the non-image content in the original file are extracted, and the content is divided into different objects to be fused with the preset background point code image.
And S33, acquiring the preset background point code image based on the user information.
Specifically, a corresponding background point code image may be specified for a to-be-formed document corresponding to at least one user. Different users have different user names and file storage addresses, preset background point code images corresponding to the users are stored in the space of the file storage addresses, and the preset background point code images can be a plurality of images and are used for corresponding to different page numbers of the document to be formed.
In the embodiment of the present application, the preset background point code image may be an image of two forms. Specifically, the method includes a raster image and a vector image.
In this embodiment, after obtaining the preset background point code image corresponding to the user information based on the user information, a determination is further performed to determine whether the preset background point code image is a raster image, if so, step S35 is performed, or a determination step is performed to determine whether the preset background point code image is a vector image, and if so, step S35 is performed.
And S34, the preset background point code image is a raster image, and preset coding image data is generated based on the pixel information corresponding to the document data to be formed and the pixel information corresponding to the preset background point code image.
And S35, the preset background point code image is a vector image, and preset coding image data is generated based on the document data to be formed and the vector information corresponding to the preset background point code image.
The manner of generating the preset encoded image data in S34 and S35 is the same as that described above, and is not limited herein.
S36, data output operation is performed based on the user information and the preset encoded image data.
Specifically, the corresponding data operation is executed according to the user information. For example, the number of users may be determined based on the user information, and the number of output operations may be determined based on the number of users. In the embodiment of the application, the output operation can be performed on the preset encoded image data corresponding to different users, and the output operation is output to the folders corresponding to the user names.
The method for generating the coding file in the embodiment of the application can be applied to the image forming operation process performed by connecting the host computer and the image forming equipment. Image forming apparatuses include, but are not limited to, printers, copiers, facsimile machines, scanners, or all-in-one machines that integrate printing, copying, faxing, scanning, etc. functions to print images or characters on an image forming medium.
Specifically, the image forming job described above in the embodiment of the present application may be exemplified by, but not limited to, a print job. The host computer is provided with a driving program for image formation, and a main control process is operated in the host computer and is used for monitoring the whole printing operation. In an application scenario of the present application, the image forming apparatus is configured to print a content document with background dot codes, where the content of the document may include characters, images, and tables, or may not include any content and is a blank document.
In the image forming apparatus in the embodiment of the application, during a job process, a master process controls the entire printing process of the apparatus, for example, obtains content of a printed document, and sends the printed content to a print driver, and the print driver is responsible for converting the printed content into print data and sending the print data to a print engine, so as to print out a medium with a background dot code. In other embodiments of the present application, the host process may also be executed in other computer devices than the image forming device, such as a PC or the like that performs network communication with a printer.
As shown in fig. 4, the master process is running, and in step 21, dot code mode printing is first selected by the user. In the embodiment of the application, the user can select the dot code printing mode in a click or double-click mode or the like on the user interface, so that the printed medium contains the specially encoded background dot code. The user can also select a non-point code printing mode, and the printed medium only contains document contents and does not have background point codes, so that redundant description is omitted.
The print driver obtains the print instruction of the dot code mode sent by the main control process, and executes step 22, i.e. creating a print canvas.
In step 23, the document to be printed is acquired by the host process according to the operation of the user. And step 24, acquiring the background point code corresponding to the printed document by the main control process according to the specified operation of the user. Alternatively, steps 23 and 24 may be performed before step 21.
Specifically, the printed document may be a PDF, WORD, or other type of file, and may include, but is not limited to, contents such as images, text, tables, and the like, and at least includes one page of contents.
According to the preset setting, the document to be printed corresponds to different background point code images, furthermore, the contents of different pages of the document can also correspond to different background point code images, and the different background point code images can be set to different names and stored in different paths, for example, stored in a folder corresponding to the document name.
Therefore, the main control process can acquire the original document content to be printed and the corresponding background point code image according to the operation of the user and send the original document content and the corresponding background point code image to the printing driver.
After the original document content and the background dot code image are obtained, the print driver may fuse the image to the print canvas to generate a preset encoded image, as in step 25 of fig. 4. The preset encoded image may generate an encoded file to be transmitted to the print engine as print data.
The driver further sends the print data to the print engine for the print engine to execute the print job.
In some embodiments of the present application, in a process of fusing an original document content and a background dot code image to a printing canvas, if the original document content includes an image and the background dot code image is also an image, when the original document content and the background dot code image are directly copied to the printing canvas in a color image manner, a processing amount of data is increased, so that a generation speed of print data is reduced, and a printing speed is also reduced, and in an actual measurement process, an image forming apparatus with a general printing speed of 33ppm is reduced to 10 ppm. Therefore, further optimization of the present application is necessary.
In the preferred embodiment of the present application, the background dot code image is set to a black-and-white image, so that printing with a code in the image forming apparatus is only required to be performed in black (K). And the document content preferably does not contain black, so that the infrared identification device of the intelligent pen can identify the background point code at different induction frequencies on a printed medium without being interfered by the document content. Therefore, the background point code image is set as a black-and-white image, so that a compressed space can be provided, and the data processing amount is reduced. In the generation process of the printing data, only image elements in document elements need to be distinguished from the background point code image, binarization processing is carried out on the background point code image so as to reduce the size of the background point code image, and the processed background point code image is fused into a printing canvas.
In embodiments of the present application, the background point code image may be distinguished from the image elements in the document in a variety of ways. For example, the host process copies the background dot code image through a preset program and copies it into the print canvas. And the master control process analyzes elements (including images, characters and the like) in the document content through other programs except the preset program, and copies the elements into the printing canvas in a regional mode through the programs except the preset program. When the point code image is copied, the preset program sends a message to the print driver, so that the print driver can distinguish the background point code image from the content image of the original document.
As shown in FIG. 5, in one embodiment, the host process copies the background point code image through a pre-set UI program for a print Driver (Driver) to distinguish the background point code image from other images. The drvsecape function and the DrvBitBlt function run in parallel in the print Driver.
Specifically, in fig. 5, the UI program starts executing step 31 to start running. At which point the UI program sends a message to Driver.
In step 32, the drvsecape function is in the message listening process, and when a message executed by the UI program is received, step 33 is executed.
The DrvEscape function sets the global flag, step 33, indicating that the background point code image is being copied into the print canvas at this time.
At step 34, the UI program calls the StretchDIBits function to draw the print canvas.
And step 35, monitoring the running of the StretchDIBits function by the DrvBitBlt function, and starting working.
In step 36, the DrvBitBlt function first determines whether the global flag is set. If yes, go to step 37, otherwise go to step 38.
At step 37, the DrvBitBlt function performs image compression and copies to the print canvas.
The DrvBitBlt function copies the image directly into the print canvas, step 38.
In step 39, the operation of the DrvBitBlt function is finished, and the StretchDIBits function is also stopped.
In step 310, the UI program sends a message to Driver to stop running, and the drvsecape program resets the global flag.
Therefore, in the embodiment, the background point code image is copied through the preset UI program for distinguishing by the print driver, and binarization processing is performed on the background point code, so that the data processing amount is reduced, and the print driver does not perform additional processing on images other than the background point code image, so that the accuracy of the original document content is ensured.
In the embodiment of the present application, the print driver performs binarization processing on the background dot code image.
In an embodiment of the present application, the binarizing processing on the background point code image may include: and compressing the image bit depth of the background point code image.
As shown in fig. 6, in an embodiment of the present application, a processing flow for performing binarization processing on a background point code image is provided, and includes:
and step 41, acquiring SURFOBJ parameters of the image objects of the background point code images.
Specifically, the main control process sends the image object SURFOBJ parameter of the background dot code image to the print driver. The print driver acquires the parameters, and retains the original SURFOBJ parameters.
Step 42, determining the image bit depth of the background point code image.
Specifically, in one embodiment, the image bit depth may be a variety of bit depths in the RGB color space, which in this example may be illustrated as 24 bits, i.e., R, G, B with 8 bits of binary numbers in each color channel.
And 43, converting the color image corresponding to the background point code image into a gray image when the bit number of the image bit depth of the background point code image is greater than 1.
Specifically, taking a 24-bit color image as an example, the 24-bit color image can be converted into an 8-bit grayscale image.
Step 44, converting the gray scale image into a binary image.
Specifically, the 8-bit grayscale image is converted into a 1-bit binary image, which can be performed by, but not limited to, using a Halftone algorithm.
The original SURFOBJ parameters of the image are restored, step 45.
Specifically, when the image is binarized, the SURFOBJ parameter of the image object will change, and in the embodiment of the present application, after the print driver binarizes the background point code image, the original SURFOBJ parameter of the image object is restored and returned to the master control process, so that the efficiency of the master control process for continuing further execution is ensured.
The printing driver obtains the image surface parameters of the background point code image sent by the master control process, which correspond to the printing canvas, and keeps the image surface parameters unchanged after the binaryzation processing is carried out on the background point code image, thereby ensuring that the master control process avoids the occurrence of program errors in the process of monitoring the printing operation and ensuring the program operation efficiency.
An embodiment of a second aspect of the present application provides an encoding file generating apparatus. The code file generating means may be implemented in hardware or software with the image forming apparatus or a computer apparatus in which an image forming apparatus driver is installed.
As shown in fig. 7, an embodiment of the present application provides an encoding file generating apparatus.
Specifically, the encoding file generating apparatus 500 includes:
a document acquiring unit 501 for acquiring document data to be formed;
a background point code image obtaining unit 502, configured to obtain a preset background point code image;
an image generating unit 503 configured to generate preset encoded image data based on the document data to be formed and the preset background dot code image;
an output unit 504, configured to perform a data output operation based on the preset encoded image data, and generate an encoded file.
The above-described code file generation apparatus is explained below in some embodiments of the present application.
A document acquiring unit 501 for acquiring document data to be formed.
Specifically, the document data to be formed may be document data from various files, and the formats of the files may include, but are not limited to, pdf, word, and the like. The file content is included in the file, and the file content may include image content and non-image content. The non-image content may include text, table, etc.
In the embodiment of the present application, the manner of obtaining the document data to be formed is not limited, and the document data to be formed sent by other devices connected to the image forming device may be received by the image forming device, where the other devices include the computer device installed with the driver, and are not limited herein; or the image forming apparatus directly accesses to-be-formed document data stored therein to acquire the to-be-formed document data, specifically, the to-be-formed document data is stored in a storage unit built in the image forming apparatus, and the image forming apparatus directly accesses to acquire the document data stored in the image forming apparatus based on the received instruction.
Further, the acquiring of the document data to be formed may also be that the computer device directly acquires, through the driver, the document data to be formed stored in the storage unit of the computer device, or may also acquire the document data to be formed by directly communicating with other devices in which the document data to be formed is stored, which is not limited herein.
A background point code image obtaining unit 502, configured to obtain a preset background point code image.
Specifically, the preset background point code image comprises point codes arranged according to a certain rule, and when the intelligent pen point slides over the point codes, the intelligent pen obtains the arrangement information of the point codes which are slid by the pen point, so that the position information combination corresponding to the pen point is determined, and the writing track of the pen point is determined.
In some embodiments, the manner of obtaining the preset background point code image may include: and directly generating a preset background point code image based on a preset rule. That is, when the image forming apparatus or the corresponding computer device determines that the document data to be formed needs to be provided with the background point code, the image forming apparatus or the corresponding computer device directly generates the preset background point code image according to the preset rule.
Optionally, the preset rule may include an arrangement rule of the background dot codes and a size rule of the background dot codes. When the document data to be formed needs to be provided with the background point codes, the image forming device or the corresponding computer equipment can generate the background point code image according to the arrangement rule of the background point codes and/or the size rule of the background point codes.
Optionally, the preset rule may further include: the arrangement and/or dimensional rules of the background dot codes are associated with the type of document to be formed into document data, the size of paper used in image formation, and printing parameters such as a margin device. When the document data to be formed needs to be provided with the background point codes, the image forming apparatus or the corresponding computer device may determine the arrangement rule of the background point codes and/or the size of the background point codes matched with the document data to be formed currently according to the association relationship to generate the corresponding background point code image.
Optionally, the preset rule may further include: and (4) association rules of the background point codes and the user information. When the document data to be formed needs to be provided with the background point codes, the image forming apparatus or the corresponding computer device may determine the arrangement and/or the size rule of the background point codes matching with the user information to generate the corresponding background point code image.
In some embodiments, the manner of obtaining the preset background point code image may further include: and receiving an externally provided preset background point code image.
Alternatively, the image forming apparatus or the corresponding computer device may set a point code folder for storing a preset background point code image from an external device. Alternatively, the image forming apparatus or the corresponding computer device may obtain the point code file from a usb disk or a hard disk. Alternatively, the image forming apparatus or the corresponding computer device may acquire the point code file from a terminal device having a connection relationship. Wherein the terminal device having a connection relationship with the image forming apparatus or the corresponding computer device may include: a terminal device that establishes physical connection with the image forming apparatus or a corresponding computer device; or, a terminal device that establishes wireless connection with the image forming apparatus or a corresponding computer device; alternatively, a terminal device connected to the same local area network as the image forming apparatus or the corresponding computer device.
Alternatively, when the background dot code needs to be set for document data to be formed, the image forming apparatus or the corresponding computer device may acquire a preset background dot code image from the dot code folder. Of course, when the image forming apparatus or the corresponding computer device acquires the preset background dot code image in the dot code folder, the association relationship between the printing parameters of the document data to be formed and the arrangement and/or size rules of the background dot codes and/or the association rules between the user information of the document data to be formed and the background dot codes may be further combined to acquire the preset background dot code image matching the document data to be formed from the dot code folder. In one example, an image forming apparatus or a corresponding computer device first determines user information of document data to be formed, and then acquires a background point code image matching the user information from a point code file.
In some embodiments, the user information may include: document name, document signature, document author, device information indicating a terminal device that prints the document data to be formed, or user name bound to the terminal device. For example, when the document name of the document data to be formed contains "three by three", the background point code image matching "three by three" may be determined as the target background point code image. Alternatively, when it is instructed that the terminal device to print document data to be formed includes "computer of lie four", the background dot code image matching with "lie four" may be determined as the target background dot code image. Based on the mode, different background point codes can be set for the document data to be formed of different users according to the personalized requirements of the users. In some embodiments, before acquiring the document data to be formed and the preset background point code image, an embodiment of the present invention further includes: acquiring preset mode information, and determining that a background point code needs to be set for corresponding document data to be formed according to the preset mode information. Optionally, the obtaining of the preset mode information may include obtaining a preset mode setting instruction, or determining that a preset background point code image exists. And when a preset mode setting instruction is acquired or a preset background point code image is determined to exist, determining that a background point code needs to be set for the corresponding document data to be formed.
In some embodiments, obtaining the preset mode setting instruction may include: and acquiring the preset mode setting instruction according to the setting operation of the user on the image forming device. For example, when a user issues a print job of document data to be formed through a terminal device, a prompt message of "whether to set a background dot code" may be displayed on the image forming device, and the preset mode setting instruction is acquired through a confirmation operation of the user on the relevant prompt. Alternatively, the image forming apparatus may integrate operation options, and the user may select the operation options according to the image forming apparatus. When the image forming apparatus sets: when the operation option of the background point code is set for the printing document, the image forming apparatus sets the background point code for all the received document data to be formed.
In some embodiments, the image forming apparatus may further acquire a preset mode setting instruction according to a terminal apparatus that provides document data to be formed. Specifically, when the user issues a print instruction of document data to be formed through the terminal device, the print instruction may include the preset mode setting instruction. Optionally, after the user issues the print instruction of the document data to be formed through the terminal device, before the document data to be formed is printed, the user may also issue the preset mode setting instruction through the terminal device.
In some embodiments, the obtaining the preset mode information may further include: and judging that the document data to be formed is of a preset document type or contains preset keywords. And when the document data to be formed is of a preset document type and/or contains preset keywords, determining that the background point codes are required to be set for the corresponding document data to be formed. For example, when the document data to be formed is of a word document type, or when the document data to be formed contains a "test paper" keyword, it is determined that the background dot code needs to be set to the corresponding document data to be formed.
An image generating unit 503 for generating preset encoded image data based on the document data to be formed and the preset background point code image.
Specifically, in some embodiments, after acquiring the document data to be formed and the preset background point code image, the preset background point code image may be set in a background layer of the document data to be formed to generate the preset encoded image data.
In some embodiments, the preset background point code image may include a raster image or a vector image. When the preset encoded image data is generated, it may be determined whether the preset background point code image is a raster image. When the preset background point code image is a raster image, the preset encoded image data can be generated based on the pixel information corresponding to the document data to be formed and the pixel information corresponding to the preset background point code image.
Specifically, when the preset background dot code image is a raster image, one implementation may use the preset background dot code image as a background layer, so as to perform pixel operation with the document data to be formed, so as to prevent the document data to be formed from covering the background dot code image.
Optionally, the image forming apparatus may perform pixel operation on the preset background point code image and the document data to be formed through a rendering function (bitblt), so as to realize transparentization of the preset background point code image or the document data to be formed, and enable the document data to be formed and the background point code image not to be covered by each other. Note that when the image accuracy requirement when adding the background point code to the document data to be formed is high, it is preferable not to perform processing such as stretching on the background point code.
In some embodiments, when the background dot code image is preset as a raster image, the bit depth bit number corresponding to the raster image may also be obtained. And judging whether the bit depth bit number corresponding to the raster image is greater than 1, and if the bit number is greater than 1, performing binarization processing on the preset background point code image. And then, generating preset encoded image data according to the preset background point code image subjected to binarization processing and the document data to be formed, and reducing the data volume of the preset encoded image data so as to reduce the size of the generated encoded file.
In some embodiments, when generating the preset encoded image data, it may be determined whether the preset background point code image is a lost image. If the preset background point code image is a loss image, preset encoded image data may be generated based on the document data to be formed and the loss information corresponding to the preset background point code image. Optionally, when the preset background point code image is a vector image, the vector coordinates of each background point code in the vector image may be acquired. The background dot code may then be formed in the document data to be formed according to the vector coordinates of the background dot code. Specifically, the background point code may be drawn on the surface of the document data to be formed by using a StrokePath tool and a brush tool according to the vector coordinates of the background point code.
An output unit 504 for performing a data output operation based on preset encoded image data to generate an encoded file.
The output unit 504 is specifically configured to perform color conversion processing on the document data to be formed, so as to set a color conversion target value corresponding to the document data to be formed as a first color; performing color conversion processing on the preset background point code image so as to set a color conversion target value corresponding to the document data to be formed to a second color; and when the color conversion target value corresponding to the document data to be formed is set to be a first color and the color conversion target value corresponding to the document data to be formed is set to be a second color, printing an output medium obtained by the coded file, wherein the output medium comprises a first part corresponding to the document data to be formed and a second part corresponding to a preset background point code image, the color information of the first part is the first color, and the color information of the second part is the second color, and the first color is different from the second color. Specifically, after the preset encoded image data is acquired, the image forming device or the computer device directly generates the encoded file based on the preset encoded image data, the encoded file may directly display a display unit of the image forming device or the computer device, or the encoded file may directly be stored in a memory of the image forming device or the computer device, and of course, the encoded file may also be subsequently directly exported from the image forming device or the computer device in a file manner.
The code file generation device provided by the embodiment of the application acquires the document data to be formed and the preset background point code image, further generates the preset code image data based on the document data to be formed and the preset background point code image, and then performs the data output operation based on the preset code image data to generate the code file, so that a user can conveniently acquire the electronic file with the background point code for subsequent printing output, and a medium which can be written and identified by the smart pen is obtained.
In another aspect of the present application, an embodiment of the present application further provides a computer-readable storage medium, where the storage medium includes a stored program, and when the program runs, the apparatus on which the storage medium is located is controlled to execute the above-mentioned code file generation method.
In a fourth aspect of the present application, embodiments of the present application further provide an image forming apparatus, which includes, but is not limited to, a printer, a copier, a facsimile machine, a scanner, or a multifunction machine integrating printing, copying, faxing, scanning, and other functions into a whole, and which is capable of printing images or characters on an image forming medium.
Fig. 8 is a schematic diagram of an image forming apparatus provided in an embodiment of the present application. As shown in fig. 8, the image forming apparatus 600 of this embodiment includes: the processor 601, the memory 602, and the computer program 603 stored in the memory and capable of running on the processor 601, wherein the processor 601 implements the method for generating print data in the embodiment when executing the computer program 603, and is not described herein again to avoid repetition. Alternatively, the computer program is executed by the processor 601 to implement the functions of each model/unit in the image forming apparatus in the embodiments, which are not repeated herein to avoid redundancy.
The image forming apparatus 600 may be a computing apparatus such as a desktop computer, a notebook computer, a palm computer, and a cloud server. The computer device may include, but is not limited to, a processor 601, a memory 602. Those skilled in the art will appreciate that fig. 8 is merely an example of an image forming apparatus 600 and is not intended to limit the image forming apparatus 600 and may include more or less components than those shown, or some of the components may be combined, or different components, e.g., a computer device may also include an input-output device, a network access device, a bus, etc.
The Processor 601 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 602 may be an internal storage unit of the image forming apparatus 600, such as a hard disk or a memory of the image forming apparatus 600. The memory 602 may also be an external storage device of the image forming apparatus 600, such as a plug-in hard disk provided on the image forming apparatus 600, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like. Further, the memory 602 may also include both an internal storage unit and an external storage device of the image forming apparatus 600. The memory 602 is used to store computer programs and other programs and data required by the image forming apparatus. The memory 602 may also be used to temporarily store data that has been output or is to be output.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the above-described division of units is merely one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) or a Processor (Processor) to execute some steps of the above methods according to various embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and should not be taken as limiting the scope of the present invention, which is intended to cover any modifications, equivalents, improvements, etc. within the spirit and scope of the present invention.

Claims (16)

1. A code file generation method applied to an image forming apparatus and/or a computer apparatus having a driver corresponding to the image forming apparatus installed therein, the method comprising:
acquiring document data to be formed;
acquiring a preset background point code image;
generating preset coding image data based on the document data to be formed and the preset background point code image;
and executing data output operation based on the preset coding image data to generate a coding file.
2. The method according to claim 1, wherein the obtaining of the preset background point code image comprises: and acquiring a preset background point code image based on the user information.
3. The method of claim 1, wherein the performing an output operation based on the pre-set encoded image data comprises: and acquiring user information, and executing output operation based on the user information and the preset coding image data.
4. The method according to claim 3, wherein the performing an output operation based on the user information and the preset encoded image data comprises:
determining the number of users based on the user information;
and determining the number of times of the output operation based on the number of the users.
5. The method according to claim 1, wherein the generating of preset encoded image data based on the document data to be formed and the preset background point code image comprises:
judging whether the preset background point code image is a raster image or not;
and if so, generating preset coded image data based on the pixel information corresponding to the document data to be formed and the pixel information corresponding to the preset background point code image.
6. The method according to claim 1, wherein the generating of preset encoded image data based on the document data to be formed and the preset background point code image comprises:
judging whether the preset background point code image is a loss image or not;
and if so, generating preset coded image data based on the document data to be formed and the loss information corresponding to the preset background point code image.
7. The method according to claim 1, wherein before the performing the data output operation based on the preset encoded image data to generate the encoded file, the method further comprises:
performing color conversion processing on the document data to be formed so as to set a color conversion target value corresponding to the document data to be formed to a first color;
performing color conversion processing on the preset background point code image so as to set a color conversion target value corresponding to the document data to be formed to be a second color;
and when the color conversion target value corresponding to the to-be-formed document data is set to be a first color and the color conversion target value corresponding to the to-be-formed document data is set to be a second color, printing an output medium obtained by the encoded file, wherein the output medium comprises a first part corresponding to the to-be-formed document data and a second part corresponding to the preset background point code image, the color information of the first part is the first color, and the color information of the second part is the second color, and the first color is different from the second color.
8. An encoded file generating apparatus, comprising:
a document acquisition unit configured to acquire document data to be formed;
the background point code image acquisition unit is used for acquiring a preset background point code image;
an image generating unit configured to generate preset encoded image data based on the document data to be formed and the preset background point code image;
and the output unit is used for executing data output operation based on the preset coding image data to generate a coding file.
9. The apparatus according to claim 8, wherein the background dot code image obtaining unit is configured to obtain a preset background dot code image based on user information.
10. The apparatus according to claim 8, wherein the output unit is configured to acquire user information and perform an output operation based on the user information and the preset encoded image data.
11. The code file generating apparatus according to claim 10, wherein the output unit determines the number of users based on the user information, and determines the number of output operations based on the number of users.
12. The apparatus according to claim 8, wherein the image generating unit is configured to determine whether the preset background dot code image is a raster image; and if so, generating preset coded image data based on the pixel information corresponding to the to-be-formed document data and the pixel information corresponding to the preset background point code image.
13. The encoding file generating apparatus according to claim 8, wherein the image generating unit is configured to determine whether the preset background point code image is a loss image; and if so, generating preset coded image data based on the document data to be formed and the loss information corresponding to the preset background point code image.
14. The encoded file generating apparatus according to claim 8, wherein the output unit is configured to perform color conversion processing on the document data to be formed, thereby setting a color conversion target value corresponding to the document data to be formed to a first color; performing color conversion processing on the preset background point code image so as to set a color conversion target value corresponding to the document data to be formed to be a second color; and when the color conversion target value corresponding to the to-be-formed document data is set to be a first color and the color conversion target value corresponding to the to-be-formed document data is set to be a second color, printing an output medium obtained by the coded file, wherein the output medium comprises a first part corresponding to the to-be-formed document data and a second part corresponding to the preset background point code image, the color information of the first part is the first color, and the color information of the second part is the second color, and the first color is different from the second color.
15. A computer-readable storage medium, characterized in that the storage medium includes a stored program, and when the program runs, the storage medium is controlled by a device to execute the code file generation method according to any one of claims 1 to 7.
16. An image forming apparatus comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, the processor implementing the code file generation method of any one of claims 1 to 7 when executing the computer program.
CN202210610512.4A 2022-05-31 2022-05-31 Code file generation method, device, image forming apparatus and storage medium Pending CN114996219A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210610512.4A CN114996219A (en) 2022-05-31 2022-05-31 Code file generation method, device, image forming apparatus and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210610512.4A CN114996219A (en) 2022-05-31 2022-05-31 Code file generation method, device, image forming apparatus and storage medium

Publications (1)

Publication Number Publication Date
CN114996219A true CN114996219A (en) 2022-09-02

Family

ID=83031296

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210610512.4A Pending CN114996219A (en) 2022-05-31 2022-05-31 Code file generation method, device, image forming apparatus and storage medium

Country Status (1)

Country Link
CN (1) CN114996219A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116600042A (en) * 2023-07-17 2023-08-15 中国人民解放军国防科技大学 Communication method, device and system between intelligent mobile terminal equipment and computer

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116600042A (en) * 2023-07-17 2023-08-15 中国人民解放军国防科技大学 Communication method, device and system between intelligent mobile terminal equipment and computer
CN116600042B (en) * 2023-07-17 2023-09-22 中国人民解放军国防科技大学 Communication method, device and system between intelligent mobile terminal equipment and computer

Similar Documents

Publication Publication Date Title
US8610929B2 (en) Image processing apparatus, control method therefor, and program
US20050052700A1 (en) Printing digital documents
US8248665B2 (en) Information processing device, printing device, information processing system, method, computer-readable medium, and computer data signal
CN114996219A (en) Code file generation method, device, image forming apparatus and storage medium
US8325970B2 (en) Apparatus, method, and computer product for image processing
US9338310B2 (en) Image processing apparatus and computer-readable medium for determining pixel value of a target area and converting the pixel value to a specified value of a target image data
JP4973462B2 (en) Image reading apparatus and image reading system
JP5966750B2 (en) Reading apparatus, image processing system, and reading program
WO2020105366A1 (en) Information processing device, information processing method, program, storage medium, and image forming system
US9215344B2 (en) Image forming apparatus, image processing apparatus, image forming method, image processing method, and non-transitory computer readable medium
US10602019B2 (en) Methods and systems for enhancing image quality for documents with highlighted content
CN103838527A (en) Printing controlling terminal apparatus, image forming apparatus and method for controlling printing using the same
US20110157659A1 (en) Information processing apparatus, method for controlling the information processing apparatus, and storage medium
US20090244559A1 (en) Image rasterizing apparatus and image rasterizing method
JP2013098604A (en) Image processing apparatus, image processing method and program
CN115022485A (en) Image forming method and system
CN105808174B (en) Print command equipment, print system and print instruction method
US10484557B2 (en) Image processing apparatus and non-transitory computer readable medium for addition of different image data to acquired image data
JP5387086B2 (en) Information collation support system and program
JP6927097B2 (en) Image processing system and image forming equipment
JP4998421B2 (en) Image forming apparatus and image forming program
JP6874721B2 (en) Image processing system and image forming equipment
CN101277364B (en) Image processing device and image processing method
JP6777111B2 (en) Image processing system and image forming equipment
JP4498333B2 (en) Image processing device

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