Method, device, electronic device and storage medium for processing certificate information

By detecting models and sub -detection model extraction documents and automatically generated structured information, the problem of timely designing rules for artificial design layout in existing technologies has been solved, and efficient document information processing is achieved.

CN114092950BActive Publication Date: 2025-01-24SI CHUAN YUN ZHI SHENG ZHI NENG KE JI YOU XIAN GONG SI
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202111496911.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-08
Publication Date
2025-01-24
Estimated Expiration
2041-12-08

AI Technical Summary

Technical Problem

The prior art requires manual design of complex layout analysis rules when processing document photos, resulting in longer business time and less efficient.

Method used

By obtaining the image of the target document, the detection model is used to extract key features and areas of interest, the image is segmented, the sub-detection model is called to extract document information, and the information type is determined based on feature encoding to automatically generate structured information.

Benefits of technology

There is no need to manually design post-processing rules. Document information is directly extracted and structured information is generated, which reduces business time and improves processing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114092950B_ABST
    Figure CN114092950B_ABST
Patent Text Reader

Abstract

The present application discloses a method, device, electronic device and storage medium for processing certificate information. The method includes: obtaining a target image to be processed; extracting target certificate information of a target certificate from the target image, and encoding the target certificate information to obtain a target feature code; determining the target information type corresponding to the target certificate information according to the target feature code; and generating structured information of the target certificate based on the target information type and the target certificate information. The method provided in the embodiment of the present application directly detects the target image corresponding to the target certificate, extracts the certificate information of the target certificate, and provides a basis for quickly classifying the certificate information by encoding the certificate information, and automatically generates the structured information of the target certificate after determining the information type, which no longer requires manual design of complex post-processing rules, reduces business time consumption, and improves processing efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to a method, device, electronic device and storage medium for processing certificate information. Background Art

[0002] When handling business (such as online loan business, etc.), users are often required to upload photos of relevant certificates (such as real estate certificates, etc.) through the user terminal (such as mobile phones, etc.). After receiving the certificate photos uploaded by the user, the backend server will extract relevant certificate information (such as the owner of the house, the location of the house, the property certificate number, etc.) from the certificate photos, and then perform corresponding business processing based on the extracted certificate information. Pre-processing is required, such as: certificate detection, image rotation correction, etc., and complex layout analysis rules need to be manually designed, resulting in a long service time and low efficiency. Summary of the invention

[0003] In order to solve the above technical problems or at least partially solve the above technical problems, the present application provides a method, device, electronic device and storage medium for processing certificate information.

[0004] According to one aspect of an embodiment of the present application, a method for processing certificate information is provided, including:

[0005] Acquire a target image to be processed, wherein the target image is an image obtained by scanning a target document;

[0006] Extracting target document information of the target document from the target image, and encoding the target document information to obtain a target feature code;

[0007] Determine the target information type corresponding to the target certificate information according to the target feature code;

[0008] The structured information of the target certificate is generated based on the target information type and the target certificate information.

[0009] Furthermore, the obtaining of the target file to be processed includes:

[0010] Obtaining an initial file obtained by scanning the target document with a scanning device;

[0011] Determine the initial file to obtain a file format of the initial file;

[0012] In the case that the file format does not match the preset file format, the initial file is converted into a format to obtain a target image in the preset file format.

[0013] Furthermore, extracting target certificate information of the target certificate from the target image includes:

[0014] Inputting the target image into a first detection model so that the first detection model extracts key features in the target image, and determining at least one region of interest in the target image according to the key features, wherein the key features correspond to the regions of interest one by one;

[0015] Segmenting the target image based on the region of interest to obtain an image of interest;

[0016] The image of interest is input into a second detection model, so that the second detection model calls a sub-detection model that matches the key feature according to the key feature corresponding to the image of interest, and extracts the target document information from the image of interest based on the sub-detection model.

[0017] Further, determining the target information type corresponding to the target certificate information according to the target feature code includes:

