CN112733518A - Table template generation method, device, equipment and storage medium - Google Patents

Table template generation method, device, equipment and storage medium Download PDF

Info

Publication number
CN112733518A
CN112733518A CN202110051679.7A CN202110051679A CN112733518A CN 112733518 A CN112733518 A CN 112733518A CN 202110051679 A CN202110051679 A CN 202110051679A CN 112733518 A CN112733518 A CN 112733518A
Authority
CN
China
Prior art keywords
data
generated
target
template
file
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
CN202110051679.7A
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.)
Winning Health Technology Group Co Ltd
Original Assignee
Winning Health Technology Group 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 Winning Health Technology Group Co Ltd filed Critical Winning Health Technology Group Co Ltd
Priority to CN202110051679.7A priority Critical patent/CN112733518A/en
Publication of CN112733518A publication Critical patent/CN112733518A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/22Image preprocessing by selection of a specific region containing or referencing a pattern; Locating or processing of specific regions to guide the detection or recognition
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/40Document-oriented image-based pattern recognition

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Multimedia (AREA)
  • Artificial Intelligence (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • Character Input (AREA)

Abstract

The application provides a table template generation method, a table template generation device, table template generation equipment and a storage medium, and relates to the field of data processing. The method comprises the following steps: obtaining a table file to be generated according to scanning; acquiring data content corresponding to the table file to be generated by identifying the table file to be generated; determining a data item corresponding to the target template according to the data content; and generating the target template according to the data item and the target size. Compared with the prior art, the problem that a large amount of time cost and labor cost are needed for generating the form template is solved.

Description

Table template generation method, device, equipment and storage medium
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a form template generation method, apparatus, device, and storage medium.
Background
With the reform of national medical policy, the particularity of medical industry, the particularity of region and the management requirement of hospital, various form template requirements of each hospital can be caused.
In the prior art, the generation of the form template is generally that in the on-line process of a hospital, a field engineer firstly takes a paper report format required by the hospital to hand, and then designs a corresponding form template one by one according to the paper report format required by the hospital.
However, such a form template generation method often requires a lot of time for an engineer to process, and thus the processing efficiency is low.
Disclosure of Invention
An object of the present application is to provide a method, an apparatus, a device and a storage medium for generating a table template, so as to solve the problem of low processing efficiency in generating a table template in the prior art.
In order to achieve the above purpose, the technical solutions adopted in the embodiments of the present application are as follows:
in a first aspect, an embodiment of the present application provides a form template generating method, where the method includes:
scanning to obtain a table file to be generated;
acquiring data content corresponding to the table file to be generated by identifying the table file to be generated;
determining a data item corresponding to the target template according to the data content;
and generating the target template according to the data item and the target size.
Optionally, the obtaining the data content corresponding to the table file to be generated by identifying the table file to be generated includes:
and scanning and identifying the table file to be generated according to an optical character identification method, and acquiring data content corresponding to the table file to be generated.
Optionally, the data content comprises: basic data; the base data includes at least one of: header, content, footer;
the determining the data item corresponding to the target template according to the data content includes:
and determining a data item corresponding to the target template according to the basic data.
Optionally, the generating the target template according to the data item and the target size includes:
and generating a target template of the table to be generated according to the basic data, the position information of each basic data and the target size.
Optionally, after generating the target template of the table to be generated according to the basic data, the position information of each basic data, and the target size, the method further includes:
and associating each basic data with a corresponding background program.
Optionally, the method further comprises:
determining coordinate data of each line in the table file to be generated according to a determination method of a preset line frame;
the generating the target template according to the data item and the target size includes:
and generating the target template according to the data item, the coordinate data of each line and the target size.
Optionally, the determining, according to the method for determining a preset line frame, the coordinate data of each line in the table file to be generated includes:
pixelating and coordinating the table file to be generated to obtain a processed table file;
determining the coordinates of each pixel point of which the pixel point is a black point in the processed form file;
and determining coordinate data of each line in the table file to be generated according to the coordinates of each pixel point with the black points as the pixel points and the number of the black points as the pixel points.
In a second aspect, another embodiment of the present application provides a form template generating apparatus, including: the device comprises an acquisition module, a determination module and a generation module, wherein:
the acquisition module is used for scanning and acquiring a table file to be generated; acquiring data content corresponding to the table file to be generated by identifying the table file to be generated;
the determining module is used for determining a data item corresponding to the target template according to the data content;
and the generating module is used for generating the target template according to the data item and the target size.
Optionally, the obtaining module is specifically configured to perform scanning and recognition on the form file to be generated according to an optical character recognition method, and obtain data content corresponding to the form file to be generated.
Optionally, the data content comprises: basic data; the base data includes at least one of: header, content, footer;
the determining module is specifically configured to determine, according to the basic data, a data item corresponding to the target template.
Optionally, the generating module is specifically configured to generate a target template of the table to be generated according to the basic data, the position information of each basic data, and a target size.
Optionally, the apparatus further comprises: and the association module is used for associating each basic data with the corresponding background program.
Optionally, the determining module is specifically configured to determine, according to a determination method of a preset line frame, coordinate data of each line in the table file to be generated;
the generating module is specifically configured to generate the target template according to the data item, the coordinate data of each line, and the target size.
Optionally, the obtaining module is specifically configured to pixelate and coordinate the table file to be generated, and obtain the processed table file;
the determining module is specifically configured to determine coordinates of each pixel point in the processed form file, where the pixel point is a black point; and determining coordinate data of each line in the table file to be generated according to the coordinates of each pixel point with the black points as the pixel points and the number of the black points as the pixel points.
In a third aspect, another embodiment of the present application provides a form template generating apparatus, including: a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, when the form template generating device is operated, the processor and the storage medium communicate through the bus, and the processor executes the machine-readable instructions to perform the steps of the method according to any one of the first aspect.
In a fourth aspect, another embodiment of the present application provides a storage medium having a computer program stored thereon, where the computer program is executed by a processor to perform the steps of the method according to any one of the above first aspects.
The beneficial effect of this application is: by adopting the form template generation method provided by the application, the form file to be generated can be obtained according to scanning, the data content corresponding to the form file to be generated can be obtained by identifying the form file to be generated, the data item corresponding to the target template can be determined according to the data content, and the target template can be generated according to the target size and the data item.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a schematic flowchart of a table template generating method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a table template generating method according to another embodiment of the present application;
FIG. 3 is a flowchart illustrating a table template generating method according to another embodiment of the present application;
FIG. 4 is a flowchart illustrating a table template generating method according to another embodiment of the present application;
FIG. 5 is a flowchart illustrating a table template generating method according to another embodiment of the present application;
fig. 6 is a schematic structural diagram of a form template generating apparatus according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a form template generating apparatus according to another embodiment of the present application;
fig. 8 is a schematic structural diagram of a form template generation device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments.
The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
Additionally, the flowcharts used in this application illustrate operations implemented according to some embodiments of the present application. It should be understood that the operations of the flow diagrams may be performed out of order, and steps without logical context may be performed in reverse order or simultaneously. One skilled in the art, under the guidance of this application, may add one or more other operations to, or remove one or more operations from, the flowchart.
Although the form template generation methods provided by the present application are described with reference to the template generation of medical forms as an example, it should be understood that the methods provided by the present application may also be applied to any scene requiring the form template generation, such as the template generation of bank forms or the template generation of insurance forms, and may all play a role in improving the efficiency of form template production, and it should be understood that the specific application scene may be flexibly adjusted according to the needs of users, and the embodiments are not limited to the above.
The following explains a table template generation method provided in the embodiments of the present application with reference to a plurality of specific application examples. Fig. 1 is a schematic flowchart of a form template generating method according to an embodiment of the present application, and as shown in fig. 1, the method includes:
s101: and scanning to obtain a table file to be generated.
The form file to be generated may be, for example, a form file to be generated, which is obtained by receiving a paper form file of a form to be generated, scanning the content of the paper form file, for example, by using a scanner, or scanning the content of the paper form file by using a scanning application program after photographing the form file, and sending the content of the scanned paper form file to a terminal device to generate the form file to be generated. The terminal device may be, for example, a notebook computer, a palm computer, a desktop computer, or a smart phone, and is not limited herein.
In an embodiment of the present application, the formats of the scanned and acquired form files to be generated are all Portable Document Formats (PDF).
In some possible embodiments, the form file to be generated may be obtained by scanning, or may be directly obtained from a preset database, where the preset database may store a plurality of form files, for example; or form files to be generated which are crawled from the network; the specific obtaining manner of the table file to be generated can be flexibly adjusted according to the user requirement, and is not limited to the embodiment.
S102: and acquiring data content corresponding to the table file to be generated by identifying the table file to be generated.
For example, in some possible embodiments, for example, according to an Optical Character Recognition method (OCR), scanning and recognizing the form file to be generated may be performed, and the content obtained by scanning and recognizing the OCR is the data content corresponding to the form file to be generated.
S103: and determining the data item corresponding to the target template according to the data content.
Since there may be some fixed contents related to the target template in the data content identified by scanning, and there may also be some detail contents related to the specific user in the subsequent use process (taking the template generation scenario of the medical form as an example, the detail contents may be, for example, operation specific time data, operator data, patient data, charging data, etc.), after the data content of the form file to be generated is obtained, it is necessary to further identify and determine each data content identified by scanning, and only the fixed contents related to the target template in the data content are determined as the data item corresponding to the target template.
S104: and generating a target template according to the data item and the target size.
The target size is a size preset according to user needs, and a user can determine a size corresponding to the target size as needed, for example, directly select a standard size such as a4 or a6 as the target size, or can determine a height and a width corresponding to the target size in a customized manner as needed, for example, determine some sizes other than the standard size as the target size.
By adopting the form template generation method provided by the application, the form file to be generated can be obtained according to scanning, the data content corresponding to the form file to be generated can be obtained by identifying the form file to be generated, the data item corresponding to the target template can be determined according to the data content, and the target template can be generated according to the target size and the data item.
Optionally, on the basis of the foregoing embodiment, an embodiment of the present application may further provide a table template generating method, and an implementation process of determining a data item corresponding to a target template in the foregoing method is described as follows with reference to the accompanying drawings. Fig. 2 is a schematic flowchart of a table template generating method according to another embodiment of the present application, where data contents include: basic data; the underlying data includes at least one of: header (Header), content (Detail), Footer (Footer); as shown in fig. 2, S103 may include:
s105: and determining a data item corresponding to the target template according to the basic data.
The basic data are fixed contents related to the target template, and the data items corresponding to the target template are determined according to the basic data, so that the target template only comprises some fixed contents related to the target template, and the interference of detail data on the generation of the target template is eliminated.
For example, in an embodiment of the present application, each target template has a corresponding data pool, and the data pool is used for storing a plurality of data items included in the target template, where each data item in the data pool has corresponding identification information, and is used for uniquely determining the data item corresponding to the identification information in the data pool of the target template through the identification information, each data item may further include, in addition to the identification information, a character type and a character length corresponding to each data item, and the like, and a content included in a specific data item may be flexibly adjusted according to a user requirement, and is not limited to what is provided in the foregoing embodiment.
Taking the template generation scenario of the medical form as an example, in an embodiment of the present application, the form header data may include, for example: a table name; the content data includes a detailed description of each entry, which may include, for example: operator name, job number, operation date, project name, income amount, refund amount, total cost, cash total, invoice start number, invoice end number, invoice number, registration type (e.g., general, emergency or expert); the table tail data may indicate statistics, summary results, etc. for certain entries, which may include, for example: real cash, round errors, current year account payments, historical year account payments, pooled payments, local additional payments, bookings, and the like.
It should be understood that the above embodiments are only exemplary, and the content of the specific table base data is determined according to a specific application scenario and a specific table file to be generated, and is not limited to the content given in the above embodiments.
The data content may further include detail data, which is detail data that is not related to the target template and is only related to a specific user in a subsequent use process, and is still described by taking a template generation scene of a medical form as an example, and the detail content may be, for example, operation specific time data, operator data, patient data, charging data, and the like.
Optionally, on the basis of the foregoing embodiment, an embodiment of the present application may further provide a table template generating method, and an implementation process of generating the target template in the foregoing method is described as follows with reference to the accompanying drawings. Fig. 3 is a flowchart illustrating a table template generating method according to another embodiment of the present application, and as shown in fig. 3, S104 includes:
s106: and generating a target template of the form to be generated according to the basic data, the position information of each basic data and the target size.
The position information of each piece of basic data can be labeled on each piece of basic data in a labeling form, that is, a specific physical position of each piece of basic data is labeled, for example, the specific physical position of each piece of basic data in a target template can be labeled in a coordinate form; in the labeling process, each basic item can be labeled according to the position of the basic item in the target template, for example, the position of the basic item at the head, the content or the tail of the table, and the specific physical position of each basic item.
Optionally, on the basis of the foregoing embodiment, an embodiment of the present application may further provide a table template generating method, and an implementation process of the foregoing method is described as follows with reference to the accompanying drawings. Fig. 4 is a flowchart illustrating a table template generating method according to another embodiment of the present application, and as shown in fig. 4, the method further includes:
s107: and associating each basic data with the corresponding background program.
For example, in some possible embodiments, for example, the basic data may be associated with a corresponding daemon according to the identification information of the to-be-generated form file, so that the daemon may determine the basic data corresponding to the to-be-generated form file directly through the identification information of each to-be-generated form file, and adjust each basic data according to needs, for example, the position of the basic data may be adjusted, or operations such as adding or deleting each basic data may be performed, and specific adjustment contents may be flexibly adjusted according to needs of a user, which is not limited to those provided in the above embodiments.
The same background program may include a plurality of form files to be generated, for example, a template generation scenario of a medical form is taken as an example for explanation, and the medical background application program may include: the system comprises registered payment daily statement form files, treatment payment daily statement form files, registered payment week statement form files, treatment payment week statement form files and the like, wherein each form file is corresponding identification information, the identification information is used for uniquely indicating one form file, and a user can determine basic data corresponding to each form file to be generated through the identification information of each form file to be generated.
Optionally, on the basis of the foregoing embodiment, an embodiment of the present application may further provide a table template generating method, and an implementation process of the foregoing method is described as follows with reference to the accompanying drawings. Fig. 5 is a flowchart illustrating a table template generating method according to another embodiment of the present application, and as shown in fig. 5, the method further includes:
s108: and determining the coordinate data of each line in the table file to be generated according to the determination method of the preset line frame.
For example, in an embodiment of the present application, the manner of determining the coordinate data of each line may be, for example: pixelating and coordinating a table file to be generated, and then obtaining the table file subjected to pixelation and coordination processing; determining the coordinates of each pixel point of which the pixel point is a black point in the processed form file; and determining coordinate data of each line in the table file to be generated according to the coordinates of each pixel point with the black points as the pixel points and the number of the black points as the pixel points.
In an embodiment of the present application, the specific manner of determining the coordinate data of each line may be, for example, according to a formula:
Figure BDA0002898854300000111
determining coordinate data of each line in a table file to be generated; wherein P (X, Y) represents the coordinates of each pixel in the table file to be generated, if the pixel with coordinates P (X, Y) is a black point, P (X, Y) is 1, if the pixel with coordinates P (X, Y) is a white point, P (X, Y) is 0, and m is used to represent the tilt state at the pixel P (X, Y), where the tilt state may include: vertical or horizontal; n is the number of all pixel points of which the pixel points are black points in the table file to be generated; wherein T (x) is defined as follows:
Figure BDA0002898854300000121
namely, t (x) is 1 when n-k-g < x < ═ n, t (x) is 0 when 0< x < n-k-g, k is the average width of the horizontal upward line segment, and g is a preset error coefficient.
When L (x, y) is 1, it means that a line is found in the table file to be generated, and the essence of the above algorithm is to use one (2m +1) × n to search each black point pixel in the table file to be generated, and a plurality of black point pixels satisfying the condition form a line.
Correspondingly, S104 may include:
s109: and generating a target template according to the data items, the coordinate data of each line and the target size.
In an embodiment of the present application, the data items, the coordinate data of each line, and the target size are packaged and stored, for example, the data items may be packaged in a json format, such a packaging manner enables subsequent applications to directly obtain and analyze json format strings through a system foreground, and after labeling the analyzed content, the position, area, and the like of each data item may be manually adjusted, which is described by taking a registration query data template as an example, where a data legend of the target template may be as shown in table 1:
table 1:
Figure BDA0002898854300000122
Figure BDA0002898854300000131
the data graph of the target template comprises the names of the data items, the sizes of the data items, the vertical positions of the data items and the data item areas, the related information of the data items can be visually observed and adjusted according to the target template, and the target template is generated according to the adjusted coordinate data of the data items and lines, so that the subsequent acquisition and adjustment of the target template are concise.
By adopting the form template generation method provided by the application, the form file to be generated can be obtained according to scanning, then the data content corresponding to the form file to be generated is obtained by identifying the form file to be generated, the basic data corresponding to the target template, the position information of each basic data, the coordinate data of each line and the target size are determined according to the data content, then the basic data, the position information of each basic data, the coordinate data of each line and the target size are packaged in a json format, when the method is applied subsequently, the json format string is directly obtained and analyzed through a system foreground, after the analyzed content is labeled, the position, the area and the like of each data item are manually adjusted, and the target template is generated according to the adjusted data item, so that the form template generation method can directly generate the corresponding form template through data identification and determination modes after the form file to be generated is obtained, the automatic generation of the form template is realized, the generation efficiency of the form template is improved, the content of the target template, the size of the target template and the like are dynamically set and adjusted in a dynamic adjustment mode, and the waste of labor cost and time cost caused by the generation of the form template is reduced.
The following explains a form template generating apparatus provided in the present application with reference to the drawings, where the form template generating apparatus can execute any form template generating method in fig. 1 to 5, and specific implementation and beneficial effects of the form template generating apparatus refer to the above descriptions, and are not described again below.
Fig. 6 is a schematic structural diagram of a form template generating apparatus according to an embodiment of the present application, and as shown in fig. 6, the apparatus includes: an obtaining module 201, a determining module 202 and a generating module 203, wherein:
an obtaining module 201, configured to scan and obtain a form file to be generated; acquiring data content corresponding to the form file to be generated by identifying the form file to be generated;
a determining module 202, configured to determine, according to the data content, a data item corresponding to the target template;
and the generating module 203 is used for generating the target template according to the data item and the target size.
Optionally, the obtaining module 201 is specifically configured to perform scanning and recognition on the form file to be generated according to an optical character recognition method, and obtain data content corresponding to the form file to be generated.
Optionally, the data content comprises: basic data; the underlying data includes at least one of: header, content, footer;
the determining module 202 is specifically configured to determine a data item corresponding to the target template according to the basic data.
Optionally, the generating module 203 is specifically configured to generate a target template of the table to be generated according to the basic data, the position information of each basic data, and the target size.
Fig. 7 is a schematic structural diagram of a form template generating apparatus according to an embodiment of the present application, and as shown in fig. 7, the apparatus further includes: and the associating module 204 is configured to associate each piece of basic data with a corresponding daemon.
Optionally, the determining module 202 is specifically configured to determine, according to a determination method of a preset line frame, coordinate data of each line in the table file to be generated.
The generating module 203 is specifically configured to generate a target template according to the data items, the coordinate data of each line, and the target size.
Optionally, the obtaining module 201 is specifically configured to pixelate and coordinate the table file to be generated, and obtain the processed table file;
a determining module 202, configured to specifically determine coordinates of each pixel point in the processed form file, where the pixel point is a black point; and determining coordinate data of each line in the table file to be generated according to the coordinates of each pixel point with the black points as the pixel points and the number of the black points as the pixel points.
The above-mentioned apparatus is used for executing the method provided by the foregoing embodiment, and the implementation principle and technical effect are similar, which are not described herein again.
These above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more Application Specific Integrated Circuits (ASICs), or one or more microprocessors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs), among others. For another example, when one of the above modules is implemented in the form of a Processing element scheduler code, the Processing element may be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
Fig. 8 is a schematic structural diagram of a form template generating device according to an embodiment of the present application, where the form template generating device may be integrated in a terminal device or a chip of the terminal device.
The form template generating apparatus includes: a processor 501, a storage medium 502, and a bus 503.
The processor 501 is used for storing a program, and the processor 501 calls the program stored in the storage medium 502 to execute the method embodiment corresponding to fig. 1-5. The specific implementation and technical effects are similar, and are not described herein again.
Optionally, the present application also provides a program product, such as a storage medium, on which a computer program is stored, including a program, which, when executed by a processor, performs embodiments corresponding to the above-described method.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, 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 units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
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 enabling a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to perform some steps of the methods according to the embodiments of the present application. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.

