CN117094783A - Bill generation method, bill generation device, bill generation processor and storage medium - Google Patents

Bill generation method, bill generation device, bill generation processor and storage medium Download PDF

Info

Publication number
CN117094783A
CN117094783A CN202311069205.0A CN202311069205A CN117094783A CN 117094783 A CN117094783 A CN 117094783A CN 202311069205 A CN202311069205 A CN 202311069205A CN 117094783 A CN117094783 A CN 117094783A
Authority
CN
China
Prior art keywords
bill
template
model
label
filling
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
CN202311069205.0A
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.)
China Construction Bank Corp
CCB Finetech Co Ltd
Original Assignee
China Construction Bank Corp
CCB Finetech 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 China Construction Bank Corp, CCB Finetech Co Ltd filed Critical China Construction Bank Corp
Priority to CN202311069205.0A priority Critical patent/CN117094783A/en
Publication of CN117094783A publication Critical patent/CN117094783A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/04Billing or invoicing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/174Form filling; Merging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Development Economics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Health & Medical Sciences (AREA)
  • Computational Linguistics (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Artificial Intelligence (AREA)
  • Finance (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Accounting & Taxation (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The application provides a bill generation method, a bill generation device, a processor and a storage medium, belonging to the field of bill generation, comprising the following steps: determining a form type and element content of a form filling element corresponding to the transaction code in response to the received transaction code; determining a bill form template and a bill form label corresponding to the transaction code by using the trained form model and the form type corresponding to the transaction code; the form model is used for indicating the corresponding relation between the form type and the form template with the form label, and the form label is used for indicating the element information of each form filling element in the form template; filling the element content into a bill form template according to bill form labeling to form a bill. By the method provided by the application, the memory size of the electronic bill file can be reduced, the dependence on network bandwidth is reduced, the file storage space is reduced, the bill file generation speed is improved, the service handling efficiency is improved, the user experience is improved, and the service handling cost is reduced.

Description

Bill generation method, bill generation device, bill generation processor and storage medium
Technical Field
The present application relates to the technical field of bill generation, and in particular, to a bill generation method, a bill generation device, a processor, a storage medium, and a computer program product.
Background
Based on the trend of paperless transaction and paperless development planning of banks, most banks need to realize the printing output of bill certificates on white paper to save cost at present, and the purchasing of paper blank bills is saved.
In the prior art, a form style is usually redrawn on blank paper with reference to the existing bill master picture, then a character configuration is formed, and characters are printed on the paper on which the form is drawn. However, the bill master plate picture is larger, file storage is increased, printing is needed twice, printing time consumption is increased, and operation experience of a user is reduced. The printing of the bill master plate picture can have chromatic aberration on blank paper, and the effect of bill printout is affected.
Disclosure of Invention
The embodiment of the application aims to provide a bill generation method, a bill generation device, a bill generation processor and a bill storage medium.
In order to achieve the above object, a first aspect of the present application provides a ticket generating method comprising: determining a form type and element content of a form filling element corresponding to a transaction code in response to the received transaction code; determining a bill form template and a bill form label corresponding to the transaction code by using the trained form model and the form type corresponding to the transaction code; the form model is used for indicating the corresponding relation between the form type and a form template with form labels, and the form labels are used for indicating element information of each form filling element in the form template; and filling the element content into the bill form template according to the bill form label to form a bill.
In an embodiment of the present application, the method further includes: training the table model with the history ticket bottom plate, comprising: determining the form type of a historical bill bottom plate; identifying a form template of a history bill baseboard and element information of each form filling element; form the form label according to the element information of each form filling element of the history bill bottom plate; and training the table model according to the table type, the table label and the table template of the historical bill bottom plate to obtain a trained table model.
In the embodiment of the application, the training of the table model according to the table type, the table label and the table template of the historical bill bottom plate to obtain a trained table model comprises the following steps: training a table model according to the table type, the table label and the table template of the historical bill bottom plate to generate an initial table model; generating an initial bill by using the initial form model; comparing the form template and form label of the initial bill and the history bill bottom plate; and correcting the initial table model according to the comparison result to obtain a corrected table model serving as a trained table model.
In the embodiment of the application, the method for determining the bill form template and the bill form label corresponding to the transaction code by using the trained form model and the form type corresponding to the transaction code comprises the following steps: determining a form template with form labels corresponding to the transaction codes according to the trained form model and the form type corresponding to the transaction codes; and respectively extracting the bill form template and the bill form label from the form template with the form label corresponding to the transaction code.
In the embodiment of the application, the element information comprises filling position information and layout information of the form filling element.
In an embodiment of the present application, the layout information includes, but is not limited to, font size, and font color.
In the embodiment of the present application, the filling the element content into the bill form template according to the bill form label to form a bill includes: determining layout information and filling position information of form filling elements corresponding to the transaction codes according to the bill form labels; generating vector characters according to the element content and the layout information of the form filling elements corresponding to the transaction codes; and filling the vector characters into the bill form template according to filling position information corresponding to the transaction code to form the bill.
A second aspect of the present application provides a bill generating apparatus including: the type content determining module is used for responding to the received transaction code and determining the form type and element content of the form filling element corresponding to the transaction code; the template label determining module is used for determining a bill form template and a bill form label corresponding to the transaction code by utilizing the trained form model and the form type corresponding to the transaction code; the form model is used for indicating the corresponding relation between the form type and a form template with form labels, and the form labels are used for indicating element information of each form filling element in the form template; and the bill generating module is used for filling the element content into the bill form template according to the bill form label to form a bill.
In an embodiment of the present application, the bill generating device further includes: the model training module is used for training the table model by utilizing the historical bill bottom plate and comprises the following steps: determining the form type of a historical bill bottom plate; identifying a form template of a history bill baseboard and element information of each form filling element; form the form label according to the element information of each form filling element of the history bill bottom plate; training the table model according to the table type, the table label and the table template of the history bill bottom plate to obtain a trained table model
A third aspect of the application provides a processor configured to perform the ticket generating method described above.
A fourth aspect of the application provides a machine-readable storage medium having stored thereon instructions which, when executed by a processor, cause the processor to be configured to perform the ticket generating method described above.
A fifth aspect of the application provides a computer program product comprising a computer program which, when executed by a processor, implements the ticket generating method described above.
Through the technical scheme provided by the application, the application has at least the following technical effects:
according to the bill generation method, a historical bill bottom plate is utilized to train a table model, the table model is used for indicating the corresponding relation between a table type and a table template with a table label, and the table label is used for indicating element information of each table filling element in the table template. And under the condition that the transaction code is received, determining the form type corresponding to the transaction code and the element content of the form filling element, determining the bill form template and the bill form label corresponding to the transaction code by using the trained form model and the form type corresponding to the transaction code, and filling the element content into the bill form template according to the bill form label to form a bill. According to the bill generation method provided by the application, the memory size of the electronic bill file can be reduced, the dependence on network bandwidth is reduced, the file storage space is reduced, the bill file generation speed is improved, the business handling efficiency is improved, the user experience is improved, and the business handling cost is reduced.
Additional features and advantages of embodiments of the application will be set forth in the detailed description which follows.
Drawings
The accompanying drawings are included to provide a further understanding of embodiments of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain, without limitation, the embodiments of the application. In the drawings:
FIG. 1 schematically illustrates a flow chart of a ticket generation method according to an embodiment of the application;
FIG. 2 schematically illustrates a schematic diagram of a form template generated by a ticket generating method according to an embodiment of the present application;
FIG. 3 schematically illustrates a schematic diagram of another form template generated by a ticket generating method in accordance with an embodiment of the present application;
FIG. 4 schematically illustrates a schematic view of a ticket generating apparatus according to an embodiment of the application;
fig. 5 schematically shows an internal structural view of a computer device according to an embodiment of the present application.
Description of the reference numerals
200-bill generating device; 201-a model training module; 202-a type content determination module; 203, a template annotation determining module; 204-ticket generation module; a01-a processor; a02-a network interface; a03-an internal memory; a04-nonvolatile storage medium; b01-operating system; b02-computer program.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it should be understood that the detailed description described herein is merely for illustrating and explaining the embodiments of the present application, and is not intended to limit the embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
It should be noted that, if directional indications (such as up, down, left, right, front, and rear … …) are included in the embodiments of the present application, the directional indications are merely used to explain the relative positional relationship, movement conditions, etc. between the components in a specific posture (as shown in the drawings), and if the specific posture is changed, the directional indications are correspondingly changed.
In addition, if there is a description of "first", "second", etc. in the embodiments of the present application, the description of "first", "second", etc. is for descriptive purposes only and is not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In addition, the technical solutions of the embodiments may be combined with each other, but it is necessary to base that the technical solutions can be realized by those skilled in the art, and when the technical solutions are contradictory or cannot be realized, the combination of the technical solutions should be considered to be absent and not within the scope of protection claimed in the present application.
Fig. 1 schematically shows a flow diagram of a ticket generating method according to an embodiment of the application. As shown in fig. 1, in an embodiment of the present application, there is provided a ticket generating method including the steps of: step 101: determining a form type and element content of a form filling element corresponding to a transaction code in response to the received transaction code; step 102: determining a bill form template and a bill form label corresponding to the transaction code by using the trained form model and the form type corresponding to the transaction code; the form model is used for indicating the corresponding relation between the form type and a form template with form labels, and the form labels are used for indicating element information of each form filling element in the form template; step 103: and filling the element content into the bill form template according to the bill form label to form a bill.
Specifically, in the embodiment of the application, a plurality of history bill bottom boards are collected first, a table model is generated by identifying the plurality of history bill bottom boards, when the table model is used, a user inputs a table type, and a table template with marks can be obtained, and the marks indicate filling forms (such as fonts, positions and the like) of the table filling elements required to be filled in each blank area in the table template to be filled in the corresponding blank area.
In the formal transaction process, a transaction code is assigned to each transaction, and the transaction code can indicate all information of the transaction, such as transaction type, transaction content, transaction time and the like. Under the condition that the transaction code is received, the form type of the bill to be output by the transaction code is determined according to the transaction type, and the element content of the form filling element of each blank area in the bill is determined according to the transaction content and the information of the transaction time. And calling the trained form model, and determining a bill form template and a bill form label corresponding to the transaction code by utilizing the trained form model and the form type corresponding to the transaction code. Filling the extracted element content into a bill form template according to bill form labeling, generating an electronic bill with a set format, and then printing the bill. The set formats include, but are not limited to word, pdf, excel and jpg. Further, in this embodiment, the pdf format is preferred, and the pdf format has a smaller memory, can be conveniently and rapidly transmitted, and can be printed and output by using a bread printer, so that the output text style can be ensured, and the printing effect required by the service is not affected.
According to the bill generation method provided by the application, the memory size of the electronic bill file can be reduced, the dependence on network bandwidth is reduced, the file storage space is reduced, the bill file generation speed is improved, the business handling efficiency is improved, the user experience is improved, and the business handling cost is reduced.
In one possible implementation, the annotation model and the ticket form model can be trained using a historical ticket floor, respectively: determining the form type of a historical bill bottom plate; identifying a form template of a history bill baseboard and element information of each form filling element; form the form label according to the element information of each form filling element of the history bill bottom plate; model training is carried out according to the form type and the form label of the historical bill bottom plate, and a label model is obtained; training the bill form model according to the form type and the form template of the history bill bottom plate to obtain the bill form model. Under the condition of receiving the collocation transaction code, determining the form type and element content of the form filling element corresponding to the transaction code; bill form annotation can be obtained according to the transaction code and the annotation model, a bill form template is obtained according to the transaction code and the bill form model, and then the bill form template is filled with the essential content according to the bill form annotation to form a bill.
In an embodiment of the present application, the method further includes: training the table model with the history ticket bottom plate, comprising: determining the form type of a historical bill bottom plate; identifying a form template of a history bill baseboard and element information of each form filling element; form the form label according to the element information of each form filling element of the history bill bottom plate; and training the table model according to the table type, the table label and the table template of the historical bill bottom plate to obtain a trained table model.
In the embodiment of the application, the element information comprises filling position information and layout information of the form filling element.
In an embodiment of the present application, the layout information includes, but is not limited to, font size, and font color.
Specifically, in the embodiment of the application, a plurality of history bill floors are collected, each history bill floor is identified, the form type of the history bill floor is determined, and the form templates of the history bill floors and the element information of each form filling element in the form templates are identified. In this embodiment, the form types include, but are not limited to, special transfer certificates, service charging certificates, proxy service certificates, electronic transfer certificates, and the like. The element information includes filling position information and layout information of the form filling element. The layout information includes, but is not limited to, style information such as font, font size, font color, font bolding, and underlining. The filling position information is a specific position of filling elements in the form template, and may be represented in a coordinate or quadrant mode, etc., which can be set by a person skilled in the art according to actual requirements, and is not limited in this embodiment. And then forming the identified element information into a form label, and displaying the form label in the identified form template.
And counting the form types, form labels and form templates of all the historical bill bottom plates, and performing model training by using an artificial intelligent supervised learning algorithm to obtain a trained form model. And inputting the form type into the trained form model, and outputting a form template with form labels corresponding to the form type.
Referring to fig. 2, fig. 2 illustrates a form template with form labels generated by a modeling method according to an embodiment of the present application, where the form type of the form template is a special transfer voucher type. Fig. 2 shows only three form labels in the special transfer voucher template, the form labels identifying form fill elements, fill locations, fonts, font sizes and font colors.
The form label is displayed by the bubbles shown in fig. 2, or is displayed directly in the blank filling area of the form shown in fig. 3, or is displayed in a column form, which can be set by those skilled in the art according to actual requirements, and the embodiment is not limited.
According to the bill generation method provided by the application, an artificial intelligent table reduction technology can be adopted, modeling is carried out by combining the existing bill, the workload of manual drawing and marking can be greatly reduced, the modeling of a table model is rapidly realized, the manual operation complexity is reduced, the operation experience is improved, and the labor cost is reduced.
In the embodiment of the application, the training of the table model according to the table type, the table label and the table template of the historical bill bottom plate to obtain a trained table model comprises the following steps: training a table model according to the table type, the table label and the table template of the historical bill bottom plate to generate an initial table model; generating an initial bill by using the initial form model; comparing the form template and form label of the initial bill and the history bill bottom plate; and correcting the initial table model according to the comparison result to obtain a corrected table model serving as a trained table model.
Specifically, in the embodiment of the application, when modeling a model, training is performed on the model according to the form type, the form label and the form template of the historical bill bottom plate to generate an initial form model. And correcting the initial form model, generating an initial bill by using the initial form model, and comparing whether the form templates of the initial bill and the history bill bottom plate are consistent or not and whether the form labels are consistent or not. And if the table labels are inconsistent, correcting the table templates or the table labels to obtain a trained table model.
In one possible implementation, a plurality of historical ticket backplanes are selected as test samples, the form types of the test samples are input, and an initial ticket is generated by using an initial form model. And comparing whether the initial bill is consistent with the form template of the detection sample, and whether the filling position and the format information indicated by the form annotation are consistent, if not, correcting the form template or the form annotation, and taking the corrected model as a trained form model.
According to the bill generation method provided by the application, the table model can be corrected, the accurate modeling of the table model is ensured, and the accuracy of the generated bill is improved.
In the embodiment of the present application, the determining the bill form template and the bill form label corresponding to the transaction code by using the trained form model and the form type corresponding to the transaction code includes: determining a form template with form labels corresponding to the transaction codes according to the trained form model and the form type corresponding to the transaction codes; and respectively extracting the bill form template and the bill form label from the form template with the form label corresponding to the transaction code.
Specifically, in the embodiment of the application, after the form type corresponding to the transaction code and the element content of the form filling element are determined, a trained form model is called, the form type corresponding to the transaction code is input into the trained form model, a form template with a form label corresponding to the transaction code is obtained, and then the form template and the annotation are respectively extracted from the form template and the annotation, so that the bill form template and the bill form label are obtained.
In the embodiment of the present application, the filling the element content into the bill form template according to the bill form label to form a bill includes: determining layout information and filling position information of form filling elements corresponding to the transaction codes according to the bill form labels; generating vector characters according to the element content and the layout information of the form filling elements corresponding to the transaction codes; and filling the vector characters into the bill form template according to filling position information corresponding to the transaction code to form the bill.
Specifically, in the embodiment of the application, after the bill form template and the bill form label are obtained, the format information and the filling position information of the form filling elements corresponding to the transaction codes are determined according to the bill form label. And generating vector characters from the element content according to the layout information of the form filling elements corresponding to the transaction codes. And then filling the vector characters in the corresponding positions of the form templates according to the filling position information to form the bill.
Taking the bill form template shown in fig. 2 as an example, in one possible implementation manner, determining that the element content of the payment unit full name is "xx bank xx branch" according to the transaction code, determining that the form type is the special transfer voucher type, inputting the form type into the trained form model to obtain the form template with the label shown in fig. 2, and then extracting the form label and the form template respectively. And generating corresponding vector characters according to the format information (font: song Ti; font size: number four; font color: black) of the mark, and then filling the corresponding vector characters in a form template according to filling position information (coordinates (x 1, y 1)) of the mark to form a bill.
It should be understood that, although the steps in the flowchart of fig. 1 are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in fig. 1 may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor do the order in which the sub-steps or stages are performed necessarily performed in sequence, but may be performed alternately or alternately with at least a portion of other steps or sub-steps of other steps.
In one embodiment, as shown in fig. 4, there is provided a bill generating apparatus, the bill generating apparatus 200 including: a type content determining module 202, configured to determine, in response to a received transaction code, a form type and element content of a form filling element corresponding to the transaction code; the template label determining module 203 is configured to determine a bill form template and a bill form label corresponding to the transaction code by using the trained form model and a form type corresponding to the transaction code; the form model is used for indicating the corresponding relation between the form type and a form template with form labels, and the form labels are used for indicating element information of each form filling element in the form template; and the bill generating module 204 is used for filling the element content into the bill form template according to the bill form label to form a bill.
In an embodiment of the present application, the bill generating device further includes: a model training module 201 for training a table model using a history ticket backplane, comprising: determining the form type of a historical bill bottom plate; identifying a form template of a history bill baseboard and element information of each form filling element; form the form label according to the element information of each form filling element of the history bill bottom plate; and training the table model according to the table type, the table label and the table template of the historical bill bottom plate to obtain a trained table model.
In the embodiment of the application, the training of the table model according to the table type, the table label and the table template of the historical bill bottom plate to obtain a trained table model comprises the following steps: training a table model according to the table type, the table label and the table template of the historical bill bottom plate to generate an initial table model; generating an initial bill by using the initial form model; comparing the form template and form label of the initial bill and the history bill bottom plate; and correcting the initial table model according to the comparison result to obtain a corrected table model serving as a trained table model.
In the embodiment of the application, the method for determining the bill form template and the bill form label corresponding to the transaction code by using the trained form model and the form type corresponding to the transaction code comprises the following steps: determining a form template with form labels corresponding to the transaction codes according to the trained form model and the form type corresponding to the transaction codes; and respectively extracting the bill form template and the bill form label from the form template with the form label corresponding to the transaction code.
In the embodiment of the application, the element information comprises filling position information and layout information of the form filling element.
In an embodiment of the present application, the layout information includes, but is not limited to, font size, and font color.
In the embodiment of the present application, the filling the element content into the bill form template according to the bill form label to form a bill includes: determining layout information and filling position information of form filling elements corresponding to the transaction codes according to the bill form labels; generating vector characters according to the element content and the layout information of the form filling elements corresponding to the transaction codes; and filling the vector characters into the bill form template according to filling position information corresponding to the transaction code to form the bill.
The bill generating device comprises a processor and a memory, wherein the model training module, the type content determining module, the template marking determining module, the bill generating module and the like are all stored in the memory as program units, and the processor executes the program modules stored in the memory to realize corresponding functions.
The processor includes a kernel, and the kernel fetches the corresponding program unit from the memory. The kernel can be provided with one or more than one, and the bill generation method is realized by adjusting kernel parameters.
The memory may include volatile memory, random Access Memory (RAM), and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), among other forms in computer readable media, the memory including at least one memory chip.
Embodiments of the present application provide a processor configured to perform the ticket generating method described above.
Embodiments of the present application provide a machine-readable storage medium having instructions stored thereon that, when executed by a processor, cause the processor to be configured to perform the ticket generating method described above.
In one embodiment, a computer device is provided, which may be a server, and the internal structure thereof may be as shown in fig. 5. Fig. 5 schematically shows an internal structural diagram of a computer device according to an embodiment of the present application, which includes a processor a01, a network interface a02, a memory (not shown in the figure), and a database (not shown in the figure) connected through a system bus. Wherein the processor a01 of the computer device is adapted to provide computing and control capabilities. The memory of the computer device includes internal memory a03 and nonvolatile storage medium a04. The nonvolatile storage medium a04 stores an operating system B01, a computer program B02, and a database (not shown in the figure). The internal memory a03 provides an environment for the operation of the operating system B01 and the computer program B02 in the nonvolatile storage medium a04. The network interface a02 of the computer device is used for communication with an external terminal through a network connection. The computer program B02, when executed by the processor a01, implements a ticket generation method.
It will be appreciated by those skilled in the art that the structure shown in FIG. 5 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
The embodiments of the present application also provide a computer program product adapted to perform, when executed on a data processing apparatus, a program initialized with the method steps of: training a form model by using a historical bill bottom plate; the form model is used for indicating the corresponding relation between the form type and a form template with form labels, and the form labels are used for indicating element information of each form filling element in the form template; determining a form type and element content of a form filling element corresponding to a transaction code in response to the received transaction code; determining a bill form template and a bill form label corresponding to the transaction code by using the form model and the form type corresponding to the transaction code; and filling the element content into the bill form template according to the bill form label to form a bill.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, etc., such as Read Only Memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
Computer-readable media include both permanent and non-permanent, removable and non-removable media, and information storage may be implemented by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Disks (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by the computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises an element.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and variations of the present application will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. which come within the spirit and principles of the application are to be included in the scope of the claims of the present application.

Claims (12)

1. A ticket generation method, characterized in that the ticket generation method comprises:
determining a form type and element content of a form filling element corresponding to a transaction code in response to the received transaction code;
determining a bill form template and a bill form label corresponding to the transaction code by using the trained form model and the form type corresponding to the transaction code; the form model is used for indicating the corresponding relation between the form type and a form template with form labels, and the form labels are used for indicating element information of each form filling element in the form template;
and filling the element content into the bill form template according to the bill form label to form a bill.
2. The ticket generating method as claimed in claim 1, further comprising: training the table model with the history ticket bottom plate, comprising:
determining the form type of a historical bill bottom plate;
identifying a form template of a history bill baseboard and element information of each form filling element;
form the form label according to the element information of each form filling element of the history bill bottom plate;
and training the table model according to the table type, the table label and the table template of the historical bill bottom plate to obtain a trained table model.
3. The bill generating method according to claim 2, wherein the training the table model according to the table type, the table label and the table template of the history bill floor to obtain a trained table model comprises:
training a table model according to the table type, the table label and the table template of the historical bill bottom plate to generate an initial table model;
generating an initial bill by using the initial form model;
comparing the form template and form label of the initial bill and the history bill bottom plate;
and correcting the initial table model according to the comparison result to obtain a corrected table model serving as a trained table model.
4. The ticket generating method as claimed in claim 1, wherein said determining ticket form templates and ticket form notes corresponding to said transaction codes using the trained form model and form types corresponding to said transaction codes comprises:
determining a form template with form labels corresponding to the transaction codes according to the trained form model and the form type corresponding to the transaction codes;
and respectively extracting the bill form template and the bill form label from the form template with the form label corresponding to the transaction code.
5. The ticket generating method as claimed in claim 1, wherein the element information includes filling position information and layout information of a form filling element.
6. The ticket generating method as recited in claim 5, wherein the layout information includes, but is not limited to, a font size, and a font color.
7. The ticket generating method as claimed in claim 6, wherein said filling said element contents into said ticket form template according to said ticket form label to form a ticket, comprising:
determining layout information and filling position information of form filling elements corresponding to the transaction codes according to the bill form labels;
generating vector characters according to the element content and the layout information of the form filling elements corresponding to the transaction codes;
and filling the vector characters into the bill form template according to filling position information corresponding to the transaction code to form the bill.
8. A ticket generating apparatus, characterized in that the ticket generating apparatus comprises:
the type content determining module is used for responding to the received transaction code and determining the form type and element content of the form filling element corresponding to the transaction code;
the template label determining module is used for determining a bill form template and a bill form label corresponding to the transaction code by utilizing the trained form model and the form type corresponding to the transaction code; the form model is used for indicating the corresponding relation between the form type and a form template with form labels, and the form labels are used for indicating element information of each form filling element in the form template;
and the bill generating module is used for filling the element content into the bill form template according to the bill form label to form a bill.
9. The ticket generating apparatus as claimed in claim 8, wherein said ticket generating apparatus further comprises:
the model training module is used for training the table model by utilizing the historical bill bottom plate and comprises the following steps:
determining the form type of a historical bill bottom plate;
identifying a form template of a history bill baseboard and element information of each form filling element;
form the form label according to the element information of each form filling element of the history bill bottom plate;
and training the table model according to the table type, the table label and the table template of the historical bill bottom plate to obtain a trained table model.
10. A processor configured to perform the ticket generating method of any of claims 1 to 7.
11. A machine-readable storage medium having instructions stored thereon, which when executed by a processor cause the processor to be configured to perform the ticket generating method of any of claims 1 to 7.
12. A computer program product comprising a computer program, characterized in that the computer program, when executed by a processor, implements the ticket generating method of any of claims 1 to 7.
CN202311069205.0A 2023-08-23 2023-08-23 Bill generation method, bill generation device, bill generation processor and storage medium Pending CN117094783A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311069205.0A CN117094783A (en) 2023-08-23 2023-08-23 Bill generation method, bill generation device, bill generation processor and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311069205.0A CN117094783A (en) 2023-08-23 2023-08-23 Bill generation method, bill generation device, bill generation processor and storage medium

Publications (1)

Publication Number Publication Date
CN117094783A true CN117094783A (en) 2023-11-21

Family

ID=88781739

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311069205.0A Pending CN117094783A (en) 2023-08-23 2023-08-23 Bill generation method, bill generation device, bill generation processor and storage medium

Country Status (1)

Country Link
CN (1) CN117094783A (en)

Similar Documents

Publication Publication Date Title
US8325367B2 (en) System and method for a design with intent metadata
CN107632869B (en) Method and equipment for loading user interface of POS application
CN112699775A (en) Certificate identification method, device and equipment based on deep learning and storage medium
CN103605502A (en) Form page display method and server
CN113505580A (en) Method and device for analyzing table file
CN111931771B (en) Bill content identification method, device, medium and electronic equipment
CN105589686A (en) Template-based information input and printing method and device under WinCE (Windows Embedded Compact) platform
CN107908843B (en) Management system based on drawing of map label information
JP2019079347A (en) Character estimation system, character estimation method, and character estimation program
CN114708461A (en) Multi-modal learning model-based classification method, device, equipment and storage medium
CN113762109A (en) Training method of character positioning model and character positioning method
CN115221037A (en) Interactive page testing method and device, computer equipment and program product
CN117094783A (en) Bill generation method, bill generation device, bill generation processor and storage medium
CN107403405A (en) Image processing apparatus, image processing method and information processor
JP2020046860A (en) Form reading apparatus
CN115828856A (en) Test paper generation method, device, equipment and storage medium
CN115130437A (en) Intelligent document filling method and device and storage medium
CN101971171A (en) Method and apparatus for the page-by-page provision of an electronic document as a computer graphic
CN113128496B (en) Method, device and equipment for extracting structured data from image
CN114169306A (en) Method, device and equipment for generating electronic receipt and readable storage medium
CN113343663A (en) Bill structuring method and device
CN113177543A (en) Certificate identification method, device, equipment and storage medium
CN112784567A (en) Account-reporting realization method, equipment and medium
CN112101356A (en) Method and device for positioning specific text in picture and storage medium
CN115935938B (en) Automatic generation method and device for case report

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