WO2018090641A1 - Method, apparatus and device for identifying insurance policy number, and computer-readable storage medium - Google Patents

Method, apparatus and device for identifying insurance policy number, and computer-readable storage medium Download PDF

Info

Publication number
WO2018090641A1
WO2018090641A1 PCT/CN2017/091308 CN2017091308W WO2018090641A1 WO 2018090641 A1 WO2018090641 A1 WO 2018090641A1 CN 2017091308 W CN2017091308 W CN 2017091308W WO 2018090641 A1 WO2018090641 A1 WO 2018090641A1
Authority
WO
WIPO (PCT)
Prior art keywords
insurance policy
picture
insurance
sample
training
Prior art date
Application number
PCT/CN2017/091308
Other languages
French (fr)
Chinese (zh)
Inventor
马进
王健宗
肖京
Original Assignee
平安科技(深圳)有限公司
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 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2018090641A1 publication Critical patent/WO2018090641A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/21Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
    • G06F18/214Generating training patterns; Bootstrap methods, e.g. bagging or boosting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/049Temporal neural networks, e.g. delay elements, oscillating neurons or pulsed inputs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/22Image preprocessing by selection of a specific region containing or referencing a pattern; Locating or processing of specific regions to guide the detection or recognition
    • G06V10/23Image preprocessing by selection of a specific region containing or referencing a pattern; Locating or processing of specific regions to guide the detection or recognition based on positionally close patterns or neighbourhood relationships
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/60Type of objects
    • G06V20/62Text, e.g. of license plates, overlay texts or captions on TV images
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/40Document-oriented image-based pattern recognition
    • G06V30/41Analysis of document content
    • G06V30/412Layout analysis of documents structured with printed lines or input boxes, e.g. business forms or tables
    • 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