Claims (10)

1. A form template generation method, the method comprising:
scanning to obtain a table file to be generated;
acquiring data content corresponding to the table file to be generated by identifying the table file to be generated;
determining a data item corresponding to the target template according to the data content;
and generating the target template according to the data item and the target size.
2. The method of claim 1, wherein the obtaining the data content corresponding to the to-be-generated form file by identifying the to-be-generated form file comprises:
and scanning and identifying the table file to be generated according to an optical character identification method, and acquiring data content corresponding to the table file to be generated.
3. The method of claim 1, wherein the data content comprises: basic data; the base data includes at least one of: header, content, footer;
the determining the data item corresponding to the target template according to the data content includes:
and determining a data item corresponding to the target template according to the basic data.
4. The method of claim 3, wherein the generating the target template from the data items and target dimensions comprises:
and generating a target template of the table to be generated according to the basic data, the position information of each basic data and the target size.
5. The method as claimed in claim 4, wherein after generating the target template of the table to be generated according to the basic data, the position information of each basic data and the target size, the method further comprises:
and associating each basic data with a corresponding background program.
6. The method of any one of claims 1-5, further comprising:
determining coordinate data of each line in the table file to be generated according to a determination method of a preset line frame;
the generating the target template according to the data item and the target size includes:
and generating the target template according to the data item, the coordinate data of each line and the target size.
7. The method according to claim 6, wherein the determining the coordinate data of each line in the table file to be generated according to the determination method of the preset line frame comprises:
pixelating and coordinating the table file to be generated to obtain a processed table file;
determining the coordinates of each pixel point of which the pixel point is a black point in the processed form file;
and determining coordinate data of each line in the table file to be generated according to the coordinates of each pixel point with the black points as the pixel points and the number of the black points as the pixel points.
8. A form template generation apparatus, the apparatus comprising: the device comprises an acquisition module, a determination module and a generation module, wherein:
the acquisition module is used for scanning and acquiring a table file to be generated; acquiring data content corresponding to the table file to be generated by identifying the table file to be generated;
the determining module is used for determining a data item corresponding to the target template according to the data content;
and the generating module is used for generating the target template according to the data item and the target size.
9. A form template generation apparatus, characterized in that the apparatus comprises: a processor, a storage medium and a bus, the storage medium storing machine-readable instructions executable by the processor, the processor and the storage medium communicating via the bus when the form template generation is run, the processor executing the machine-readable instructions to perform the method of any of claims 1-7.
10. A storage medium, characterized in that the storage medium has stored thereon a computer program which, when being executed by a processor, performs the method of any of the preceding claims 1-7.
CN202110051679.7A 2021-01-14 2021-01-14 Table template generation method, device, equipment and storage medium Pending CN112733518A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110051679.7A CN112733518A (en) 2021-01-14 2021-01-14 Table template generation method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110051679.7A CN112733518A (en) 2021-01-14 2021-01-14 Table template generation method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112733518A true CN112733518A (en) 2021-04-30

