CN113537819A - Automatic service message checking method and device - Google Patents

Automatic service message checking method and device Download PDF

Info

Publication number
CN113537819A
CN113537819A CN202110863715.XA CN202110863715A CN113537819A CN 113537819 A CN113537819 A CN 113537819A CN 202110863715 A CN202110863715 A CN 202110863715A CN 113537819 A CN113537819 A CN 113537819A
Authority
CN
China
Prior art keywords
message
structured data
service
data
checking
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110863715.XA
Other languages
Chinese (zh)
Inventor
文会娴
李伟良
李俊
康宏宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202110863715.XA priority Critical patent/CN113537819A/en
Publication of CN113537819A publication Critical patent/CN113537819A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • G06Q10/06311Scheduling, planning or task assignment for a person or group
    • 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
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/103Workflow collaboration or project management

Landscapes

  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Engineering & Computer Science (AREA)
  • Strategic Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Development Economics (AREA)
  • Educational Administration (AREA)
  • Game Theory and Decision Science (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The invention provides a method and a device for automatically checking a service message, which can be used in the technical field of finance, wherein the method and the device are used for extracting element data of a plurality of service elements corresponding to each message main body, analyzing the element data to form structured data, and checking the structured data item by combining a preset structured data table.

Description

Automatic service message checking method and device
Technical Field
The invention relates to the technical field of internet finance, in particular to a method and a device for automatically checking service messages.
Background
In the prior art, a certificate automatic processing system and a certificate automatic processing method are as follows: an automatic voucher processing system and a method thereof are described as follows: the system comprises: the certificate definition module acquires the certificate layout information and corresponding cutting area definition parameters; the cutting area definition parameters comprise cutting area parameters, semantic identification modes of all areas and comparison relations between all areas and transaction fields; the certificate accepting module receives the paper certificate and obtains corresponding electronic image data of the certificate according to the paper certificate; obtaining a format type of the electronic image of the certificate through an image recognition model, matching the format type with the certificate format information, and obtaining a cutting area definition parameter corresponding to the certificate format information according to a matching result; the processing module cuts the electronic image data of the certificate according to the cutting area parameters to obtain a fragment image; respectively identifying the fragment images through semantic identification modes of all regions to obtain service elements; and calling preset business rules according to the comparison relationship between each area and the transaction field to splice the business elements, obtaining a verification document and submitting the verification document to a preset system for processing. Most of the prior art are paper vouchers on traditional bank counter, have clear and standardized board types, can visually define modules, do not need to define complex element paths, are independent in type of message processing objects, are fixed in position, are simple in element paths, and are not suitable for messages with uncertain element path levels and disordered contents.
Disclosure of Invention
Aiming at the problems that most of the prior art are paper vouchers on traditional bank counter, have definite and standardized plate type, can visually define modules, do not need to define complex element paths, and the message processing objects are independent individually, fixed in position and simple in element path and are not suitable for messages with uncertain element path levels and disordered contents, the invention provides a method and a device for automatically checking service messages, which are characterized in that element data of a plurality of service elements corresponding to message main bodies are extracted, then the element data are analyzed to form structured data, and then the structured data are checked and checked item by combining a preset structured data table, the invention overcomes the defects of independent individual objects, fixed in position and simple in element path in the prior art, and provides a method for realizing automatic checking of service messages based on message specifications, the message specification is converted into the structured data of the path with the fixed length, the structured data and the assembled unordered service message researched and developed by the bank are automatically verified, the manual verification cost is released, and the development and test efficiency is improved.
In order to solve the technical problems, the invention provides the following technical scheme:
an embodiment of a first aspect of the present invention provides an automatic service packet checking method, including:
acquiring a service message image to be checked;
analyzing the service message image, and extracting element data of a plurality of service elements corresponding to each message main body;
analyzing the element data based on a preset definition rule to form structured data;
and checking the structured data item by combining a preset structured data table to obtain a checking result of the business report.
In a preferred embodiment, the service elements include: message type, field label, field hierarchy path, necessary input item, value range and whether to quote the component;
the analyzing the service message image and extracting element data of a plurality of service elements corresponding to each message main body comprises the following steps:
and processing the service message image by an OCR image recognition technology to obtain the message type, the field label, the field hierarchical path, the necessary input item, the value range and whether to quote the component.
In a preferred embodiment, the message body includes a message header, a message body, and a common component, and the analyzing the service message image and extracting element data of a plurality of service elements corresponding to each message body includes:
identifying a message header, a message body and a common component of the service message image;
defining and analyzing the service elements of the message header and the message body according to a first definition rule to obtain first structured data;
defining and analyzing the public component according to a second definition rule to obtain second structured data;
if the message header and the message body refer to the data corresponding to the service elements of the component, sinking the hierarchical paths of all the fields under the component in the first structured data to one level, and splicing the hierarchical paths of the first structured data to form a complete path to form third structured data;
and replacing the data of the reference component in the first structured data with the third structured data to generate final structured data.
In a preferred embodiment, performing item-by-item check and verification on the structured data by combining with a preset structured data table to obtain a verification result of the business report, including:
analyzing the message type, the field label, the field hierarchical path, whether the message is a value or not and data corresponding to the message field value according to a standard definition rule for a preset structured data table, and forming contrast structured data;
and comparing each item of data of the contrast structured data and the final structured data one by one, and checking whether the label name is correct, the path hierarchy is correct, the necessary input item is a value, and the field value is in a value range to obtain a checking result of the business report.
In a preferred embodiment, further comprising:
outputting the checking result, and positioning the error problem based on the checking result;
and generating error description information aiming at the error problem by combining the corresponding message type.
An embodiment of a second aspect of the present invention provides an apparatus for automatically checking a service packet, including:
the acquisition module acquires a service message image to be checked;
the element analysis module is used for analyzing the service message image and extracting element data of a plurality of service elements corresponding to each message main body;
the structured data generation module analyzes the element data based on a preset definition rule to form structured data;
and the checking module is used for checking the structured data item by combining a preset structured data table to obtain a checking result of the business report.
In a preferred embodiment, the service elements include: message type, field label, field hierarchy path, necessary input item, value range and whether to quote the component;
the element analysis module is specifically used for processing the service message image through an OCR image recognition technology to obtain the message type, the field label, the field hierarchy path, the necessary input item, the value range and whether to quote the component.
In a preferred embodiment, the message body includes a message header, a message body, and a common component, and the element parsing module specifically includes:
the identification unit is used for identifying a message header, a message body and a common component of the service message image;
the first structured data generation unit is used for defining and analyzing the service elements of the message header and the message body according to a first definition rule to obtain first structured data;
the second structured data generation unit is used for defining and analyzing the public component according to a second definition rule to obtain second structured data;
if the message header and the message body refer to the data corresponding to the service elements of the component, the hierarchical paths of all fields under the component in the first structured data are sunk to one level, and the hierarchical paths of the first structured data are spliced to form a complete path to form third structured data;
and the replacing unit is used for replacing the data of the reference component in the first structured data by using the third structured data to generate final structured data.
In a preferred embodiment, the verification module comprises:
the contrast structured data generation unit analyzes the message type, the field label, the field hierarchical path, the value and the data corresponding to the message field value according to the standard definition rule for a preset structured data table and forms contrast structured data;
and the comparison unit is used for comparing each item of data of the comparison structured data and the final structured data one by one, checking whether the label name is correct, the path hierarchy is correct, whether the necessary input item is a value and whether the field value is in a value range, and obtaining a check result of the business report.
In a preferred embodiment, further comprising:
the positioning module is used for outputting the checking result and positioning the error problem based on the checking result;
and the error description information generation module is used for generating error description information by combining the error problem with the corresponding message type.
In a third aspect, the present invention provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the method for automatically verifying the service packet when executing the program.
In a fourth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for automatically verifying a service packet.
According to the technical scheme, the invention provides the automatic verification method and the automatic verification device for the service messages, and firstly, the image of the service message to be verified is obtained; then analyzing the service message image, and extracting element data of a plurality of service elements corresponding to each message main body; and finally, analyzing the element data based on a preset definition rule to form a structured data table, so that the element data of a plurality of service elements corresponding to each message main body are extracted, then the element data are analyzed to form structured data, and then the structured data are checked and verified item by combining with the preset structured data table.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is one of the steps in a specific example in an embodiment of the present invention.
FIG. 2 shows a second step in an embodiment of the present invention.
Fig. 3 shows a third step in an embodiment of the present invention.
FIG. 4 is a diagram of four steps in an embodiment of the present invention.
Fig. 5 is a schematic flow chart of an automatic service packet verification method in the embodiment of the present invention.
Fig. 6 is a schematic structural diagram of an automatic service packet checking apparatus in the embodiment of the present invention.
Fig. 7 is a schematic structural diagram of an electronic device in the embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the method and the device for automatically verifying the service packet disclosed by the present invention can be used in the financial field and can also be used in any field except the financial field.
In the prior art, a patent document automatic processing system and a patent document automatic processing method: an automated credential processing system and method, the system comprising: the certificate definition module acquires the certificate layout information and corresponding cutting area definition parameters; the cutting area definition parameters comprise cutting area parameters, semantic identification modes of all areas and comparison relations between all areas and transaction fields; the certificate accepting module receives the paper certificate and obtains corresponding electronic image data of the certificate according to the paper certificate; obtaining a format type of the electronic image of the certificate through an image recognition model, matching the format type with the certificate format information, and obtaining a cutting area definition parameter corresponding to the certificate format information according to a matching result; the processing module cuts the electronic image data of the certificate according to the cutting area parameters to obtain a fragment image; respectively identifying the fragment images through semantic identification modes of all regions to obtain service elements; and calling preset business rules according to the comparison relationship between each area and the transaction field to splice the business elements, obtaining a verification document and submitting the verification document to a preset system for processing.
It can be seen that the prior art aims at the paper voucher on the traditional bank counter, has a clear and standardized plate type, can visually define a module, and does not need to define a complex element path. The processing object of the invention is independent, the position is fixed, the element path is simple, and the invention is not suitable for the messages with indefinite element path level and disordered content.
The invention provides a method and a device for automatically checking a service message, which are used for overcoming the defects of independent object individuals, fixed position and simple element path in the prior art by extracting element data of a plurality of service elements corresponding to each message main body, analyzing the element data to form structured data and then checking and checking the structured data item by combining a preset structured data table.
It can be understood that the automatic checking apparatus for service messages of the present invention may be a server or a mobile terminal, and may include, for example, a smart phone, a tablet electronic device, a portable computer, a desktop computer, a Personal Digital Assistant (PDA), an intelligent wearable device, and the like. Wherein, intelligence wearing equipment can include intelligent glasses, intelligent wrist-watch, intelligent bracelet etc..
The automatic service message checking device is provided with a communication module, can be in communication connection with a message terminal or a message server, and realizes data transmission with the message terminal or the message server.
The automatic checking device for the service message can be communicated with the message terminal or the message server by using any appropriate network protocol, including the network protocol which is not developed in the filing date of the invention. The network protocol may include, for example, a TCP/IP protocol, a UDP/IP protocol, an HTTP protocol, an HTTPS protocol, or the like. Of course, the network Protocol may also include, for example, an RPC Protocol (Remote Procedure Call Protocol), a REST Protocol (Representational State Transfer Protocol), and the like used above the above Protocol.
The invention provides a method and a device for automatically checking a service message, which are used for overcoming the defects of independent object individuals, fixed position and simple element path in the prior art by extracting element data of a plurality of service elements corresponding to each message main body, analyzing the element data to form structured data and then checking and checking the structured data item by combining a preset structured data table.
The following embodiments and application examples are specifically and respectively described.
In order to solve the problems that most of the prior art are paper vouchers on traditional bank counter, have clear and standardized board types, can visually define modules, do not need to define complex element paths, and are not suitable for messages with uncertain element path levels and disordered contents, the message processing objects of the type are independent, fixed in position and simple in element paths, the embodiment of the automatic service message verification method provided by the invention specifically comprises the following contents:
step S101: and acquiring a service message image to be checked.
The service message image can be obtained by scanning, shooting and other modes, and in order to improve the definition of the image, a color scanner is used for scanning the message specification to form image data.
Step S102: and analyzing the service message image, and extracting element data of a plurality of service elements corresponding to each message main body.
Step S103: and analyzing the element data based on a preset definition rule to form structured data.
Step S104: and checking the structured data item by combining a preset structured data table to obtain a checking result of the business report.
According to the technical scheme, the method for automatically checking the service messages provided by the invention has the advantages that the defects of independent object individuals, fixed position and simple element path in the prior art are overcome by extracting the element data of a plurality of service elements corresponding to each message main body, analyzing the element data to form structured data and checking the structured data item by combining with a preset structured data table.
In some embodiments, the business elements include: message type, field label, field hierarchy path, necessary input item, value range and whether to quote the component;
the analyzing the service message image and extracting element data of a plurality of service elements corresponding to each message main body comprises the following steps:
and processing the service message image by an OCR image recognition technology to obtain the message type, the field label, the field hierarchical path, the necessary input item, the value range and whether to quote the component.
In some embodiments, the parsing the service message image and extracting element data of a plurality of service elements corresponding to each message body includes:
identifying a message header, a message body and a common component of the service message image;
defining and analyzing the service elements of the message header and the message body according to a first definition rule to obtain first structured data;
defining and analyzing the public component according to a second definition rule to obtain second structured data;
if the message header and the message body refer to the data corresponding to the service elements of the component, sinking the hierarchical paths of all the fields under the component in the first structured data to one level, and splicing the hierarchical paths of the first structured data to form a complete path to form third structured data;
and replacing the data of the reference component in the first structured data with the third structured data to generate final structured data.
Specifically, image data is preprocessed through an OCR image recognition technology, and all business elements are extracted.
Identifying a message header and a message body, and defining and analyzing the message header and the message body: the message type, the field label, the field hierarchical path, whether the message needs to be input, the value range, whether the component is quoted or not and the like form first structured data, namely structured data A.
Identifying the public component, defining and analyzing the public component: and the information such as the component type, the field label, the field hierarchical path, the input necessity or not, the value range and the like form second structured data, namely structured data B.
And for the data whether the component in the data A is referred to as yes, the hierarchical paths of all fields under the corresponding component in the data B are descended by one level, and the hierarchical paths of the data A are spliced to form a complete path to form third structured data, namely structured data C.
And finally, replacing the data of the reference component in the data A by the data C to form a complete piece of final structured data.
In this embodiment, performing item-by-item check and verification on the structured data by combining with a preset structured data table to obtain a verification result of the business report, where the verification result includes:
analyzing the message type, the field label, the field hierarchical path, whether the message is a value or not and data corresponding to the message field value according to a standard definition rule for a preset structured data table, and forming contrast structured data;
and comparing each item of data of the contrast structured data and the final structured data one by one, and checking whether the label name is correct, the path hierarchy is correct, the necessary input item is a value, and the field value is in a value range to obtain a checking result of the business report.
Specifically, the corresponding service message can be automatically inquired from the system background; then the message is used as input, the message type, the field label, the field hierarchical path, the value and the message field value are analyzed, and the contrast structured data, namely the structured data D, is formed.
The structured data D is then checked item by item against a: and checking information such as whether the label name is correct, whether the path hierarchy is correct, whether the necessary input item is a value, whether the field value is in a value range and the like.
In some embodiments of the invention, further comprising:
outputting the checking result, and positioning the error problem based on the checking result;
and generating error description information aiming at the error problem by combining the corresponding message type.
Specifically, a verification result can be output, red font marking is carried out on inconsistent contents, problems are located, corresponding error description information is given, manual confirmation is carried out, and verification efficiency is improved.
The present invention will be described in detail with reference to specific examples.
The method will be described in detail below.
Firstly, as shown in fig. 1, the message specification is converted into a high-definition image.
Secondly, as shown in fig. 2, the image data is preprocessed by the OCR image recognition technology, and partial text is extracted by escaping, so as to form the structured data.
The (part) packet body structured data standardA is as follows:
table 1-message body structured data table
Figure BDA0003186613810000091
And (III) as shown in FIG. 3, acquiring the service message developed by the inventor from the system, analyzing the service message, and extracting the structured data from the service message.
(part of) the service packet structured data messageB is as follows in table 2:
table 2-service message structured data table
Figure BDA0003186613810000101
(IV) As in FIG. 4, the structured data is collated
The structured data standardA and messageA are checked item by item according to the following rules:
1) and taking a 'message path' as a data set zone bit.
2) And checking whether the 'message path' of the standardA set is consistent with the 'message path' of the messageA set.
3) It is checked whether "must input" of standardA set is consistent with "is value" of messageA set.
4) It is checked whether the "length" of the standardA set is equal to or greater than the "length" of the messageA set.
5) And checking whether the 'fixed value' of the standardA set is not an empty record and the 'field value' of the corresponding messageA set is in a fixed value range.
6) And checking whether the 'fixed value' of the standardA set is an empty record and the 'field value' of the corresponding messageA set is in a value range, wherein the x character set refers to: english letters, numbers and special characters-, - ()/+? | A And &; % @ # [ ] \ n \ r \ t (blank space).
7) And checking whether the format of the special format of the standardA set is not an empty record and the format of the field value of the corresponding messageA set is correct or not.
8) Whether the "Chinese support" of the standardA set is consistent with the "Chinese containing" of the messageA set is checked.
And (V) outputting a verification result, marking the abnormal record with red, and manually confirming the record which fails to pass the verification. For example, after the automatic verification, 4 prompts are output as follows, and the positioning problem is caused by an InstdPty node error in the path, and the correct node is an InstdAgt node.
1) The "message path" of the standardA set/Document/ElcsFreeFrmt/GrpHdr/InstdAgt/Mmbid does not have the "message path" of the messageA set.
2) The message path of the messageA set/Document/ElcsFreeFrmt/GrpHdr/InstdPty/Mmbid has no persistent dA set corresponding to the message path.
3) The "message path" of the standardA set/Document/ElcsFreeFrmt/GrpHdr/InstdAgt/BrnchId/Id corresponds to the "message path" without the messageA set.
4) The messageA set 'message path'/Document/ElcsFreeFrmt/GrpHdr/InstdPty/BrnchId/Id has no persistent dA set 'message path' corresponding to it.
In order to solve the problems that most of the prior art are paper vouchers on traditional bank counter, have a clear and standardized board type, can visually define modules, do not need to define complex element paths, and are not suitable for messages with uncertain element path levels and disordered contents, the message processing objects of the type are independent, fixed in position and simple in element paths, in one or more embodiments of the invention, the invention provides a service message automatic verification method device, which comprises the following steps:
the acquisition module 11 acquires a service message image to be verified;
the element analysis module 12 is used for analyzing the service message image and extracting element data of a plurality of service elements corresponding to each message main body;
the structured data generation module 13 analyzes the element data based on a preset definition rule to form structured data;
and the checking module 14 is used for checking the structured data item by combining with a preset structured data table to obtain a checking result of the business report.
According to the technical scheme, the device extracts the element data of the plurality of service elements corresponding to each message main body, analyzes the element data to form structured data, and then checks and checks the structured data item by combining a preset structured data table.
In a preferred embodiment, the service elements include: message type, field label, field hierarchy path, necessary input item, value range and whether to quote the component;
the element analysis module is specifically used for processing the service message image through an OCR image recognition technology to obtain the message type, the field label, the field hierarchy path, the necessary input item, the value range and whether to quote the component.
In a preferred embodiment, the message body includes a message header, a message body, and a common component, and the element parsing module specifically includes:
the identification unit is used for identifying a message header, a message body and a common component of the service message image;
the first structured data generation unit is used for defining and analyzing the service elements of the message header and the message body according to a first definition rule to obtain first structured data;
the second structured data generation unit is used for defining and analyzing the public component according to a second definition rule to obtain second structured data;
if the message header and the message body refer to the data corresponding to the service elements of the component, the hierarchical paths of all fields under the component in the first structured data are sunk to one level, and the hierarchical paths of the first structured data are spliced to form a complete path to form third structured data;
and the replacing unit is used for replacing the data of the reference component in the first structured data by using the third structured data to generate final structured data.
In a preferred embodiment, the verification module comprises:
the contrast structured data generation unit analyzes the message type, the field label, the field hierarchical path, the value and the data corresponding to the message field value according to the standard definition rule for a preset structured data table and forms contrast structured data;
and the comparison unit is used for comparing each item of data of the comparison structured data and the final structured data one by one, checking whether the label name is correct, the path hierarchy is correct, whether the necessary input item is a value and whether the field value is in a value range, and obtaining a check result of the business report.
In a preferred embodiment, further comprising:
the positioning module is used for outputting the checking result and positioning the error problem based on the checking result;
and the error description information generation module is used for generating error description information by combining the error problem with the corresponding message type.
In terms of hardware, in order to solve the problems that most of the prior art are paper vouchers on traditional bank counter, have a clear and standardized board type, can visually define modules, do not need to define complex element paths, and are not suitable for messages with uncertain element path levels and disordered contents, such message processing objects are independent, fixed in position and simple in element paths, the invention provides an embodiment of electronic equipment for realizing all or part of contents in the automatic service message verification method, and the electronic equipment specifically comprises the following contents:
fig. 7 is a schematic block diagram of an apparatus configuration of an electronic device 9600 according to an embodiment of the present invention. As shown in fig. 7, the electronic device 9600 can include a central processor 9100 and a memory 9140; the memory 9140 is coupled to the central processor 9100. Notably, this fig. 7 is exemplary; other types of structures may also be used in addition to or in place of the structure to implement telecommunications or other functions.
In one embodiment, the service message automatic verification method function can be integrated into the central processor. Wherein the central processor may be configured to control:
step S101: and acquiring a service message image to be checked.
Step S102: and analyzing the service message image, and extracting element data of a plurality of service elements corresponding to each message main body.
Step S103: and analyzing the element data based on a preset definition rule to form structured data.
Step S104: and checking the structured data item by combining a preset structured data table to obtain a checking result of the business report.
According to the technical scheme, the electronic equipment provided by the invention has the advantages that the defects of independence of objects, fixed positions and simple element paths in the prior art are overcome by extracting the element data of a plurality of service elements corresponding to each message main body, analyzing the element data to form the structured data and checking the structured data item by combining with the preset structured data table.
In another embodiment, the server may be configured separately from the central processing unit 9100, for example, the server may be a chip connected to the central processing unit 9100, and the function of the automatic service packet verification method is implemented by the control of the central processing unit.
As shown in fig. 7, the electronic device 9600 may further include: a communication module 9110, an input unit 9120, an audio processor 9130, a display 9160, and a power supply 9170. It is noted that the electronic device 9600 also does not necessarily include all of the components shown in fig. 7; further, the electronic device 9600 may further include components not shown in fig. 7, which may be referred to in the art.
As shown in fig. 7, a central processor 9100, sometimes referred to as a controller or operational control, can include a microprocessor or other processor device and/or logic device, which central processor 9100 receives input and controls the operation of the various components of the electronic device 9600.
The memory 9140 can be, for example, one or more of a buffer, a flash memory, a hard drive, a removable media, a volatile memory, a non-volatile memory, or other suitable device. The information relating to the failure may be stored, and a program for executing the information may be stored. And the central processing unit 9100 can execute the program stored in the memory 9140 to realize information storage or processing, or the like.
The input unit 9120 provides input to the central processor 9100. The input unit 9120 is, for example, a key or a touch input device. Power supply 9170 is used to provide power to electronic device 9600. The display 9160 is used for displaying display objects such as images and characters. The display may be, for example, an LCD display, but is not limited thereto.
The memory 9140 can be a solid state memory, e.g., Read Only Memory (ROM), Random Access Memory (RAM), a SIM card, or the like. There may also be a memory that holds information even when power is off, can be selectively erased, and is provided with more data, an example of which is sometimes called an EPROM or the like. The memory 9140 could also be some other type of device. Memory 9140 includes a buffer memory 9141 (sometimes referred to as a buffer). The memory 9140 may include an application/function storage portion 9142, the application/function storage portion 9142 being used for storing application programs and function programs or for executing a flow of operations of the electronic device 9600 by the central processor 9100.
The memory 9140 can also include a data store 9143, the data store 9143 being used to store data, such as contacts, digital data, pictures, sounds, and/or any other data used by an electronic device. The driver storage portion 9144 of the memory 9140 may include various drivers for the electronic device for communication functions and/or for performing other functions of the electronic device (e.g., messaging applications, contact book applications, etc.).
The communication module 9110 is a transmitter/receiver 9110 that transmits and receives signals via an antenna 9111. The communication module (transmitter/receiver) 9110 is coupled to the central processor 9100 to provide input signals and receive output signals, which may be the same as in the case of a conventional mobile communication terminal.
Based on different communication technologies, a plurality of communication modules 9110, such as a cellular network module, a bluetooth module, and/or a wireless local area network module, may be provided in the same electronic device. The communication module (transmitter/receiver) 9110 is also coupled to a speaker 9131 and a microphone 9132 via an audio processor 9130 to provide audio output via the speaker 9131 and receive audio input from the microphone 9132, thereby implementing ordinary telecommunications functions. The audio processor 9130 may include any suitable buffers, decoders, amplifiers and so forth. In addition, the audio processor 9130 is also coupled to the central processor 9100, thereby enabling recording locally through the microphone 9132 and enabling locally stored sounds to be played through the speaker 9131.
An embodiment of the present invention further provides a computer-readable storage medium capable of implementing all steps in the service packet automatic verification method in the foregoing embodiment, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the computer program implements all steps of the service packet automatic verification method in the foregoing embodiment, where an execution subject of the computer program is a server or a client, for example, when the processor executes the computer program, the processor implements the following steps:
step S101: and acquiring a service message image to be checked.
Step S102: and analyzing the service message image, and extracting element data of a plurality of service elements corresponding to each message main body.
Step S103: and analyzing the element data based on a preset definition rule to form structured data.
Step S104: and checking the structured data item by combining a preset structured data table to obtain a checking result of the business report.
According to the technical scheme, the computer storage medium provided by the invention has the advantages that the element data of the plurality of service elements corresponding to each message main body are extracted, then the element data are analyzed to form the structured data, and then the structured data are checked and verified item by combining with the preset structured data table.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (devices), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The principle and the implementation mode of the invention are explained by applying specific embodiments in the invention, and the description of the embodiments is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (12)

