CN109583448B - Accounting method, device, electronic equipment and medium - Google Patents

Accounting method, device, electronic equipment and medium Download PDF

Info

Publication number
CN109583448B
CN109583448B CN201811253364.5A CN201811253364A CN109583448B CN 109583448 B CN109583448 B CN 109583448B CN 201811253364 A CN201811253364 A CN 201811253364A CN 109583448 B CN109583448 B CN 109583448B
Authority
CN
China
Prior art keywords
bill
data
current
imaging image
historical
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.)
Active
Application number
CN201811253364.5A
Other languages
Chinese (zh)
Other versions
CN109583448A (en
Inventor
纪纲
余雪亭
张云鹏
邓淼
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology 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 Beijing Qihoo Technology Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201811253364.5A priority Critical patent/CN109583448B/en
Publication of CN109583448A publication Critical patent/CN109583448A/en
Application granted granted Critical
Publication of CN109583448B publication Critical patent/CN109583448B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • G06V30/14Image acquisition
    • G06V30/148Segmentation of character regions
    • G06V30/153Segmentation of character regions using recognition of characters or words
    • 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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/12Accounting
    • G06Q40/125Finance or payroll

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Development Economics (AREA)
  • Technology Law (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Multimedia (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a billing method, a billing device, electronic equipment and a billing medium, wherein the billing method comprises the following steps: acquiring an imaging image of a target bill; identifying character data in the imaging image, and extracting bill data in the character data to generate a current bill according to the bill data; and outputting the current bill to prompt a user, and storing the current bill after receiving the confirmation operation of the user. The method and the device provided by the application are used for solving the technical problem that a user needs to consume a large amount of searching time when knowing the consumption condition and the fund transfer condition in the prior art, and realizing the technical effect of improving the searching efficiency.

Description

Accounting method, device, electronic equipment and medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a billing method, apparatus, electronic device, and medium.
Background
With the advancement of technology, smart phones have become popular, and activities such as living, consumption, entertainment and the like of the masses are not separated from various mobile devices. The use of smartphones has led to convenience, and in particular, in various consumer activities, the use of handsets to make payments is also more common.
In order to facilitate users to know and inquire about their own consumption conditions, bank terminals, network payment platforms or merchants often provide documents to users after consuming or transferring funds so as to keep consumption and funds transfer records for users to inquire.
However, each time a user wants to know his own consumption situation or inquire about a certain funds transfer, he needs to browse the history document, and a lot of time is consumed, and the efficiency is low.
Disclosure of Invention
The present invention has been made in view of the above problems, and provides a billing method, apparatus, electronic device, and medium that overcomes or at least partially solves the above problems.
In a first aspect, there is provided a billing method comprising:
acquiring an imaging image of a target bill;
identifying character data in the imaging image, and extracting bill data in the character data to generate a current bill according to the bill data;
and outputting the current bill to prompt a user, and storing the current bill after receiving the confirmation operation of the user.
Optionally, the acquiring the imaging image of the target document includes: taking the target bill as a shooting object, shooting and obtaining an imaging image of the target bill; or receiving an imaged image of the target document; or scanning the target bill to obtain an imaging image of the target bill; or, screen capturing is carried out on the information of the target bill, and an imaging image of the target bill is obtained.
Optionally, the identifying character data in the imaging image includes: character data in the imaged image is identified by an optical character recognition technique.
Optionally, the extracting bill data in the character data includes: and extracting bill data in the character data according to a preset bill template.
Optionally, the billing data includes any one or more of the following combinations: amount, transaction category, transaction own account, transaction time, transaction counterpart information, and transaction scenario.
Optionally, the extracting bill data in the character data includes: extracting transaction time information in the character data; and if the transaction time information does not exist in the character data, taking the acquisition time of the imaging image as the transaction time information.
Optionally, after the generating the current bill, the method further includes: comparing the current bill with the stored historical bill, and determining whether the current bill and the historical bill have a repetitive relationship or not; if there is a repeat relationship, the bills for which there is a repeat relationship are combined.
Optionally, the determining whether the current bill and the historical bill have a repetitive relationship includes: if the difference value of the transaction time of the current bill and the historical bill is within a preset difference value range, and the bill data of the current bill is matched with the bill data of the historical bill, determining that a repeated relationship exists between the current bill and the historical bill; and if the difference value of the transaction time of the current bill and the historical bill is not within the preset difference value range, or the bill data of the current bill and the bill data of the historical bill are not matched, determining that the current bill and the historical bill have no repeated relationship.
Optionally, outputting the bill to prompt the user includes: monitoring an imaging image acquisition event, and generating and outputting the bill to prompt a user after each acquisition of the imaging image; or outputting the bill according to the preset time to prompt the user; or after the preset page of the bill application is opened, outputting the bill to prompt the user.
Optionally, the storing the current bill includes: and determining the type of the current bill according to the bill data, and storing the current bill in a classified manner.
Optionally, the method is applied to the client, and after the storing the current bill, the method further includes: and sending the current bill to a server for data synchronization, wherein the data in the current bill of the client and the server are synchronized based on the operation result of the last end of the client and the server for operating the current bill.
In a second aspect, there is provided a bill generating apparatus comprising:
the acquisition module is used for acquiring an imaging image of the target bill;
the extraction module is used for identifying character data in the imaging image and extracting bill data in the character data so as to generate a current bill according to the bill data;
And the output module is used for outputting the current bill to prompt a user, and storing the current bill after receiving the confirmation operation of the user.
Optionally, the acquiring module is further configured to: taking the target bill as a shooting object, shooting and obtaining an imaging image of the target bill; or receiving an imaged image of the target document; or scanning the target bill to obtain an imaging image of the target bill; or, screen capturing is carried out on the information of the target bill, and an imaging image of the target bill is obtained.
Optionally, the extracting module is further configured to: character data in the imaged image is identified by an optical character recognition technique.
Optionally, the extracting module is further configured to: and extracting bill data in the character data according to a preset bill template.
Optionally, the billing data includes any one or more of the following combinations: amount, transaction category, transaction own account, transaction time, transaction counterpart information, and transaction scenario.
Optionally, the extracting module is further configured to: extracting transaction time information in the character data; and if the transaction time information does not exist in the character data, taking the acquisition time of the imaging image as the transaction time information.
Optionally, the apparatus further includes: the duplicate checking module is used for comparing the current bill with the stored historical bill and determining whether the current bill and the historical bill have a duplicate relationship or not; if there is a repeat relationship, the bills for which there is a repeat relationship are combined.
Optionally, the duplicate checking module is further configured to: if the difference value of the transaction time of the current bill and the historical bill is within a preset difference value range, and the bill data of the current bill is matched with the bill data of the historical bill, determining that a repeated relationship exists between the current bill and the historical bill; and if the difference value of the transaction time of the current bill and the historical bill is not within the preset difference value range, or the bill data of the current bill and the bill data of the historical bill are not matched, determining that the current bill and the historical bill have no repeated relationship.
Optionally, the output module is further configured to: monitoring an imaging image acquisition event, and generating and outputting the bill to prompt a user after each acquisition of the imaging image; or outputting the bill according to the preset time to prompt the user; or after the preset page of the bill application is opened, outputting the bill to prompt the user.
Optionally, the output module is further configured to: and determining the type of the current bill according to the bill data, and storing the current bill in a classified manner.
Optionally, the device is a client, and further includes: and the sending module is used for sending the current bill to a server for data synchronization, wherein the data in the current bill of the client and the server are synchronized based on the operation result of the last end for operating the current bill in the client and the server.
In a third aspect, there is provided an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the method of any of the first aspects when executing the program.
In a fourth aspect, there is provided a computer readable storage medium having stored thereon a computer program which when executed by a processor implements the method of any of the first aspects.
The technical scheme provided in the embodiment of the application has at least the following technical effects or advantages:
according to the billing method, the billing device, the electronic equipment and the billing medium, after the imaging image of the target bill is acquired, character data in the imaging image are identified, and bill data in the character data are automatically extracted to generate a current bill. I.e., automatically extracting critical billing data from the image to generate a bill for storage, for subsequent user inquiry of the funds change record and for obtaining focused consumption data from the bill. Further, the current bill is output to prompt the user, the current bill is stored after the user confirms, and the accuracy of the bill is improved through confirmation of the user.
The foregoing description is only an overview of the present invention, and is intended to be implemented in accordance with the teachings of the present invention in order that the same may be more clearly understood and to make the same and other objects, features and advantages of the present invention more readily apparent.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to designate like parts throughout the figures. In the drawings:
FIG. 1 is a flow chart of a billing method in an embodiment of the invention;
FIG. 2 is a schematic diagram of a billing apparatus according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of an electronic device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a storage medium according to an embodiment of the present invention.
Detailed Description
According to the technical scheme in the embodiment of the application, the overall thought is as follows:
and automatically extracting bill data from the imaging image of the bill to generate a current bill for storage, so that the efficiency of inquiring fund data by a user can be improved. Before storing the current bill, the current bill is output to prompt the user, and the accuracy of the bill is improved through confirmation of the user.
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Example 1
The present embodiment provides a billing method, please refer to fig. 1, fig. 1 is a flowchart of the billing method in the embodiment of the present application, which includes:
step S101, acquiring an imaging image of a target bill;
step S102, recognizing character data in the imaging image, and extracting bill data in the character data to generate a current bill according to the bill data;
step S103, outputting the current bill to prompt a user, and storing the current bill after receiving the confirmation operation of the user.
It should be noted that, the method provided in this embodiment may be applied to a client, for example, a smart phone, a smart watch, a computer, etc.; the method can also be applied to a server, for example: servers, cloud, etc., are not limited herein.
The target bill in the embodiment may be a paper physical bill, or may be a generated electronic information bill, where the generating party may be a payment platform, a bank, a merchant, or the like. And may be in particular shopping mall tickets, restaurant tickets, hotel accommodation receipts, scenic spot tickets, air tickets, bank statement or bank check, etc.
The following describes in detail, with reference to fig. 1, specific implementation steps of the method provided in the embodiment of the present application:
step S101, acquiring an imaging image of a target document.
In the embodiment of the present application, there may be various ways to obtain the imaging image of the target document, and the following four examples are listed below:
first, taking the target bill as a shooting object, shooting and obtaining an imaging image of the target bill. The imaging image is obtained by shooting the target document through the image shooting unit, and the imaging image can be specifically a paper target document or a target document displayed on other equipment, and the imaging image is not limited herein.
Second, an imaged image of the target document is received. I.e., receiving the imaged image sent by the server side or other client side to the device, the imaged image having an image of the target document thereon.
Thirdly, scanning the target bill and acquiring an imaging image of the target bill. Specifically, the imaging image of the target document can be obtained by directly and integrally scanning the target document, or can be obtained by scanning the two-dimensional code on the target document.
Fourth, screen capturing is carried out on the information of the target bill, and an imaging image of the target bill is obtained. When the target bill is an electronic information bill, the screen capturing operation can be executed to acquire an imaging image when the bill is displayed by the equipment.
Of course, in the implementation process, the manner of acquiring the imaging image of the target document is not limited to the above four types, and is not limited herein, and is not listed here.
Further, in order to facilitate triggering automatic execution of the next recognition of the character data, it may be set that after the bill application is started, the image capturing unit is called from the bill application to capture the target document, or the imaging image is received based on the bill application, or the scanning unit is called from the bill application to scan the target document, or the screen capturing function is called from the bill application, so as to realize automatic character data recognition on the acquired imaging image.
Of course, the image analysis may be performed on all the acquired images, and if the characters of the image have keywords such as "element", "account", "expenditure" or "transfer" or identifiers of some financial institutions or merchants in the image, the image is considered as an imaged image of the target document, and the step of automatically performing character data recognition is performed. Machine learning algorithms may also be employed to determine whether it is an imaging image of a bill, without limitation.
Step S102, character data in the imaging image are identified, and bill data in the character data are extracted to generate a current bill according to the bill data.
In the embodiment of the present application, the method for recognizing the character data in the imaged image may be implemented by OCR (Optical Character Recognition ) technology, or may be implemented by a feature extraction algorithm or an image matching algorithm, which is not limited herein.
The billing data includes any one or more of the following combinations: amount, transaction category, transaction own account, transaction time, transaction counterpart information, transaction scenario, etc. The transaction category can be "expenditure", "income", and the transaction scene can be "bank withdrawal", "catering" or "traffic", etc.
In the embodiment of the application, the bill data in the character data can be extracted according to a preset bill template so as to improve the regularity of the extracted bill data. Specifically, the bill data in the character data is extracted according to a bill template, which may be a specific item (for example, an amount of money, a transaction time, a transaction scenario, etc.), a display format of the item, and an extraction mode of the item, where the bill data to be extracted is set in a preset bill template. The specific extraction modes can be various, and the following two examples are listed:
First, keywords.
And extracting bill data in the character data according to the keywords in the preset bill template.
For example, digital information before and after "meta" and "renminbi" may be set to be extracted as an amount in bill data; setting information belonging to a preset account list such as a certain bank, a certain treasure, a certain letter and the like, and extracting the information as a transaction own account; setting information of merchant account lists such as 'certain east', 'certain panned' or 'certain aviation' and the like, and extracting the information as transaction counterpart information; setting ": digital information before and after "" "year, month, day", etc. is extracted as trade time, etc.
For example, the billing template requires that billing data be extracted for the amount of money, time of transaction, transaction scenario, transaction b-party account, etc. For an imaging image of a paper bank receipt, extracting transaction time of 3 months and 21 days according to a keyword DATE preset in a bill template; according to the keyword 'bank', the account 'business bank, account 9414' of the own transaction can be extracted; according to the keyword 'money drawing', a transaction scene 'bank money drawing' can be extracted; according to the keyword "Renminbi", the amount "529" can be extracted.
Second, an extraction algorithm.
And extracting bill data in the character data according to an extraction algorithm in a preset bill template.
Specifically, an algorithm model that can be used to extract billing data from character data may be trained in advance by means of machine learning, big data, and the like, and then the billing data may be extracted by the algorithm model. Of course, after collecting various extraction data, the developer may develop and edit the extraction algorithm according to the development experience to extract the bill data from the character data.
Of course, in the implementation process, the bill data may be extracted locally at the client, or the character data may be sent to the server to extract the bill data, which is not limited herein.
In the implementation process, the transaction time information is preferentially extracted from the character data, and if the transaction time information does not exist in the character data, the acquisition time of the imaging image can be acquired as the transaction time information. Further, the transaction counterpart information is preferentially extracted from the character data, and if the transaction counterpart information does not exist in the character data, the positioned place name can be used as the transaction counterpart information so as to ensure that the complete bill data can be extracted to the maximum extent.
After the bill data is extracted, the bill data is arranged according to a format preset by a bill template to generate a current bill, and then the follow-up steps are executed.
In this embodiment of the present application, after the current bill is generated, the current bill and the stored historical bill may be compared, so as to determine whether the current bill and the historical bill have a repetitive relationship, so as to avoid that the repetitive bill interferes with the user query, which is also unfavorable for the subsequent statistics and analysis of the bill. The duplication checking step may be performed after step S102 or after step S103, and is not limited herein.
The specific weight checking method can be set according to the needs, and the following two examples are listed:
first, the machine learning algorithm looks up duplicate.
Namely, a large number of bills are input to train a weight checking model, the trained weight checking model is used for checking weight, the current bill is compared with the stored historical bill, and whether a repeated relationship exists is determined.
Second, setting condition check weight.
Namely, the duplicate checking condition is set according to the experience of analyzing the historical data to check duplicate. Can be set as follows:
if the difference value of the transaction time of the current bill and the historical bill is within the preset difference value range and the bill data of the current bill is matched with the bill data of the historical bill, determining that a repeated relationship exists between the current bill and the historical bill;
If the difference value of the transaction time of the current bill and the historical bill is not within the preset difference value range, or the bill data of the current bill and the bill data of the historical bill are not matched, determining that the current bill and the historical bill have no repeated relationship.
The preset difference range may be 24h or 10h, etc., which is not limited herein. The matching of the bill data of the current bill and the bill data of the historical bill can be transaction opposite party information, transaction account number b, amount, transaction scene or the same.
And if the repeated relation exists between the current bill and the historical bill after the repeated check is carried out, merging the bills with the repeated relation. The specific merging method can be to delete any bill or merge the data of both to form a more complete bill.
Step S103, outputting a current bill to prompt a user, and storing the current bill after receiving the confirmation operation of the user.
Specifically, the present bill may be output, without limitation, by ejecting a bill card for the user to watch, or by outputting a voice bill for the user to listen to, etc. The trigger event for outputting the current bill can have various settings, and the following three examples are listed:
First, output with the acquisition of the image.
I.e. listening to the imaging image acquisition event and after each acquisition of an imaging image generating and outputting said bill to prompt the user. Taking a smart phone as an example, after an imaging image of a bill is obtained by shooting each time, character data in the image is triggered to be identified, bill data is extracted to generate a current bill, and the current bill is triggered to be output to prompt a user for confirmation. The event of each acquisition of the imaging image is the triggering event of the current bill output.
Second, a preset time is set to be output.
I.e., outputting a bill to prompt the user at a preset time. Specifically, the user may set a preset time in the billing application in advance, and the preset time may be a specific time point or a duration. If the time point is a specific time point, when the preset time is reached, outputting all bills which are not output before the preset time in batches so as to prompt the user to confirm in batches; and if the time is the duration, outputting all bills in the period periodically according to the duration so as to prompt the user to confirm in batches.
Through setting up the time of predetermineeing, can avoid all carrying out bill suggestion when obtaining the imaging at every turn, the interference user.
Third, the application APP is started for output.
I.e. after opening a preset page of the billing application, a bill is output to prompt the user. Specifically, each time a user opens a bill application, the user will prompt in batches all bill outputs between the opening and the last opening.
Further, the method and the device can also accurately set when the bill application is started and the application front page is popped up, and output bills to prompt a user, or after the bill application is started, the user clicks an unacknowledged bill mark on the page to trigger outputting all bills unacknowledged up to the present.
Of course, in the implementation process, the triggering events of the bill output are not limited to the above three types, and in order to better fit the needs of the user, the above multiple triggering modes can be provided for the user to select, and the user can set the mode of triggering the bill output needed by the user to select.
In the embodiment of the application, the current bill which is output to the user for confirmation can be set to be in an editable state, and the user can edit the needed information to the bill. After confirming the bill, the user may perform a confirmation operation to trigger the storing of the current bill.
In the implementation process, the type of the current bill can be determined according to the bill data, and the current bill is classified and stored. To facilitate subsequent searching of the bill and analysis of the bill data. The specific classified latitudes can be various, for example, the classified latitudes can be classified into 'income' and 'expenditure' according to the trend of funds, the classified latitudes can be classified into 'catering', 'transportation', 'entertainment', 'financial management' and the like according to the consumption types, and the classified latitudes can be classified into 'certain bank consumption', 'certain credit consumption', 'credit card repayment', 'bank withdrawal' and the like according to the consumption channels. Of course, different sort latitudes may also be nested, e.g., first sorted by fund trend, and then sorted by "type of consumption".
Assuming that the method of the embodiment is applied to the client, after the current bill is stored on the client, the current bill can be sent to the server for data synchronization, so as to ensure that the data of the server and the data of the client are consistent. Further, if the current bill needs to be modified, the data in the current bill of the client and the server are synchronized based on the operation result of the last end operating the current bill in the client and the server, so as to avoid inconsistent two ends.
Based on the same inventive concept, the embodiment of the invention also provides a device corresponding to the method in the first embodiment, which is shown in the second embodiment.
Example two
As shown in fig. 2, there is provided a billing apparatus including:
an acquisition module 201, configured to acquire an imaging image of a target document;
an extracting module 202, configured to identify character data in the imaged image, and extract bill data in the character data, so as to generate a current bill according to the bill data;
and the output module 203 is configured to output the current bill to prompt a user, and store the current bill after receiving a confirmation operation of the user.
In the embodiment of the present application, the obtaining module 201 is further configured to:
Taking the target bill as a shooting object, shooting and obtaining an imaging image of the target bill; or,
receiving an imaging image of a target document; or,
scanning the target bill to acquire an imaging image of the target bill; or,
and capturing a screen of the information of the target bill to obtain an imaging image of the target bill.
In the embodiment of the present application, the extracting module 202 is further configured to:
character data in the imaged image is identified by an optical character recognition technique.
In the embodiment of the present application, the extracting module 202 is further configured to:
and extracting bill data in the character data according to a preset bill template.
In an embodiment of the present application, the billing data includes any one or more of the following combinations:
amount, transaction category, transaction own account, transaction time, transaction counterpart information, and transaction scenario.
In the embodiment of the present application, the extracting module 202 is further configured to:
extracting transaction time information in the character data;
and if the transaction time information does not exist in the character data, taking the acquisition time of the imaging image as the transaction time information.
In an embodiment of the present application, the apparatus further includes:
The duplicate checking module is used for comparing the current bill with the stored historical bill and determining whether the current bill and the historical bill have a duplicate relationship or not; if there is a repeat relationship, the bills for which there is a repeat relationship are combined.
In this embodiment of the present application, the duplicate checking module is further configured to:
if the difference value of the transaction time of the current bill and the historical bill is within a preset difference value range, and the bill data of the current bill is matched with the bill data of the historical bill, determining that a repeated relationship exists between the current bill and the historical bill;
and if the difference value of the transaction time of the current bill and the historical bill is not within the preset difference value range, or the bill data of the current bill and the bill data of the historical bill are not matched, determining that the current bill and the historical bill have no repeated relationship.
In the embodiment of the present application, the output module 203 is further configured to:
monitoring an imaging image acquisition event, and generating and outputting the bill to prompt a user after each acquisition of the imaging image; or,
outputting the bill according to preset time to prompt a user; or,
After a preset page of the bill application is opened, outputting the bill to prompt a user.
In the embodiment of the present application, the output module 203 is further configured to:
and determining the type of the current bill according to the bill data, and storing the current bill in a classified manner.
In an embodiment of the present application, the apparatus is a client, and further includes:
and the sending module is used for sending the current bill to a server for data synchronization, wherein the data in the current bill of the client and the server are synchronized based on the operation result of the last end for operating the current bill in the client and the server.
Since the device described in the second embodiment of the present invention is a device for implementing the method described in the first embodiment of the present invention, based on the method described in the first embodiment of the present invention, a person skilled in the art can understand the specific structure and the deformation of the device, and thus the detailed description thereof is omitted herein. All devices used in the method according to the first embodiment of the present invention are within the scope of the present invention.
Based on the same inventive concept, the embodiment of the invention also provides equipment corresponding to the method in the first embodiment, and the third embodiment is seen.
Example III
As shown in fig. 3, the present embodiment provides an electronic device, including a memory 310, a processor 320, and a computer program 311 stored in the memory 310 and executable on the processor 320, wherein the processor 320 implements the following steps when executing the computer program 311:
acquiring an imaging image of a target bill;
identifying character data in the imaging image, and extracting bill data in the character data to generate a current bill according to the bill data;
and outputting the current bill to prompt a user, and storing the current bill after receiving the confirmation operation of the user.
In this embodiment, any implementation manner of the embodiment of the present application may be implemented when the processor 320 executes the computer program 311.
Since the apparatus described in the third embodiment of the present invention is an apparatus for implementing the method described in the first embodiment of the present invention, based on the method described in the first embodiment of the present invention, a person skilled in the art can understand the specific structure and the deformation of the apparatus, and therefore, the details are not repeated here. All equipment adopted by the method of the first embodiment of the invention belongs to the scope of protection of the invention.
Based on the same inventive concept, the embodiment of the invention also provides a storage medium corresponding to the method in the first embodiment, and the fourth embodiment is provided.
Example IV
The present embodiment provides a computer readable storage medium 400, as shown in fig. 4, having stored thereon a computer program 411, characterized in that the computer program 411, when executed by a processor, performs the steps of:
acquiring an imaging image of a target bill;
identifying character data in the imaging image, and extracting bill data in the character data to generate a current bill according to the bill data;
and outputting the current bill to prompt a user, and storing the current bill after receiving the confirmation operation of the user.
In a specific implementation, the computer program 411 may implement any one of the embodiments of the present application when executed by a processor.
The technical scheme provided in the embodiment of the application has at least the following technical effects or advantages:
according to the billing method, the billing device, the electronic equipment and the billing medium, after the imaging image of the target bill is acquired, character data in the imaging image are identified, and bill data in the character data are automatically extracted to generate a current bill. I.e., automatically extracting critical billing data from the image to generate a bill for storage, for subsequent user inquiry of the funds change record and for obtaining focused consumption data from the bill. Further, the current bill is output to prompt the user, the current bill is stored after the user confirms, and the accuracy of the bill is improved through confirmation of the user.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual system, or other apparatus. Various general-purpose systems may also be used with the teachings herein. The required structure for a construction of such a system is apparent from the description above. In addition, the present invention is not directed to any particular programming language. It will be appreciated that the teachings of the present invention described herein may be implemented in a variety of programming languages, and the above description of specific languages is provided for disclosure of enablement and best mode of the present invention.
In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be construed as reflecting the intention that: i.e., the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the apparatus of the embodiments may be adaptively changed and disposed in one or more apparatuses different from the embodiments. The modules or units or components of the embodiments may be combined into one module or unit or component and, furthermore, they may be divided into a plurality of sub-modules or sub-units or sub-components. Any combination of all features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or units of any method or apparatus so disclosed, may be used in combination, except insofar as at least some of such features and/or processes or units are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings), may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments herein include some features but not others included in other embodiments, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments can be used in any combination.
Various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that some or all of the functions of some or all of the components in a gateway, proxy server, system according to embodiments of the present invention may be implemented in practice using a microprocessor or Digital Signal Processor (DSP). The present invention can also be implemented as an apparatus or device program (e.g., a computer program and a computer program product) for performing a portion or all of the methods described herein. Such a program embodying the present invention may be stored on a computer readable medium, or may have the form of one or more signals. Such signals may be downloaded from an internet website, provided on a carrier signal, or provided in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second, third, etc. do not denote any order. These words may be interpreted as names.
The invention discloses A1, a billing method, comprising the following steps:
acquiring an imaging image of a target bill;
identifying character data in the imaging image, and extracting bill data in the character data to generate a current bill according to the bill data;
and outputting the current bill to prompt a user, and storing the current bill after receiving the confirmation operation of the user.
A2, the method according to A1, wherein the acquiring the imaging image of the target document comprises:
taking the target bill as a shooting object, shooting and obtaining an imaging image of the target bill; or,
receiving an imaging image of a target document; or,
scanning the target bill to acquire an imaging image of the target bill; or,
and capturing a screen of the information of the target bill to obtain an imaging image of the target bill.
A3. the method according to A1, wherein said identifying character data in said imaged image comprises:
character data in the imaged image is identified by an optical character recognition technique.
A4. the method according to A1, wherein extracting bill data in the character data includes:
And extracting bill data in the character data according to a preset bill template.
A5, the method of A1, wherein the billing data comprises any one or more of the following combinations:
amount, transaction category, transaction own account, transaction time, transaction counterpart information, and transaction scenario.
A6, the method according to A5, wherein extracting the bill data in the character data comprises:
extracting transaction time information in the character data;
and if the transaction time information does not exist in the character data, taking the acquisition time of the imaging image as the transaction time information.
A7, the method according to A1, further comprising, after the generating the current bill:
comparing the current bill with the stored historical bill, and determining whether the current bill and the historical bill have a repetitive relationship or not;
if there is a repeat relationship, the bills for which there is a repeat relationship are combined.
A8. the method according to A7, wherein the determining whether the current bill and the historical bill have a repetitive relationship includes:
if the difference value of the transaction time of the current bill and the historical bill is within a preset difference value range, and the bill data of the current bill is matched with the bill data of the historical bill, determining that a repeated relationship exists between the current bill and the historical bill;
And if the difference value of the transaction time of the current bill and the historical bill is not within the preset difference value range, or the bill data of the current bill and the bill data of the historical bill are not matched, determining that the current bill and the historical bill have no repeated relationship.
A9. the method according to A1, wherein the outputting the current bill to prompt the user includes:
monitoring an imaging image acquisition event, and outputting the bill to prompt a user after each acquisition of the imaging image; or,
outputting the bill according to preset time to prompt a user; or,
after a preset page of the bill application is opened, outputting the bill to prompt a user.
A10, the method according to A1, wherein storing the current bill comprises:
and determining the type of the current bill according to the bill data, and storing the current bill in a classified manner.
A11. the method according to A1, wherein the method is applied to a client, and after the storing the current bill, further comprises:
and sending the current bill to a server for data synchronization, wherein the data in the current bill of the client and the server are synchronized based on the operation result of the last end of the client and the server for operating the current bill.
B12, a bill generation device, comprising:
the acquisition module is used for acquiring an imaging image of the target bill;
the extraction module is used for identifying character data in the imaging image and extracting bill data in the character data so as to generate a current bill according to the bill data;
and the output module is used for outputting the current bill to prompt a user, and storing the current bill after receiving the confirmation operation of the user.
B13, the apparatus of B12, wherein the obtaining module is further configured to:
taking the target bill as a shooting object, shooting and obtaining an imaging image of the target bill; or,
receiving an imaging image of a target document; or,
scanning the target bill to acquire an imaging image of the target bill; or,
and capturing a screen of the information of the target bill to obtain an imaging image of the target bill.
B14, the apparatus of B12, wherein the extraction module is further configured to:
character data in the imaged image is identified by an optical character recognition technique.
B15, the apparatus of B12, wherein the extraction module is further configured to:
And extracting bill data in the character data according to a preset bill template.
B16, the apparatus of B12, wherein the billing data comprises any one or more of the following combinations:
amount, transaction category, transaction own account, transaction time, transaction counterpart information, and transaction scenario.
B17, the apparatus of B16, wherein the extraction module is further configured to:
extracting transaction time information in the character data;
and if the transaction time information does not exist in the character data, taking the acquisition time of the imaging image as the transaction time information.
B18, the apparatus of B12, further comprising:
the duplicate checking module is used for comparing the current bill with the stored historical bill and determining whether the current bill and the historical bill have a duplicate relationship or not; if there is a repeat relationship, the bills for which there is a repeat relationship are combined.
B19, the apparatus according to B18, wherein the weight checking module is further configured to:
if the difference value of the transaction time of the current bill and the historical bill is within a preset difference value range, and the bill data of the current bill is matched with the bill data of the historical bill, determining that a repeated relationship exists between the current bill and the historical bill;
And if the difference value of the transaction time of the current bill and the historical bill is not within the preset difference value range, or the bill data of the current bill and the bill data of the historical bill are not matched, determining that the current bill and the historical bill have no repeated relationship.
B20, the apparatus of B12, wherein the output module is further configured to:
monitoring an imaging image acquisition event, and generating and outputting the bill to prompt a user after each acquisition of the imaging image; or,
outputting the bill according to preset time to prompt a user; or,
after a preset page of the bill application is opened, outputting the bill to prompt a user.
B21, the apparatus of B12, wherein the output module is further configured to:
and determining the type of the current bill according to the bill data, and storing the current bill in a classified manner.
The apparatus of B22, wherein the apparatus is a client, further comprising:
and the sending module is used for sending the current bill to a server for data synchronization, wherein the data in the current bill of the client and the server are synchronized based on the operation result of the last end for operating the current bill in the client and the server.
C23, an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the method of any one of A1-a11 when executing the program.
D24, a computer readable storage medium having stored thereon a computer program which when executed by a processor implements the method of any of A1-a 11.

Claims (20)

1. A billing method, comprising:
acquiring an imaging image of a target bill;
identifying character data in the imaging image, and extracting bill data in the character data to generate a current bill according to the bill data;
outputting the current bill to prompt a user, and storing the current bill after receiving confirmation operation of the user;
after the generating the current bill, further comprising:
comparing the current bill with the stored historical bill, and determining whether the current bill and the historical bill have a repetitive relationship or not;
if the repeated relation exists, merging bills with the repeated relation;
the determining whether there is a duplicate relationship between the current bill and the historical bill includes:
if the difference value of the transaction time of the current bill and the historical bill is within a preset difference value range, and the bill data of the current bill is matched with the bill data of the historical bill, determining that a repeated relationship exists between the current bill and the historical bill;
And if the difference value of the transaction time of the current bill and the historical bill is not within the preset difference value range, or the bill data of the current bill and the bill data of the historical bill are not matched, determining that the current bill and the historical bill have no repeated relationship.
2. The method of claim 1, wherein the acquiring an imaging image of the target document comprises:
taking the target bill as a shooting object, shooting and obtaining an imaging image of the target bill; or,
receiving an imaging image of a target document; or,
scanning the target bill to acquire an imaging image of the target bill; or,
and capturing a screen of the information of the target bill to obtain an imaging image of the target bill.
3. The method of claim 1, wherein the identifying character data in the imaged image comprises:
character data in the imaged image is identified by an optical character recognition technique.
4. The method of claim 1, wherein the extracting billing data in the character data comprises:
and extracting bill data in the character data according to a preset bill template.
5. The method of claim 1, wherein the billing data comprises a combination of any one or more of:
amount, transaction category, transaction own account, transaction time, transaction counterpart information, and transaction scenario.
6. The method of claim 5, wherein the extracting billing data in the character data comprises:
extracting transaction time information in the character data;
and if the transaction time information does not exist in the character data, taking the acquisition time of the imaging image as the transaction time information.
7. The method of claim 1, wherein the outputting the current bill to prompt a user comprises:
monitoring an imaging image acquisition event, and outputting the bill to prompt a user after each acquisition of the imaging image; or,
outputting the bill according to preset time to prompt a user; or,
after a preset page of the bill application is opened, outputting the bill to prompt a user.
8. The method of claim 1, wherein the storing the current bill comprises:
and determining the type of the current bill according to the bill data, and storing the current bill in a classified manner.
9. The method of claim 1, wherein the method is applied to a client, after the storing the current bill, further comprising:
and sending the current bill to a server for data synchronization, wherein the data in the current bill of the client and the server are synchronized based on the operation result of the last end of the client and the server for operating the current bill.
10. A bill generating apparatus, comprising:
the acquisition module is used for acquiring an imaging image of the target bill;
the extraction module is used for identifying character data in the imaging image and extracting bill data in the character data so as to generate a current bill according to the bill data;
the output module is used for outputting the current bill to prompt a user, and storing the current bill after receiving the confirmation operation of the user;
further comprises: the duplicate checking module is used for comparing the current bill with the stored historical bill and determining whether the current bill and the historical bill have a duplicate relationship or not; if the repeated relation exists, merging bills with the repeated relation;
The duplicate checking module is also used for:
if the difference value of the transaction time of the current bill and the historical bill is within a preset difference value range, and the bill data of the current bill is matched with the bill data of the historical bill, determining that a repeated relationship exists between the current bill and the historical bill;
and if the difference value of the transaction time of the current bill and the historical bill is not within the preset difference value range, or the bill data of the current bill and the bill data of the historical bill are not matched, determining that the current bill and the historical bill have no repeated relationship.
11. The apparatus of claim 10, wherein the acquisition module is further to:
taking the target bill as a shooting object, shooting and obtaining an imaging image of the target bill; or,
receiving an imaging image of a target document; or,
scanning the target bill to acquire an imaging image of the target bill; or,
and capturing a screen of the information of the target bill to obtain an imaging image of the target bill.
12. The apparatus of claim 10, wherein the extraction module is further to:
Character data in the imaged image is identified by an optical character recognition technique.
13. The apparatus of claim 10, wherein the extraction module is further to:
and extracting bill data in the character data according to a preset bill template.
14. The apparatus of claim 10, wherein the billing data comprises a combination of any one or more of:
amount, transaction category, transaction own account, transaction time, transaction counterpart information, and transaction scenario.
15. The apparatus of claim 14, wherein the extraction module is further to:
extracting transaction time information in the character data;
and if the transaction time information does not exist in the character data, taking the acquisition time of the imaging image as the transaction time information.
16. The apparatus of claim 10, wherein the output module is further to:
monitoring an imaging image acquisition event, and generating and outputting the bill to prompt a user after each acquisition of the imaging image; or,
outputting the bill according to preset time to prompt a user; or,
after a preset page of the bill application is opened, outputting the bill to prompt a user.
17. The apparatus of claim 10, wherein the output module is further to:
and determining the type of the current bill according to the bill data, and storing the current bill in a classified manner.
18. The apparatus of claim 10, wherein the apparatus is a client, further comprising:
and the sending module is used for sending the current bill to a server for data synchronization, wherein the data in the current bill of the client and the server are synchronized based on the operation result of the last end for operating the current bill in the client and the server.
19. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of any of claims 1-9 when executing the program.
20. A computer readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method of any of claims 1-9.
CN201811253364.5A 2018-10-25 2018-10-25 Accounting method, device, electronic equipment and medium Active CN109583448B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811253364.5A CN109583448B (en) 2018-10-25 2018-10-25 Accounting method, device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811253364.5A CN109583448B (en) 2018-10-25 2018-10-25 Accounting method, device, electronic equipment and medium

Publications (2)

Publication Number Publication Date
CN109583448A CN109583448A (en) 2019-04-05
CN109583448B true CN109583448B (en) 2024-04-16

Family

ID=65920746

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811253364.5A Active CN109583448B (en) 2018-10-25 2018-10-25 Accounting method, device, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN109583448B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110335132A (en) * 2019-07-15 2019-10-15 高峰宇 Book keeping operation speed input method, system and computer readable storage medium
CN111986015B (en) * 2020-06-18 2024-04-30 励程 Method and system for extracting financial information for billing

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7349884B1 (en) * 2001-03-29 2008-03-25 Gsc Enterprises, Inc. Method and apparatus for electronic commerce services at a point of sale
CN103093363A (en) * 2013-01-24 2013-05-08 广东欧珀移动通信有限公司 Method and device of bill generation
CN104700277A (en) * 2013-12-05 2015-06-10 华为技术有限公司 Electronic accounting method and device and terminal equipment
CN105427107A (en) * 2015-11-03 2016-03-23 中国联合网络通信集团有限公司 Payment method and device based on intelligent glasses
CA2962884A1 (en) * 2016-03-31 2017-09-30 Glance Pay Inc. Wireless systems and methods for bill payment
CN107657039A (en) * 2017-09-28 2018-02-02 努比亚技术有限公司 Bill recording method, mobile terminal and computer-readable recording medium
CN107679997A (en) * 2017-10-30 2018-02-09 平安科技(深圳)有限公司 Method, apparatus, terminal device and storage medium are refused to pay in medical treatment Claims Resolution
CN107818508A (en) * 2017-11-10 2018-03-20 国信嘉宁数据技术有限公司 A kind of e bill merges the method for charging
CN108346106A (en) * 2018-02-23 2018-07-31 平安科技(深圳)有限公司 Bill entry method, system, optical character recognition server and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140279453A1 (en) * 2013-03-15 2014-09-18 Bank Of America Corporation Bill Payment Using Check Image
US20160247130A1 (en) * 2015-02-24 2016-08-25 John Paul Olmstead Presenting recipient billing information using data from previous transactions

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7349884B1 (en) * 2001-03-29 2008-03-25 Gsc Enterprises, Inc. Method and apparatus for electronic commerce services at a point of sale
CN103093363A (en) * 2013-01-24 2013-05-08 广东欧珀移动通信有限公司 Method and device of bill generation
CN104700277A (en) * 2013-12-05 2015-06-10 华为技术有限公司 Electronic accounting method and device and terminal equipment
CN105427107A (en) * 2015-11-03 2016-03-23 中国联合网络通信集团有限公司 Payment method and device based on intelligent glasses
CA2962884A1 (en) * 2016-03-31 2017-09-30 Glance Pay Inc. Wireless systems and methods for bill payment
CN107657039A (en) * 2017-09-28 2018-02-02 努比亚技术有限公司 Bill recording method, mobile terminal and computer-readable recording medium
CN107679997A (en) * 2017-10-30 2018-02-09 平安科技(深圳)有限公司 Method, apparatus, terminal device and storage medium are refused to pay in medical treatment Claims Resolution
CN107818508A (en) * 2017-11-10 2018-03-20 国信嘉宁数据技术有限公司 A kind of e bill merges the method for charging
CN108346106A (en) * 2018-02-23 2018-07-31 平安科技(深圳)有限公司 Bill entry method, system, optical character recognition server and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
Novel Method for Energy Consumption Billing Using Optical Character Recognition;Karthick, K,等;Energy Engineering: Journal of the Association of Energy Engineers;20171231;第114卷(第03期);第64-76页 *
基于OCR技术的原始单据管理系统设计;范义斌,等;中国外资(第11期);第84页 *
客户转账销账数据管理器建设;吴记江;机电信息;20161125(第33期);第150-151页 *

Also Published As

Publication number Publication date
CN109583448A (en) 2019-04-05

Similar Documents

Publication Publication Date Title
US11663654B2 (en) System and method for processing transaction records for users
US20140279453A1 (en) Bill Payment Using Check Image
JP7373473B2 (en) Accounting processing equipment, accounting processing methods, and accounting processing programs
US20150356545A1 (en) Machine Implemented Method of Processing a Transaction Document
CN108269135B (en) Information transmission method and device and electronic equipment
WO2016009636A1 (en) Account processing device, account processing method, and account processing program
CN113222555B (en) Data processing method, device, equipment and system
CN104408626A (en) Novel printing method based on two-dimensional code
CN110175849B (en) Collecting method, device, equipment, server and system
CN109598575B (en) Bill generation method and device, electronic equipment and medium
US20140236791A1 (en) Image retrieval and transaction id capture
CN109583448B (en) Accounting method, device, electronic equipment and medium
CN109598479B (en) Bill extraction method and device, electronic equipment and medium
CN110738784A (en) Invoice management method, device, server and system
CN107316346A (en) The method and apparatus of getting tickets of electronic bill
JP2017016696A (en) Account processing device, account processing method and account processing program
CN111242764A (en) Invoice reimbursement method and device based on block chain and readable storage medium
CN106373258A (en) Banknote prefix number picture file storage system and method
CN111967887B (en) Remote authentication method, system and computer readable storage medium for digital stamp and coin
CN111639905B (en) Enterprise business process management and control system, method, electronic equipment and storage medium
CN110992044B (en) Data processing method and device, electronic equipment and readable storage medium
KR102677178B1 (en) System for providing invoice managment agency service
KR20150096008A (en) System and method for expense claim form creation
CN109146660B (en) Data processing method and device
KR102479930B1 (en) Method and apparatus for collecting real-state information

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant