Document capture method, device and computer storage medium

Through the combination of document classification and recognition models, document images in the video stream are extracted and transformed, which solves the problem of users having difficulty taking photos that meet the requirements, achieves intelligent capture with low time and energy consumption, and improves the document entry experience.

CN112036342BActive Publication Date: 2024-09-17CHINA PING AN PROPERTY INSURANCE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010920100.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-03
Publication Date
2024-09-17
Estimated Expiration
2040-09-03

AI Technical Summary

Technical Problem

The existing document text recognition OCR function often results in text recognition failure or input errors when users upload document photos that do not meet the shooting requirements, and it is difficult for users to take photos according to standard shooting rules, resulting in a decline in user experience.

Method used

Through the document classification model and recognition model, the document image collection in the video stream is extracted, and the convolutional neural network is used for image transformation to obtain an image collection that meets the information extraction requirements, including location information and confidence parameters, and the recognition model is optimized to Adapt to mobile hardware to achieve smart capture with low time and energy consumption.

Benefits of technology

It improves the user's operational experience of document entry, solves the problem of difficulty in document entry, and realizes intelligent snapshots with low time and energy consumption. It is suitable for mobile terminal deployment with limited computing resources and power.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112036342B
    Figure CN112036342B
Patent Text Reader

Abstract

The present invention discloses a document capture method, device and computer storage medium. The method comprises: extracting a first document image set in a video stream through a document classification model; identifying each image in the first document image set through a document recognition model to obtain a second document image set that meets the image transformation requirements; wherein the document recognition model is a convolutional neural network model using artificial intelligence, and the fully connected layer of the document recognition model includes position information parameters and position information confidence parameters corresponding to the document area in the first document image; performing image transformation on each image in the second document image set to obtain a third document image set that meets the information extraction requirements. The method solves the problem of document entry difficulties and improves the user's document entry operation experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of intelligent capture, and in particular to a document capture method. Background Art

[0002] The current document text recognition OCR (Optical Character Recognition) function requires users to upload photos of documents to the cloud server for processing. However, the documents uploaded by users may not meet the shooting requirements, such as incomplete shooting, shooting from too far away, severe reflection in the image, or too dark shooting environment. The above problems often lead to text recognition failure or document entry errors. For this problem, the industry usually infers the reliability of the document recognition results based on the confidence threshold of text recognition, and refuses to return results for documents with too low confidence in the recognition results. However, since it takes a long time to upload documents to the cloud and process them in the cloud, and there is no way to guide users to shoot according to standard shooting rules, users will repeatedly upload documents that do not meet the shooting requirements, resulting in a decrease in user experience. Summary of the invention

[0003] In view of this, a document capture method is provided to solve the problem of difficulty in document entry.

[0004] The present application embodiment provides a document capture method, characterized in that the method comprises:

[0005] Extracting a first document image set in the video stream through a document classification model;

[0006] Identify each image in the first document image set by using a document recognition model to obtain a second document image set that meets the image transformation requirements; wherein the document recognition model adopts a convolutional neural network model, and a fully connected layer of the document recognition model includes a position information parameter and a position information confidence parameter corresponding to a document area in the first document image;

[0007] Perform image transformation on each image in the second document image set to obtain a third document image set that meets the information extraction requirements.

[0008] In one embodiment, extracting the first document image set from the video stream by using the document classification model includes:

[0009] Intercept the video stream during a video call;

[0010] Collecting video frames from the video stream at a preset period or a preset frame number interval;

[0011] When the video frame is identified as a document image by the document classification model, the video frame is added to the first document image set.

[0012] In one embodiment, when the video frame is identified as a document image by the document classification model, the acquisition frequency is increased and / or the capture resolution is increased.

[0013] In one embodiment, the step of identifying each image in the first document image set by using a document recognition model to obtain a second document image set that meets the image transformation requirements includes:

[0014] Obtaining location information corresponding to the document area determined by the document classification model and the confidence of the location information;

[0015] When the position information confidence parameter is greater than a preset confidence threshold, the pixel features of the first document image together with the position information and the position information confidence are input into the document recognition model and output as a second document image.

[0016] In one embodiment, the method further includes: training different document recognition models according to the hardware configuration of the target device to be applied, including:

[0017] Using different training sets and convolutional network structure settings, we obtain document recognition models with corresponding sizes and accuracies;

[0018] The document recognition model of corresponding size and precision is used to adapt to the mobile terminal with corresponding hardware conditions.

[0019] In one embodiment, the input layer of the convolutional neural network model is configured to receive input features including pixel features of the first document image and the position information and the confidence of the position information;

[0020] The convolutional layers of the convolutional neural network model are configured to use a staged convolution method;

[0021] The fully connected layer of the convolutional neural network model is configured to concatenate the output results calculated at each stage.

[0022] In one embodiment, the staged convolution comprises:

[0023] Performing a first part of convolution calculation on all channels of the input first document image;

[0024] The convolution calculation of the second part is performed on each channel of the input first document image; wherein the convolution calculation method of the first part is different from the convolution calculation method of the second part.

[0025] In one embodiment, the image transformation includes:

[0026] Call the affine transformation method to perform image transformation operations.

[0027] In order to achieve the above-mentioned purpose, a computer-readable storage medium is also provided, characterized in that a document capture program is stored thereon, and characterized in that the document capture program implements any of the above-mentioned methods when executed by a processor.

[0028] In order to achieve the above-mentioned purpose, a device is also provided, characterized in that it includes a memory, a processor, and a document capture program stored in the memory and executable on the processor, and the processor implements any of the above-mentioned methods when executing the document capture program.

[0029] One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages: extracting a first document image set in a video stream through a document classification model; extracting the document classification video frames required in the corresponding scene through the document classification model and adding them to the first document image set is the basis for document recognition. Recognizing each image in the first document image set through the document recognition model to obtain a second document image set that meets the image transformation requirements; wherein the document recognition model adopts a convolutional neural network model, and the fully connected layer of the document recognition model includes position information parameters and position information confidence parameters corresponding to the document area in the first document image; after optimizing the convolutional neural network in the document recognition model, it can be deployed on a mobile terminal with limited computing resources and power, so that the technical solution can be better implemented. Performing image transformation on each image in the second document image set to obtain a third document image set that meets the information extraction requirements. Solving the problem of document entry difficulties. Achieving intelligent capture of documents with low time consumption and low energy consumption, while improving the user's document entry operation experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 This is a flow chart of the first embodiment of the method for capturing application documents;

[0031] Figure 2 This is a flowchart of the second embodiment of the document capture method for this application, which refines step S110 in the first embodiment;

[0032] Figure 3 This is a flowchart of the third embodiment of the document capture method of this application, which refines step S120 in the first embodiment;

[0033] Figure 4 Schematic diagram of the hardware architecture of the document capture method involved in the embodiments of the present application;

[0034] Figure 5 This is a flow chart of the document capture method for this application;

[0035] Figure 6 A schematic diagram of the structure of the phased convolution involved in the embodiment of this application DETAILED DESCRIPTION

[0036] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0037] The main solution of the embodiment of the present invention is: extract the first document image set in the video stream through the document classification model; identify each image in the first document image set through the document recognition model to obtain the second document image set that meets the image transformation requirements; wherein the document recognition model adopts a convolutional neural network model, and the fully connected layer of the document recognition model contains position information parameters and position information confidence parameters corresponding to the document area in the first document image; perform image transformation on each image in the second document image set to obtain a third document image set that meets the information extraction requirements. Solve the problem of document entry difficulties. Achieve intelligent capture of documents with low time consumption and low energy consumption, while improving the user's document entry operation experience, and the optimized document recognition model can be deployed on mobile terminals with limited computing resources and power.

[0038] In order to better understand the above technical solution, the above technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0039] The present application relates to a device 040, which includes: Figure 4 Shown: at least one processor 042 and a memory 041.

[0040] The processor 042 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 042 or the instruction in the form of software. The above processor 042 can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The disclosed methods, steps and logic block diagrams in the embodiments of the present invention can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 041, and the processor 042 reads the information in the memory 041 and completes the steps of the above method in combination with its hardware.

[0041] It can be understood that the memory 041 in the embodiment of the present invention can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct RAM bus random access memory (DRRAM). The memory 041 of the system and method described in the embodiments of the present invention is intended to include but is not limited to these and any other suitable types of memory.

[0042] Reference Figure 1 , Figure 1 This is the first embodiment of the document capture method of this application, and the document capture method includes the following steps:

[0043] Step S110: extracting a first document image set in the video stream through a document classification model;

[0044] The classification model is a model for classification obtained by training with a training set using a machine learning method. Through training with a large amount of data, it can classify all the data by itself, and the objects under each classification will have similar features and corresponding feature parameters. For this application, the training set is pictures of documents in different situations, such as situations where the image is too close, too far, overexposed, very dark, and with a complex background in the field of view of the acquisition. For the documents required for the application scenario, the training set should include them, so as to form the categories of the classification model. For example, in the claim scenario, the document categories include vehicle registration, driver's license, and ID card. It can be understood that in other scenarios, documents also include other types. By training a large number of training sets containing the required documents, a classification model for documents in the corresponding scenario can be obtained. Using the document classification model, the input image can be preliminarily identified to determine whether it is an image about a document. If the image input to the document classification model does not have document features, or is not a document feature required for claims, the document classification model will not output any of its preset categories, such as vehicle registration, driver's license, and ID card.

[0045] The training set used for classification can be taken from historical data that has been used in actual application scenarios. For example, in traditional solutions, the document images uploaded by users. The training set can also come from images obtained by transforming normal document images. The above transformations include but are not limited to filling, cropping, and background fusion to form a data set of documents taken too far or too close. The document classification model trained in this way is usually relatively small and can be deployed on mobile terminals with low computing power.

[0046] The video stream can be captured during a video call in a vehicle accident claims application scenario. When a user initiates a claims request, a video call connection is established with the claims adjuster. During the video call, the video screen can be displayed on the display interface of both parties, such as the face screen of the user and the claims adjuster, the video screen of the user at the accident scene, and the document screen displayed by the user through video under the guidance of the claims adjuster, etc.

[0047] Documents refer to various information documents, certificates, etc., such as vehicle registration certificates, driver's licenses, identity cards, etc. The method of this embodiment can automatically capture high-quality images when the user displays the document image through video, so as to save, extract information, and use the extracted information for authentication. Different from the traditional method that requires customers to take photos of documents themselves and then send them to the claims adjuster, automatically capturing document photos can save time for users and claims adjusters.

[0048] The first document image is extracted from the continuous multiple frames of the video stream by the document classification model. When capturing, each frame of the image can be continuously acquired for processing. By applying the above document classification model to each frame of the image, it can be determined whether the frame image is an image about the document. When it is determined that the frame image is an image about the document and belongs to the classification of the corresponding application scenario, the frame is determined to be the first document image. This process can start when the video call is started. During the call, the claims adjuster guides the user to place the document in front of the lens of the image acquisition device. When the document enters the field of view of the lens and the subsequent possible movement process, multiple frames of images about the document will be generated. At this time, the document classification model may start to output the classification of the document, and output the input image that meets the classification conditions as the first document image. It can be understood that the first document image collected in this step can be multiple frames, that is, forming a first document image set.

[0049] Step S120: using a document recognition model to recognize each image in the first document image set, and obtaining a second document image set that meets the image transformation requirements; wherein the document recognition model is a convolutional neural network model, and the fully connected layer of the document recognition model includes position information parameters and position information confidence parameters corresponding to the document area in the first document image;

[0050] The first document image obtained in step S110 can be preliminarily judged to contain an image corresponding to the required document type. For example, the front image of an ID card is usually divided into two obvious areas: a portrait area and an ID card information area. When such features can be distinguished, the first document image is identified as an ID card. Step S120 further identifies the first document image to determine whether it meets the transformation requirements, so that after the transformation, an image that meets the information extraction requirements can be obtained and used for information extraction.

[0051] The document recognition model is used to recognize the second document image. Different from the document classification model, the document recognition model is an image detection model, which can be obtained based on a deep learning method. The document recognition model includes an input layer, a convolution layer, a pooling layer, a fully connected layer, and an output layer.

[0052] The parameters of the fully connected layer include the position information parameters and position information confidence parameters corresponding to the document area. As mentioned above, the first document image is identified by the document classification model, and the recognition accuracy is not high. In the entire first document image, the area occupied by the document itself is called the document area. It can be understood that other areas outside the document area may be background or other image information, such as hand images when handheld shooting.

[0053] The document area only occupies a part of the entire first document image. This embodiment uses the position of the document area in the first document image to determine the quality of the first document image. When performing recognition, the edge of the document area can be obtained by edge detection, and then the position of the document area can be determined by several corners of the document (usually 4 corners). When performing edge detection and determining the coordinates of the corner, the confidence of the coordinate is provided at the same time, that is, the probability of determining it to be a corner. In other embodiments, the position of the document area is not uniquely defined by the coordinates of several corners, and other methods can also be used, such as the center of gravity of the document area, the intersection of diagonals, etc.

[0054] In the scheme of determining the position of the document area by four corners, the number of parameters of the fully connected layer can be 1280×(12+number of document classification model categories). The dimensions corresponding to the number 12 are respectively the upper left point X coordinate, the upper left point Y coordinate, the upper left point confidence, the lower left point X coordinate, the lower left point Y coordinate, the lower left point confidence, the upper right point X coordinate, the upper right point Y coordinate, the upper right point confidence, the lower right point X coordinate, the lower right point Y coordinate, the lower right point confidence. 1280 is an example of the number of image features and is not limited to this.

[0055] In different application scenarios, the number of categories in the document classification model is different. If in the claims scenario, only the driver's license, vehicle registration certificate and ID card are required, the number of categories in the document classification model is 3. The number of parameters in the fully connected layer is 1280×15.

[0056] Step S130: performing image transformation on each image in the second document image set to obtain a third document image set that meets the information extraction requirements.

[0057] The second document image is transformed to obtain a third document image that meets the information extraction requirements. The image transformation includes intercepting the second document image, performing affine transformation on the intercepted document image, flattening the intercepted document image, and trimming.

[0058] The second document image obtained after the processing in step S120 has a relatively high image quality, and can be used as a basis for the image transformation operation in step S130 to obtain a clear image of the document.

[0059] Furthermore, the multiple third document images obtained after the processing in step S130 may be fused so that the clear areas of the multiple third document images complement each other and finally form a clearer image.

[0060] The first document image set is a subset of all video frames, the second document image set is a subset of the first document image set, and the third document image set is a new set, but has a one-to-one correspondence with the second document image set.

[0061] In this embodiment, the specific process of the document capture method is as follows: Figure 5 As shown:

[0062] First, a first document image set in the video stream is extracted through a document classification model. Second, each image in the first document image set is identified through a document recognition model to obtain a second document image set that meets the image transformation requirements. Third, each image in the second document image set is transformed to obtain a third document image set that meets the information extraction requirements.

[0063] The beneficial effect of the above embodiment is to solve the problem of difficulty in document entry, achieve intelligent capture of documents with low time consumption and low energy consumption, and at the same time improve the user's document entry operation experience, and the optimized document recognition model can be deployed on mobile terminals with limited computing resources and power.

[0064] In one embodiment, the method further includes: training different document recognition models according to the hardware configuration of the target device to be applied, including:

[0065] Using different training sets and convolutional network structure settings, we obtain document recognition models with corresponding sizes and accuracies;

[0066] The document recognition model of corresponding size and precision is used to adapt to the mobile terminal with corresponding hardware conditions.

[0067] Specifically, different training sets can be used to obtain models of different sizes and accuracies to adapt to mobile terminals with different hardware conditions.

[0068] Step 1: Get different training models through different training sets;

[0069] The training set is obtained by using the AI ​​model to dynamically and intelligently capture document photos that meet the requirements of the text recognition algorithm during a video call between the customer and the claims adjuster. These document photos that meet the requirements of the text recognition algorithm are expanded through data enhancement to ensure the quality of the training results and further ensure the recognition accuracy of the document photos during the recognition process.

[0070] The first model is suitable for mobile devices with advanced hardware configuration;

[0071] First, through padding and cropping, the document photos that meet the requirements of the text recognition OCR algorithm are used to generate document images that are too far or too close. Secondly, the photos that are too far are expanded by flipping, rotating, translating, and Gaussian noise to ensure the number of training sets; the photos that are too close are expanded in the same way. The network structure includes: channel convolution layer (pointwise convolution layer), spatial convolution layer (depthwise convolution layer), maximum pooling layer (average pool layer), fully connected layer (fully connected layer), softmax layer (softmax layer). Among them, the model Shadow module suitable for advanced hardware configuration has a total of 28 channel convolution layers and spatial convolution layers, which are alternately convolved, and then pooled, fully connected and normalized.

[0072] The second model is suitable for mobile devices with intermediate hardware configuration;

[0073] First, through padding and cropping, the document photos that meet the requirements of the text recognition OCR algorithm are generated as document images that are too far or too close. Secondly, the photos that are too far are expanded by flipping and rotating, and the photos that are too close are expanded in the same way. The network structure includes: channel convolution layer (pointwise convolution layer), spatial convolution layer (depthwise convolution layer), maximum pooling layer (average pool layer), fully connected layer (fully connectedlayer), softmax layer (softmax layer). Among them, the model Shadow module suitable for advanced hardware configuration has 14 channel convolution layers and spatial convolution layers in total, and the two are alternately convolved, and then pooled, fully connected and normalized.

[0074] The third model is suitable for mobile devices with low-level hardware configuration;

[0075] Through padding and cropping, the document photos that meet the requirements of the text recognition OCR algorithm are converted into document images that are too far or too close. The network structure includes: channel convolution layer (pointwise convolution layer), spatial convolution layer (depthwise convolution layer), maximum pooling layer (average pool layer), fully connected layer (fully connected layer), softmax layer (softmaxlayer). Among them, the model Shadow module suitable for advanced hardware configuration has a total of 6 layers of channel convolution layer and spatial convolution layer, which are alternately convolved, and then pooled, fully connected and normalized.

[0076] Step 2: Detect the hardware device on the mobile terminal.

[0077] When the mobile terminal needs document recognition, the detection software will detect the hardware equipment of the mobile terminal. The detection software will give a score based on the hardware equipment of the mobile terminal. According to the score given, the mobile terminal will be divided into high-level configuration terminals, medium-level configuration terminals and low-level configuration terminals.

[0078] Step 3: Recommend different models based on the detection results of the mobile terminal hardware device. According to the configuration of the mobile terminal, the corresponding model in the cloud is recommended to the user for download and use.

[0079] In one embodiment, the input layer of the convolutional neural network model is configured to receive input features including pixel features of the first document image and the position information and the confidence of the position information;

[0080] The convolutional layers of the convolutional neural network model are configured to use a staged convolution method;

[0081] The fully connected layer of the convolutional neural network model is configured to concatenate the output results calculated at each stage.

[0082] Input layer: The input layer is used to receive the input image, i.e. the first document image mentioned above. The input layer usually needs to define the resolution of the image, and the input image should meet the required resolution. If it does not meet the requirements, it should be processed first to meet the requirements.

[0083] Convolution layer: used to perform convolution processing on the input image to obtain a feature map. Convolution processing is performed through a convolution kernel. By setting the appropriate size and step size of the convolution kernel, the image input to the input layer can be converted into a feature map.

[0084] Pooling layer: Scales the data in the feature map. The pooling layer can use mean pooling or maximum pooling.

[0085] Fully connected layer: Each neuron in the fully connected layer is fully connected to all neurons in the previous layer. The fully connected layer can integrate local information with category distinction in the convolutional layer or pooling layer. In order to improve the performance of convolutional neural networks, the activation function of each neuron in the fully connected layer generally uses the ReLU function.

[0086] Output layer: used to obtain classification results. Confirm whether the input image meets the requirements so that it can obtain the required third document image after transformation.

[0087] In one embodiment, the staged convolution comprises:

[0088] Performing a first part of convolution calculation on all channels of the input first document image;

[0089] The convolution calculation of the second part is performed on each channel of the input first document image; wherein the convolution calculation method of the first part is different from the convolution calculation method of the second part.

[0090] Specifically, the convolution layer operation includes two calculation processes: first, a portion of the convolution operation is performed on all channels of the input feature map; second, the remaining convolution operation is performed on each channel of the input feature map; third, the calculation output results of the two steps are spliced ​​as the output result of the module. This phased method effectively reduces the number of convolution operations, allowing the mobile phone to reduce energy consumption and delay while ensuring the accuracy and speed of the operation.

[0091] For example, Figure 6 As shown in the figure, the size of a single channel of the input feature map is 28*28, the number of channels is RGB three channels, and the convolution kernel is 3*3. First, a portion (28*14) of the channel convolution calculation is performed on the RGB three channels of the input feature map; second, the remaining (28*14) spatial convolution operation is performed on each channel of the input feature map; third, the calculation output results of the two steps are spliced ​​in a fully connected splicing method as the output result of the module. The number of convolution operations is effectively reduced, and local features and global features can be learned at the same time.

[0092] In one of the embodiments, the image transformation includes: calling an affine transformation method to perform an image transformation operation.

[0093] Affine transformation, also known as affine mapping, refers to the process in geometry where a vector space is transformed into another vector space by a linear transformation followed by a translation.

[0094] An affine transformation is geometrically defined as an affine transformation or affine mapping between two vector spaces consisting of a non-singular linear transformation (a transformation performed using a linear function) followed by a translation transformation.

[0095] Reference Figure 2 , Figure 2 This is the second embodiment of the document capture method of the present application, and the document capture method comprises the following steps:

[0096] Step S210: intercepting the video stream during the video call.

[0097] The video call process in the vehicle accident application scenario can be intercepted on the claims adjuster's mobile phone, tablet computer, work computer platform, or any terminal with video capture and recording functions. The intercepted video stream is the basis for subsequent classification and identification.

[0098] Step S220: Collecting video frames from the video stream at a preset period or a preset frame number interval.

[0099] It is understandable that in order to reduce resource consumption, it is not necessary to continuously acquire every frame of image for classification processing. In one embodiment, at the very beginning, such as when a video call is established, an image is acquired every 2 frames (or other number of frames), and when a document image is detected for the first time, the acquisition frequency is increased, and the highest frequency may be to continuously acquire every frame of image for classification processing.

[0100] In the above process, video frames can also be cached and discarded at a fixed time or a fixed number of frames. For example, every 1 second or every 60 frames. When the document image is detected for the first time, because it is collected at a fixed interval, there may be images of the document in the previous video frames. Caching the video frames can trace back a certain number of video frames to reduce the possibility of omission.

[0101] Step S230: When the video frame is identified as a document image by the document classification model, the video frame is added to the first document image set.

[0102] When the video frame captured in the video stream is identified as the document category required in the corresponding scenario by the document classification model, such as the required document category in the vehicle accident claim application scenario is the vehicle registration certificate, driver's license and ID card, the video frame is added to the set of first document images. A set refers to a collection of specific or abstract objects with a certain property. The set of first document images refers to the collection of document images that meet the requirements and are captured in the video stream with the same document category required in the application scenario. The required document category in different application scenarios can be adjusted as needed.

[0103] Step S240: Identify each image in the first document image set through a document recognition model to obtain a second document image set that meets the image transformation requirements; wherein the document recognition model is a model using a convolutional neural network, and the fully connected layer of the document recognition model includes position information parameters and position information confidence parameters corresponding to the document area in the first document image.

[0104] Step S250: performing image transformation on each image in the second document image set to obtain a third document image set that meets the information extraction requirements.

[0105] Compared with the first embodiment, the second embodiment includes step S210, step S220, and step S230. The other steps are the same as those of the first embodiment and will not be described in detail.

[0106] The beneficial effects of the above embodiments are that the terminal for intercepting the video stream is not limited, and can be any terminal with interception and recording functions, which provides the possibility of timely solving the document entry problem, improves the user's document entry operation experience, and speeds up the progress of vehicle claims. The preset cycle or preset frame interval set for the video frame acquisition can better reduce resource consumption and memory, etc., ensure normal operation on mobile terminals with limited computing resources and power, and allow more users to experience the accuracy, speed and convenience of smart capture.

[0107] In one of the embodiments, when the video frame is identified as a document image by the document classification model, the acquisition frequency is increased and / or the capture resolution is increased.

[0108] When the video frame is first identified as a document image by the document classification model, the acquisition frequency is accelerated in the time interval after the video frame to the time when the document image moves out of the video stream. The acquisition frequency may be every 3 frames, every 2 frames, every 1 frame, or every frame in the time interval may be acquired and processed.

[0109] In order to reduce the memory and resource consumption of intercepting the video stream, before the video frame is first recognized as a document image by the document classification model, a low-resolution video frame can be captured (the low resolution adopted is required to be able to identify the document image in the video stream). After the video frame, in the time interval until the document image moves out of the video stream, the capture resolution can be increased, and the highest can be the resolution of the recorded video.

[0110] Reference Figure 3 , Figure 3 This is the third embodiment of the document capture method of this application, and the document capture method includes the following steps:

[0111] Step S310: extracting a first document image set in the video stream through a document classification model.

[0112] Step S320: Obtain the location information corresponding to the document area determined by the document classification model and the confidence of the location information.

[0113] The location information corresponding to the document area can be represented by the coordinates of the boundary points of the document area, where the four points judged as corners are key points, which can be the coordinates of the upper left point, the lower left point, the upper right point and the lower right point.

[0114] The confidence level of the document area location information may be a probability value for determining that a document area boundary point is a corner, or may be other judgment values ​​for determining the document area location information, and is not limited to the above-mentioned probability value for determining that it is a corner.

[0115] Step S330: When the position information confidence parameter is greater than a preset confidence threshold, the pixel features of the first document image together with the position information and the position information confidence are input into the document recognition model and output as a second document image.

[0116] When the position information confidence parameters of the fully connected layer are all greater than the preset confidence threshold, where the position information confidence parameters include the upper left point confidence, the lower left point confidence, the upper right point confidence and the lower right point confidence in the scheme of determining the position of the document area by four corners, the document image is cut out according to the irregular quadrilateral formed by the four key points of the document area, and then the pixel features, the position information and the position information confidence are input into the document recognition model and output as a second document image.

[0117] The preset confidence threshold is the probability of judging it as an angle, which can be set to 0.8 (or other probability values). For example, the preset confidence threshold can be the average length of the center of gravity of the document area or the intersection of the diagonals from other key points.

[0118] Step S340: performing image transformation on each image in the second document image set to obtain a third document image set that meets the information extraction requirements.

[0119] Compared with the first embodiment, the second embodiment includes step S320 and step S330. The other steps are the same as those of the first embodiment and will not be described in detail.

