Intelligent management method and equipment for accounting documentsTechnical Field
The invention relates to an intelligent management method and equipment for accounting documents, and belongs to the field of intelligent bookkeeping.
Background
The traditional accounting flow is as follows: the employees of each unit manually paste original paper vouchers, such as original vouchers, train tickets, airline tickets and the like, and the paper original vouchers are submitted to accountants after being audited and signed by leaders. Accounting needs to verify the authenticity of the original voucher and make a bookkeeping voucher according to the original voucher. This involves a large amount of meaningless repeated labor, which is complicated and inefficient.
The invention patent of publication No. CN108765118A, original voucher mixed scanning voucher generating method and system, discloses establishing an original voucher key information base and a voucher template database; identifying information on an original certificate picture, and comparing the information with an original certificate key information base to obtain an original certificate type; obtaining a corresponding voucher template in a voucher template database according to the type of the original voucher; and generating a formal certificate and an entry record. However, the patent identifies all the text information in the original voucher and obtains the voucher type according to the text information, so that the calculation amount is large, and the accounting voucher is lack of further management.
Disclosure of Invention
In order to solve the problems in the prior art, the invention provides an intelligent management method and equipment for accounting documents, which are used for inquiring the type of an original document by identifying a small amount of character information and then using the character information as a characteristic value, so that the data volume needing to be processed by an algorithm is greatly reduced, the running cost of the algorithm is reduced, and the identification speed and accuracy are improved.
The technical scheme of the invention is as follows:
the first technical scheme is as follows:
an intelligent management method for accounting documents comprises the following steps:
establishing a category sample library and a position parameter library, wherein the category sample library comprises a corresponding relation between a characteristic value and the type of an original certificate, and the position parameter library comprises position parameters of each key field in different types of original certificates;
acquiring an original certificate picture, wherein the original certificate picture comprises a plurality of key fields;
extracting the characteristic value of the original certificate; inquiring the type of the original certificate in a category sample library according to the characteristic value;
inquiring the position parameters of each key field in a position parameter library according to the type of the original certificate;
constructing and training a deep learning model; positioning the region where each key field is located according to the position parameters, and identifying each key field by using a trained deep learning model;
searching an accounting document template and a reimbursement document template; and filling the key fields into the accounting document template and the reimbursement document template to generate an accounting document and a reimbursement document.
Furthermore, a plurality of characteristic values can be set for one original certificate at the same time; the specific steps for extracting the characteristic value of the original certificate are as follows: and identifying the text information at any position on the original certificate by utilizing an ORC technology, and taking the text information as a characteristic value.
Further, the specific steps of constructing and training the deep learning model are as follows:
constructing a sample set, wherein the sample set comprises a plurality of character pictures;
constructing a deep learning model framework; training a deep learning model, performing iterative training on the deep learning model by using a sample set, adjusting hyper-parameters of the deep learning model in the training, and storing the trained deep learning model after the training is finished;
furthermore, after each key field is identified by using the trained deep learning model, the original voucher is also checked, and the specific steps are as follows: and inquiring the electronic certificate data according to the key field or identifying the two-dimensional code on the original certificate to obtain the electronic certificate data, comparing the key field with the electronic certificate data, and if the key field is inconsistent with the electronic certificate data, the original certificate is invalid.
Further, the specific steps of searching the accounting document template and the reimbursement document template are as follows:
establishing an original voucher management library, wherein the original voucher management library comprises an accounting voucher template and a reimbursement voucher template; firstly, inquiring the accounting subject to which the original voucher belongs in the original voucher management database according to the key field, and then inquiring an accounting voucher template and a reimbursement voucher template in the original voucher management database according to the accounting subject.
Further, the system comprises an accounting system, wherein the accounting system is used for recording and managing unit financial data; after the accounting document is generated, the accounting document is automatically filled into a database of an accounting system.
The second technical scheme is as follows:
an accounting document intelligent management device comprising a memory and a processor, the memory storing instructions adapted to be loaded by the processor and to perform the steps of:
establishing a category sample library and a position parameter library, wherein the category sample library comprises a corresponding relation between a characteristic value and the type of an original certificate, and the position parameter library comprises position parameters of each key field in different types of original certificates;
acquiring an original certificate picture, wherein the original certificate picture comprises a plurality of key fields;
extracting the characteristic value of the original certificate; inquiring the type of the original certificate in a category sample library according to the characteristic value;
inquiring the position parameters of each key field in a position parameter library according to the type of the original certificate;
constructing and training a deep learning model; positioning the region where each key field is located according to the position parameters, and identifying each key field by using a trained deep learning model;
searching an accounting document template and a reimbursement document template; and filling the key fields into the accounting document template and the reimbursement document template to generate an accounting document and a reimbursement document.
Furthermore, a plurality of characteristic values can be set for one original certificate at the same time; the specific steps for extracting the characteristic value of the original certificate are as follows: and identifying the text information at any position on the original certificate by utilizing an ORC technology, and taking the text information as a characteristic value.
Further, the specific steps of constructing and training the deep learning model are as follows:
constructing a sample set, wherein the sample set comprises a plurality of character pictures;
constructing a deep learning model framework; training a deep learning model, performing iterative training on the deep learning model by using a sample set, adjusting hyper-parameters of the deep learning model in the training, and storing the trained deep learning model after the training is finished;
furthermore, after each key field is identified by using the trained deep learning model, the original voucher is also checked, and the specific steps are as follows: and inquiring the electronic certificate data according to the key field or identifying the two-dimensional code on the original certificate to obtain the electronic certificate data, comparing the key field with the electronic certificate data, and if the key field is inconsistent with the electronic certificate data, the original certificate is invalid.
Further, the specific steps of searching the accounting document template and the reimbursement document template are as follows:
establishing an original voucher management library, wherein the original voucher management library comprises an accounting voucher template and a reimbursement voucher template; firstly, inquiring the accounting subject to which the original voucher belongs in the original voucher management database according to the key field, and then inquiring an accounting voucher template and a reimbursement voucher template in the original voucher management database according to the accounting subject.
Further, the system comprises an accounting system, wherein the accounting system is used for recording and managing unit financial data; after the accounting document is generated, the accounting document is automatically filled into a database of an accounting system.
The invention has the following beneficial effects:
1. according to the method, a small amount of text information is identified by using the ORC technology, and the identified text information is used as the characteristic value to inquire the type of the original certificate, so that the data amount required to be processed by the algorithm is greatly reduced, the running cost of the algorithm is reduced, and the identification speed and accuracy are improved;
2. the invention can be used in combination with the invention of a bill Internet of things suite with the publication number CN103377363B, the workload of both parties of original voucher information supply and demand is reduced, and the resources of the whole society are saved;
3. the invention compares the data of the original certificate and the electronic certificate, and can effectively avoid the counterfeiting of the original certificate;
3. the invention further manages the accounting document, and reduces the workload of the accounting staff;
4. the invention records the generated accounting voucher information and avoids the repeated multi-unit reimbursement of the original voucher.
Drawings
FIG. 1 is a flow chart of the present invention.
Detailed Description
The invention is described in detail below with reference to the figures and the specific embodiments.
Example one
Referring to fig. 1, an intelligent management method for accounting documents comprises the following steps:
establishing a category sample library and a position parameter library; the category sample library comprises a corresponding relation between a characteristic value and the category of the original certificate, and the position parameter library comprises position parameters of each key field in different categories of the original certificate; the different types of original tickets have different types of formats, such as the sum of the money of the motor ticket at the coordinate position (100,200), the sum of the money of the plane ticket at the coordinate position (150,260);
the method comprises the steps of obtaining an original voucher picture, wherein the original voucher picture comprises a plurality of key fields, and the original vouchers are various, such as value-added tax tickets, common original vouchers, electronic original vouchers, airplane tickets, train tickets, bus tickets, lodging fee original vouchers, shopping tickets, supermarket original vouchers, handwritten receipts, borrowing and the like. Wherein the key fields of the value added tax stamp include name, amount, number, etc.
Extracting the characteristic value of the original certificate; inquiring the type of the original certificate in a category sample library according to the characteristic value;
inquiring the position parameters of each key field in a position parameter library according to the type of the original certificate;
constructing and training a deep learning model; positioning the region where each key field is located according to the position parameters, and identifying each key field by using a trained deep learning model; key fields can also be directly obtained through manual input and scanning gun input;
searching an accounting document template and a reimbursement document template; and filling the key fields into the accounting document template and the reimbursement document template to generate an accounting document and a reimbursement document. The accounting document and the reimbursement document can be generated simultaneously at one time, or after the reimbursement document is generated, the accounting document is generated through leading examination and approval, and a user selects the accounting document according to the flow of a company. And when generating accounting document each time, will record the accounting document information (such as the time of scanning, the accounting document number that generates etc.) that generates, if find the duplicate reimbursement, will pop out the prompt message.
Furthermore, a plurality of characteristic values can be set for one original certificate at the same time; the specific steps for extracting the characteristic value of the original certificate are as follows: and identifying the text information at any position on the original certificate by utilizing an ORC technology, and taking the text information as a characteristic value. For example, the location on the ticket (90,125) identifies "XX station" as the first feature value; the location on the ticket (60,150) identifies "G309" as the second characteristic value.
Further, the specific steps of constructing and training the deep learning model are as follows:
constructing a sample set, wherein the sample set comprises a plurality of classified character pictures; in the embodiment, a large number of character pictures are automatically generated as samples by combining image programming and font files;
constructing a deep learning model (in the present embodiment, Caffe is used as a model framework); training a deep learning model, performing iterative training on the deep learning model by using a sample set, adjusting hyper-parameters of the deep learning model in the training, and storing the trained deep learning model after the training is finished;
the method has the advantages that the method does not identify all the text information of the original certificate, but queries the type of the original certificate through a small amount of text information of the original certificate, queries the position of the key field according to the type, and then identifies the key field; the data amount required to be processed by the algorithm is greatly reduced, the running cost of the algorithm is reduced, and the identification speed and accuracy are improved; and the generated accounting voucher information is recorded, so that the original voucher is prevented from being reiterated for multiple times and multiple units.
Example two
Furthermore, after each key field is identified by using the trained deep learning model, the original voucher is also checked, and the specific steps are as follows: and inquiring the electronic certificate data according to the key field or identifying the two-dimensional code on the original certificate to obtain the electronic certificate data (in the embodiment, the two-dimensional code can be 'a bill internet of things suite' of the invention with the publication number of CN 103377363B), comparing the key field with the electronic certificate data, and if the two are not consistent, the original certificate is invalid (for example, the original certificate is forged or is PS-copied).
The improvement of the embodiment is that the data of the original certificate and the electronic certificate are compared, so that the counterfeiting of the original certificate can be effectively avoided, and meanwhile, the invention of patent with publication number of CN103377363B, namely 'a bill Internet of things suite', can be used as a unified interface of each large platform, so that the workload of both parties of supply and demand of the information of the original certificate is reduced, and the resources of the whole society are saved.
EXAMPLE III
Further, the system comprises an accounting system, wherein the accounting system is used for recording and managing unit financial data; after the accounting document is generated, the accounting document is automatically filled into a database of an accounting system. In this embodiment, the voucher data table generated by the present invention can also be called by the existing accounting system of the user unit.
The embodiment has the advantages that the accounting document is further managed, and the workload of an accounting staff is reduced.
Example four
Referring to fig. 1, an apparatus of an intelligent management method of accounting documents comprises a memory and a processor, wherein the memory stores instructions, the instructions are suitable for being loaded by the processor and executing the following steps:
establishing a category sample library and a position parameter library; the category sample library comprises a corresponding relation between a characteristic value and the category of the original certificate, and the position parameter library comprises position parameters of each key field in different categories of the original certificate; the different types of original tickets have different types of formats, such as the sum of the money of the motor ticket at the coordinate position (100,200), the sum of the money of the plane ticket at the coordinate position (150,260);
the method comprises the steps of obtaining an original voucher picture, wherein the original voucher picture comprises a plurality of key fields, and the original vouchers are various, such as value-added tax tickets, common original vouchers, electronic original vouchers, airplane tickets, train tickets, bus tickets, lodging fee original vouchers, shopping tickets, supermarket original vouchers, handwritten receipts, borrowing and the like. Wherein the key fields of the value added tax stamp include name, amount, number, etc.
Extracting the characteristic value of the original certificate; inquiring the type of the original certificate in a category sample library according to the characteristic value;
inquiring the position parameters of each key field in a position parameter library according to the type of the original certificate;
constructing and training a deep learning model; positioning the region where each key field is located according to the position parameters, and identifying each key field by using a trained deep learning model; key fields can also be directly obtained through manual input and scanning gun input;
searching an accounting document template and a reimbursement document template; and filling the key fields into the accounting document template and the reimbursement document template to generate an accounting document and a reimbursement document. The accounting document and the reimbursement document can be generated simultaneously at one time, or after the reimbursement document is generated, the accounting document is generated through leading examination and approval, and a user selects the accounting document according to the flow of a company. And when generating accounting document each time, will record the accounting document information (such as the time of scanning, the accounting document number that generates etc.) that generates, if find the duplicate reimbursement, will pop out the prompt message.
Furthermore, a plurality of characteristic values can be set for one original certificate at the same time; the specific steps for extracting the characteristic value of the original certificate are as follows: and identifying the text information at any position on the original certificate by utilizing an ORC technology, and taking the text information as a characteristic value. For example, the location on the ticket (90,125) identifies "XX station" as the first feature value; the location on the ticket (60,150) identifies "G309" as the second characteristic value.
Further, the specific steps of constructing and training the deep learning model are as follows:
constructing a sample set, wherein the sample set comprises a plurality of classified character pictures; in the embodiment, a large number of character pictures are automatically generated as samples by combining image programming and font files;
constructing a deep learning model (in the present embodiment, Caffe is used as a model framework); training a deep learning model, performing iterative training on the deep learning model by using a sample set, adjusting hyper-parameters of the deep learning model in the training, and storing the trained deep learning model after the training is finished;
the method has the advantages that the method does not identify all the text information of the original certificate, but queries the type of the original certificate through a small amount of text information of the original certificate, queries the position of the key field according to the type, and then identifies the key field; the data amount required to be processed by the algorithm is greatly reduced, the running cost of the algorithm is reduced, and the identification speed and accuracy are improved; and the generated accounting voucher information is recorded, so that the original voucher is prevented from being reiterated for multiple times and multiple units.
EXAMPLE five
Furthermore, after each key field is identified by using the trained deep learning model, the original voucher is also checked, and the specific steps are as follows: and inquiring the electronic certificate data according to the key field or identifying the two-dimensional code on the original certificate to obtain the electronic certificate data (in the embodiment, the two-dimensional code can be 'a bill internet of things suite' of the invention with the publication number of CN 103377363B), comparing the key field with the electronic certificate data, and if the two are not consistent, the original certificate is invalid (for example, the original certificate is forged or is PS-copied).
The improvement of the embodiment is that the data of the original certificate and the electronic certificate are compared, so that the counterfeiting of the original certificate can be effectively avoided, and meanwhile, the invention of patent with publication number of CN103377363B, namely 'a bill Internet of things suite', can be used as a unified interface of each large platform, so that the workload of both parties of supply and demand of the information of the original certificate is reduced, and the resources of the whole society are saved.
EXAMPLE six
Further, the system comprises an accounting system, wherein the accounting system is used for recording and managing unit financial data; after the accounting document is generated, the accounting document is automatically filled into a database of an accounting system. In this embodiment, the voucher data table generated by the present invention can also be called by the existing accounting system of the user unit.
The embodiment has the advantages that the accounting document is further managed, and the workload of an accounting staff is reduced.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes performed by the present specification and drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.