Definitions

  • the present invention relates to the field of image processing technologies, and in particular, to a method, an apparatus, a device, and a computer readable storage medium for identifying an insurance policy number.
  • Each insurance policy or insurance policy picture has a unique insurance policy number corresponding to it.
  • the insurance policy number is the key information, and the staff generally needs to perform the operation of searching or inquiring the insurance information according to the insurance policy number. If you want to get the picture information such as the insurance policy number from multiple insurance policy pictures, it is usually obtained by manual operation. When the number of insurance policy pictures is large, the staff cannot quickly get each insurance policy. The insurance policy number of the picture results in a very large workload and reduces work efficiency.
  • the object of the present invention is to provide a method, device, device and computer readable storage medium for identifying an insurance policy number, which aims to quickly obtain an insurance policy number from a large number of insurance policy pictures, reduce workload and improve work efficiency.
  • the present invention provides a method for identifying an insurance policy number, and the method for identifying an insurance policy number includes:
  • the present invention also provides an apparatus for identifying an insurance policy number, and the apparatus for identifying an insurance policy number includes:
  • a first extraction module configured to identify an insurance type corresponding to the insurance policy picture after receiving the insurance policy picture, and extract the insurance policy based on a predetermined insurance type and a positional relationship of the insurance policy number in the insurance policy picture The number is in the corresponding target line character area in the insurance policy picture;
  • a first identification module configured to invoke a first recognition model generated by the pre-training to perform character recognition on the target line character region, to identify an insurance policy number included in the target line character region, And identifying the insurance policy number and storing the insurance policy picture.
  • the present invention also provides an apparatus for identifying an insurance policy number, the apparatus comprising the memory, a processor, and an identification insurance number stored on the memory and operable on the processor
  • the program when the program for identifying the insurance policy number is executed by the processor, implements the following steps:
  • the present invention also provides a computer readable storage medium having stored thereon a program for identifying an insurance policy number, wherein the program for identifying an insurance policy number is executed by a processor to implement the following steps :
  • the invention has the beneficial effects that the invention firstly identifies the insurance type of the insurance policy picture, and through the positional relationship between the insurance type and the insurance policy number in the insurance policy picture, the target line character area corresponding to the insurance policy number can be extracted, and then called.
  • the first recognition model generated by the pre-training is used to identify the insurance policy number in the target line character area, and the entire operation process requires almost no manual participation, and the insurance policy number can be quickly obtained from a large number of insurance policy pictures, thereby greatly reducing the workload. ,Improve work efficiency.
  • FIG. 1 is a schematic flow chart of a first embodiment of a method for identifying an insurance policy number according to the present invention
  • FIG. 2 is a schematic flow chart of a second embodiment of a method for identifying an insurance policy number according to the present invention
  • FIG. 3 is a schematic flow chart of a third embodiment of a method for identifying an insurance policy number according to the present invention.
  • FIG. 4 is a schematic flow chart of a fourth embodiment of a method for identifying an insurance policy number according to the present invention.
  • FIG. 5 is a schematic flowchart diagram of a fifth embodiment of a method for identifying an insurance policy number according to the present invention.
  • FIG. 6 is a schematic structural diagram of a first embodiment of an apparatus for identifying an insurance policy number according to the present invention.
  • FIG. 7 is a schematic structural diagram of a second embodiment of an apparatus for identifying an insurance policy number according to the present invention.
  • FIG. 8 is a schematic structural diagram of a third embodiment of an apparatus for identifying an insurance policy number according to the present invention.
  • FIG. 9 is a block diagram showing the hardware structure of an apparatus for identifying an insurance policy number according to the present invention.
  • FIG. 1 is a schematic flowchart of an embodiment of a method for identifying an insurance policy number according to the present invention.
  • the method for identifying an insurance policy number includes the following steps:
  • Step S1 after receiving the insurance policy picture, identifying the insurance type corresponding to the insurance policy picture, and extracting the insurance policy number based on the predetermined insurance type and the positional relationship of the insurance policy number in the insurance policy picture.
  • each insurance policy is an insurance type.
  • the insurance policy numbers are not in the same position. For example, some insurance policy numbers are located above the upper right corner of the insurance policy, and some insurance policy numbers are located to the left of the upper right corner of the insurance policy.
  • different types of insurance policies are stored in association with the location of the insurance policy number.
  • the insurance type of the insurance policy image is first identified. The specific identification process is: The size, color and content layout of the single are comprehensively identified to determine the type of insurance to which the insurance policy picture belongs.
  • the insurance type to which the insurance policy picture belongs may be identified by other methods, for example, by identifying the content of the insurance picture. Information to determine the type of insurance to which it belongs.
  • Step S2 calling the first recognition model generated by the pre-training to perform character recognition on the target line character region to identify the insurance policy number included in the target line character region, and identify the insurance policy number and the insurance A single picture is stored in association.
  • the first recognition model is generated in advance, and the first recognition model may be one of a plurality of models related to image processing.
  • the first recognition model is a time recurrent neural network model. Calling the first recognition model to perform character recognition on the target line character region to identify each character in the target line character region.
  • the insurance policy number is a number, and when all the characters are recognized, an insurance policy can be obtained. number.
  • the insurance policy number is stored in association with the insurance policy picture, so that when the employee searches or retrieves the insurance policy number, the insurance policy number can be used to query or retrieve the associated insurance number. Insurance policy picture.
  • the embodiment first identifies the insurance type of the insurance policy picture, and by using the positional relationship between the insurance type and the insurance policy number in the insurance policy picture, the target line character area corresponding to the insurance policy number can be extracted, and then Calling the first recognition model generated by the pre-training to identify the insurance policy number in the target line character area, the whole operation process requires almost no human participation, and can quickly obtain the insurance policy number from a large number of insurance policy pictures, thereby greatly reducing the work. Quantity, improve work efficiency.
  • step S1 is replaced by:
  • step S0 after receiving the insurance policy picture, the second recognition model generated by the pre-training is invoked to identify the target line character area in which the insurance policy number is located in the insurance policy picture.
  • the second recognition model is generated in advance, and the second recognition model may be one of a plurality of models related to image processing.
  • the second recognition model is a convolutional neural network model.
  • the second identification model is called to locate and identify the insurance policy picture to identify the target line character area where the insurance policy number is located.
  • the present embodiment identifies the target line character area where the insurance policy number is located in the insurance policy picture by calling the second identification model. Since the second recognition model is obtained by training a large amount of data, it is possible to Accurately identify the target line character area.
  • the method further includes:
  • Step S01 obtaining a preset number of insurance policy sample pictures, using the insurance policy sample picture including the insurance policy number as the first picture set, and using the insurance policy sample picture not including the insurance policy number as the second picture set;
  • Step S02 extracting, from the first picture set and the second picture set, a first preset proportion of the insurance order sample picture as the sample picture to be trained, and collecting the remaining insurance policies in the first picture set and the second picture set.
  • the sample image is used as a sample image to be verified;
  • Step S03 performing model training using each sample picture to be trained to generate the convolutional neural network model, and verifying the generated convolutional neural network model by using each sample picture to be verified;
  • step S04 if the verification pass rate is greater than or equal to the preset threshold, the training is completed, otherwise the number of the insurance ticket sample pictures is increased to re-train and verify.
  • the second recognition model is a convolutional neural network model. Before using the convolutional neural network model to identify the target line character region, the convolutional neural network model is first trained to generate:
  • Obtain a preset number of insurance policy sample images for example, obtain 100,000 insurance policy sample images, where the insurance policy sample image including the insurance policy number is used as the first photo collection, and the insurance policy sample image not including the insurance policy number As a second collection of pictures.
  • the first picture set and the second picture set respectively extract the first preset proportion of the insurance order sample picture as the sample picture to be trained, for example, the first picture set and the second picture set respectively extract 80% of the insurance sample picture as the to-be-trained
  • the sample picture, the first picture set and the remaining insurance order sample pictures in the second picture set are used as sample pictures to be verified.
  • the parameters of the convolutional neural network model are trained by default parameters, and the parameters are continuously adjusted during the training process.
  • each of the to-be-verified models is used.
  • the sample picture is used to verify the generated convolutional neural network model. If the verification pass rate is greater than or equal to a preset threshold, for example, the pass rate is greater than or equal to 98%, the training ends, and the convolutional neural network model obtained by the training is used to identify the target.
  • the model of the line character area if If the verification pass rate is less than the preset threshold, for example, less than 98%, the number of the insurance ticket sample pictures is increased, and the above steps S01, S02, S03, and S04 are performed again until the verification pass rate is greater than or equal to the preset threshold.
  • the preset threshold for example, less than 98%
  • the method further includes:
  • S21 Obtain a preset number of insurance ticket number sample images, extract a second preset proportion of insurance policy number sample images as a training set, and test the remaining insurance policy number sample images in the preset number of insurance policy number sample images as a test set;
  • S22 Input the insurance ticket number sample image in the training set to the time recurrent neural network model for model training, and use the insurance ticket number sample image in the test set to perform the trained time recurrent neural network model every preset time. Testing to assess the recognition effect of the trained time recurrent neural network model;
  • the first recognition model is a time recurrent neural network model
  • the time recurrent neural network model is first trained to identify the characters in the target line character region by using the time recurrent neural network model:
  • Obtain a preset number of insurance ticket number sample images for example, obtain 100,000 insurance policy number sample images, wherein the insurance policy number sample image only contains one line of numbers, the line number is the insurance policy number, the font is black, and the background is white.
  • the name of each insurance policy number sample picture can be named as the insurance policy number included.
  • the number of insurance ticket number sample pictures in the test set for example, 80% of the insurance order number sample pictures in the insurance order number sample picture is used as the training set, and the remaining 20% of the insurance number number sample pictures are used as the test set.
  • the parameters of the time recurrent neural network model are trained by default parameters, and the insurance order number sample images in the training set are input into the time recurrent neural network model for training,
  • the preset time uses the insurance policy number sample picture in the test set to test the trained time recurrent neural network model. For example, the training set is tested with the test set after every 1000 iterations to evaluate the trained time recurrent neural network model. Identify the effect.
  • the trained model is used to identify the insurance policy number of the insurance policy number sample image in the test set, and compare the identification result with the used name of the insurance ticket number sample picture (the insurance policy number sample picture utilizes the The insurance policy number is named to evaluate the recognition effect of the trained time recurrent neural network model.
  • the recognition error of the trained time recurrent neural network model is calculated, and the identification error is the identified insurance policy number and the name of the insurance ticket number sample picture.
  • the edit distance of the insurance policy number used if the recognition error converges, the training is completed, and the trained time recurrent neural network model is used as a model for identifying characters in the target line character region; if the recognition error is divergent, the time recursive nerve is adjusted.
  • the model parameters of the network model are re-executed in steps S21, S22, and S23 described above until the recognition error converges.
  • the method further includes:
  • the user when searching or viewing the information in the insurance policy, the user first sends a search request carrying the insurance policy number to the device where the insurance policy number is located, and after receiving the search request, the device according to the search request The insurance policy number matches the stored insurance policy number. After matching the consistent insurance policy number, the insurance policy image associated with the matched insurance policy number is fed back to the terminal, so that the terminal user can view the insurance policy picture. details.
  • FIG. 6 is a schematic structural diagram of an apparatus for identifying an insurance policy number according to an embodiment of the present invention.
  • the apparatus for identifying an insurance policy number includes:
  • the first extraction module 101 is configured to identify an insurance type corresponding to the insurance policy picture after receiving the insurance policy picture, and extract the insurance based on a predetermined insurance type and a positional relationship of the insurance policy number in the insurance policy picture.
  • the single number is in the corresponding target line character area in the insurance policy picture;
  • each insurance policy is an insurance type.
  • the insurance policy numbers are not in the same position. For example, some insurance policy numbers are located above the upper right corner of the insurance policy, and some insurance policy numbers are located to the left of the upper right corner of the insurance policy.
  • different types of insurance policies are stored in association with the location of the insurance policy number.
  • the insurance type of the insurance policy image is first identified. The specific identification process is: The size, color and content layout of the single are comprehensively identified to determine the type of insurance to which the insurance policy picture belongs.
  • the insurance type to which the insurance policy picture belongs may be identified by other methods, for example, by identifying the content of the insurance picture. Information to determine the type of insurance to which it belongs.
  • the first identification module 102 is configured to call a first recognition model generated by the pre-training to perform character recognition on the target line character region to identify an insurance policy number included in the target line character region, and identify an insurance policy The number is stored in association with the insurance policy picture.
  • the first recognition model is generated in advance, and the first recognition model may be one of a plurality of models related to image processing.
  • the first recognition model is a time recurrent neural network module. type. Calling the first recognition model to perform character recognition on the target line character region to identify each character in the target line character region.
  • the insurance policy number is a number, and when all the characters are recognized, an insurance policy can be obtained. number.
  • the insurance policy number is stored in association with the insurance policy picture, so that when the employee searches or retrieves the insurance policy number, the insurance policy number can be used to query or retrieve the associated insurance number. Insurance policy picture.
  • the first extraction module 101 is replaced with: a second identification module 100, after receiving the insurance policy picture, The second recognition model generated by the pre-training is invoked to identify the target line character region in which the insurance policy number is located in the insurance policy picture.
  • the second recognition model is generated in advance, and the second recognition model may be one of a plurality of models related to image processing.
  • the second recognition model is a convolutional neural network model.
  • the second identification model is called to locate and identify the insurance policy picture to identify the target line character area where the insurance policy number is located.
  • the present embodiment identifies the target line character area where the insurance policy number is located in the insurance policy picture by calling the second identification model. Since the second recognition model is obtained by training a large amount of data, it is possible to Accurately identify the target line character area.
  • the second identification model is a convolutional neural network model
  • the insurance number identification device further includes:
  • An acquiring module configured to obtain a preset number of insurance ticket sample pictures, use an insurance policy sample picture including an insurance policy number as a first picture set, and use an insurance policy sample picture that does not include an insurance policy number as a second picture set;
  • a second extraction module configured to separately extract a first preset ratio of the insurance ticket sample image from the first image set and the second image set as a sample image to be trained, and focus the first image set and the second image set The remaining insurance policy sample image is used as the sample image to be verified;
  • a first training module configured to perform model training by using each sample image to be trained, to generate the convolutional neural network model, and verify the generated convolutional neural network model by using each sample image to be verified;
  • the first processing module is configured to: if the verification pass rate is greater than or equal to the preset threshold, the training is completed, otherwise the number of the insurance ticket sample pictures is increased to perform training and verification again.
  • the second recognition model is a convolutional neural network model. Before using the convolutional neural network model to identify the target line character region, the convolutional neural network model is first trained to generate:
  • Obtain a preset number of insurance policy sample images for example, obtain 100,000 insurance policy sample images, where the insurance policy sample image including the insurance policy number is used as the first photo collection, and the insurance policy sample image not including the insurance policy number As a second collection of pictures.
  • the first picture set and the second picture set respectively extract the first preset proportion of the insurance order sample picture as the sample picture to be trained, for example, the first picture set and the second picture set respectively extract 80% of the insurance sample picture as the to-be-trained Sample map
  • the slice, the first picture set and the remaining insurance order sample pictures in the second picture set are used as sample pictures to be verified.
  • the parameters of the convolutional neural network model are trained by default parameters, and the parameters are continuously adjusted during the training process.
  • each of the to-be-verified models is used.
  • the sample picture is used to verify the generated convolutional neural network model. If the verification pass rate is greater than or equal to a preset threshold, for example, the pass rate is greater than or equal to 98%, the training ends, and the convolutional neural network model obtained by the training is used to identify the target.
  • the identification device of the insurance policy number further includes:
  • the third extraction module is configured to obtain a preset number of insurance ticket number sample images, extract a second preset ratio insurance ticket number sample image as a training set, and replace the remaining insurance policy in the preset number of insurance policy number sample images
  • the number sample picture is used as a test set;
  • a second training module configured to input the insurance ticket number sample picture in the training set to a time recurrent neural network model for model training, and use the insurance ticket number sample picture in the test set to train the time every preset time
  • the recurrent neural network model is tested to evaluate the recognition effect of the trained time recurrent neural network model
  • a second processing module configured to calculate a recognition error of the trained time recurrent neural network model after each test, if the recognition error converges, the training is completed, otherwise the model parameters of the time recurrent neural network model are adjusted, To re-train and test.
  • the first recognition model is a time recurrent neural network model
  • the time recurrent neural network model is first trained to identify the characters in the target line character region by using the time recurrent neural network model:
  • Obtain a preset number of insurance ticket number sample images for example, obtain 100,000 insurance policy number sample images, wherein the insurance policy number sample image only contains one line of numbers, the line number is the insurance policy number, the font is black, and the background is white.
  • the name of each insurance policy number sample picture can be named as the insurance policy number included.
  • the number of insurance ticket number sample pictures in the test set for example, 80% of the insurance order number sample pictures in the insurance order number sample picture is used as the training set, and the remaining 20% of the insurance number number sample pictures are used as the test set.
  • the parameters of the time recurrent neural network model are trained by default parameters, and the insurance order number sample images in the training set are input into the time recurrent neural network model for training,
  • the preset time uses the insurance policy number sample picture in the test set to test the trained time recurrent neural network model. For example, the training set is tested with the test set after every 1000 iterations to evaluate the trained time recurrent neural network model. Identify the effect.
  • the trained model is used to identify the insurance policy number of the insurance policy number sample image in the test set, and compare the identification result with the used name of the insurance ticket number sample picture (the insurance policy number sample picture utilizes the The insurance policy number is named to evaluate the recognition effect of the trained time recurrent neural network model.
  • the recognition error of the trained time recurrent neural network model is calculated, and the identification error is an edit of the identified insurance policy number and the insurance policy number used for naming the insurance ticket number sample picture.
  • Distance if the recognition error converges, the training is completed, and the trained time recurrent neural network model is used as a model for identifying characters in the target line character region; if the recognition error is diverged, the model parameters of the time recurrent neural network model are adjusted until identification The error converges.
  • the identification device for the insurance policy number further includes:
  • the search module is configured to: after receiving the search request for carrying the insurance policy number issued by the terminal, search for an insurance policy picture associated with the insurance policy number, and send the found insurance policy picture to the terminal.
  • the user when searching or viewing the information in the insurance policy, the user first sends a search request carrying the insurance policy number to the device where the insurance policy number is located, and after receiving the search request, the device according to the search request The insurance policy number matches the stored insurance policy number. After matching the consistent insurance policy number, the insurance policy image associated with the matched insurance policy number is fed back to the terminal, so that the terminal user can view the insurance policy picture. details.
  • FIG. 9 a block diagram of a hardware structure of an apparatus for identifying an insurance policy number according to the present invention is shown.
  • the device for identifying the insurance policy number may be a PC (Personal Computer), or may be a portable terminal device having a display function such as a smart phone, a tablet computer, an e-book reader, or a portable computer.
  • PC Personal Computer
  • portable terminal device having a display function such as a smart phone, a tablet computer, an e-book reader, or a portable computer.
  • the device for identifying the policy number includes a memory 11, a processor 12, a communication bus 13, and a network interface 14.
  • the memory 11 includes at least one type of readable storage medium including a flash memory, a hard disk, a multimedia card, a card type memory (for example, an SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, and the like.
  • the memory 11 may in some embodiments be an internal storage unit of the device that identifies the insurance policy number, such as the hard disk of the device that identifies the insurance policy number.
  • the memory 11 may also be an external storage device of the device that identifies the insurance policy number in other embodiments, such as a plug-in hard disk equipped on a device that identifies the insurance policy number, a smart memory card (SMC), a secure digital number. (Secure Digital, SD) card, flash card, etc.
  • the memory 11 may also include both an internal storage unit of the device that identifies the insurance policy number and an external storage device.
  • the memory 11 can be used not only for storing application software and various types of data installed in a device for identifying an insurance policy number, such as a code for a program for identifying an insurance policy number, but also for temporarily storing data that has been output or is to be output.
  • the processor 12 may be a central processing unit (Central Processing Unit, in some embodiments).
  • Communication bus 13 is used to implement connection communication between these components.
  • the network interface 14 can optionally include a standard wired interface, a wireless interface (such as a WI-FI interface), and is typically used to establish a communication connection between the device and other electronic devices.
  • a standard wired interface such as a WI-FI interface
  • Figure 9 shows only the device for identifying the policy number with the components 11-14 and the program identifying the policy number, but it should be understood that not all of the illustrated components are required to be implemented, alternative implementations may be more or more Less components.
  • the device may further include a user interface
  • the user interface may include a display
  • an input unit such as a keyboard
  • the optional user interface may further include a standard wired interface and a wireless interface.
  • the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch sensor, or the like.
  • the display may also be referred to as a display or display unit, as appropriate, for displaying information processed in the device identifying the insurance policy number and a user interface for displaying the visualization.
  • a program for identifying an insurance policy number is stored in the memory 11, the network interface 14 is mainly used to connect to a server, and performs data communication with the server; the processor 12 executes the storage in the memory 11.
  • the procedure for identifying the policy number is as follows:
  • step S2 can be replaced by:
  • the second recognition model generated by the pre-training is invoked to identify the target line character area in which the insurance policy number is located in the insurance policy picture.
  • the second identification model is a convolutional neural network model
  • the processor is further configured to execute the program for identifying the insurance policy number, so as to implement the following steps before step S0:
  • S01 Obtain a preset number of insurance policy sample pictures, use an insurance policy sample picture including an insurance policy number as a first picture set, and use an insurance policy sample picture that does not include an insurance policy number as a second picture set;
  • S03 performing model training by using each sample image to be trained to generate the convolutional neural network model, and verifying the generated convolutional neural network model by using each sample image to be verified;
  • verification pass rate is greater than or equal to the preset threshold, the training is completed, otherwise the protection is increased.
  • the first recognition model is a time recurrent neural network model
  • the processor is further configured to execute the program for identifying the insurance policy number, so as to implement the following steps before step S2:
  • S21 Obtain a preset number of insurance ticket number sample images, extract a second preset proportion of insurance policy number sample images as a training set, and test the remaining insurance policy number sample images in the preset number of insurance policy number sample images as a test set;
  • S22 Input the insurance ticket number sample image in the training set to the time recurrent neural network model for model training, and use the insurance ticket number sample image in the test set to perform the trained time recurrent neural network model every preset time. Testing to assess the recognition effect of the trained time recurrent neural network model;
  • processor is further configured to execute the program for identifying the insurance policy number, so after step S2, further implementing the following steps:
  • the present invention also provides a computer readable storage medium having stored thereon a program for identifying an insurance policy number, the program for identifying the insurance policy number being executed by the processor to:
  • step S2 can be replaced by:
  • the second recognition model generated by the pre-training is invoked to identify the target line character area in which the insurance policy number is located in the insurance policy picture.
  • step S0 when the program for identifying the insurance policy number is executed by the processor, the following steps are further implemented before step S0:
  • S01 Obtain a preset number of insurance policy sample pictures, use an insurance policy sample picture including an insurance policy number as a first picture set, and use an insurance policy sample picture that does not include an insurance policy number as a second picture set;
  • step S2 when the program for identifying the insurance policy number is executed by the processor, the following steps are further implemented before step S2:
  • S21 Obtain a preset number of insurance ticket number sample images, extract a second preset proportion of insurance policy number sample images as a training set, and test the remaining insurance policy number sample images in the preset number of insurance policy number sample images as a test set;
  • S22 Input the insurance ticket number sample image in the training set to the time recurrent neural network model for model training, and use the insurance ticket number sample image in the test set to perform the trained time recurrent neural network model every preset time. Testing to assess the recognition effect of the trained time recurrent neural network model;
  • step S2 when the program for identifying the insurance policy number is executed by the processor, the following steps are further implemented after step S2:
  • the specific embodiment of the computer readable storage medium of the present invention is substantially the same as the method embodiment for identifying the insurance policy number, and is not described herein.
  • the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
  • a storage medium such as ROM/RAM, disk,
  • the optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.

Abstract

A method, apparatus and device for identifying an insurance policy number, and a computer-readable storage medium. The method for identifying an insurance policy number comprises: after receiving an insurance policy picture, identifying an insurance type corresponding to the insurance policy picture, and extracting a target row character region corresponding to the insurance policy number in the insurance policy picture based on a predetermined positional relationship between an insurance type and an insurance policy number in the insurance policy picture (S1); and invoking a first identification model that is generated by training in advance to carry out character identification on the target row character region, so as to identify an insurance policy number included in the target row character region, and storing the identified insurance policy number and the insurance policy picture in an associated manner (S2). During the whole operation process, almost no manual intervention is needed, and an insurance policy number can be rapidly acquired from a lot of insurance policy pictures, so that the workload is substantially reduced and the working efficiency is improved.

Description

识别保险单号码的方法、装置、设备及计算机可读存储介质Method, device, device and computer readable storage medium for identifying insurance policy number
优先权申明Priority claim
本申请基于巴黎公约申明享有2016年11月15日递交的申请号为CN201611005112.1、名称为“识别保险单号码的方法及装置”的中国专利申请的优先权,该中国专利申请的整体内容以参考的方式结合在本申请中。This application is based on the priority of the Chinese Patent Application entitled "Method and Apparatus for Identifying Insurance Policy Numbers" filed on November 15, 2016, with the application number of CN201611005112.1, which is filed on November 15, 2016. The manner of reference is incorporated in the present application.
技术领域Technical field
本发明涉及图像处理技术领域,尤其涉及一种识别保险单号码的方法、装置、设备及计算机可读存储介质。The present invention relates to the field of image processing technologies, and in particular, to a method, an apparatus, a device, and a computer readable storage medium for identifying an insurance policy number.
背景技术Background technique
目前,保险公司中有很多保险单以图片的形式进行存储,每一份保险单或保险单图片均有唯一的保险单号码与其对应。对于保险单图片,保险单号码是关键信息,工作人员一般需要根据保险单号码进行保险信息的检索或查询等操作。如果要从多张保险单图片中获取保险单号码等图片信息时,一般是通过人工操作的方式一张张获取,当保险单图片的数量较多,工作人员无法快速地得到每一张保险单图片的保险单号码,导致工作量非常大,降低工作效率。At present, there are many insurance policies in insurance companies that are stored in the form of pictures. Each insurance policy or insurance policy picture has a unique insurance policy number corresponding to it. For the insurance policy picture, the insurance policy number is the key information, and the staff generally needs to perform the operation of searching or inquiring the insurance information according to the insurance policy number. If you want to get the picture information such as the insurance policy number from multiple insurance policy pictures, it is usually obtained by manual operation. When the number of insurance policy pictures is large, the staff cannot quickly get each insurance policy. The insurance policy number of the picture results in a very large workload and reduces work efficiency.
发明内容Summary of the invention
本发明的目的在于提供一种识别保险单号码的方法、装置、设备及计算机可读存储介质,旨在快速地从大量的保险单图片中获取保险单号码,减少工作量,提高工作效率。The object of the present invention is to provide a method, device, device and computer readable storage medium for identifying an insurance policy number, which aims to quickly obtain an insurance policy number from a large number of insurance policy pictures, reduce workload and improve work efficiency.
为实现上述目的,本发明提供一种识别保险单号码的方法,所述识别保险单号码的方法包括:To achieve the above object, the present invention provides a method for identifying an insurance policy number, and the method for identifying an insurance policy number includes:
S1,在接收到保险单图片后,识别所述保险单图片对应的保险类型,基于预定的保险类型与保险单号码在所述保险单图片中的位置关系提取所述保险单号码在所述保险单图片中对应的目标行字符区域;S1. After receiving the insurance policy picture, identify the insurance type corresponding to the insurance policy picture, and extract the insurance policy number based on the predetermined insurance type and the positional relationship of the insurance policy number in the insurance policy picture. The corresponding target line character area in a single picture;
S2,调用预先训练生成的第一识别模型对所述目标行字符区域进行字符识别,以识别出所述目标行字符区域中包含的保险单号码,并将识别出保险单号码与所述保险单图片进行关联存储。S2, calling a first recognition model generated by the pre-training to perform character recognition on the target line character region to identify an insurance policy number included in the target line character region, and identify the insurance policy number and the insurance policy The image is stored in association.
为实现上述目的,本发明还提供一种识别保险单号码的装置,所述识别保险单号码的装置包括:In order to achieve the above object, the present invention also provides an apparatus for identifying an insurance policy number, and the apparatus for identifying an insurance policy number includes:
第一提取模块,用于在接收到保险单图片后,识别所述保险单图片对应的保险类型,基于预定的保险类型与保险单号码在所述保险单图片中的位置关系提取所述保险单号码在所述保险单图片中对应的目标行字符区域;a first extraction module, configured to identify an insurance type corresponding to the insurance policy picture after receiving the insurance policy picture, and extract the insurance policy based on a predetermined insurance type and a positional relationship of the insurance policy number in the insurance policy picture The number is in the corresponding target line character area in the insurance policy picture;
第一识别模块,用于调用预先训练生成的第一识别模型对所述目标行字符区域进行字符识别,以识别出所述目标行字符区域中包含的保险单号码, 并将识别出保险单号码与所述保险单图片进行关联存储。a first identification module, configured to invoke a first recognition model generated by the pre-training to perform character recognition on the target line character region, to identify an insurance policy number included in the target line character region, And identifying the insurance policy number and storing the insurance policy picture.
为实现上述目的,本发明还提供一种识别保险单号码的设备,所述设备包括所述存储器、处理器及存储在所述存储器上并可在所述处理器上运行的识别保险单号码的程序,所述识别保险单号码的程序被所述处理器执行时实现如下步骤:To achieve the above object, the present invention also provides an apparatus for identifying an insurance policy number, the apparatus comprising the memory, a processor, and an identification insurance number stored on the memory and operable on the processor The program, when the program for identifying the insurance policy number is executed by the processor, implements the following steps:
S1,在接收到保险单图片后,识别所述保险单图片对应的保险类型,基于预定的保险类型与保险单号码在所述保险单图片中的位置关系提取所述保险单号码在所述保险单图片中对应的目标行字符区域;S1. After receiving the insurance policy picture, identify the insurance type corresponding to the insurance policy picture, and extract the insurance policy number based on the predetermined insurance type and the positional relationship of the insurance policy number in the insurance policy picture. The corresponding target line character area in a single picture;
S2,调用预先训练生成的第一识别模型对所述目标行字符区域进行字符识别,以识别出所述目标行字符区域中包含的保险单号码,并将识别出保险单号码与所述保险单图片进行关联存储。S2, calling a first recognition model generated by the pre-training to perform character recognition on the target line character region to identify an insurance policy number included in the target line character region, and identify the insurance policy number and the insurance policy The image is stored in association.
为实现上述目的,本发明还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有识别保险单号码的程序,所述识别保险单号码的程序被处理器执行时实现如下步骤:In order to achieve the above object, the present invention also provides a computer readable storage medium having stored thereon a program for identifying an insurance policy number, wherein the program for identifying an insurance policy number is executed by a processor to implement the following steps :
S1,在接收到保险单图片后,识别所述保险单图片对应的保险类型,基于预定的保险类型与保险单号码在所述保险单图片中的位置关系提取所述保险单号码在所述保险单图片中对应的目标行字符区域;S1. After receiving the insurance policy picture, identify the insurance type corresponding to the insurance policy picture, and extract the insurance policy number based on the predetermined insurance type and the positional relationship of the insurance policy number in the insurance policy picture. The corresponding target line character area in a single picture;
S2,调用预先训练生成的第一识别模型对所述目标行字符区域进行字符识别,以识别出所述目标行字符区域中包含的保险单号码,并将识别出保险单号码与所述保险单图片进行关联存储。S2, calling a first recognition model generated by the pre-training to perform character recognition on the target line character region to identify an insurance policy number included in the target line character region, and identify the insurance policy number and the insurance policy The image is stored in association.
本发明的有益效果是:本发明首先识别保险单图片的保险类型,通过保险类型与保险单号码在保险单图片中的位置关系,可以提取到保险单号码对应的目标行字符区域,然后再调用预先训练生成的第一识别模型来识别出该目标行字符区域中的保险单号码,整个操作过程几乎不需要人工参与,能够快速地从大量的保险单图片中获取保险单号码,大大减少工作量,提高工作效率。The invention has the beneficial effects that the invention firstly identifies the insurance type of the insurance policy picture, and through the positional relationship between the insurance type and the insurance policy number in the insurance policy picture, the target line character area corresponding to the insurance policy number can be extracted, and then called. The first recognition model generated by the pre-training is used to identify the insurance policy number in the target line character area, and the entire operation process requires almost no manual participation, and the insurance policy number can be quickly obtained from a large number of insurance policy pictures, thereby greatly reducing the workload. ,Improve work efficiency.
附图说明DRAWINGS
图1为本发明识别保险单号码的方法第一实施例的流程示意图;1 is a schematic flow chart of a first embodiment of a method for identifying an insurance policy number according to the present invention;
图2为本发明识别保险单号码的方法第二实施例的流程示意图;2 is a schematic flow chart of a second embodiment of a method for identifying an insurance policy number according to the present invention;
图3为本发明识别保险单号码的方法第三实施例的流程示意图;3 is a schematic flow chart of a third embodiment of a method for identifying an insurance policy number according to the present invention;
图4为本发明识别保险单号码的方法第四实施例的流程示意图;4 is a schematic flow chart of a fourth embodiment of a method for identifying an insurance policy number according to the present invention;
图5为本发明识别保险单号码的方法第五实施例的流程示意图;FIG. 5 is a schematic flowchart diagram of a fifth embodiment of a method for identifying an insurance policy number according to the present invention; FIG.
图6为本发明识别保险单号码的装置第一实施例的结构示意图;6 is a schematic structural diagram of a first embodiment of an apparatus for identifying an insurance policy number according to the present invention;
图7为本发明识别保险单号码的装置第二实施例的结构示意图;7 is a schematic structural diagram of a second embodiment of an apparatus for identifying an insurance policy number according to the present invention;
图8为本发明识别保险单号码的装置第三实施例的结构示意图;8 is a schematic structural diagram of a third embodiment of an apparatus for identifying an insurance policy number according to the present invention;
图9为本发明识别保险单号码的设备的硬件结构框图。9 is a block diagram showing the hardware structure of an apparatus for identifying an insurance policy number according to the present invention.
具体实施方式 detailed description
以下结合附图对本发明的原理和特征进行描述,所举实例只用于解释本发明,并非用于限定本发明的范围。The principles and features of the present invention are described in the following with reference to the accompanying drawings.
如图1所示,图1为本发明识别保险单号码的方法一实施例的流程示意图,该识别保险单号码的方法包括以下步骤:As shown in FIG. 1 , FIG. 1 is a schematic flowchart of an embodiment of a method for identifying an insurance policy number according to the present invention. The method for identifying an insurance policy number includes the following steps:
步骤S1,在接收到保险单图片后,识别所述保险单图片对应的保险类型,基于预定的保险类型与保险单号码在所述保险单图片中的位置关系提取所述保险单号码在所述保险单图片中对应的目标行字符区域。Step S1, after receiving the insurance policy picture, identifying the insurance type corresponding to the insurance policy picture, and extracting the insurance policy number based on the predetermined insurance type and the positional relationship of the insurance policy number in the insurance policy picture. The corresponding target line character area in the policy picture.
本实施例中,保险单或保险单图片的类型有多种,例如有车险保险单、寿险保险单及意外伤害保险单等,每一种保险单为一种保险类型。对于不同类型的保险单,其保险单号码所处的位置并不相同,例如有些保险单号码位于保险单右上角偏上的位置,有些保险单号码位于保险单右上角偏左的位置。本实施例预先将不同类型的保险单与保险单号码所处的位置进行关联存储,在接收到保险单图片后,首先识别该保险单图片所属的保险类型,具体的识别过程为:通过对保险单的大小、颜色及内容布局等进行综合识别,以判断该保险单图片所属的保险类型,另外,也可以通过其他的方法识别该保险单图片所属的保险类型,例如通过识别该保险图片的内容信息来判断其所属的保险类型等。In this embodiment, there are various types of insurance policies or insurance policy pictures, such as a car insurance policy, a life insurance policy, and an accident insurance policy. Each insurance policy is an insurance type. For different types of insurance policies, the insurance policy numbers are not in the same position. For example, some insurance policy numbers are located above the upper right corner of the insurance policy, and some insurance policy numbers are located to the left of the upper right corner of the insurance policy. In this embodiment, different types of insurance policies are stored in association with the location of the insurance policy number. After receiving the insurance policy picture, the insurance type of the insurance policy image is first identified. The specific identification process is: The size, color and content layout of the single are comprehensively identified to determine the type of insurance to which the insurance policy picture belongs. In addition, the insurance type to which the insurance policy picture belongs may be identified by other methods, for example, by identifying the content of the insurance picture. Information to determine the type of insurance to which it belongs.
在识别出其所属的保险类型后,基于该保险类型与保险单号码在保险单图片中的位置关系提取所述保险单号码在所述保险单图片中对应的目标行字符区域,在提取了保险单号码对应的目标行字符区域后,只需要进一步识别该目标行字符区域中的数字即可得到保险单号码。After identifying the type of insurance to which the insurance policy belongs, extracting the insurance ticket number corresponding to the target line character area in the insurance policy picture based on the positional relationship between the insurance type and the insurance policy number in the insurance policy picture, and extracting the insurance After the target line character area corresponding to the single number, only the number in the target line character area needs to be further recognized to obtain the insurance policy number.
步骤S2,调用预先训练生成的第一识别模型对所述目标行字符区域进行字符识别,以识别出所述目标行字符区域中包含的保险单号码,并将识别出保险单号码与所述保险单图片进行关联存储。Step S2, calling the first recognition model generated by the pre-training to perform character recognition on the target line character region to identify the insurance policy number included in the target line character region, and identify the insurance policy number and the insurance A single picture is stored in association.
本实施例中,预先训练生成第一识别模型,第一识别模型可以是图像处理相关的多种模型中的一种,优选地,第一识别模型为时间递归神经网络模型。调用第一识别模型对目标行字符区域进行字符识别,以识别得到该目标行字符区域中的每一个字符,一般来说,保险单号码为数字,当所有的字符识别出来后,可以得到保险单号码。In this embodiment, the first recognition model is generated in advance, and the first recognition model may be one of a plurality of models related to image processing. Preferably, the first recognition model is a time recurrent neural network model. Calling the first recognition model to perform character recognition on the target line character region to identify each character in the target line character region. Generally, the insurance policy number is a number, and when all the characters are recognized, an insurance policy can be obtained. number.
在识别得到保险单号码后,将该保险单号码与该保险单图片进行关联存储,以便工作人员在通过该保险单号码进行查询或者检索时,可以通过该保险单号码查询或者检索到与其关联的保险单图片。After the insurance policy number is identified, the insurance policy number is stored in association with the insurance policy picture, so that when the employee searches or retrieves the insurance policy number, the insurance policy number can be used to query or retrieve the associated insurance number. Insurance policy picture.
与现有技术相比,本实施例首先识别保险单图片的保险类型,通过保险类型与保险单号码在保险单图片中的位置关系,可以提取到保险单号码对应的目标行字符区域,然后再调用预先训练生成的第一识别模型来识别出该目标行字符区域中的保险单号码,整个操作过程几乎不需要人工参与,能够快速地从大量的保险单图片中获取保险单号码,大大减少工作量,提高工作效率。 Compared with the prior art, the embodiment first identifies the insurance type of the insurance policy picture, and by using the positional relationship between the insurance type and the insurance policy number in the insurance policy picture, the target line character area corresponding to the insurance policy number can be extracted, and then Calling the first recognition model generated by the pre-training to identify the insurance policy number in the target line character area, the whole operation process requires almost no human participation, and can quickly obtain the insurance policy number from a large number of insurance policy pictures, thereby greatly reducing the work. Quantity, improve work efficiency.
在一优选的实施例中,如图2所示,在上述图1的实施例的基础上,上述步骤S1替换为:In a preferred embodiment, as shown in FIG. 2, on the basis of the above embodiment of FIG. 1, the above step S1 is replaced by:
步骤S0,在接收到保险单图片后,调用预先训练生成的第二识别模型识别所述保险单图片中保险单号码所在的目标行字符区域。In step S0, after receiving the insurance policy picture, the second recognition model generated by the pre-training is invoked to identify the target line character area in which the insurance policy number is located in the insurance policy picture.
本实施例中,预先训练生成第二识别模型,第二识别模型可以是图像处理相关的多种模型中的一种,优选地,第二识别模型为卷积神经网络模型。在接收到保险单图片后,调用第二识别模型对保险单图片进行定位及识别,以识别得到保险单号码所在的目标行字符区域。In this embodiment, the second recognition model is generated in advance, and the second recognition model may be one of a plurality of models related to image processing. Preferably, the second recognition model is a convolutional neural network model. After receiving the insurance policy picture, the second identification model is called to locate and identify the insurance policy picture to identify the target line character area where the insurance policy number is located.
与上述实施例不同的是,本实施例通过调用第二识别模型识别保险单图片中保险单号码所在的目标行字符区域,由于第二识别模型是通过大量数据进行训练得到的,因此,能够更准确地识别出目标行字符区域。Different from the above embodiment, the present embodiment identifies the target line character area where the insurance policy number is located in the insurance policy picture by calling the second identification model. Since the second recognition model is obtained by training a large amount of data, it is possible to Accurately identify the target line character area.
在一优选的实施例中,如图3所示,在上述图2的实施例的基础上,在上述步骤S0之前还包括:In a preferred embodiment, as shown in FIG. 3, on the basis of the foregoing embodiment of FIG. 2, before the step S0, the method further includes:
步骤S01,获取预设数量的保险单样本图片,将包含保险单号码的保险单样本图片作为第一图片集,并将不包含保险单号码的保险单样本图片作为第二图片集;Step S01, obtaining a preset number of insurance policy sample pictures, using the insurance policy sample picture including the insurance policy number as the first picture set, and using the insurance policy sample picture not including the insurance policy number as the second picture set;
步骤S02,从所述第一图片集和第二图片集中分别提取出第一预设比例的保险单样本图片作为待训练的样本图片,并将第一图片集和第二图片集中剩余的保险单样本图片作为待验证的样本图片;Step S02, extracting, from the first picture set and the second picture set, a first preset proportion of the insurance order sample picture as the sample picture to be trained, and collecting the remaining insurance policies in the first picture set and the second picture set. The sample image is used as a sample image to be verified;
步骤S03,利用各待训练的样本图片进行模型训练,以生成所述卷积神经网络模型,并利用各待验证的样本图片对所生成的卷积神经网络模型进行验证;Step S03: performing model training using each sample picture to be trained to generate the convolutional neural network model, and verifying the generated convolutional neural network model by using each sample picture to be verified;
步骤S04,若验证通过率大于等于预设阈值,则训练完成,否则增加所述保险单样本图片的数量,以重新进行训练及验证。In step S04, if the verification pass rate is greater than or equal to the preset threshold, the training is completed, otherwise the number of the insurance ticket sample pictures is increased to re-train and verify.
本实施例中,第二识别模型为卷积神经网络模型,在利用卷积神经网络模型识别目标行字符区域前,首先训练生成该卷积神经网络模型:In this embodiment, the second recognition model is a convolutional neural network model. Before using the convolutional neural network model to identify the target line character region, the convolutional neural network model is first trained to generate:
获取预设数量的保险单样本图片,例如获取10万张保险单样本图片,其中,将包含保险单号码的保险单样本图片作为第一图片集,并将不包含保险单号码的保险单样本图片作为第二图片集。第一图片集及第二图片集中分别提取第一预设比例的保险单样本图片作为待训练的样本图片,例如第一图片集及第二图片集中分别提取80%的保险单样本图片作为待训练的样本图片,第一图片集及第二图片集中剩余的保险单样本图片作为待验证的样本图片。Obtain a preset number of insurance policy sample images, for example, obtain 100,000 insurance policy sample images, where the insurance policy sample image including the insurance policy number is used as the first photo collection, and the insurance policy sample image not including the insurance policy number As a second collection of pictures. The first picture set and the second picture set respectively extract the first preset proportion of the insurance order sample picture as the sample picture to be trained, for example, the first picture set and the second picture set respectively extract 80% of the insurance sample picture as the to-be-trained The sample picture, the first picture set and the remaining insurance order sample pictures in the second picture set are used as sample pictures to be verified.
在第一次训练卷积神经网络模型时,该卷积神经网络模型的参数采用默认的参数进行训练,在训练过程不断调整参数,在训练生成该卷积神经网络模型后,利用各待验证的样本图片对所生成的卷积神经网络模型进行验证,如果验证通过率大于等于预设阈值,例如通过率大于等于98%,则训练结束,以该训练得到的卷积神经网络模型为进行识别目标行字符区域的模型;如果 验证通过率小于预设阈值,例如小于98%,则增加保险单样本图片的数量,并重新执行上述的步骤S01、步骤S02、步骤S03及步骤S04,直至验证通过率大于等于预设阈值。When the convolutional neural network model is trained for the first time, the parameters of the convolutional neural network model are trained by default parameters, and the parameters are continuously adjusted during the training process. After the training of the convolutional neural network model is generated, each of the to-be-verified models is used. The sample picture is used to verify the generated convolutional neural network model. If the verification pass rate is greater than or equal to a preset threshold, for example, the pass rate is greater than or equal to 98%, the training ends, and the convolutional neural network model obtained by the training is used to identify the target. The model of the line character area; if If the verification pass rate is less than the preset threshold, for example, less than 98%, the number of the insurance ticket sample pictures is increased, and the above steps S01, S02, S03, and S04 are performed again until the verification pass rate is greater than or equal to the preset threshold.
在一优选的实施例中,如图4所示,在上述图1的实施例的基础上,在上述步骤S2之前还包括:In a preferred embodiment, as shown in FIG. 4, based on the foregoing embodiment of FIG. 1, before the step S2, the method further includes:
S21,获取预设数量的保险单号码样本图片,提取第二预设比例的保险单号码样本图片作为训练集,并将预设数量的保险单号码样本图片中剩余的保险单号码样本图片作为测试集;S21: Obtain a preset number of insurance ticket number sample images, extract a second preset proportion of insurance policy number sample images as a training set, and test the remaining insurance policy number sample images in the preset number of insurance policy number sample images as a test set;
S22,将所述训练集中的保险单号码样本图片输入至时间递归神经网络模型进行模型训练,每隔预设时间利用所述测试集中的保险单号码样本图片对所训练的时间递归神经网络模型进行测试,以评估所训练的时间递归神经网络模型的识别效果;S22: Input the insurance ticket number sample image in the training set to the time recurrent neural network model for model training, and use the insurance ticket number sample image in the test set to perform the trained time recurrent neural network model every preset time. Testing to assess the recognition effect of the trained time recurrent neural network model;
S23,在每次测试后,计算所训练的时间递归神经网络模型的识别误差,若所述识别误差收敛,则训练完成,否则调整所述时间递归神经网络模型的模型参数,以重新进行训练及测试。S23. After each test, calculate the recognition error of the trained time recurrent neural network model. If the recognition error converges, the training is completed, otherwise the model parameters of the time recurrent neural network model are adjusted to re-train and test.
本实施例中,第一识别模型为时间递归神经网络模型,在利用时间递归神经网络模型对目标行字符区域中的字符进行识别前,首先训练生成时间递归神经网络模型:In this embodiment, the first recognition model is a time recurrent neural network model, and the time recurrent neural network model is first trained to identify the characters in the target line character region by using the time recurrent neural network model:
获取预设数量的保险单号码样本图片,例如获取10万张保险单号码样本图片,其中,保险单号码样本图片仅包含一行数字,该行数字为保险单号码,字体为黑色,背景为白色,并可将各个保险单号码样本图片的名称命名为所含的保险单号码。提取第二预设比例的保险单号码样本图片作为训练集,并将预设数量的保险单号码样本图片中剩余的保险单号码样本图片作为测试集,训练集中的保险单号码样本图片的数量大于测试集中的保险单号码样本图片的数量,例如将保险单号码样本图片中的80%的保险单号码样本图片作为训练集,将剩余的20%的保险单号码样本图片作为测试集。Obtain a preset number of insurance ticket number sample images, for example, obtain 100,000 insurance policy number sample images, wherein the insurance policy number sample image only contains one line of numbers, the line number is the insurance policy number, the font is black, and the background is white. The name of each insurance policy number sample picture can be named as the insurance policy number included. Extracting a second preset ratio of the insurance order number sample picture as a training set, and using the remaining number of insurance policy number sample pictures in the preset number of insurance policy number sample pictures as a test set, the number of insurance order number sample pictures in the training set is greater than The number of insurance ticket number sample pictures in the test set, for example, 80% of the insurance order number sample pictures in the insurance order number sample picture is used as the training set, and the remaining 20% of the insurance number number sample pictures are used as the test set.
在第一次训练时间递归神经网络模型时,该时间递归神经网络模型的参数采用默认的参数进行训练,将训练集中的保险单号码样本图片输入至该时间递归神经网络模型中进行训练,每隔预设时间利用测试集中的保险单号码样本图片对所训练的时间递归神经网络模型进行测试,例如训练集中每进行1000次迭代后利用测试集进行测试,以评估所训练的时间递归神经网络模型的识别效果。In the first training time recursive neural network model, the parameters of the time recurrent neural network model are trained by default parameters, and the insurance order number sample images in the training set are input into the time recurrent neural network model for training, The preset time uses the insurance policy number sample picture in the test set to test the trained time recurrent neural network model. For example, the training set is tested with the test set after every 1000 iterations to evaluate the trained time recurrent neural network model. Identify the effect.
在测试时,使用训练得到的模型对测试集中的保险单号码样本图片进行保险单号码识别,并将识别结果与该保险单号码样本图片的所用的名称进行对比(该保险单号码样本图片利用该保险单号码进行命名),以评估所训练的时间递归神经网络模型的识别效果。In the test, the trained model is used to identify the insurance policy number of the insurance policy number sample image in the test set, and compare the identification result with the used name of the insurance ticket number sample picture (the insurance policy number sample picture utilizes the The insurance policy number is named to evaluate the recognition effect of the trained time recurrent neural network model.
具体地,在每次测试后,计算所训练的时间递归神经网络模型的识别误差,该识别误差为所识别得到的保险单号码与该保险单号码样本图片的命名 所采用的保险单号码的编辑距离,若识别误差收敛,则训练完成,以所训练得到的时间递归神经网络模型作为识别目标行字符区域中的字符的模型;若识别误差发散,调整时间递归神经网络模型的模型参数,并重新执行上述的步骤S21、步骤S22及步骤S23,直至识别误差收敛。Specifically, after each test, the recognition error of the trained time recurrent neural network model is calculated, and the identification error is the identified insurance policy number and the name of the insurance ticket number sample picture. The edit distance of the insurance policy number used, if the recognition error converges, the training is completed, and the trained time recurrent neural network model is used as a model for identifying characters in the target line character region; if the recognition error is divergent, the time recursive nerve is adjusted. The model parameters of the network model are re-executed in steps S21, S22, and S23 described above until the recognition error converges.
在一优选的实施例中,如图5所示,在上述的实施例的基础上,所述步骤S2之后还包括:In a preferred embodiment, as shown in FIG. 5, based on the foregoing embodiment, after the step S2, the method further includes:
S3,在接收到终端发出的携带保险单号码的检索请求后,查找与所述保险单号码关联的保险单图片,并将查找到的保险单图片发送给所述终端。S3. After receiving the search request for carrying the insurance policy number issued by the terminal, search for the insurance policy picture associated with the insurance policy number, and send the found insurance policy picture to the terminal.
本实施例中,用户在检索或查看保险单中的信息时,首先向识别保险单号码所在的装置发送携带保险单号码的检索请求,该装置在接收到检索请求后,根据该检索请求中的保险单号码匹配存储的与其一致的保险单号码,在匹配到一致的保险单号码后,将与匹配到的保险单号码关联的保险单图片反馈给终端,以便终端用户查看该保险单图片中的详细信息。In this embodiment, when searching or viewing the information in the insurance policy, the user first sends a search request carrying the insurance policy number to the device where the insurance policy number is located, and after receiving the search request, the device according to the search request The insurance policy number matches the stored insurance policy number. After matching the consistent insurance policy number, the insurance policy image associated with the matched insurance policy number is fed back to the terminal, so that the terminal user can view the insurance policy picture. details.
如图6所示,图6为本发明识别保险单号码的装置一实施例的结构示意图,该识别保险单号码的装置包括:As shown in FIG. 6, FIG. 6 is a schematic structural diagram of an apparatus for identifying an insurance policy number according to an embodiment of the present invention. The apparatus for identifying an insurance policy number includes:
第一提取模块101,用于在接收到保险单图片后,识别所述保险单图片对应的保险类型,基于预定的保险类型与保险单号码在所述保险单图片中的位置关系提取所述保险单号码在所述保险单图片中对应的目标行字符区域;The first extraction module 101 is configured to identify an insurance type corresponding to the insurance policy picture after receiving the insurance policy picture, and extract the insurance based on a predetermined insurance type and a positional relationship of the insurance policy number in the insurance policy picture. The single number is in the corresponding target line character area in the insurance policy picture;
本实施例中,保险单或保险单图片的类型有多种,例如有车险保险单、寿险保险单及意外伤害保险单等,每一种保险单为一种保险类型。对于不同类型的保险单,其保险单号码所处的位置并不相同,例如有些保险单号码位于保险单右上角偏上的位置,有些保险单号码位于保险单右上角偏左的位置。本实施例预先将不同类型的保险单与保险单号码所处的位置进行关联存储,在接收到保险单图片后,首先识别该保险单图片所属的保险类型,具体的识别过程为:通过对保险单的大小、颜色及内容布局等进行综合识别,以判断该保险单图片所属的保险类型,另外,也可以通过其他的方法识别该保险单图片所属的保险类型,例如通过识别该保险图片的内容信息来判断其所属的保险类型等。In this embodiment, there are various types of insurance policies or insurance policy pictures, such as a car insurance policy, a life insurance policy, and an accident insurance policy. Each insurance policy is an insurance type. For different types of insurance policies, the insurance policy numbers are not in the same position. For example, some insurance policy numbers are located above the upper right corner of the insurance policy, and some insurance policy numbers are located to the left of the upper right corner of the insurance policy. In this embodiment, different types of insurance policies are stored in association with the location of the insurance policy number. After receiving the insurance policy picture, the insurance type of the insurance policy image is first identified. The specific identification process is: The size, color and content layout of the single are comprehensively identified to determine the type of insurance to which the insurance policy picture belongs. In addition, the insurance type to which the insurance policy picture belongs may be identified by other methods, for example, by identifying the content of the insurance picture. Information to determine the type of insurance to which it belongs.
在识别出其所属的保险类型后,基于该保险类型与保险单号码在保险单图片中的位置关系提取所述保险单号码在所述保险单图片中对应的目标行字符区域,在提取了保险单号码对应的目标行字符区域后,只需要进一步识别该目标行字符区域中的数字即可得到保险单号码。After identifying the type of insurance to which the insurance policy belongs, extracting the insurance ticket number corresponding to the target line character area in the insurance policy picture based on the positional relationship between the insurance type and the insurance policy number in the insurance policy picture, and extracting the insurance After the target line character area corresponding to the single number, only the number in the target line character area needs to be further recognized to obtain the insurance policy number.
第一识别模块102,用于调用预先训练生成的第一识别模型对所述目标行字符区域进行字符识别,以识别出所述目标行字符区域中包含的保险单号码,并将识别出保险单号码与所述保险单图片进行关联存储。The first identification module 102 is configured to call a first recognition model generated by the pre-training to perform character recognition on the target line character region to identify an insurance policy number included in the target line character region, and identify an insurance policy The number is stored in association with the insurance policy picture.
本实施例中,预先训练生成第一识别模型,第一识别模型可以是图像处理相关的多种模型中的一种,优选地,第一识别模型为时间递归神经网络模 型。调用第一识别模型对目标行字符区域进行字符识别,以识别得到该目标行字符区域中的每一个字符,一般来说,保险单号码为数字,当所有的字符识别出来后,可以得到保险单号码。In this embodiment, the first recognition model is generated in advance, and the first recognition model may be one of a plurality of models related to image processing. Preferably, the first recognition model is a time recurrent neural network module. type. Calling the first recognition model to perform character recognition on the target line character region to identify each character in the target line character region. Generally, the insurance policy number is a number, and when all the characters are recognized, an insurance policy can be obtained. number.
在识别得到保险单号码后,将该保险单号码与该保险单图片进行关联存储,以便工作人员在通过该保险单号码进行查询或者检索时,可以通过该保险单号码查询或者检索到与其关联的保险单图片。After the insurance policy number is identified, the insurance policy number is stored in association with the insurance policy picture, so that when the employee searches or retrieves the insurance policy number, the insurance policy number can be used to query or retrieve the associated insurance number. Insurance policy picture.
在一优选的实施例中,如图7所示,在上述图6的实施例的基础上,上述第一提取模块101替换为:第二识别模块100,用于在接收到保险单图片后,调用预先训练生成的第二识别模型识别所述保险单图片中保险单号码所在的目标行字符区域。In a preferred embodiment, as shown in FIG. 7, on the basis of the foregoing embodiment of FIG. 6, the first extraction module 101 is replaced with: a second identification module 100, after receiving the insurance policy picture, The second recognition model generated by the pre-training is invoked to identify the target line character region in which the insurance policy number is located in the insurance policy picture.
本实施例中,预先训练生成第二识别模型,第二识别模型可以是图像处理相关的多种模型中的一种,优选地,第二识别模型为卷积神经网络模型。在接收到保险单图片后,调用第二识别模型对保险单图片进行定位及识别,以识别得到保险单号码所在的目标行字符区域。In this embodiment, the second recognition model is generated in advance, and the second recognition model may be one of a plurality of models related to image processing. Preferably, the second recognition model is a convolutional neural network model. After receiving the insurance policy picture, the second identification model is called to locate and identify the insurance policy picture to identify the target line character area where the insurance policy number is located.
与上述实施例不同的是,本实施例通过调用第二识别模型识别保险单图片中保险单号码所在的目标行字符区域,由于第二识别模型是通过大量数据进行训练得到的,因此,能够更准确地识别出目标行字符区域。Different from the above embodiment, the present embodiment identifies the target line character area where the insurance policy number is located in the insurance policy picture by calling the second identification model. Since the second recognition model is obtained by training a large amount of data, it is possible to Accurately identify the target line character area.
在一优选的实施例中,在上述的实施例的基础上,上述第二识别模型为卷积神经网络模型,所述保险单号码的识别装置还包括:In a preferred embodiment, based on the foregoing embodiment, the second identification model is a convolutional neural network model, and the insurance number identification device further includes:
获取模块,用于获取预设数量的保险单样本图片,将包含保险单号码的保险单样本图片作为第一图片集,并将不包含保险单号码的保险单样本图片作为第二图片集;An acquiring module, configured to obtain a preset number of insurance ticket sample pictures, use an insurance policy sample picture including an insurance policy number as a first picture set, and use an insurance policy sample picture that does not include an insurance policy number as a second picture set;
第二提取模块,用于从所述第一图片集和第二图片集中分别提取出第一预设比例的保险单样本图片作为待训练的样本图片,并将第一图片集和第二图片集中剩余的保险单样本图片作为待验证的样本图片;a second extraction module, configured to separately extract a first preset ratio of the insurance ticket sample image from the first image set and the second image set as a sample image to be trained, and focus the first image set and the second image set The remaining insurance policy sample image is used as the sample image to be verified;
第一训练模块,用于利用各待训练的样本图片进行模型训练,以生成所述卷积神经网络模型,并利用各待验证的样本图片对所生成的卷积神经网络模型进行验证;a first training module, configured to perform model training by using each sample image to be trained, to generate the convolutional neural network model, and verify the generated convolutional neural network model by using each sample image to be verified;
第一处理模块,用于若验证通过率大于等于预设阈值,则训练完成,否则增加所述保险单样本图片的数量,以重新进行训练及验证。The first processing module is configured to: if the verification pass rate is greater than or equal to the preset threshold, the training is completed, otherwise the number of the insurance ticket sample pictures is increased to perform training and verification again.
本实施例中,第二识别模型为卷积神经网络模型,在利用卷积神经网络模型识别目标行字符区域前,首先训练生成该卷积神经网络模型:In this embodiment, the second recognition model is a convolutional neural network model. Before using the convolutional neural network model to identify the target line character region, the convolutional neural network model is first trained to generate:
获取预设数量的保险单样本图片,例如获取10万张保险单样本图片,其中,将包含保险单号码的保险单样本图片作为第一图片集,并将不包含保险单号码的保险单样本图片作为第二图片集。第一图片集及第二图片集中分别提取第一预设比例的保险单样本图片作为待训练的样本图片,例如第一图片集及第二图片集中分别提取80%的保险单样本图片作为待训练的样本图 片,第一图片集及第二图片集中剩余的保险单样本图片作为待验证的样本图片。Obtain a preset number of insurance policy sample images, for example, obtain 100,000 insurance policy sample images, where the insurance policy sample image including the insurance policy number is used as the first photo collection, and the insurance policy sample image not including the insurance policy number As a second collection of pictures. The first picture set and the second picture set respectively extract the first preset proportion of the insurance order sample picture as the sample picture to be trained, for example, the first picture set and the second picture set respectively extract 80% of the insurance sample picture as the to-be-trained Sample map The slice, the first picture set and the remaining insurance order sample pictures in the second picture set are used as sample pictures to be verified.
在第一次训练卷积神经网络模型时,该卷积神经网络模型的参数采用默认的参数进行训练,在训练过程不断调整参数,在训练生成该卷积神经网络模型后,利用各待验证的样本图片对所生成的卷积神经网络模型进行验证,如果验证通过率大于等于预设阈值,例如通过率大于等于98%,则训练结束,以该训练得到的卷积神经网络模型为进行识别目标行字符区域的模型;如果验证通过率小于预设阈值,例如小于98%,则增加保险单样本图片的数量,直至验证通过率大于等于预设阈值。When the convolutional neural network model is trained for the first time, the parameters of the convolutional neural network model are trained by default parameters, and the parameters are continuously adjusted during the training process. After the training of the convolutional neural network model is generated, each of the to-be-verified models is used. The sample picture is used to verify the generated convolutional neural network model. If the verification pass rate is greater than or equal to a preset threshold, for example, the pass rate is greater than or equal to 98%, the training ends, and the convolutional neural network model obtained by the training is used to identify the target. A model of a line character area; if the verification pass rate is less than a preset threshold, for example, less than 98%, the number of insurance ticket sample pictures is increased until the verification pass rate is greater than or equal to a preset threshold.
在一优选的实施例中,在上述的实施例的基础上,保险单号码的识别装置还包括:In a preferred embodiment, based on the foregoing embodiment, the identification device of the insurance policy number further includes:
第三提取模块,用于获取预设数量的保险单号码样本图片,提取第二预设比例的保险单号码样本图片作为训练集,并将预设数量的保险单号码样本图片中剩余的保险单号码样本图片作为测试集;The third extraction module is configured to obtain a preset number of insurance ticket number sample images, extract a second preset ratio insurance ticket number sample image as a training set, and replace the remaining insurance policy in the preset number of insurance policy number sample images The number sample picture is used as a test set;
第二训练模块,用于将所述训练集中的保险单号码样本图片输入至时间递归神经网络模型进行模型训练,每隔预设时间利用所述测试集中的保险单号码样本图片对所训练的时间递归神经网络模型进行测试,以评估所训练的时间递归神经网络模型的识别效果;a second training module, configured to input the insurance ticket number sample picture in the training set to a time recurrent neural network model for model training, and use the insurance ticket number sample picture in the test set to train the time every preset time The recurrent neural network model is tested to evaluate the recognition effect of the trained time recurrent neural network model;
第二处理模块,用于在每次测试后,计算所训练的时间递归神经网络模型的识别误差,若所述识别误差收敛,则训练完成,否则调整所述时间递归神经网络模型的模型参数,以重新进行训练及测试。a second processing module, configured to calculate a recognition error of the trained time recurrent neural network model after each test, if the recognition error converges, the training is completed, otherwise the model parameters of the time recurrent neural network model are adjusted, To re-train and test.
本实施例中,第一识别模型为时间递归神经网络模型,在利用时间递归神经网络模型对目标行字符区域中的字符进行识别前,首先训练生成时间递归神经网络模型:In this embodiment, the first recognition model is a time recurrent neural network model, and the time recurrent neural network model is first trained to identify the characters in the target line character region by using the time recurrent neural network model:
获取预设数量的保险单号码样本图片,例如获取10万张保险单号码样本图片,其中,保险单号码样本图片仅包含一行数字,该行数字为保险单号码,字体为黑色,背景为白色,并可将各个保险单号码样本图片的名称命名为所含的保险单号码。提取第二预设比例的保险单号码样本图片作为训练集,并将预设数量的保险单号码样本图片中剩余的保险单号码样本图片作为测试集,训练集中的保险单号码样本图片的数量大于测试集中的保险单号码样本图片的数量,例如将保险单号码样本图片中的80%的保险单号码样本图片作为训练集,将剩余的20%的保险单号码样本图片作为测试集。Obtain a preset number of insurance ticket number sample images, for example, obtain 100,000 insurance policy number sample images, wherein the insurance policy number sample image only contains one line of numbers, the line number is the insurance policy number, the font is black, and the background is white. The name of each insurance policy number sample picture can be named as the insurance policy number included. Extracting a second preset ratio of the insurance order number sample picture as a training set, and using the remaining number of insurance policy number sample pictures in the preset number of insurance policy number sample pictures as a test set, the number of insurance order number sample pictures in the training set is greater than The number of insurance ticket number sample pictures in the test set, for example, 80% of the insurance order number sample pictures in the insurance order number sample picture is used as the training set, and the remaining 20% of the insurance number number sample pictures are used as the test set.
在第一次训练时间递归神经网络模型时,该时间递归神经网络模型的参数采用默认的参数进行训练,将训练集中的保险单号码样本图片输入至该时间递归神经网络模型中进行训练,每隔预设时间利用测试集中的保险单号码样本图片对所训练的时间递归神经网络模型进行测试,例如训练集中每进行1000次迭代后利用测试集进行测试,以评估所训练的时间递归神经网络模型的识别效果。 In the first training time recursive neural network model, the parameters of the time recurrent neural network model are trained by default parameters, and the insurance order number sample images in the training set are input into the time recurrent neural network model for training, The preset time uses the insurance policy number sample picture in the test set to test the trained time recurrent neural network model. For example, the training set is tested with the test set after every 1000 iterations to evaluate the trained time recurrent neural network model. Identify the effect.
在测试时,使用训练得到的模型对测试集中的保险单号码样本图片进行保险单号码识别,并将识别结果与该保险单号码样本图片的所用的名称进行对比(该保险单号码样本图片利用该保险单号码进行命名),以评估所训练的时间递归神经网络模型的识别效果。In the test, the trained model is used to identify the insurance policy number of the insurance policy number sample image in the test set, and compare the identification result with the used name of the insurance ticket number sample picture (the insurance policy number sample picture utilizes the The insurance policy number is named to evaluate the recognition effect of the trained time recurrent neural network model.
具体地,在每次测试后,计算所训练的时间递归神经网络模型的识别误差,该识别误差为所识别得到的保险单号码与该保险单号码样本图片的命名所采用的保险单号码的编辑距离,若识别误差收敛,则训练完成,以所训练得到的时间递归神经网络模型作为识别目标行字符区域中的字符的模型;若识别误差发散,调整时间递归神经网络模型的模型参数,直至识别误差收敛。Specifically, after each test, the recognition error of the trained time recurrent neural network model is calculated, and the identification error is an edit of the identified insurance policy number and the insurance policy number used for naming the insurance ticket number sample picture. Distance, if the recognition error converges, the training is completed, and the trained time recurrent neural network model is used as a model for identifying characters in the target line character region; if the recognition error is diverged, the model parameters of the time recurrent neural network model are adjusted until identification The error converges.
在一优选的实施例中,如图8所示,在上述图6的实施例的基础上,所述保险单号码的识别装置还包括:In a preferred embodiment, as shown in FIG. 8, on the basis of the foregoing embodiment of FIG. 6, the identification device for the insurance policy number further includes:
查找模块,用于在接收到终端发出的携带保险单号码的检索请求后,查找与所述保险单号码关联的保险单图片,并将查找到的保险单图片发送给所述终端。The search module is configured to: after receiving the search request for carrying the insurance policy number issued by the terminal, search for an insurance policy picture associated with the insurance policy number, and send the found insurance policy picture to the terminal.
本实施例中,用户在检索或查看保险单中的信息时,首先向识别保险单号码所在的装置发送携带保险单号码的检索请求,该装置在接收到检索请求后,根据该检索请求中的保险单号码匹配存储的与其一致的保险单号码,在匹配到一致的保险单号码后,将与匹配到的保险单号码关联的保险单图片反馈给终端,以便终端用户查看该保险单图片中的详细信息。In this embodiment, when searching or viewing the information in the insurance policy, the user first sends a search request carrying the insurance policy number to the device where the insurance policy number is located, and after receiving the search request, the device according to the search request The insurance policy number matches the stored insurance policy number. After matching the consistent insurance policy number, the insurance policy image associated with the matched insurance policy number is fed back to the terminal, so that the terminal user can view the insurance policy picture. details.
参照图9所示,为本发明识别保险单号码的设备的硬件结构框图。Referring to FIG. 9, a block diagram of a hardware structure of an apparatus for identifying an insurance policy number according to the present invention is shown.
在本实施例中,识别保险单号码的设备可以是PC(Personal Computer,个人电脑),也可以是智能手机、平板电脑、电子书阅读器、便携计算机等具有显示功能的可移动式终端设备。In this embodiment, the device for identifying the insurance policy number may be a PC (Personal Computer), or may be a portable terminal device having a display function such as a smart phone, a tablet computer, an e-book reader, or a portable computer.
该识别保险单号码的设备包括存储器11、处理器12,通信总线13,以及网络接口14。The device for identifying the policy number includes a memory 11, a processor 12, a communication bus 13, and a network interface 14.
其中,存储器11至少包括一种类型的可读存储介质,所述可读存储介质包括闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等)、磁性存储器、磁盘、光盘等。存储器11在一些实施例中可以是识别保险单号码的设备的内部存储单元,例如该识别保险单号码的设备的硬盘。存储器11在另一些实施例中也可以是识别保险单号码的设备的外部存储设备,例如识别保险单号码的设备上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,存储器11还可以既包括识别保险单号码的设备的内部存储单元也包括外部存储设备。存储器11不仅可以用于存储安装于识别保险单号码的设备的应用软件及各类数据,例如识别保险单号码的程序的代码等,还可以用于暂时地存储已经输出或者将要输出的数据。The memory 11 includes at least one type of readable storage medium including a flash memory, a hard disk, a multimedia card, a card type memory (for example, an SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, and the like. The memory 11 may in some embodiments be an internal storage unit of the device that identifies the insurance policy number, such as the hard disk of the device that identifies the insurance policy number. The memory 11 may also be an external storage device of the device that identifies the insurance policy number in other embodiments, such as a plug-in hard disk equipped on a device that identifies the insurance policy number, a smart memory card (SMC), a secure digital number. (Secure Digital, SD) card, flash card, etc. Further, the memory 11 may also include both an internal storage unit of the device that identifies the insurance policy number and an external storage device. The memory 11 can be used not only for storing application software and various types of data installed in a device for identifying an insurance policy number, such as a code for a program for identifying an insurance policy number, but also for temporarily storing data that has been output or is to be output.
处理器12在一些实施例中可以是一中央处理器(Central Processing Unit, CPU)、控制器、微控制器、微处理器或其他数据处理芯片,用于运行存储器11中存储的程序代码或处理数据,例如执行识别保险单号码的程序等。The processor 12 may be a central processing unit (Central Processing Unit, in some embodiments). A CPU, controller, microcontroller, microprocessor or other data processing chip for running program code or processing data stored in the memory 11, such as executing a program for identifying an insurance policy number.
通信总线13用于实现这些组件之间的连接通信。 Communication bus 13 is used to implement connection communication between these components.
网络接口14可选的可以包括标准的有线接口、无线接口(如WI-FI接口),通常用于在该设备与其他电子设备之间建立通信连接。The network interface 14 can optionally include a standard wired interface, a wireless interface (such as a WI-FI interface), and is typically used to establish a communication connection between the device and other electronic devices.
图9仅示出了具有组件11-14以及识别保险单号码的程序的识别保险单号码的设备,但是应理解的是,并不要求实施所有示出的组件,可以替代的实施更多或者更少的组件。Figure 9 shows only the device for identifying the policy number with the components 11-14 and the program identifying the policy number, but it should be understood that not all of the illustrated components are required to be implemented, alternative implementations may be more or more Less components.
可选地,该设备还可以包括用户接口,用户接口可以包括显示器(Display)、输入单元比如键盘(Keyboard),可选的用户接口还可以包括标准的有线接口、无线接口。可选地,在一些实施例中,显示器可以是LED显示器、液晶显示器、触控式液晶显示器以及OLED(Organic Light-Emitting Diode,有机发光二极管)触摸器等。其中,显示器也可以适当的称为显示屏或显示单元,用于显示在识别保险单号码的设备中处理的信息以及用于显示可视化的用户界面。Optionally, the device may further include a user interface, the user interface may include a display, an input unit such as a keyboard, and the optional user interface may further include a standard wired interface and a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch sensor, or the like. The display may also be referred to as a display or display unit, as appropriate, for displaying information processed in the device identifying the insurance policy number and a user interface for displaying the visualization.
在图9所示的识别保险单号码的设备中,存储器11中存储有识别保险单号码的程序,网络接口14主要用于连接服务器,与服务器进行数据通信;处理器12执行存储器11中存储的识别保险单号码的程序时实现如下步骤:In the apparatus for identifying an insurance policy number shown in FIG. 9, a program for identifying an insurance policy number is stored in the memory 11, the network interface 14 is mainly used to connect to a server, and performs data communication with the server; the processor 12 executes the storage in the memory 11. The procedure for identifying the policy number is as follows:
S1,在接收到保险单图片后,识别所述保险单图片对应的保险类型,基于预定的保险类型与保险单号码在所述保险单图片中的位置关系提取所述保险单号码在所述保险单图片中对应的目标行字符区域;S1. After receiving the insurance policy picture, identify the insurance type corresponding to the insurance policy picture, and extract the insurance policy number based on the predetermined insurance type and the positional relationship of the insurance policy number in the insurance policy picture. The corresponding target line character area in a single picture;
S2,调用预先训练生成的第一识别模型对所述目标行字符区域进行字符识别,以识别出所述目标行字符区域中包含的保险单号码,并将识别出保险单号码与所述保险单图片进行关联存储。S2, calling a first recognition model generated by the pre-training to perform character recognition on the target line character region to identify an insurance policy number included in the target line character region, and identify the insurance policy number and the insurance policy The image is stored in association.
进一步地,所述步骤S2可以替换为:Further, the step S2 can be replaced by:
S0,在接收到保险单图片后,调用预先训练生成的第二识别模型识别所述保险单图片中保险单号码所在的目标行字符区域。S0. After receiving the insurance policy picture, the second recognition model generated by the pre-training is invoked to identify the target line character area in which the insurance policy number is located in the insurance policy picture.
进一步地,所述第二识别模型为卷积神经网络模型,所述处理器还用于执行所述识别保险单号码的程序,以在步骤S0之前,还实现如下步骤:Further, the second identification model is a convolutional neural network model, and the processor is further configured to execute the program for identifying the insurance policy number, so as to implement the following steps before step S0:
S01,获取预设数量的保险单样本图片,将包含保险单号码的保险单样本图片作为第一图片集,并将不包含保险单号码的保险单样本图片作为第二图片集;S01: Obtain a preset number of insurance policy sample pictures, use an insurance policy sample picture including an insurance policy number as a first picture set, and use an insurance policy sample picture that does not include an insurance policy number as a second picture set;
S02,从所述第一图片集和第二图片集中分别提取出第一预设比例的保险单样本图片作为待训练的样本图片,并将第一图片集和第二图片集中剩余的保险单样本图片作为待验证的样本图片;S02, extracting, from the first picture set and the second picture set, a first preset proportion of insurance policy sample pictures as sample pictures to be trained, and collecting remaining insurance policy samples in the first picture set and the second picture set The picture serves as a sample picture to be verified;
S03,利用各待训练的样本图片进行模型训练,以生成所述卷积神经网络模型,并利用各待验证的样本图片对所生成的卷积神经网络模型进行验证;S03: performing model training by using each sample image to be trained to generate the convolutional neural network model, and verifying the generated convolutional neural network model by using each sample image to be verified;
S04,若验证通过率大于等于预设阈值,则训练完成,否则增加所述保 险单样本图片的数量,以重新进行训练及验证。S04. If the verification pass rate is greater than or equal to the preset threshold, the training is completed, otherwise the protection is increased. The number of insurance sample images to re-train and verify.
进一步地,所述第一识别模型为时间递归神经网络模型,所述处理器还用于执行所述识别保险单号码的程序,以在步骤S2之前,还实现如下步骤:Further, the first recognition model is a time recurrent neural network model, and the processor is further configured to execute the program for identifying the insurance policy number, so as to implement the following steps before step S2:
S21,获取预设数量的保险单号码样本图片,提取第二预设比例的保险单号码样本图片作为训练集,并将预设数量的保险单号码样本图片中剩余的保险单号码样本图片作为测试集;S21: Obtain a preset number of insurance ticket number sample images, extract a second preset proportion of insurance policy number sample images as a training set, and test the remaining insurance policy number sample images in the preset number of insurance policy number sample images as a test set;
S22,将所述训练集中的保险单号码样本图片输入至时间递归神经网络模型进行模型训练,每隔预设时间利用所述测试集中的保险单号码样本图片对所训练的时间递归神经网络模型进行测试,以评估所训练的时间递归神经网络模型的识别效果;S22: Input the insurance ticket number sample image in the training set to the time recurrent neural network model for model training, and use the insurance ticket number sample image in the test set to perform the trained time recurrent neural network model every preset time. Testing to assess the recognition effect of the trained time recurrent neural network model;
S23,在每次测试后,计算所训练的时间递归神经网络模型的识别误差,若所述识别误差收敛,则训练完成,否则调整所述时间递归神经网络模型的模型参数,以重新进行训练及测试。S23. After each test, calculate the recognition error of the trained time recurrent neural network model. If the recognition error converges, the training is completed, otherwise the model parameters of the time recurrent neural network model are adjusted to re-train and test.
进一步地,所述处理器还用于执行所述识别保险单号码的程序,以在步骤S2之后,还实现如下步骤:Further, the processor is further configured to execute the program for identifying the insurance policy number, so after step S2, further implementing the following steps:
S3,在接收到终端发出的携带保险单号码的检索请求后,查找与所述保险单号码关联的保险单图片,并将查找到的保险单图片发送给所述终端。S3. After receiving the search request for carrying the insurance policy number issued by the terminal, search for the insurance policy picture associated with the insurance policy number, and send the found insurance policy picture to the terminal.
本发明还提出一种计算机可读存储介质,该计算机可读存储介质上存储有识别保险单号码的程序,所述识别保险单号码的程序被处理器执行时实现如下操作:The present invention also provides a computer readable storage medium having stored thereon a program for identifying an insurance policy number, the program for identifying the insurance policy number being executed by the processor to:
S1,在接收到保险单图片后,识别所述保险单图片对应的保险类型,基于预定的保险类型与保险单号码在所述保险单图片中的位置关系提取所述保险单号码在所述保险单图片中对应的目标行字符区域;S1. After receiving the insurance policy picture, identify the insurance type corresponding to the insurance policy picture, and extract the insurance policy number based on the predetermined insurance type and the positional relationship of the insurance policy number in the insurance policy picture. The corresponding target line character area in a single picture;
S2,调用预先训练生成的第一识别模型对所述目标行字符区域进行字符识别,以识别出所述目标行字符区域中包含的保险单号码,并将识别出保险单号码与所述保险单图片进行关联存储。S2, calling a first recognition model generated by the pre-training to perform character recognition on the target line character region to identify an insurance policy number included in the target line character region, and identify the insurance policy number and the insurance policy The image is stored in association.
进一步地,所述步骤S2可以替换为:Further, the step S2 can be replaced by:
S0,在接收到保险单图片后,调用预先训练生成的第二识别模型识别所述保险单图片中保险单号码所在的目标行字符区域。S0. After receiving the insurance policy picture, the second recognition model generated by the pre-training is invoked to identify the target line character area in which the insurance policy number is located in the insurance policy picture.
进一步地,所述识别保险单号码的程序被处理器执行时,在步骤S0之前还实现如下步骤:Further, when the program for identifying the insurance policy number is executed by the processor, the following steps are further implemented before step S0:
S01,获取预设数量的保险单样本图片,将包含保险单号码的保险单样本图片作为第一图片集,并将不包含保险单号码的保险单样本图片作为第二图片集;S01: Obtain a preset number of insurance policy sample pictures, use an insurance policy sample picture including an insurance policy number as a first picture set, and use an insurance policy sample picture that does not include an insurance policy number as a second picture set;
S02,从所述第一图片集和第二图片集中分别提取出第一预设比例的保险单样本图片作为待训练的样本图片,并将第一图片集和第二图片集中剩余的保险单样本图片作为待验证的样本图片;S02, extracting, from the first picture set and the second picture set, a first preset proportion of insurance policy sample pictures as sample pictures to be trained, and collecting remaining insurance policy samples in the first picture set and the second picture set The picture serves as a sample picture to be verified;
S03,利用各待训练的样本图片进行模型训练,以生成所述卷积神经网 络模型,并利用各待验证的样本图片对所生成的卷积神经网络模型进行验证;S03, performing model training by using each sample image to be trained to generate the convolutional neural network Network model, and use the sample images to be verified to verify the generated convolutional neural network model;
S04,若验证通过率大于等于预设阈值,则训练完成,否则增加所述保险单样本图片的数量,以重新进行训练及验证。S04. If the verification pass rate is greater than or equal to the preset threshold, the training is completed, otherwise the number of the insurance ticket sample pictures is increased to perform training and verification again.
进一步地,所述识别保险单号码的程序被处理器执行时,在步骤S2之前还实现如下步骤:Further, when the program for identifying the insurance policy number is executed by the processor, the following steps are further implemented before step S2:
S21,获取预设数量的保险单号码样本图片,提取第二预设比例的保险单号码样本图片作为训练集,并将预设数量的保险单号码样本图片中剩余的保险单号码样本图片作为测试集;S21: Obtain a preset number of insurance ticket number sample images, extract a second preset proportion of insurance policy number sample images as a training set, and test the remaining insurance policy number sample images in the preset number of insurance policy number sample images as a test set;
S22,将所述训练集中的保险单号码样本图片输入至时间递归神经网络模型进行模型训练,每隔预设时间利用所述测试集中的保险单号码样本图片对所训练的时间递归神经网络模型进行测试,以评估所训练的时间递归神经网络模型的识别效果;S22: Input the insurance ticket number sample image in the training set to the time recurrent neural network model for model training, and use the insurance ticket number sample image in the test set to perform the trained time recurrent neural network model every preset time. Testing to assess the recognition effect of the trained time recurrent neural network model;
S23,在每次测试后,计算所训练的时间递归神经网络模型的识别误差,若所述识别误差收敛,则训练完成,否则调整所述时间递归神经网络模型的模型参数,以重新进行训练及测试。S23. After each test, calculate the recognition error of the trained time recurrent neural network model. If the recognition error converges, the training is completed, otherwise the model parameters of the time recurrent neural network model are adjusted to re-train and test.
进一步地,所述识别保险单号码的程序被处理器执行时,在步骤S2之后还实现如下步骤:Further, when the program for identifying the insurance policy number is executed by the processor, the following steps are further implemented after step S2:
S3,在接收到终端发出的携带保险单号码的检索请求后,查找与所述保险单号码关联的保险单图片,并将查找到的保险单图片发送给所述终端。S3. After receiving the search request for carrying the insurance policy number issued by the terminal, search for the insurance policy picture associated with the insurance policy number, and send the found insurance policy picture to the terminal.
本发明计算机可读存储介质的具体实施例与上述识别保险单号码的方法实施例基本相同,在此不作赘述。The specific embodiment of the computer readable storage medium of the present invention is substantially the same as the method embodiment for identifying the insurance policy number, and is not described herein.
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。The serial numbers of the embodiments of the present invention are merely for the description, and do not represent the advantages and disadvantages of the embodiments. Through the description of the above embodiments, those skilled in the art can clearly understand that the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better. Implementation. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, The optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。 The above are only the preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalents, improvements, etc., which are within the spirit and scope of the present invention, should be included in the protection of the present invention. Within the scope.

Claims (20)

  1. 一种识别保险单号码的方法,其特征在于,所述识别保险单号码的方法包括:A method for identifying an insurance policy number, wherein the method for identifying an insurance policy number includes:
    S1,在接收到保险单图片后,识别所述保险单图片对应的保险类型,基于预定的保险类型与保险单号码在所述保险单图片中的位置关系提取所述保险单号码在所述保险单图片中对应的目标行字符区域;S1. After receiving the insurance policy picture, identify the insurance type corresponding to the insurance policy picture, and extract the insurance policy number based on the predetermined insurance type and the positional relationship of the insurance policy number in the insurance policy picture. The corresponding target line character area in a single picture;
    S2,调用预先训练生成的第一识别模型对所述目标行字符区域进行字符识别,以识别出所述目标行字符区域中包含的保险单号码,并将识别出保险单号码与所述保险单图片进行关联存储。S2, calling a first recognition model generated by the pre-training to perform character recognition on the target line character region to identify an insurance policy number included in the target line character region, and identify the insurance policy number and the insurance policy The image is stored in association.
  2. 根据权利要求1所述的识别保险单号码的方法,其特征在于,所述步骤S1替换为:The method of identifying an insurance policy number according to claim 1, wherein said step S1 is replaced by:
    S0,在接收到保险单图片后,调用预先训练生成的第二识别模型识别所述保险单图片中保险单号码所在的目标行字符区域。S0. After receiving the insurance policy picture, the second recognition model generated by the pre-training is invoked to identify the target line character area in which the insurance policy number is located in the insurance policy picture.
  3. 根据权利要求2所述的识别保险单号码的方法,其特征在于,所述第二识别模型为卷积神经网络模型,所述步骤S0之前还包括:The method for identifying an insurance policy number according to claim 2, wherein the second recognition model is a convolutional neural network model, and the step S0 further comprises:
    S01,获取预设数量的保险单样本图片,将包含保险单号码的保险单样本图片作为第一图片集,并将不包含保险单号码的保险单样本图片作为第二图片集;S01: Obtain a preset number of insurance policy sample pictures, use an insurance policy sample picture including an insurance policy number as a first picture set, and use an insurance policy sample picture that does not include an insurance policy number as a second picture set;
    S02,从所述第一图片集和第二图片集中分别提取出第一预设比例的保险单样本图片作为待训练的样本图片,并将第一图片集和第二图片集中剩余的保险单样本图片作为待验证的样本图片;S02, extracting, from the first picture set and the second picture set, a first preset proportion of insurance policy sample pictures as sample pictures to be trained, and collecting remaining insurance policy samples in the first picture set and the second picture set The picture serves as a sample picture to be verified;
    S03,利用各待训练的样本图片进行模型训练,以生成所述卷积神经网络模型,并利用各待验证的样本图片对所生成的卷积神经网络模型进行验证;S03: performing model training by using each sample image to be trained to generate the convolutional neural network model, and verifying the generated convolutional neural network model by using each sample image to be verified;
    S04,若验证通过率大于等于预设阈值,则训练完成,否则增加所述保险单样本图片的数量,以重新进行训练及验证。S04. If the verification pass rate is greater than or equal to the preset threshold, the training is completed, otherwise the number of the insurance ticket sample pictures is increased to perform training and verification again.
  4. 根据权利要求1至3任一项所述的识别保险单号码的方法,其特征在于,所述第一识别模型为时间递归神经网络模型,所述步骤S2之前还包括:The method for identifying an insurance policy number according to any one of claims 1 to 3, wherein the first recognition model is a time recurrent neural network model, and the step S2 further comprises:
    S21,获取预设数量的保险单号码样本图片,提取第二预设比例的保险单号码样本图片作为训练集,并将预设数量的保险单号码样本图片中剩余的保险单号码样本图片作为测试集;S21: Obtain a preset number of insurance ticket number sample images, extract a second preset proportion of insurance policy number sample images as a training set, and test the remaining insurance policy number sample images in the preset number of insurance policy number sample images as a test set;
    S22,将所述训练集中的保险单号码样本图片输入至时间递归神经网络模型进行模型训练,每隔预设时间利用所述测试集中的保险单号码样本图片对所训练的时间递归神经网络模型进行测试,以评估所训练的时间递归神经 网络模型的识别效果;S22: Input the insurance ticket number sample image in the training set to the time recurrent neural network model for model training, and use the insurance ticket number sample image in the test set to perform the trained time recurrent neural network model every preset time. Test to assess the time of recurrent nerves trained The recognition effect of the network model;
    S23,在每次测试后,计算所训练的时间递归神经网络模型的识别误差,若所述识别误差收敛,则训练完成,否则调整所述时间递归神经网络模型的模型参数,以重新进行训练及测试。S23. After each test, calculate the recognition error of the trained time recurrent neural network model. If the recognition error converges, the training is completed, otherwise the model parameters of the time recurrent neural network model are adjusted to re-train and test.
  5. 根据权利要求4所述的识别保险单号码的方法,其特征在于,所述步骤S2之后还包括:The method for identifying an insurance policy number according to claim 4, wherein the step S2 further comprises:
    S3,在接收到终端发出的携带保险单号码的检索请求后,查找与所述保险单号码关联的保险单图片,并将查找到的保险单图片发送给所述终端。S3. After receiving the search request for carrying the insurance policy number issued by the terminal, search for the insurance policy picture associated with the insurance policy number, and send the found insurance policy picture to the terminal.
  6. 一种识别保险单号码的装置,其特征在于,所述识别保险单号码的装置包括:An apparatus for identifying an insurance policy number, wherein the apparatus for identifying an insurance policy number comprises:
    第一提取模块,用于在接收到保险单图片后,识别所述保险单图片对应的保险类型,基于预定的保险类型与保险单号码在所述保险单图片中的位置关系提取所述保险单号码在所述保险单图片中对应的目标行字符区域;a first extraction module, configured to identify an insurance type corresponding to the insurance policy picture after receiving the insurance policy picture, and extract the insurance policy based on a predetermined insurance type and a positional relationship of the insurance policy number in the insurance policy picture The number is in the corresponding target line character area in the insurance policy picture;
    第一识别模块,用于调用预先训练生成的第一识别模型对所述目标行字符区域进行字符识别,以识别出所述目标行字符区域中包含的保险单号码,并将识别出保险单号码与所述保险单图片进行关联存储。a first identification module, configured to invoke a first recognition model generated by the pre-training to perform character recognition on the target line character region, to identify an insurance policy number included in the target line character region, and identify the insurance policy number Associated with the insurance policy picture for storage.
  7. 根据权利要求6所述的保险单号码的识别装置,其特征在于,所述第一提取模块替换为:第二识别模块,用于在接收到保险单图片后,调用预先训练生成的第二识别模型识别所述保险单图片中保险单号码所在的目标行字符区域。The apparatus for identifying an insurance policy according to claim 6, wherein the first extraction module is replaced by: a second identification module, configured to invoke a second identification generated by the pre-training after receiving the insurance policy picture The model identifies the target line character area in which the insurance policy number is located in the insurance policy picture.
  8. 根据权利要求7所述的保险单号码的识别装置,其特征在于,所述第二识别模型为卷积神经网络模型,所述保险单号码的识别装置还包括:The apparatus for identifying an insurance policy number according to claim 7, wherein the second identification model is a convolutional neural network model, and the identification device of the insurance policy number further comprises:
    获取模块,用于获取预设数量的保险单样本图片,将包含保险单号码的保险单样本图片作为第一图片集,并将不包含保险单号码的保险单样本图片作为第二图片集;An acquiring module, configured to obtain a preset number of insurance ticket sample pictures, use an insurance policy sample picture including an insurance policy number as a first picture set, and use an insurance policy sample picture that does not include an insurance policy number as a second picture set;
    第二提取模块,用于从所述第一图片集和第二图片集中分别提取出第一预设比例的保险单样本图片作为待训练的样本图片,并将第一图片集和第二图片集中剩余的保险单样本图片作为待验证的样本图片;a second extraction module, configured to separately extract a first preset ratio of the insurance ticket sample image from the first image set and the second image set as a sample image to be trained, and focus the first image set and the second image set The remaining insurance policy sample image is used as the sample image to be verified;
    第一训练模块,用于利用各待训练的样本图片进行模型训练,以生成所述卷积神经网络模型,并利用各待验证的样本图片对所生成的卷积神经网络模型进行验证;a first training module, configured to perform model training by using each sample image to be trained, to generate the convolutional neural network model, and verify the generated convolutional neural network model by using each sample image to be verified;
    第一处理模块,用于若验证通过率大于等于预设阈值,则训练完成,否则增加所述保险单样本图片的数量,以重新进行训练及验证。The first processing module is configured to: if the verification pass rate is greater than or equal to the preset threshold, the training is completed, otherwise the number of the insurance ticket sample pictures is increased to perform training and verification again.
  9. 根据权利要求6至8任一项所述的保险单号码的识别装置,其特征 在于,所述第一识别模型为时间递归神经网络模型,所述保险单号码的识别装置还包括:The identification device for an insurance policy according to any one of claims 6 to 8, characterized in that The first recognition model is a time recurrent neural network model, and the insurance number identification device further includes:
    第三提取模块,用于获取预设数量的保险单号码样本图片,提取第二预设比例的保险单号码样本图片作为训练集,并将预设数量的保险单号码样本图片中剩余的保险单号码样本图片作为测试集;The third extraction module is configured to obtain a preset number of insurance ticket number sample images, extract a second preset ratio insurance ticket number sample image as a training set, and replace the remaining insurance policy in the preset number of insurance policy number sample images The number sample picture is used as a test set;
    第二训练模块,用于将所述训练集中的保险单号码样本图片输入至时间递归神经网络模型进行模型训练,每隔预设时间利用所述测试集中的保险单号码样本图片对所训练的时间递归神经网络模型进行测试,以评估所训练的时间递归神经网络模型的识别效果;a second training module, configured to input the insurance ticket number sample picture in the training set to a time recurrent neural network model for model training, and use the insurance ticket number sample picture in the test set to train the time every preset time The recurrent neural network model is tested to evaluate the recognition effect of the trained time recurrent neural network model;
    第二处理模块,用于在每次测试后,计算所训练的时间递归神经网络模型的识别误差,若所述识别误差收敛,则训练完成,否则调整所述时间递归神经网络模型的模型参数,以重新进行训练及测试。a second processing module, configured to calculate a recognition error of the trained time recurrent neural network model after each test, if the recognition error converges, the training is completed, otherwise the model parameters of the time recurrent neural network model are adjusted, To re-train and test.
  10. 根据权利要求9所述的保险单号码的识别装置,其特征在于,所述保险单号码的识别装置还包括:The apparatus for identifying an insurance policy number according to claim 9, wherein the identification device of the insurance policy number further comprises:
    查找模块,用于在接收到终端发出的携带保险单号码的检索请求后,查找与所述保险单号码关联的保险单图片,并将查找到的保险单图片发送给所述终端。The search module is configured to: after receiving the search request for carrying the insurance policy number issued by the terminal, search for an insurance policy picture associated with the insurance policy number, and send the found insurance policy picture to the terminal.
  11. 一种识别保险单号码的设备,其特征在于,所述设备包括所述存储器、处理器及存储在所述存储器上并可在所述处理器上运行的识别保险单号码的程序,所述识别保险单号码的程序被所述处理器执行时实现如下步骤:An apparatus for identifying an insurance policy number, the apparatus comprising the memory, a processor, and a program for identifying an insurance policy number stored on the memory and operable on the processor, the identifying When the program of the insurance policy number is executed by the processor, the following steps are implemented:
    S1,在接收到保险单图片后,识别所述保险单图片对应的保险类型,基于预定的保险类型与保险单号码在所述保险单图片中的位置关系提取所述保险单号码在所述保险单图片中对应的目标行字符区域;S1. After receiving the insurance policy picture, identify the insurance type corresponding to the insurance policy picture, and extract the insurance policy number based on the predetermined insurance type and the positional relationship of the insurance policy number in the insurance policy picture. The corresponding target line character area in a single picture;
    S2,调用预先训练生成的第一识别模型对所述目标行字符区域进行字符识别,以识别出所述目标行字符区域中包含的保险单号码,并将识别出保险单号码与所述保险单图片进行关联存储。S2, calling a first recognition model generated by the pre-training to perform character recognition on the target line character region to identify an insurance policy number included in the target line character region, and identify the insurance policy number and the insurance policy The image is stored in association.
  12. 根据权利要求11所述的识别保险单号码的设备,其特征在于,所述步骤S2可以替换为:The device for identifying an insurance policy number according to claim 11, wherein said step S2 can be replaced by:
    S0,在接收到保险单图片后,调用预先训练生成的第二识别模型识别所述保险单图片中保险单号码所在的目标行字符区域。S0. After receiving the insurance policy picture, the second recognition model generated by the pre-training is invoked to identify the target line character area in which the insurance policy number is located in the insurance policy picture.
  13. 根据权利要求12所述的识别保险单号码的设备,其特征在于,所述第二识别模型为卷积神经网络模型,所述处理器还用于执行所述识别保险单号码的程序,以在步骤S0之前,还实现如下步骤:The apparatus for identifying an insurance policy number according to claim 12, wherein said second recognition model is a convolutional neural network model, and said processor is further configured to execute said program for identifying an insurance policy number to Before step S0, the following steps are also implemented:
    S01,获取预设数量的保险单样本图片,将包含保险单号码的保险单样本图片作为第一图片集,并将不包含保险单号码的保险单样本图片作为第二 图片集;S01, obtaining a preset number of insurance policy sample pictures, using the insurance policy sample picture including the insurance policy number as the first picture set, and using the insurance policy sample picture not including the insurance policy number as the second Photo album;
    S02,从所述第一图片集和第二图片集中分别提取出第一预设比例的保险单样本图片作为待训练的样本图片,并将第一图片集和第二图片集中剩余的保险单样本图片作为待验证的样本图片;S02, extracting, from the first picture set and the second picture set, a first preset proportion of insurance policy sample pictures as sample pictures to be trained, and collecting remaining insurance policy samples in the first picture set and the second picture set The picture serves as a sample picture to be verified;
    S03,利用各待训练的样本图片进行模型训练,以生成所述卷积神经网络模型,并利用各待验证的样本图片对所生成的卷积神经网络模型进行验证;S03: performing model training by using each sample image to be trained to generate the convolutional neural network model, and verifying the generated convolutional neural network model by using each sample image to be verified;
    S04,若验证通过率大于等于预设阈值,则训练完成,否则增加所述保险单样本图片的数量,以重新进行训练及验证。S04. If the verification pass rate is greater than or equal to the preset threshold, the training is completed, otherwise the number of the insurance ticket sample pictures is increased to perform training and verification again.
  14. 根据权利要求11至13中任一项所述的识别保险单号码的设备,其特征在于,所述第一识别模型为时间递归神经网络模型,所述处理器还用于执行所述识别保险单号码的程序,以在步骤S2之前,还实现如下步骤:The apparatus for identifying an insurance policy number according to any one of claims 11 to 13, wherein the first recognition model is a time recurrent neural network model, and the processor is further configured to execute the identification insurance policy The number program, in order to perform the following steps before step S2:
    S21,获取预设数量的保险单号码样本图片,提取第二预设比例的保险单号码样本图片作为训练集,并将预设数量的保险单号码样本图片中剩余的保险单号码样本图片作为测试集;S21: Obtain a preset number of insurance ticket number sample images, extract a second preset proportion of insurance policy number sample images as a training set, and test the remaining insurance policy number sample images in the preset number of insurance policy number sample images as a test set;
    S22,将所述训练集中的保险单号码样本图片输入至时间递归神经网络模型进行模型训练,每隔预设时间利用所述测试集中的保险单号码样本图片对所训练的时间递归神经网络模型进行测试,以评估所训练的时间递归神经网络模型的识别效果;S22: Input the insurance ticket number sample image in the training set to the time recurrent neural network model for model training, and use the insurance ticket number sample image in the test set to perform the trained time recurrent neural network model every preset time. Testing to assess the recognition effect of the trained time recurrent neural network model;
    S23,在每次测试后,计算所训练的时间递归神经网络模型的识别误差,若所述识别误差收敛,则训练完成,否则调整所述时间递归神经网络模型的模型参数,以重新进行训练及测试。S23. After each test, calculate the recognition error of the trained time recurrent neural network model. If the recognition error converges, the training is completed, otherwise the model parameters of the time recurrent neural network model are adjusted to re-train and test.
  15. 根据权利要求11至13中任一项所述的识别保险单号码的设备,其特征在于,所述处理器还用于执行所述识别保险单号码的程序,以在步骤S2之后,还实现如下步骤:The apparatus for identifying an insurance policy number according to any one of claims 11 to 13, wherein the processor is further configured to execute the program for identifying the insurance policy number, to further implement the following after step S2 step:
    S3,在接收到终端发出的携带保险单号码的检索请求后,查找与所述保险单号码关联的保险单图片,并将查找到的保险单图片发送给所述终端。S3. After receiving the search request for carrying the insurance policy number issued by the terminal, search for the insurance policy picture associated with the insurance policy number, and send the found insurance policy picture to the terminal.
  16. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有识别保险单号码的程序,所述识别保险单号码的程序被处理器执行时实现如下步骤:A computer readable storage medium, wherein the computer readable storage medium stores a program for identifying an insurance policy number, and the program for identifying the insurance policy number is executed by the processor to implement the following steps:
    S1,在接收到保险单图片后,识别所述保险单图片对应的保险类型,基于预定的保险类型与保险单号码在所述保险单图片中的位置关系提取所述保险单号码在所述保险单图片中对应的目标行字符区域;S1. After receiving the insurance policy picture, identify the insurance type corresponding to the insurance policy picture, and extract the insurance policy number based on the predetermined insurance type and the positional relationship of the insurance policy number in the insurance policy picture. The corresponding target line character area in a single picture;
    S2,调用预先训练生成的第一识别模型对所述目标行字符区域进行字符识别,以识别出所述目标行字符区域中包含的保险单号码,并将识别出保险单号码与所述保险单图片进行关联存储。 S2, calling a first recognition model generated by the pre-training to perform character recognition on the target line character region to identify an insurance policy number included in the target line character region, and identify the insurance policy number and the insurance policy The image is stored in association.
  17. 根据权利要求16所述的计算机可读存储介质,其特征在于,所述步骤S2可以替换为:The computer readable storage medium according to claim 16, wherein said step S2 is replaceable by:
    S0,在接收到保险单图片后,调用预先训练生成的第二识别模型识别所述保险单图片中保险单号码所在的目标行字符区域。S0. After receiving the insurance policy picture, the second recognition model generated by the pre-training is invoked to identify the target line character area in which the insurance policy number is located in the insurance policy picture.
  18. 根据权利要求17所述的计算机可读存储介质,其特征在于,所述识别保险单号码的程序被处理器执行时,在步骤S0之前还实现如下步骤:The computer readable storage medium according to claim 17, wherein when said program for identifying the policy number is executed by the processor, the following steps are further implemented before step S0:
    S01,获取预设数量的保险单样本图片,将包含保险单号码的保险单样本图片作为第一图片集,并将不包含保险单号码的保险单样本图片作为第二图片集;S01: Obtain a preset number of insurance policy sample pictures, use an insurance policy sample picture including an insurance policy number as a first picture set, and use an insurance policy sample picture that does not include an insurance policy number as a second picture set;
    S02,从所述第一图片集和第二图片集中分别提取出第一预设比例的保险单样本图片作为待训练的样本图片,并将第一图片集和第二图片集中剩余的保险单样本图片作为待验证的样本图片;S02, extracting, from the first picture set and the second picture set, a first preset proportion of insurance policy sample pictures as sample pictures to be trained, and collecting remaining insurance policy samples in the first picture set and the second picture set The picture serves as a sample picture to be verified;
    S03,利用各待训练的样本图片进行模型训练,以生成所述卷积神经网络模型,并利用各待验证的样本图片对所生成的卷积神经网络模型进行验证;S03: performing model training by using each sample image to be trained to generate the convolutional neural network model, and verifying the generated convolutional neural network model by using each sample image to be verified;
    S04,若验证通过率大于等于预设阈值,则训练完成,否则增加所述保险单样本图片的数量,以重新进行训练及验证。S04. If the verification pass rate is greater than or equal to the preset threshold, the training is completed, otherwise the number of the insurance ticket sample pictures is increased to perform training and verification again.
  19. 根据权利要求16至18中任一项所述的计算机可读存储介质,其特征在于,所述识别保险单号码的程序被处理器执行时,在步骤S2之前还实现如下步骤:The computer readable storage medium according to any one of claims 16 to 18, wherein when the program for identifying the insurance policy number is executed by the processor, the following steps are further implemented before step S2:
    S21,获取预设数量的保险单号码样本图片,提取第二预设比例的保险单号码样本图片作为训练集,并将预设数量的保险单号码样本图片中剩余的保险单号码样本图片作为测试集;S21: Obtain a preset number of insurance ticket number sample images, extract a second preset proportion of insurance policy number sample images as a training set, and test the remaining insurance policy number sample images in the preset number of insurance policy number sample images as a test set;
    S22,将所述训练集中的保险单号码样本图片输入至时间递归神经网络模型进行模型训练,每隔预设时间利用所述测试集中的保险单号码样本图片对所训练的时间递归神经网络模型进行测试,以评估所训练的时间递归神经网络模型的识别效果;S22: Input the insurance ticket number sample image in the training set to the time recurrent neural network model for model training, and use the insurance ticket number sample image in the test set to perform the trained time recurrent neural network model every preset time. Testing to assess the recognition effect of the trained time recurrent neural network model;
    S23,在每次测试后,计算所训练的时间递归神经网络模型的识别误差,若所述识别误差收敛,则训练完成,否则调整所述时间递归神经网络模型的模型参数,以重新进行训练及测试。S23. After each test, calculate the recognition error of the trained time recurrent neural network model. If the recognition error converges, the training is completed, otherwise the model parameters of the time recurrent neural network model are adjusted to re-train and test.
  20. 根据权利要求16所述的计算机可读存储介质,其特征在于,所述识别保险单号码的程序被处理器执行时,在步骤S2之后还实现如下步骤:The computer readable storage medium according to claim 16, wherein when the program for identifying the policy number is executed by the processor, the following steps are further implemented after step S2:
    S3,在接收到终端发出的携带保险单号码的检索请求后,查找与所述保险单号码关联的保险单图片,并将查找到的保险单图片发送给所述终端。 S3. After receiving the search request for carrying the insurance policy number issued by the terminal, search for the insurance policy picture associated with the insurance policy number, and send the found insurance policy picture to the terminal.
PCT/CN2017/091308 2016-11-15 2017-06-30 Method, apparatus and device for identifying insurance policy number, and computer-readable storage medium WO2018090641A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201611005112.1 2016-11-15
CN201611005112.1A CN106557747B (en) 2016-11-15 2016-11-15 The method and device of identification insurance single numbers

Publications (1)

Publication Number Publication Date
WO2018090641A1 true WO2018090641A1 (en) 2018-05-24

Family

ID=58444147

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/091308 WO2018090641A1 (en) 2016-11-15 2017-06-30 Method, apparatus and device for identifying insurance policy number, and computer-readable storage medium

Country Status (2)

Country Link
CN (1) CN106557747B (en)
WO (1) WO2018090641A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110231939A (en) * 2019-05-16 2019-09-13 平安科技(深圳)有限公司 Model generating method, system, computer equipment and storage medium
CN111275039A (en) * 2020-01-17 2020-06-12 深圳信息职业技术学院 Water gauge character positioning method and device, computing equipment and storage medium
CN111382297A (en) * 2018-12-29 2020-07-07 杭州海康存储科技有限公司 Method and device for reporting user data of user side
CN111382297B (en) * 2018-12-29 2024-05-17 杭州海康存储科技有限公司 User side user data reporting method and device

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106557747B (en) * 2016-11-15 2018-06-22 平安科技(深圳)有限公司 The method and device of identification insurance single numbers
CN107220648B (en) * 2017-04-11 2018-06-22 平安科技(深圳)有限公司 The character identifying method and server of Claims Resolution document
CN107766809B (en) * 2017-10-09 2020-05-19 平安科技(深圳)有限公司 Electronic device, bill information identification method, and computer-readable storage medium
CN108564035B (en) 2018-04-13 2020-09-25 杭州睿琪软件有限公司 Method and system for identifying information recorded on document
CN110619252B (en) * 2018-06-19 2022-11-04 百度在线网络技术(北京)有限公司 Method, device and equipment for identifying form data in picture and storage medium
CN109918984A (en) * 2018-12-15 2019-06-21 深圳壹账通智能科技有限公司 Insurance policy number identification method, device, electronic equipment and storage medium
CN109829444A (en) * 2019-02-28 2019-05-31 广州达安临床检验中心有限公司 Document input method, device, computer equipment and storage medium
CN109903174B (en) * 2019-03-22 2023-11-24 成都肯定科技有限公司 Insurance policy input system and method based on mobile terminal camera shooting
CN110110726A (en) * 2019-05-15 2019-08-09 深圳供电局有限公司 The recognition methods of power equipment nameplate, device, computer equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120197826A1 (en) * 2011-01-28 2012-08-02 Fujitsu Limited Information matching apparatus, method of matching information, and computer readable storage medium having stored information matching program
CN105005793A (en) * 2015-07-15 2015-10-28 广州敦和信息技术有限公司 Method and device for automatically identifying and recording invoice character strip
CN105426356A (en) * 2015-10-29 2016-03-23 杭州九言科技股份有限公司 Target information identification method and apparatus
CN105825211A (en) * 2016-03-17 2016-08-03 世纪龙信息网络有限责任公司 Method, device and system for recognizing name card
CN106557747A (en) * 2016-11-15 2017-04-05 平安科技(深圳)有限公司 The method and device of identification insurance single numbers

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8150161B2 (en) * 2008-09-22 2012-04-03 Intuit Inc. Technique for correcting character-recognition errors
CN102567764B (en) * 2012-01-13 2016-03-02 中国工商银行股份有限公司 A kind of bill evidence and system improving electron image recognition efficiency
CN103793846A (en) * 2014-01-20 2014-05-14 中国建设银行股份有限公司 Processing method and device of element information of business voucher
CN105095842B (en) * 2014-05-22 2018-12-11 口碑控股有限公司 A kind of method and apparatus of the information identification of document
CN104077577A (en) * 2014-07-03 2014-10-01 浙江大学 Trademark detection method based on convolutional neural network
CN104298976B (en) * 2014-10-16 2017-09-26 电子科技大学 Detection method of license plate based on convolutional neural networks
CN204576535U (en) * 2014-12-22 2015-08-19 深圳中兴网信科技有限公司 A kind of bank slip recognition device
CN105184312B (en) * 2015-08-24 2018-09-25 中国科学院自动化研究所 A kind of character detecting method and device based on deep learning
CN105678612A (en) * 2015-12-30 2016-06-15 远光软件股份有限公司 Mobile terminal original certificate electronic intelligent filling system and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120197826A1 (en) * 2011-01-28 2012-08-02 Fujitsu Limited Information matching apparatus, method of matching information, and computer readable storage medium having stored information matching program
CN105005793A (en) * 2015-07-15 2015-10-28 广州敦和信息技术有限公司 Method and device for automatically identifying and recording invoice character strip
CN105426356A (en) * 2015-10-29 2016-03-23 杭州九言科技股份有限公司 Target information identification method and apparatus
CN105825211A (en) * 2016-03-17 2016-08-03 世纪龙信息网络有限责任公司 Method, device and system for recognizing name card
CN106557747A (en) * 2016-11-15 2017-04-05 平安科技(深圳)有限公司 The method and device of identification insurance single numbers

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111382297A (en) * 2018-12-29 2020-07-07 杭州海康存储科技有限公司 Method and device for reporting user data of user side
CN111382297B (en) * 2018-12-29 2024-05-17 杭州海康存储科技有限公司 User side user data reporting method and device
CN110231939A (en) * 2019-05-16 2019-09-13 平安科技(深圳)有限公司 Model generating method, system, computer equipment and storage medium
CN111275039A (en) * 2020-01-17 2020-06-12 深圳信息职业技术学院 Water gauge character positioning method and device, computing equipment and storage medium
CN111275039B (en) * 2020-01-17 2023-05-16 深圳信息职业技术学院 Water gauge character positioning method, device, computing equipment and storage medium

Also Published As

Publication number Publication date
CN106557747B (en) 2018-06-22
CN106557747A (en) 2017-04-05

Similar Documents

Publication Publication Date Title
WO2018090641A1 (en) Method, apparatus and device for identifying insurance policy number, and computer-readable storage medium
JP6710483B2 (en) Character recognition method for damages claim document, device, server and storage medium
WO2019174130A1 (en) Bill recognition method, server, and computer readable storage medium
WO2019109526A1 (en) Method and device for age recognition of face image, storage medium
WO2019071662A1 (en) Electronic device, bill information identification method, and computer readable storage medium
WO2020134991A1 (en) Automatic input method for paper form, apparatus , and computer device and storage medium
WO2019196303A1 (en) User identity authentication method, server and storage medium
WO2018166116A1 (en) Car damage recognition method, electronic apparatus and computer-readable storage medium
WO2019062080A1 (en) Identity recognition method, electronic device, and computer readable storage medium
CN109657694A (en) Picture automatic classification method, device and computer readable storage medium
CN112861648B (en) Character recognition method, character recognition device, electronic equipment and storage medium
WO2021184578A1 (en) Ocr-based target field recognition method and apparatus, electronic device, and storage medium
WO2021017272A1 (en) Pathology image annotation method and device, computer apparatus, and storage medium
US20210174135A1 (en) Method of matching image and apparatus thereof, device, medium and program product
CN108491866B (en) Pornographic picture identification method, electronic device and readable storage medium
WO2021012494A1 (en) Deep learning-based face recognition method and apparatus, and computer-readable storage medium
WO2019062191A1 (en) Electronic device, method and system for extracting data in data table, and storage medium
US11734954B2 (en) Face recognition method, device and electronic equipment, and computer non-volatile readable storage medium
WO2019062081A1 (en) Salesman profile formation method, electronic device and computer readable storage medium
CN109194689B (en) Abnormal behavior recognition method, device, server and storage medium
CN110728272A (en) Method for inputting certificate information based on OCR and related device
WO2019056503A1 (en) Store monitoring evaluation method, device and storage medium
CA3018437A1 (en) Optical character recognition utilizing hashed templates
CN110288755A (en) The invoice method of inspection, server and storage medium based on text identification
CN111177113A (en) Data migration method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17872723

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 10/09/2019)

122 Ep: pct application non-entry in european phase

Ref document number: 17872723

Country of ref document: EP

Kind code of ref document: A1