Family

ID=75593256

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110051679.7A Pending CN112733518A (en) 2021-01-14 2021-01-14 Table template generation method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112733518A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115858984A (en) * 2023-01-06 2023-03-28 三峡高科信息技术有限责任公司 Method and system for dynamically generating form based on webpage end

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07334618A (en) * 1994-06-03 1995-12-22 N T T Data Tsushin Kk Tilt angle detecting method/device for form image
WO2001071649A1 (en) * 2000-03-23 2001-09-27 Cardiff Software, Inc. Method and system for searching form features for form identification
CN102194123A (en) * 2010-03-11 2011-09-21 株式会社理光 Method and device for defining table template
CN107133621A (en) * 2017-05-12 2017-09-05 江苏鸿信系统集成有限公司 The classification of formatting fax based on OCR and information extracting method
CN109684957A (en) * 2018-12-14 2019-04-26 新博卓畅技术(北京)有限公司 A kind of method and system showing system data according to paper form automatically
CN110334585A (en) * 2019-05-22 2019-10-15 平安科技(深圳)有限公司 Table recognition method, apparatus, computer equipment and storage medium
JP2020030722A (en) * 2018-08-24 2020-02-27 ネットスマイル株式会社 Document image processing system, document image processing method, and document image processing program
CN111079397A (en) * 2019-12-25 2020-04-28 中国建设银行股份有限公司 Task file generation method and device based on image recognition
CN111368638A (en) * 2020-02-10 2020-07-03 深圳追一科技有限公司 Spreadsheet creation method and device, computer equipment and storage medium
CN111428599A (en) * 2020-03-17 2020-07-17 北京公瑾科技有限公司 Bill identification method, device and equipment
CN112131920A (en) * 2019-06-24 2020-12-25 国际商业机器公司 Data structure generation for table information in scanned images

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07334618A (en) * 1994-06-03 1995-12-22 N T T Data Tsushin Kk Tilt angle detecting method/device for form image
WO2001071649A1 (en) * 2000-03-23 2001-09-27 Cardiff Software, Inc. Method and system for searching form features for form identification
CN102194123A (en) * 2010-03-11 2011-09-21 株式会社理光 Method and device for defining table template
CN107133621A (en) * 2017-05-12 2017-09-05 江苏鸿信系统集成有限公司 The classification of formatting fax based on OCR and information extracting method
JP2020030722A (en) * 2018-08-24 2020-02-27 ネットスマイル株式会社 Document image processing system, document image processing method, and document image processing program
CN109684957A (en) * 2018-12-14 2019-04-26 新博卓畅技术(北京)有限公司 A kind of method and system showing system data according to paper form automatically
CN110334585A (en) * 2019-05-22 2019-10-15 平安科技(深圳)有限公司 Table recognition method, apparatus, computer equipment and storage medium
CN112131920A (en) * 2019-06-24 2020-12-25 国际商业机器公司 Data structure generation for table information in scanned images
CN111079397A (en) * 2019-12-25 2020-04-28 中国建设银行股份有限公司 Task file generation method and device based on image recognition
CN111368638A (en) * 2020-02-10 2020-07-03 深圳追一科技有限公司 Spreadsheet creation method and device, computer equipment and storage medium
CN111428599A (en) * 2020-03-17 2020-07-17 北京公瑾科技有限公司 Bill identification method, device and equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115858984A (en) * 2023-01-06 2023-03-28 三峡高科信息技术有限责任公司 Method and system for dynamically generating form based on webpage end