1. An automatic service message checking method is characterized by comprising the following steps:
acquiring a service message image to be checked;
analyzing the service message image, and extracting element data of a plurality of service elements corresponding to each message main body;
analyzing the element data based on a preset definition rule to form structured data;
and checking the structured data item by combining a preset structured data table to obtain a checking result of the business report.
2. The method according to claim 1, wherein the service element comprises: message type, field label, field hierarchy path, necessary input item, value range and whether to quote the component;
the analyzing the service message image and extracting element data of a plurality of service elements corresponding to each message main body comprises the following steps:
and processing the service message image by an OCR image recognition technology to obtain the message type, the field label, the field hierarchical path, the necessary input item, the value range and whether to quote the component.
3. The method according to claim 2, wherein the message body includes a message header, a message body, and a common component, and the parsing the service message image and extracting element data of a plurality of service elements corresponding to each message body includes:
identifying a message header, a message body and a common component of the service message image;
defining and analyzing the service elements of the message header and the message body according to a first definition rule to obtain first structured data;
defining and analyzing the public component according to a second definition rule to obtain second structured data;
if the message header and the message body refer to the data corresponding to the service elements of the component, sinking the hierarchical paths of all the fields under the component in the first structured data to one level, and splicing the hierarchical paths of the first structured data to form a complete path to form third structured data;
and replacing the data of the reference component in the first structured data with the third structured data to generate final structured data.
4. The method according to claim 1, wherein the step of checking the structured data item by item in combination with a preset structured data table to obtain a checking result of the service report includes:
analyzing the message type, the field label, the field hierarchical path, whether the message is a value or not and data corresponding to the message field value according to a standard definition rule for a preset structured data table, and forming contrast structured data;
and comparing each item of data of the contrast structured data and the final structured data one by one, and checking whether the label name is correct, the path hierarchy is correct, the necessary input item is a value, and the field value is in a value range to obtain a checking result of the business report.
5. The method for automatically verifying service messages according to claim 1, further comprising:
outputting the checking result, and positioning the error problem based on the checking result;
and generating error description information aiming at the error problem by combining the corresponding message type.
6. An automatic checking device for service messages, comprising:
the acquisition module acquires a service message image to be checked;
the element analysis module is used for analyzing the service message image and extracting element data of a plurality of service elements corresponding to each message main body;
the structured data generation module analyzes the element data based on a preset definition rule to form structured data;
and the checking module is used for checking the structured data item by combining a preset structured data table to obtain a checking result of the business report.
7. The apparatus for automatically verifying service messages according to claim 6, wherein the service elements include: message type, field label, field hierarchy path, necessary input item, value range and whether to quote the component;
the element analysis module is specifically used for processing the service message image through an OCR image recognition technology to obtain the message type, the field label, the field hierarchy path, the necessary input item, the value range and whether to quote the component.
8. The apparatus according to claim 7, wherein the message body includes a message header, a message body, and a common component, and the element parsing module specifically includes:
the identification unit is used for identifying a message header, a message body and a common component of the service message image;
the first structured data generation unit is used for defining and analyzing the service elements of the message header and the message body according to a first definition rule to obtain first structured data;
the second structured data generation unit is used for defining and analyzing the public component according to a second definition rule to obtain second structured data;
if the message header and the message body refer to the data corresponding to the service elements of the component, the hierarchical paths of all fields under the component in the first structured data are sunk to one level, and the hierarchical paths of the first structured data are spliced to form a complete path to form third structured data;
and the replacing unit is used for replacing the data of the reference component in the first structured data by using the third structured data to generate final structured data.
9. The apparatus according to claim 6, wherein the checking module comprises:
the contrast structured data generation unit analyzes the message type, the field label, the field hierarchical path, the value and the data corresponding to the message field value according to the standard definition rule for a preset structured data table and forms contrast structured data;
and the comparison unit is used for comparing each item of data of the comparison structured data and the final structured data one by one, checking whether the label name is correct, the path hierarchy is correct, whether the necessary input item is a value and whether the field value is in a value range, and obtaining a check result of the business report.
10. The apparatus for automatically verifying service messages according to claim 6, further comprising:
the positioning module is used for outputting the checking result and positioning the error problem based on the checking result;
and the error description information generation module is used for generating error description information by combining the error problem with the corresponding message type.
11. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any of claims 1 to 8 when executing the program.
12. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method of any one of claims 1 to 8.
CN202110863715.XA 2021-07-29 2021-07-29 Automatic service message checking method and device Pending CN113537819A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110863715.XA CN113537819A (en) 2021-07-29 2021-07-29 Automatic service message checking method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110863715.XA CN113537819A (en) 2021-07-29 2021-07-29 Automatic service message checking method and device