[0018] The feature coding information is input into a classification model, so that the classification model determines the target information type corresponding to the feature coding information according to a correspondence between preset feature coding information and preset information types.

[0019] Furthermore, the generating structured information of the target certificate based on the target information type and the target certificate information includes:

[0020] Acquire an information template library, wherein the information template library stores a plurality of initial templates for storing document structured information, and the initial templates include a plurality of storage areas of different storage types;

[0021] Determine the similarity between the target information type and the storage type corresponding to each storage area in the initial template;

[0022] Determine the initial template whose similarity is greater than the preset similarity as the target template;

[0023] The target certificate information is written into the corresponding storage area in the target template to generate structured information of the target certificate.

[0024] Furthermore, the method further comprises:

[0025] When the storage type corresponding to the storage area does not match the target information type, sending a template creation request to the client;

[0026] When a template creation event is monitored, a newly added template is acquired based on the template creation event, wherein the newly added template carries multiple storage areas, and the template creation event is triggered after the client receives the template creation request;

[0027] The target certificate information is written into the corresponding storage area in the newly added template to generate structured information of the target certificate.

[0028] Furthermore, the method further comprises:

[0029] Detecting the security level corresponding to each target certificate information in the structured information;

[0030] Get the encryption rules corresponding to the current period from the server;

[0031] Based on the encryption rule, the target certificate information having a security level greater than a preset level in the structured information is encrypted to obtain encrypted structured information;

[0032] Obtaining a timestamp corresponding to the encryption rule;

[0033] The timestamp is associated with the encrypted structured information and stored.

[0034] According to another aspect of the embodiment of the present application, there is also provided a device for processing certificate information, including:

[0035] An acquisition module, used for acquiring a target image to be processed, wherein the target image is an image obtained by scanning a target document;

[0036] An encoding module, used for extracting target document information of the target document from the target image, and encoding the target document information to obtain a target feature code;

[0037] A determination module, used to determine the target information type corresponding to the target certificate information according to the target feature code;

[0038] A generating module is used to generate structured information of the target certificate based on the target information type and the target certificate information.

[0039] According to another aspect of an embodiment of the present application, a storage medium is further provided, which includes a stored program, and the above steps are executed when the program is run.

[0040] According to another aspect of an embodiment of the present application, there is also provided an electronic device, including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; wherein: the memory is used to store computer programs; and the processor is used to execute the steps in the above method by running the program stored in the memory.

[0041] The embodiment of the present application also provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute the steps in the above method.

[0042] The above-mentioned technical scheme provided by the embodiment of the present application has the following advantages over the prior art: the method provided by the embodiment of the present application directly detects the target image corresponding to the target certificate, extracts the certificate information of the target certificate, and provides a basis for quickly classifying the certificate information by encoding the certificate information, and automatically generates structured information of the target certificate after determining the information type, without the need to manually design complex post-processing rules, thereby reducing business time consumption and improving processing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0044] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0045] Figure 1 A flowchart of a method for processing certificate information provided in an embodiment of the present application;

[0046] Figure 2 A flowchart of a method for processing certificate information provided in another embodiment of the present application;

[0047] Figure 3 A block diagram of a device for processing certificate information provided in an embodiment of the present application;

[0048] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0049] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. The schematic embodiments of the present application and their descriptions are used to explain the present application and do not constitute improper limitations on the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.

[0050] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another similar entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0051] The embodiments of the present application provide a method, device, electronic device and storage medium for processing certificate information. The method provided by the embodiments of the present invention can be applied to any required electronic device, for example, it can be a server, terminal and other electronic devices, which are not specifically limited here. For the convenience of description, it is referred to as an electronic device in the following.

[0052] According to one aspect of the embodiments of the present application, a method embodiment of a method for processing certificate information is provided. Figure 1 A flowchart of a method for processing certificate information provided in an embodiment of the present application, such as Figure 1 As shown, the method includes:

[0053] Step S11, obtaining a target image to be processed, wherein the target image is an image obtained by scanning a target document.

[0054] In the embodiment of the present application, step S11, obtaining the target file to be processed, includes the following steps A1-A3:

[0055] Step A1, obtaining an initial file obtained by scanning a target document with a scanning device.

[0056] The method provided in the embodiment of the present application is applied to a control terminal, which receives a scanning instruction triggered by a user, controls a scanning device to scan a target document according to the scanning instruction, and then sends the scanned initial file to the control terminal after the scanning device completes scanning the target document.

[0057] Step A2, determining the initial file to obtain the file format of the initial file.

[0058] Step A3: when the file format does not match the preset file format, convert the format of the initial file to obtain a target image in the preset file format.

[0059] In an embodiment of the present application, when the file format of the initial file does not match the preset file format, the control terminal will automatically convert the format of the initial file to obtain a target image in the preset file format. For example, if the file format of the initial file is a PDF file format, the control terminal will convert the initial file in PDF file format to obtain a target image in JPG format.

[0060] Step S12, extracting target certificate information of the target certificate from the target image, and encoding based on the target certificate information to obtain a target feature code.

[0061] In the embodiment of the present application, step S12, extracting target document information of the target document from the target image, includes the following steps B1-B3:

[0062] Step B1, inputting the target image into the first detection model so that the first detection model extracts key features in the target image, and determines at least one region of interest in the target image according to the key features, wherein the key features correspond to the regions of interest one by one.

[0063] In the embodiment of the present application, the target image is input into the first detection model, and the first detection model extracts the image features in the target image, and obtains the key features based on the image features. The key features may be: text features and image features in the certificate, and then the region of interest in the target image is determined based on the text features. The region of interest may be the bounding box of the certificate information area and the bounding box of the certificate photo area. Among them, the text features correspond to the certificate information area, the image features correspond to the certificate photo area, and the certificate photo area may be a face image.

[0064] Step B2, segmenting the target image based on the region of interest to obtain an image of interest.

[0065] In the embodiment of the present application, after the region of interest is obtained, the target image is segmented according to the region of interest to obtain an image of interest, which includes: a face image and a text image.

[0066] Step B3, input the image of interest into the second detection model, so that the second detection model calls a sub-detection model that matches the key features according to the key features corresponding to the image of interest, and extracts the target document information from the image of interest based on the sub-detection model.

[0067] In the embodiment of the present application, the image of the region of interest is input into the second detection model, and the second detection model detects the text image according to the text detection sub-model corresponding to the text feature to obtain the document text content in the target document. At the same time, the second detection model extracts the face image according to the image detection sub-model corresponding to the image feature to obtain the facial features (contour features and facial features, etc.) corresponding to the face image, and then adds the facial features to the background image of the preset background color to obtain the target face image. Finally, the target face image and the document text content are determined as the target document information.

[0068] In the embodiment of the present application, after extracting the target certificate information, the target certificate information is encoded to obtain the target feature code. The purpose of encoding the target feature code is to convert the target feature code into a code recognizable by the classification model, so as to facilitate the classification of the certificate information.

[0069] Step S13, determining the target information type corresponding to the target certificate information according to the target feature code.

[0070] In an embodiment of the present application, step S13, determining the target information type corresponding to the target certificate information based on the target feature code, includes: inputting the feature code information into the classification model, so that the classification model determines the target information type corresponding to the feature code information based on the correspondence between the preset feature code information and the preset information type.

[0071] In the embodiment of the present application, the target feature coding information is input into the classification model, and the classification model identifies the feature coding information and determines the information type corresponding to the feature coding information. For example, when the target certificate is a real estate certificate, the information type may be: right holder, co-ownership, real estate unit number, area, term of use, etc. When the target certificate is a driver's license, the information type may be: personal information, date of receipt, permitted vehicle type, and validity period.

[0072] Step S14: Generate structured information of the target certificate based on the target information type and the target certificate information.

[0073] In the embodiment of the present application, step S14, generating structured information of the target certificate based on the target information type and the target certificate information, includes the following steps C1-C4:

[0074] Step C1, obtaining an information template library, wherein the information template library stores a plurality of initial templates for storing document structured information, and the initial templates include a plurality of storage areas of different storage types.

[0075] Step C2, determining the similarity between the target information type and the storage type corresponding to each storage area in the initial template.

[0076] Step C3, determining the initial template with a similarity greater than a preset similarity as the target template.

[0077] Step C4, writing the target certificate information into the corresponding storage area in the target template to generate structured information of the target certificate.

[0078] In an embodiment of the present application, after determining the target feature code and the information type, a matching initial template is obtained from the information template library according to the information type, and the initial template includes: storage areas arranged in a tree structure. Specifically, the storage type of each storage area of ​​the initial template in the information template library can be obtained, for example: the storage type can be: numerical type, character type, image type, etc. Then, the similarity between the target information type and the storage type corresponding to each storage area in the initial template is calculated. If the similarity of each storage area in the initial template is greater than the preset similarity, the initial template is determined as the target template. Then, the corresponding storage area in the target template of the target certificate information is arranged in a tree shape, so that structured information is finally obtained.

[0079] In the embodiment of the present application, the method further includes the following steps D1-D3:

[0080] Step D1, when the storage type corresponding to the storage area does not match the target information type, a template creation request is sent to the client.

[0081] Step D2, when a template creation event is monitored, a newly added template is obtained based on the template creation event, wherein the newly added template carries multiple storage areas, and the template creation event is triggered after the client receives a template creation request.

[0082] Step D3, write the target certificate information into the corresponding storage area in the newly added template to generate structured information of the target certificate.

[0083] In the embodiment of the present application, when the storage type corresponding to the storage area does not match the target information type, a template creation request is sent to the client, which is the terminal where the user operates. After receiving the template creation request, the client will display the template creation request, so that the user can create a template based on the template creation request. When the client detects that the template creation is completed, the control terminal will monitor the template creation event, and then obtain the newly added template based on the template creation event, and write the target certificate information into the corresponding storage area in the newly added template.

[0084] The method provided in the embodiment of the present application directly detects the target image corresponding to the target certificate, extracts the certificate information of the target certificate, and provides a basis for quickly classifying the certificate information by encoding the certificate information. After determining the information type, the structured information of the target certificate is automatically generated. There is no need to manually design complex post-processing rules, which reduces business time and improves processing efficiency.

[0085] Figure 2 A flow chart of a control method for a smart home device provided in an embodiment of the present application, such as Figure 2 As shown, the method includes:

[0086] Step S21, detecting the security level corresponding to each target certificate information in the structured information.

[0087] Step S22, obtaining encryption rules corresponding to the current period from the server.

[0088] Step S23, encrypting the target certificate information in the structured information whose security level is greater than the preset level based on the encryption rule to obtain the encrypted structured information.

[0089] Step S24, obtaining the timestamp corresponding to the encryption rule.

[0090] Step S25: Store the timestamp in association with the encrypted structured information.

[0091] In the embodiment of the present application, after generating the structured information of the target certificate, the control terminal obtains the preset security information library, detects whether each target certificate information in the structured information matches the preset security information in the preset security information library, and determines the security level corresponding to the matched target certificate information. Then, the target certificate information in the structured information whose security level is greater than the preset level is encrypted according to the encryption rule to obtain the encrypted structured information. At the same time, the timestamp corresponding to the encryption rule is obtained, and the timestamp is associated with the encrypted structured information and stored.

[0092] Specifically, the encryption rule includes a character mapping table, and the character mapping table includes: initial characters and mapping characters corresponding to the initial characters, the initial characters include: letters, Chinese characters and numbers, and the mapping characters include: special symbols, letters, numbers, etc. Therefore, when encrypting the target certificate information with a security level greater than the preset level, the characters carried in the target certificate information with a security level greater than the preset level can be determined, and the mapping characters corresponding to the characters are queried from the character mapping table, the encrypted target certificate information is generated based on the obtained mapping characters, and the encrypted structured information is generated based on the encrypted target certificate information.

[0093] Figure 3 This is a block diagram of a device for processing certificate information provided in an embodiment of the present application. The device can be implemented as part or all of an electronic device through software, hardware, or a combination of both. Figure 3 As shown, the device comprises:

[0094] An acquisition module 31 is used to acquire a target image to be processed, wherein the target image is an image obtained by scanning a target document;

[0095] The encoding module 32 is used to extract the target document information of the target document from the target image, and encode the target document information to obtain the target feature code;

[0096] A determination module 33, used to determine the target information type corresponding to the target certificate information according to the target feature code;

[0097] The generating module 34 is used to generate structured information of the target certificate based on the target information type and the target certificate information.

[0098] In an embodiment of the present application, the acquisition module 31 is used to obtain an initial file obtained by scanning a target document by a scanning set device; determine the file format of the initial file to obtain the initial file; if the file format does not match the preset file format, convert the format of the initial file to obtain a target image in the preset file format.

[0099] In the embodiment of the present application, the encoding module 32 is used to input the target image into the first detection model so that the first detection model extracts key features in the target image, and determines at least one region of interest in the target image based on the key features, wherein the key features correspond one-to-one to the regions of interest; segment the target image based on the regions of interest to obtain an image of interest; input the image of interest into the second detection model so that the second detection model calls a sub-detection model that matches the key features according to the key features corresponding to the image of interest, and extracts the target certificate information from the image of interest based on the sub-detection model.

[0100] In an embodiment of the present application, a determination module 33 is used to perform feature encoding on a target feature code to obtain feature encoding information; the feature encoding information is input into a classification model so that the classification model determines the target information type corresponding to the feature encoding information based on the correspondence between the preset feature encoding information and the preset information type.

[0101] In an embodiment of the present application, a generation module 34 is used to obtain an information template library, wherein the information template library stores multiple initial templates for storing structured document information, and the initial template includes multiple storage areas of different storage types; determines the similarity between the target information type and the storage type corresponding to each storage area in the initial template; determines the initial template with a similarity greater than a preset similarity as the target template; writes the target document information into the corresponding storage area in the target template to generate structured information of the target document.

[0102] In an embodiment of the present application, the device for processing certificate information also includes: establishing a module, which is used to send a template creation request to the client when the storage type corresponding to the storage area does not match the target information type; when a template creation event is monitored, obtaining a new template based on the template creation event, wherein the new template carries multiple storage areas, and the template creation event is triggered after the client receives the template creation request; writing the target certificate information into the corresponding storage area in the new template to generate structured information of the target certificate.

[0103] In an embodiment of the present application, the device for processing certificate information also includes: an encryption module, which is used to detect the security level corresponding to each target certificate information in the structured information; obtain the encryption rules corresponding to the current period from the server; encrypt the target certificate information in the structured information whose security level is greater than the preset level based on the encryption rules to obtain the encrypted structured information; obtain the timestamp corresponding to the encryption rules; and store the timestamp in association with the encrypted structured information.

[0104] The present application also provides an electronic device, such as Figure 4 As shown, the electronic device may include: a processor 1501 , a communication interface 1502 , a memory 1503 and a communication bus 1504 , wherein the processor 1501 , the communication interface 1502 , and the memory 1503 communicate with each other via the communication bus 1504 .

[0105] Memory 1503, used for storing computer programs;

[0106] The processor 1501 is used to implement the steps of the above embodiment when executing the computer program stored in the memory 1503.

[0107] The communication bus mentioned in the above terminal can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0108] The communication interface is used for communication between the above terminal and other devices.

[0109] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0110] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0111] In another embodiment provided in the present application, a computer-readable storage medium is provided, in which instructions are stored. When the computer-readable storage medium is run on a computer, the computer executes the method for processing certificate information described in any of the above embodiments.

[0112] In another embodiment provided in the present application, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute the method for processing certificate information described in any of the above embodiments.

[0113] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk SolidState Disk), etc.

[0114] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application are included in the protection scope of the present application.

[0115] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest range consistent with the principles and novel features applied for herein.

Claims

1. A method for processing certificate information, characterized in that: include: Acquire a target image to be processed, wherein the target image is an image obtained by scanning a target document; Extracting target document information of the target document from the target image, and encoding the target document information to obtain a target feature code; Determining the target information type corresponding to the target certificate information according to the target feature code; Generate structured information of the target certificate based on the target information type and the target certificate information; The generating structured information of the target certificate based on the target information type and the target certificate information includes: Acquire an information template library, wherein the information template library stores a plurality of initial templates for storing document structured information, and the initial templates include a plurality of storage areas of different storage types; Determine the similarity between the target information type and the storage type corresponding to each storage area in the initial template; Determine the initial template whose similarity is greater than the preset similarity as the target template; Writing the target certificate information into the corresponding storage area in the target template to generate structured information of the target certificate; When the storage type corresponding to the storage area does not match the target information type, sending a template creation request to the client; When a template creation event is monitored, a newly added template is acquired based on the template creation event, wherein the newly added template carries multiple storage areas, and the template creation event is triggered after the client receives the template creation request; Writing the target certificate information into the corresponding storage area in the newly added template to generate structured information of the target certificate; The method further comprises: Detecting the security level corresponding to each target certificate information in the structured information; Get the encryption rules corresponding to the current period from the server; Based on the encryption rule, the target certificate information having a security level greater than a preset level in the structured information is encrypted to obtain encrypted structured information; Obtaining a timestamp corresponding to the encryption rule; The timestamp is associated with the encrypted structured information and stored.

2. The method according to claim 1, characterized in that The step of obtaining the target file to be processed includes: Obtaining an initial file obtained by scanning the target document with a scanning device; Determine the initial file to obtain a file format of the initial file; In the case that the file format does not match the preset file format, the initial file is converted into a format to obtain a target image in the preset file format.

3. The method according to claim 1, characterized in that The step of extracting target certificate information of the target certificate from the target image includes: Inputting the target image into a first detection model so that the first detection model extracts key features in the target image, and determining at least one region of interest in the target image according to the key features, wherein the key features correspond to the regions of interest one by one; Segmenting the target image based on the region of interest to obtain an image of interest; The image of interest is input into a second detection model, so that the second detection model calls a sub-detection model that matches the key feature according to the key feature corresponding to the image of interest, and extracts the target document information from the image of interest based on the sub-detection model.

4. The method according to claim 1, characterized in that The determining the target information type corresponding to the target certificate information according to the target feature code includes: The feature coding information is input into a classification model, so that the classification model determines the target information type corresponding to the feature coding information according to a correspondence between preset feature coding information and preset information types.

5. A device for processing certificate information, using the method according to any one of claims 1 to 4, characterized in that: include: An acquisition module, used for acquiring a target image to be processed, wherein the target image is an image obtained by scanning a target document; An encoding module, used for extracting target document information of the target document from the target image, and encoding the target document information to obtain a target feature code; A determination module, used to determine the target information type corresponding to the target certificate information according to the target feature code; A generating module is used to generate structured information of the target certificate based on the target information type and the target certificate information.

6. A storage medium, characterized in that: The storage medium includes a stored program, wherein the program executes the method steps of any one of claims 1 to 4 when running.

7. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; wherein: Memory, used to store computer programs; A processor, configured to execute the method steps of any one of claims 1 to 4 by running a program stored in a memory.

Citation Information

Patent Citations

  • Data verification method and device, computer equipment and storage medium

    CN110287971A

  • Fixed layout certificate structural information extraction method, device and equipment and medium

    CN112115907A

  • Certificate shooting method and device, computer equipment and storage medium

    CN113239339A