Similar Documents

Publication Publication Date Title
CN111476227B (en) Target field identification method and device based on OCR and storage medium
US9098765B2 (en) Systems and methods for capturing and storing image data from a negotiable instrument
JP5805918B1 (en) Information acquisition method and information acquisition apparatus
JP2008259156A (en) Information processing device, information processing system, information processing method, program, and storage medium
CN110942061A (en) Character recognition method, device, equipment and computer readable medium
CN110197238B (en) Font type identification method, system and terminal equipment
US9031308B2 (en) Systems and methods for recreating an image using white space and check element capture
US11727701B2 (en) Techniques to determine document recognition errors
CN110675940A (en) Pathological image labeling method and device, computer equipment and storage medium
CN113627411A (en) Super-resolution-based commodity identification and price matching method and system
CN111291741B (en) Receipt identification method and device, computer equipment and storage medium
CN112733518A (en) Table template generation method, device, equipment and storage medium
JP2008204184A (en) Image processor, image processing method, program and recording medium
CN111178365A (en) Picture character recognition method and device, electronic equipment and storage medium
CN114495146A (en) Image text detection method and device, computer equipment and storage medium
CN114330240A (en) PDF document analysis method and device, computer equipment and storage medium
KR101516684B1 (en) A service method for transforming document using optical character recognition
CN107861931B (en) Template file processing method and device, computer equipment and storage medium
CN110909733A (en) Template positioning method and device based on OCR picture recognition and computer equipment
CN115294557A (en) Image processing method, image processing apparatus, electronic device, and storage medium
US20150030241A1 (en) Method and system for data identification and extraction using pictorial representations in a source document
WO2015012820A1 (en) Method and system for data identification and extraction using pictorial representations in a source document
JP7282257B2 (en) Image processing device, control method and control program
CN113887441B (en) Table data processing method, device, equipment and storage medium
CN114202761B (en) Information batch extraction method based on picture information clustering

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