Publications (1)

Publication Number Publication Date
CN113537819A true CN113537819A (en) 2021-10-22

Family

ID=78089599

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110863715.XA Pending CN113537819A (en) 2021-07-29 2021-07-29 Automatic service message checking method and device

Country Status (1)

Country Link
CN (1) CN113537819A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114004217A (en) * 2022-01-04 2022-02-01 江西派能科技有限公司 Message signature element extraction method and system
CN114710422A (en) * 2022-04-02 2022-07-05 中国民航信息网络股份有限公司 Luggage message format checking method and related device
CN114817398A (en) * 2022-04-02 2022-07-29 中国民航信息网络股份有限公司 Method and related device for replying message by substituting for frontier inspection system
CN114866627A (en) * 2022-05-07 2022-08-05 中国工商银行股份有限公司 Message checking method, device, processor and electronic equipment
CN115809644A (en) * 2022-11-15 2023-03-17 四川智慧高速科技有限公司 Data table generation method, electronic device and readable medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114004217A (en) * 2022-01-04 2022-02-01 江西派能科技有限公司 Message signature element extraction method and system
CN114710422A (en) * 2022-04-02 2022-07-05 中国民航信息网络股份有限公司 Luggage message format checking method and related device
CN114817398A (en) * 2022-04-02 2022-07-29 中国民航信息网络股份有限公司 Method and related device for replying message by substituting for frontier inspection system
CN114866627A (en) * 2022-05-07 2022-08-05 中国工商银行股份有限公司 Message checking method, device, processor and electronic equipment
CN115809644A (en) * 2022-11-15 2023-03-17 四川智慧高速科技有限公司 Data table generation method, electronic device and readable medium
CN115809644B (en) * 2022-11-15 2023-11-03 四川智慧高速科技有限公司 Data table generation method, electronic device and readable medium