[0120] The beneficial effects existing in the above embodiments are that the preset confidence threshold ensures the accuracy of the document recognition area, provides a more accurate document image for the document recognition area, improves the accuracy of the document recognition model, and ensures the accuracy and precision of the recognition results of the intelligent capture.

[0121] The document capture method can be applied to the video claims scenario. However, it is not limited to this scenario, and can also be applied to other scenarios that require document collection, such as various matters that require documents to be handled remotely. The document capture method can be run on a client terminal, such as a mobile phone, tablet, etc., or on a terminal opposite to the client, such as a claims adjuster's operating terminal, which can be a desktop computer.

[0122] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0123] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0124] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0125] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0126] It should be noted that in the claims, any reference signs placed between brackets shall not be construed as limiting the claims. The word "comprising" does not exclude the presence of components or steps not listed in the claim. The word "a" or "an" preceding a component does not exclude the presence of a plurality of such components. The invention may be implemented by means of hardware comprising several different components and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means may be embodied by the same item of hardware. The use of the words first, second, and third etc. does not indicate any order. These words may be interpreted as names.

[0127] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.

[0128] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A document capture method, characterized in that: The method comprises: Extracting a first document image set in the video stream through a document classification model; Identify each image in the first document image set by using a document recognition model to obtain a second document image set that meets the image transformation requirements; wherein the document recognition model adopts a convolutional neural network model, and a fully connected layer of the document recognition model includes a position information parameter and a position information confidence parameter corresponding to a document area in the first document image; Perform image transformation on each image in the second document image set to obtain a third document image set that meets the information extraction requirements.

2. The document capture method according to claim 1, characterized in that: The extracting of the first document image set in the video stream by using the document classification model comprises: Intercept the video stream during a video call; Collecting video frames from the video stream at a preset period or a preset frame number interval; When the video frame is identified as a document image by the document classification model, the video frame is added to the first document image set.

3. The document capture method according to claim 2, characterized in that: When the video frame is identified as a document image by the document classification model, the acquisition frequency is increased and / or the capture resolution is increased.

4. The document capture method according to claim 1, characterized in that: The step of identifying each image in the first document image set by using the document recognition model to obtain a second document image set that meets the image transformation requirements includes: Obtaining location information corresponding to the document area determined by the document classification model and the confidence of the location information; When the position information confidence parameter is greater than a preset confidence threshold, the pixel features of the first document image together with the position information and the position information confidence are input into the document recognition model and output as a second document image.

5. The document capture method according to claim 1, characterized in that: Also includes: Different document recognition models are trained according to the hardware configuration of the target device, including: Using different training sets and convolutional network structure settings, we obtain document recognition models with corresponding sizes and accuracies; The document recognition model of corresponding size and precision is used to adapt to the mobile terminal with corresponding hardware conditions.

6. The document capture method according to claim 1, characterized in that: The input layer of the convolutional neural network model is configured to receive input features including pixel features of the first document image and the position information and the confidence of the position information; The convolutional layers of the convolutional neural network model are configured to use a staged convolution method; The fully connected layer of the convolutional neural network model is configured to concatenate the output results calculated at each stage.

7. The document capture method according to claim 6, characterized in that: The staged convolution includes: Performing a first part of convolution calculation on all channels of the input first document image; The convolution calculation of the second part is performed on each channel of the input first document image; wherein the convolution calculation method of the first part is different from the convolution calculation method of the second part.

8. The document capture method according to claim 1, characterized in that: The image transformation includes: Call the affine transformation method to perform image transformation operations.

9. A computer-readable storage medium, characterized in that: A document capture program is stored thereon, characterized in that the document capture program, when executed by a processor, implements any method described in claims 1-8.

10. A device, characterized in that: The invention comprises a memory, a processor and a document capture program stored in the memory and executable on the processor, wherein the processor implements any method described in claims 1-8 when executing the document capture program.