Similar Documents

Publication Publication Date Title
CN113537819A (en) Automatic service message checking method and device
CN111582273B (en) Image text recognition method and device
CN111325626B (en) Account checking data pushing method and device
CN111819589B (en) System and method for establishing common request processing
CN111652093B (en) Text image processing method and device
KR20040096799A (en) On/off line integrate education system using interactive publication and embodiment method thereof
CN111931666B (en) Automatic certificate processing system and method
CN112784112B (en) Message verification method and device
CN109064161A (en) A kind of bank account transaction journal intelligent management and device based on short message
CN113627145A (en) Method, device, equipment and medium for generating file of parameterized configuration
CN110288310A (en) Work visa report management method, equipment, storage medium and device
US9985788B2 (en) Method and an apparatus for securely signing application data
CN111783432A (en) Generation method and device of credit certificate examination key point list
CN112187829B (en) Online transaction message processing method, device and system
CN110598186A (en) Auxiliary processing method, device and system for image recognition
KR20080048157A (en) User font generating apparatus, user font generating method and user font service providing method
JP4809637B2 (en) Character recognition system and character recognition method
US8712885B2 (en) Method for assisting in the checking of transaction records, transaction device, server, mobile terminal, and corresponding computer programs
CN110782718B (en) Auxiliary learning method, system, family education machine, computer equipment and storage medium
CN111797608B (en) Credit data checking method and device
CN113868401A (en) Digital human interaction method and device, electronic equipment and computer storage medium
CN113015170A (en) Short message verification method, device, electronic equipment and medium
CN112396418A (en) Information processing method, device and system
CN112910753A (en) Voice message display method and device
KR20010078993A (en) Method of Making Electronic Document which is agreed through Internet

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