Method and device for document identification and verification
By using OCR technology on mobile devices to automatically identify ID card images and verify them online, the problem of inconsistent ID information in remote business is solved, an efficient ID verification process is achieved, labor costs are reduced, and timely reminders of ID expiration are provided.
Patent Information
- Application Number
- CN202110780741.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-09
- Publication Date
- 2025-09-16
- Estimated Expiration
- 2041-07-09
AI Technical Summary
When activating services remotely, the accuracy of manual identification of ID information is difficult to guarantee due to the influence of light intensity and reflection in the shooting environment, resulting in inconsistencies between customer ID information and pre-filled information, and difficulty in verifying the validity of the ID.
Through the OCR recognition technology on mobile devices, the portrait and national emblem images of the ID card are automatically identified, the customer's ID card information and expiration date are obtained, and the information is connected to the citizen identity information system for online verification to ensure the accuracy and validity of the document information.
It realizes automatic identification of customer ID card information, avoids transmitting wrong documents, reduces manual comparison costs at the counter, and promptly reminds customers of expired documents, ensuring that customer ID card information is consistent with pre-filled information and meets business verification requirements.
Smart Images

Figure CN113449673B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of computer data processing, and in particular to a document identification and verification method and device. Background Art
[0002] This section is intended to provide a background or context to embodiments of the invention that are recited in the claims. No statement herein is admitted to be prior art by inclusion in this section.
[0003] When customers activate a service remotely, they need to upload their ID information. Due to ambient lighting and reflections, manual recognition results may be inaccurate. Accuracy depends on the quality of the image captured by the user and the accuracy of the manual recognition process.
[0004] Therefore, how to provide a new solution that can solve the above technical problems is a technical problem that needs to be solved urgently in this field. Summary of the Invention
[0005] An embodiment of the present invention provides a document identification and verification method that can ensure that customer document information is consistent with pre-filled information, that the customer's identity meets business verification requirements, and that the document is valid. The method includes:
[0006] Obtain customer identity information based on the business application document on the mobile device; the customer identity information includes: user ID type;
[0007] When the user's ID card type is ID card, the ID card upload page is displayed on the mobile device, and the ID card portrait image and the ID card national emblem image are uploaded to the ID card database;
[0008] Use OCR recognition technology to identify the ID card portrait image and the ID card national emblem image to obtain the customer's ID card information and ID card expiration date;
[0009] Based on the customer's identity information, customer ID card information and ID card expiration date, connect to the citizen identity information system for online verification, output the document verification results, and feedback to the mobile device.
[0010] The embodiment of the present invention further provides a document recognition and verification device, comprising:
[0011] The customer identity information acquisition module is used to obtain customer identity information based on the business application document on the mobile device; wherein the customer identity information includes: user certificate type;
[0012] The upload module is used to display the ID card upload page on the mobile device when the user's ID card type is ID card, and upload the ID card portrait image and the ID card national emblem image to the ID card database;
[0013] The OCR recognition module is used to use OCR recognition technology to recognize the portrait side image and the national emblem side image of the ID card to obtain the customer's ID card information and ID card expiration date;
[0014] The document verification module is used to connect to the citizen identity information system for online verification based on customer identity information, customer ID card information and ID card expiration date, output the document verification results, and feed them back to the mobile device.
[0015] An embodiment of the present invention further provides a computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned document identification and verification method when executing the computer program.
[0016] An embodiment of the present invention further provides a computer-readable storage medium storing a computer program for executing the above-mentioned document identification and verification method.
[0017] An embodiment of the present invention provides a document identification and verification method and device, comprising: first, obtaining customer identity information based on a business application document on a mobile device; wherein the customer identity information includes: the user's document type; then, if the user's document type is an ID card, displaying an ID card upload page on the mobile device, uploading the ID card portrait image and the ID card national emblem image to the ID card database; then using optical character recognition (OCR) recognition technology to recognize the ID card portrait image and the ID card national emblem image, obtaining the customer's ID card information and ID card expiration date; finally, connecting to a citizen identity information system for online verification based on the customer's identity information, the customer's ID card information, and the ID card expiration date, outputting the document verification results, and feeding them back to the mobile device. The embodiment of the present invention can automatically identify the customer's ID card information, and based on the OCR recognition and comparison information, avoid customers from submitting the wrong document, thereby reducing the cost of manual comparison at the counter; based on the OCR recognition and comparison of the ID card expiration date, promptly remind the customer to avoid customers returning to the branch counter multiple times due to ID expiration; and conducting an online verification of the customer's identity information, the recognized customer ID card information, and the ID card expiration date, promptly reminding customers who fail the verification, thereby avoiding customers returning to the branch counter due to identity failure. The present invention can ensure that the customer's certificate information is consistent with the pre-filled information, the customer's identity meets the business verification requirements and the certificate is valid. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0019] Figure 1 The figure is a schematic diagram of a document recognition and verification method according to an embodiment of the present invention.
[0020] Figure 2 This is a schematic diagram of the process of uploading an ID card portrait image and an ID card national emblem image to an ID card database in a document recognition and verification method according to an embodiment of the present invention.
[0021] Figure 3 This is a schematic diagram of the process of obtaining customer ID card information and ID card expiration date in a document recognition and verification method according to an embodiment of the present invention.
[0022] Figure 4 The present invention is a schematic diagram of a method for document recognition and verification for determining the status of an identity card.
[0023] Figure 5 The present invention provides a schematic diagram of an ID card expiration processing method according to an embodiment of the present invention.
[0024] Figure 6 This is a schematic diagram of the document network verification process of a document identification and verification method according to an embodiment of the present invention.
[0025] Figure 7 The present invention provides a flowchart of a document identification and verification method according to an embodiment of the present invention.
[0026] Figure 8 A schematic diagram of a computer device for running a document recognition and verification method implemented by the present invention.
[0027] Figure 9 The figure is a schematic diagram of a document recognition and verification device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0028] To make the purpose, technical solutions and advantages of the embodiments of the present invention more clear, the embodiments of the present invention are further described in detail below with reference to the accompanying drawings. Here, the exemplary embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention.
[0029] The present invention belongs to network security. Figure 1 FIG. 1 is a schematic diagram of a method for document identification and verification according to an embodiment of the present invention. Figure 1 As shown, an embodiment of the present invention provides a document identification and verification method that can ensure that customer document information is consistent with pre-filled information, that the customer identity meets business verification requirements, and that the document is valid. The method includes:
[0030] Step 101: Obtain customer identity information based on the service application document on the mobile device; wherein the customer identity information includes: user certificate type;
[0031] Step 102: When the user ID type is an ID card, the ID card upload page is displayed on the mobile device, and the ID card portrait image and the ID card national emblem image are uploaded to the ID card database;
[0032] Step 103: Use OCR recognition technology to recognize the ID card portrait image and the ID card national emblem image to obtain the customer's ID card information and ID card expiration date;
[0033] Step 104: Based on the customer's identity information, the customer's ID card information and the ID card expiration date, connect to the citizen identity information system for online verification, output the document verification results, and feed them back to the mobile device.
[0034] An embodiment of the present invention provides a document identification and verification method, comprising: first, obtaining customer identity information based on a business application document on a mobile device; wherein the customer identity information includes: the user's document type; then, if the user's document type is an ID card, displaying an ID card upload page on the mobile device, uploading the ID card portrait image and the ID card national emblem image to the ID card database; then, using optical character recognition (OCR) recognition technology to recognize the ID card portrait image and the ID card national emblem image, obtaining the customer's ID card information and the ID card expiration date; finally, connecting to a citizen identity information system for online verification based on the customer's identity information, the customer's ID card information, and the ID card expiration date, outputting the document verification results, and feeding them back to the mobile device. The embodiment of the present invention can automatically identify the customer's ID card information, and based on the OCR recognition and comparison information, avoid customers from submitting the wrong document, thereby reducing the cost of manual comparison at the counter; based on the OCR recognition and comparison information, timely remind customers to avoid customers returning to the branch counter multiple times due to ID expiration; and conducting online verification of the customer's identity information, the recognized customer ID card information, and the ID card expiration date, timely reminding customers who fail the verification, thereby avoiding customers returning to the branch counter due to identity failure. The present invention can ensure that the customer's certificate information is consistent with the pre-filled information, the customer's identity meets the business verification requirements and the certificate is valid.
[0035] When implementing a document identification and verification method provided by an embodiment of the present invention, in one embodiment, the method may include:
[0036] Obtain customer identity information based on the business application document on the mobile device; the customer identity information includes: user ID type;
[0037] When the user's ID card type is ID card, the ID card upload page is displayed on the mobile device, and the ID card portrait image and the ID card national emblem image are uploaded to the ID card database;
[0038] Use OCR recognition technology to identify the ID card portrait image and the ID card national emblem image to obtain the customer's ID card information and ID card expiration date;
[0039] Based on the customer's identity information, customer ID card information and ID card expiration date, connect to the citizen identity information system for online verification, output the document verification results, and feedback to the mobile device.
[0040] The present invention can ensure that the customer's certificate information is consistent with the pre-filled information, the customer's identity meets the business verification requirements and the certificate is valid.
[0041] Figure 2 Schematic diagram of the process of uploading the portrait side image and the national emblem side image of the ID card to the ID card database in a method for document recognition and verification according to an embodiment of the present invention. Figure 2 As shown, when implementing a document identification and verification method provided by an embodiment of the present invention, in one embodiment, when the user document type is an ID card, an ID card upload page is displayed on the mobile device, and an ID card portrait image and an ID card national emblem image are uploaded to the ID card database, including:
[0042] Step 201: Analyze the user certificate type in the customer identity information; wherein the user certificate type includes: identity card, other certificates except identity card;
[0043] Step 202: When the user ID type is an ID card, the ID card upload page is displayed on the mobile device, first displaying the ID card portrait image upload page to guide the customer to upload the ID card portrait image to the ID card database;
[0044] Step 203: When the ID card portrait image is successfully uploaded to the ID card database or the number of failed uploads of the ID card portrait image to the ID card database reaches the first upload threshold, the ID card national emblem image upload page is displayed to guide the customer to upload the ID card national emblem image to the ID card database.
[0045] In the embodiment, the user ID type in the customer identity information is first analyzed. User ID types include ID cards and other ID cards. For example, ID cards other than ID cards may include passports, driver's licenses, social security cards, and other types. Then, if the user ID type is an ID card, an ID card upload page is displayed on the mobile device. The page first displays the ID card portrait image upload page, guiding the customer to upload the ID card portrait image to the ID card database. The customer then uploads the ID card portrait image to the ID card database by taking a photo or uploading an image from the mobile device's photo album. Finally, if the ID card portrait image is successfully uploaded to the ID card database or the number of failed uploads reaches a first upload threshold, the page then displays the ID card national emblem image upload page, guiding the customer to upload the ID card national emblem image to the ID card database. When the ID card portrait image fails to be uploaded to the ID card database, multiple upload opportunities can be provided. When the number of upload failures reaches the first upload threshold (for example, the first upload threshold is 3 times), re-uploading of the ID card portrait image is no longer allowed. You can skip uploading the ID card portrait image and proceed to the next step of uploading the ID card national emblem image. After the ID card national emblem image is successfully uploaded, you can jump back to the ID card portrait image upload page again to upload the ID card portrait image.
[0046] When specifically implementing a document identification and verification method provided by an embodiment of the present invention, in one embodiment, when the user's document type is a document other than an identity card, an other document upload page is displayed on the mobile device to guide the customer to upload other documents, and the uploaded other documents are saved in the other document database.
[0047] In an embodiment, when the user's ID type is an ID other than an ID card, such as a passport, an other ID upload page is displayed on the mobile device to guide the customer to upload other IDs. The customer uploads other IDs by taking photos or uploading images from the mobile device album. The information is no longer identified and the uploaded other IDs are saved in the other ID database. The counter staff manually confirms whether the images of the other IDs meet the requirements.
[0048] This embodiment of the present invention displays an upload page for ID or other ID images by document type, enabling accurate OCR recognition of ID cards. For ID images, OCR recognizes the name and ID number, then verifies and checks them online. OCR also recognizes the document's expiration date, notifying the user if the document is about to expire or has already expired. For other documents, manual verification is performed.
[0049] Figure 3 FIG. 1 is a schematic diagram of a process for obtaining customer ID card information and ID card expiration date in a method for document identification and verification according to an embodiment of the present invention. Figure 3As shown, when implementing a document identification and verification method provided by an embodiment of the present invention, in one embodiment, OCR recognition technology is used to recognize the portrait side image and the national emblem side image of the ID card to obtain the customer's ID card information and ID card expiration date, including:
[0050] Step 301: extracting the ID card face image from the ID card database, using OCR recognition technology to recognize the ID card face image, and obtaining the customer's ID card information;
[0051] Step 302: Compare the customer's ID card information with the customer's form content;
[0052] Step 303: If the comparison result matches, the ID card face image and the customer ID card information are displayed on the identification page of the mobile device;
[0053] Step 304: If the comparison result does not match, an error message is displayed and the user is asked to re-upload the ID card portrait image;
[0054] Step 305: After the customer's ID card information is compared with the customer's form content, the national emblem image of the ID card is extracted from the ID card database, and the national emblem image of the ID card is recognized using OCR recognition technology to obtain the ID card expiration date.
[0055] In the embodiment, the ID card portrait image is first extracted from the ID card database, and the ID card portrait image is recognized using OCR recognition technology to obtain the customer's ID card information; the customer's ID card information may include: name, ID number, address, photo and other information.
[0056] Then compare the customer's ID card information with the customer's form content;
[0057] If the comparison result matches, the ID card face image and the customer’s ID card information will be displayed on the identification page of the mobile device;
[0058] If the comparison result does not match, an error message will be displayed and the user will be asked to upload the ID card portrait image again;
[0059] Finally, after the customer's ID card information is compared with the content filled out by the customer, the national emblem image of the ID card is extracted from the ID card database, and the national emblem image of the ID card is recognized using OCR recognition technology to obtain the expiration date of the ID card.
[0060] Figure 4 FIG. 1 is a schematic diagram of a process for determining the status of an ID card in a method for document recognition and verification according to an embodiment of the present invention. Figure 4 As shown, when implementing a document identification and verification method provided by an embodiment of the present invention, in one embodiment, the method further includes:
[0061] Step 401: Compare the expiration date of the ID card obtained by identification with the current system date to determine the date difference;
[0062] Step 402: When the date difference is greater than the expiration threshold, the ID card status is determined to be normal;
[0063] Step 403: When the date difference is less than the near-expiry threshold, it is determined that the customer's ID card is about to expire, and the customer is prompted on the identification page that the ID card is about to expire;
[0064] Step 404: When the date difference is a negative number, it is determined that the customer's ID card has expired, and the customer is prompted on the identification page that the ID card has expired. The ID card portrait image and the ID card national emblem image stored in the ID card database are marked as expired, and the user is prompted to re-upload a new ID card portrait image and ID card national emblem image.
[0065] In the embodiment, in order to avoid customers returning to the branch counter multiple times due to expiration of their ID cards, it is necessary to compare the ID card expiration date with the current system date to determine whether the customer's ID card has expired or is about to expire. The specific process includes: first, comparing the ID card expiration date obtained by identification with the current system date to determine the date difference; then, when the date difference is greater than the expiration threshold, the ID card status is determined to be normal; for example, the expiration threshold is set to 3 months, and when the date difference is greater than 3 months, the ID card status is determined to be normal. Next, when the date difference is less than the expiration threshold, it is determined that the customer's ID card is about to expire, and the customer's ID card is about to expire is prompted on the identification page; for example, the expiration threshold is set to 3 months, and when the date is less than 3 months, it is determined that the customer's ID card is about to expire, and the customer's ID card is about to expire is prompted on the identification page, and the customer is prompted "The ID card is about to expire, please replace it in time", and the customer can re-upload for identification or proceed to the next step; finally, when the date difference is a negative number, it is determined that the customer's ID card has expired, and the customer's ID card is prompted on the identification page that it has expired, and the ID card portrait image and ID card national emblem image stored in the ID card database are marked as expired, and the user is prompted to re-upload a new ID card portrait image and ID card national emblem image; for example, when the customer's ID card has expired, a prompt "The ID card has expired, please re-upload" is given, and the customer can re-upload. The embodiment of the present invention identifies the expiration date of the ID card based on OCR and reminds the customer in time, avoiding the customer from returning to the branch counter multiple times due to the expiration of the ID card.
[0066] Figure 5 FIG. 1 is a schematic diagram of an ID card expiration processing process of a method for document identification and verification according to an embodiment of the present invention. Figure 5 As shown, when implementing a document identification and verification method provided by an embodiment of the present invention, in one embodiment, the method further includes:
[0067] Step 501: When the user re-uploads a new ID card portrait image and ID card national emblem image, the new ID card national emblem image is recognized using OCR recognition technology to obtain the new ID card expiration date, and the new date difference between the new ID card expiration date and the current system expiration date is determined to be a negative number.
[0068] Step 502: When the new date difference is not a negative number, determine whether the ID card status is normal or about to expire based on the expiration threshold;
[0069] Step 503: When the new date difference is still a negative number, the customer's ID card is determined to be expired, and the user is repeatedly prompted to re-upload a new ID card portrait image and ID card national emblem image for identification and date difference determination until the number of re-uploads reaches the second upload threshold. The user is terminated from re-uploading, and the result of this document verification is output as failure. The customer is prompted on the mobile device to go to the counter to handle the business.
[0070] In the embodiment, when it is determined that the customer's ID card has expired, it is necessary to guide the user to re-upload a new ID card portrait image and ID card national emblem image and perform the judgment again. The main process includes:
[0071] First, when the user re-uploads a new ID card portrait image and ID card national emblem image, the new ID card national emblem image is recognized using OCR recognition technology to obtain the new ID card expiration date, and then the new date difference between the new ID card expiration date and the current system is determined to be a negative number;
[0072] Then, when the new date difference is not a negative number, the ID card status is judged to be normal or about to expire based on the expiration threshold; when the new date difference is greater than the expiration threshold, the ID card status is judged to be normal; when the new date difference is less than the expiration threshold, the customer's ID card is judged to be about to expire; finally, when the new date difference is still a negative number, the customer's ID card is judged to have expired, and the user is repeatedly prompted to re-upload a new ID card portrait image and ID card national emblem image for identification and date difference judgment until the number of re-uploads reaches the second upload threshold, the user is terminated from re-uploading, the result of this ID card verification is output as failure, and the customer is prompted on the mobile device to go to the counter to handle the business. When re-uploading the new ID card portrait image and ID card national emblem image, multiple upload opportunities can be provided. When the number of upload failures reaches the second upload threshold (for example, the second upload threshold is 4 times), the user is terminated from re-uploading. At this time, re-uploading of the new ID card portrait image and ID card national emblem image is no longer allowed, and a return to homepage button is displayed to the user. The customer clicks the button to exit this function, the result of this ID card verification is output as failure, and the customer is prompted on the mobile device to go to the counter to handle the business.
[0073] Figure 6 FIG. 1 is a schematic diagram of a certificate network verification process of a certificate identification and verification method according to an embodiment of the present invention. Figure 6 As shown, when implementing a document identification and verification method provided by an embodiment of the present invention, in one embodiment, based on the customer identity information, the customer ID card information and the ID card expiration date, connecting to the citizen identity information system for online verification, outputting the document verification results, and feeding them back to the mobile device, the method includes:
[0074] Step 601: Connect to the citizen identity information system for online verification based on the customer's identity information, customer ID card information, and ID card expiration date;
[0075] Step 602: When the online verification is successful, the certificate verification result is output as passed and fed back to the mobile device to continue business processing;
[0076] Step 603: When the online verification fails, the result of the document verification is output as failure, and the customer is prompted on the mobile device to go to the counter to handle the business.
[0077] In the embodiment, when conducting online verification on customers, it mainly includes: first, connecting to the citizen identity information system for online verification based on the customer's identity information, customer ID card information and ID card expiration date; then, when the online verification passes, outputting the result of this document verification as passed, and feeding back to the mobile device to continue business processing; finally, when the online verification fails, outputting the result of this document verification as failed, and prompting the customer to go to the counter to handle the business on the mobile device.
[0078] Figure 7 This is a flow chart of a method for document identification and verification according to an embodiment of the present invention. Figure 7 As shown, the following briefly describes a document identification and verification method provided by an embodiment of the present invention in combination with a specific scenario:
[0079] The embodiment of the present invention also provides a process of a document identification and verification method, which mainly includes:
[0080] 1. Obtain the customer's identity information in advance based on the business application document filled out by the customer, and display the ID card upload or other document upload page to the customer based on the user's ID type.
[0081] 2. When the customer's ID is an ID card, the portrait side image of the ID card will be displayed for upload first. After the customer takes or uploads the image, OCR will recognize the image information and extract the ID card name and ID number. The system will compare the recognized name and ID number with the customer's form content. If they match, the image and recognition information will be displayed on the page. Click "Go directly to the next step" to proceed to the next step of uploading the national emblem side image. If they do not match, an error prompt will be given and the user will be asked to upload again. If the OCR-recognized information cannot be successfully compared with the customer's form content after uploading three times, the customer will be prompted to continue uploading or skip uploading the portrait side image and go directly to uploading the national emblem side image.
[0082] Enter the national emblem image upload. After the customer takes or uploads the image, OCR recognizes the image information, extracts the ID card expiration date information, and compares the ID card expiration date with the current system date. When the date difference is within 3 months (that is, the ID card will expire within 3 months), the customer will be prompted "The ID card is about to expire, please replace it in time", and the customer can re-upload for recognition or proceed to the next step; when the date is a negative number (that is, the ID card has expired), the customer will be prompted "The ID card has expired, please re-upload", and the customer can re-upload. When the upload times reach 3 times and the ID card is judged to be expired, the customer will no longer be allowed to try to upload, and a return to homepage button will be displayed to the user. The customer clicks the button to exit this function; if the customer date difference recognition fails, the failure page will be displayed, and the customer is asked to re-upload; when the recognition fails after 3 uploads, the customer can continue to upload or the customer can directly proceed to the next step.
[0083] After the customer completes or skips uploading the ID card portrait and national emblem images, the system connects to the citizen identity information system to conduct an online verification of the customer information. If the verification is passed, the process is completed. If the verification fails, the process ends and the customer is prompted to go to the counter to handle the business.
[0084] 3. When the customer information is other documents (such as a passport), the ID image will be displayed and uploaded. After the customer takes or uploads the image, the information will no longer be recognized. The customer will be directly asked to confirm the upload, and the counter staff will manually confirm whether the ID image meets the requirements.
[0085] In one embodiment, customers use their mobile devices to take a photo or upload their ID according to the on-screen prompts. For ID cards, the system uses OCR technology to identify the front and back of the document, determining whether the information matches the information entered by the person handling the service and whether the document is nearing or expired. After confirmation by the customer, the identified information is uploaded to an online verification system to determine whether the customer information is authentic and meets the service processing requirements. For other IDs, no recognition or verification is performed. After the user uploads the ID image, the counter staff will manually verify it.
[0086] This embodiment of the present invention displays an upload page for ID or other ID images by document type, enabling accurate OCR recognition of ID cards. For ID images, OCR recognizes the name and ID number, then verifies and checks them online. OCR also recognizes the document's expiration date, notifying the user if the document is about to expire or has already expired. For other documents, manual verification is performed.
[0087] The present invention uses OCR to identify and compare information, thereby preventing customers from transmitting incorrect documents and reducing the manual comparison costs at the counter; the present invention uses OCR to identify the expiration date of the document and promptly reminds the customer, thereby avoiding the customer from returning to the branch multiple times due to the expiration of the document; the present invention verifies the customer information online and promptly reminds customers who fail the verification, thereby avoiding the customer from returning to the branch due to identity failure to meet business requirements.
[0088] Figure 8 A schematic diagram of a computer device for running a document identification and verification method implemented by the present invention, such as Figure 8 As shown, an embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned document identification and verification method when executing the computer program.
[0089] An embodiment of the present invention further provides a computer-readable storage medium storing a computer program for executing the above-mentioned document identification and verification method.
[0090] The present invention also provides a document identification and verification device, as described in the following embodiments. Since the principle of the device to solve the problem is similar to that of a document identification and verification method, the implementation of the device can refer to the implementation of a document identification and verification method, and the repeated parts will not be repeated.
[0091] Figure 9 This is a schematic diagram of a document recognition and verification device according to an embodiment of the present invention. Figure 9 As shown, the embodiment of the present invention further provides a document recognition and verification device, which may include:
[0092] The customer identity information acquisition module 901 is used to obtain customer identity information based on the business application document on the mobile device; wherein the customer identity information includes: user certificate type;
[0093] Upload module 902, for displaying an ID card upload page on the mobile device when the user ID type is ID card, and uploading the ID card portrait image and the ID card national emblem image to the ID card database;
[0094] The OCR recognition module 903 is used to use OCR recognition technology to recognize the ID card portrait image and the ID card national emblem image to obtain the customer's ID card information and ID card expiration date;
[0095] The document verification module 904 is used to connect to the citizen identity information system for online verification based on the customer identity information, customer ID card information and ID card expiration date, output the document verification results, and feed them back to the mobile device.
[0096] When implementing a document identification and verification device provided by an embodiment of the present invention, in one embodiment, the upload module is specifically used to:
[0097] Analyze the user ID type in the customer identity information; the user ID type includes: ID card, other ID cards except ID card;
[0098] When the user's ID type is ID card, the ID card upload page is displayed on the mobile device. The ID card portrait image upload page is displayed first, guiding the customer to upload the ID card portrait image to the ID card database;
[0099] When the ID card portrait image is successfully uploaded to the ID card database or the number of failed uploads of the ID card portrait image to the ID card database reaches the first upload threshold, the page for uploading the ID card national emblem image will be displayed to guide the customer to upload the ID card national emblem image to the ID card database.
[0100] When implementing a document identification and verification device provided by an embodiment of the present invention, in one embodiment, the upload module is also used to: when the user document type is a document other than an identity card, display the other document upload page on the mobile device to guide the customer to upload other documents, and save the uploaded other documents to the other document database.
[0101] When implementing a document recognition and verification device provided by an embodiment of the present invention, in one embodiment, the OCR recognition module is specifically used to:
[0102] Extract the ID card face image from the ID card database, use OCR recognition technology to recognize the ID card face image, and obtain the customer's ID card information;
[0103] Compare the customer's ID card information with the customer's form content;
[0104] If the comparison result matches, the ID card face image and the customer’s ID card information will be displayed on the identification page of the mobile device;
[0105] If the comparison result does not match, an error message will be displayed and the user will be asked to upload the ID card portrait image again;
[0106] After the customer's ID card information is compared with the content filled out by the customer, the national emblem image of the ID card is extracted from the ID card database, and the national emblem image of the ID card is recognized using OCR recognition technology to obtain the expiration date of the ID card.
[0107] When implementing a document recognition and verification device provided by an embodiment of the present invention, in one embodiment, the OCR recognition module is further configured to:
[0108] Compare the expiration date of the ID card obtained by identification with the current system date to determine the date difference;
[0109] When the date difference is greater than the expiration threshold, the ID card status is determined to be normal;
[0110] When the date difference is less than the near-expiry threshold, the customer's ID card is determined to be about to expire, and a reminder of the customer's ID card's near-expiry date is displayed on the identification page;
[0111] When the date difference is a negative number, the customer's ID card is determined to have expired, and a prompt will be displayed on the identification page that the customer's ID card has expired. The ID card portrait image and the ID card national emblem image stored in the ID card database will be marked as expired, and the user will be prompted to upload a new ID card portrait image and ID card national emblem image.
[0112] When implementing a document recognition and verification device provided by an embodiment of the present invention, in one embodiment, the OCR recognition module is further configured to:
[0113] When the user re-uploads a new ID card portrait image and ID card national emblem image, the new ID card national emblem image is recognized using OCR recognition technology to obtain the new ID card expiration date, and the new date difference between the new ID card expiration date and the current system is determined to be a negative number;
[0114] When the new date difference is not a negative number, the ID card status is judged as normal or close to expiration based on the expiration threshold;
[0115] When the new date difference is still a negative number, the customer's ID card is determined to be expired, and the user is repeatedly prompted to re-upload a new ID card portrait image and ID card national emblem image for identification and date difference determination until the number of re-uploads reaches the second upload threshold. The user is stopped from re-uploading, and the result of this document verification is output as failure. The customer is prompted on the mobile device to go to the counter to handle the business.
[0116] When implementing a document identification and verification device provided by an embodiment of the present invention, in one embodiment, the document verification module is specifically configured to:
[0117] Connect to the Citizen Identity Information System for online verification based on the customer's identity information, ID card information, and ID card expiration date;
[0118] When the online verification is passed, the certificate verification result is output as passed and fed back to the mobile device to continue business processing;
[0119] When the online verification fails, the result of the document verification is output as failure, and the customer is prompted on the mobile device to go to the counter to handle the business.
[0120] In summary, the embodiment of the present invention provides a document identification and verification method and device, which includes: first, obtaining customer identity information based on a business application document on a mobile device; wherein the customer identity information includes: the user's document type; then, when the user's document type is an ID card, displaying an ID card upload page on the mobile device, uploading the ID card portrait image and the ID card national emblem image to the ID card database; then using OCR recognition technology to recognize the ID card portrait image and the ID card national emblem image, obtaining the customer's ID card information and the ID card expiration date; finally, connecting to the citizen identity information system for online verification based on the customer's identity information, customer ID card information and ID card expiration date, outputting the document verification results, and feeding back to the mobile device. The embodiment of the present invention can automatically identify the customer's ID card information, and based on the OCR recognition and comparison information, avoid the customer from transmitting the wrong document, thereby reducing the manual comparison cost at the counter; based on the OCR recognition of the document expiration date, timely remind the customer to avoid the customer from returning to the branch counter multiple times due to the expiration of the document; the customer's identity information and the recognized customer ID card information and ID card expiration date are verified online, and timely remind customers who fail the verification, thereby avoiding the customer from returning to the branch due to identity not meeting business requirements. The present invention can ensure that the customer's certificate information is consistent with the pre-filled information, the customer's identity meets the business verification requirements and the certificate is valid.
[0121] This embodiment of the present invention displays an upload page for ID or other ID images by document type, enabling accurate OCR recognition of ID cards. For ID images, OCR recognizes the name and ID number, then verifies and checks them online. OCR also recognizes the document's expiration date, notifying the user if the document is about to expire or has already expired. For other documents, manual verification is performed.
[0122] It will be understood by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Thus, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Furthermore, 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 magnetic 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 flowcharts and / or block diagrams, as well as combinations of processes and / or blocks in the flowcharts and / or block diagrams, 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 flowcharts and / or block diagrams. Figure 1a 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 that can direct a computer or other programmable data processing device to work 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 The 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 operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0126] The specific embodiments described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A document identification and verification method, characterized in that: include: Obtain customer identity information based on the business application document on the mobile device; the customer identity information includes: user ID type; When the user's ID card type is ID card, the ID card upload page is displayed on the mobile device, and the ID card portrait image and the ID card national emblem image are uploaded to the ID card database; Use OCR recognition technology to identify the ID card portrait image and the ID card national emblem image to obtain the customer's ID card information and ID card expiration date; Based on the customer's identity information, ID card information and ID card expiration date, the system connects to the citizen identity information system for online verification, outputs the ID verification results, and feeds them back to the mobile device; The method further comprises: Compare the expiration date of the ID card obtained by identification with the current system date to determine the date difference and judge whether the customer's ID card has expired or is about to expire; When the date difference is greater than the expiration threshold, the ID card status is determined to be normal; When the date difference is less than the near-expiry threshold, the customer's ID card is determined to be about to expire, and a reminder of the customer's ID card's near-expiry date is displayed on the identification page; When the date difference is a negative number, the customer's ID card is determined to be expired, and a prompt is displayed on the identification page indicating that the ID card has expired. The ID card portrait image and the ID card national emblem image stored in the ID card database are marked as expired, and the user is prompted to upload a new ID card portrait image and ID card national emblem image. The method further comprises: When the user re-uploads a new ID card portrait image and ID card national emblem image, the new ID card national emblem image is recognized using OCR recognition technology to obtain the new ID card expiration date, and the new date difference between the new ID card expiration date and the current system is determined to be a negative number; When the new date difference is not a negative number, the ID card status is judged as normal or about to expire based on the expiration threshold; If the new date difference is still negative, the customer's ID card is determined to be expired, and the user is repeatedly prompted to re-upload a new ID card portrait image and ID card national emblem image for identification and date difference determination until the number of re-uploads reaches the second upload threshold. The user is then stopped from re-uploading, the document verification result is output as failure, a return to homepage button is displayed to the user, and the customer is prompted to go to the counter to handle the business on the mobile device; When the user's ID card type is ID card, the ID card upload page is displayed on the mobile device. The ID card portrait image and the ID card national emblem image are uploaded to the ID card database, including: Analyze the user ID type in the customer identity information; the user ID type includes: ID card, other ID cards except ID card; When the user's ID type is ID card, the ID card upload page is displayed on the mobile device. The ID card portrait image upload page is displayed first, guiding the customer to upload the ID card portrait image to the ID card database; When the ID card portrait image is successfully uploaded to the ID card database or the number of failed uploads reaches the first upload threshold, the ID card portrait image upload process is skipped and the page for uploading the ID card national emblem image is directly displayed, guiding the customer to upload the ID card national emblem image to the ID card database; After the national emblem image on the ID card is uploaded successfully, jump back to the ID card portrait image upload page to upload the ID card portrait image.
2. The method according to claim 1, wherein When the user's ID type is other than the ID card, the other ID upload page is displayed on the mobile device to guide the customer to upload other IDs, and the uploaded other IDs are saved in the other ID database.
3. The method according to claim 1, wherein Use OCR recognition technology to identify the ID card portrait image and the ID card national emblem image to obtain the customer's ID card information and ID card expiration date, including: Extract the ID card face image from the ID card database, use OCR recognition technology to recognize the ID card face image, and obtain the customer's ID card information; Compare the customer's ID card information with the customer's form content; If the comparison result matches, the ID card face image and the customer’s ID card information will be displayed on the identification page of the mobile device; If the comparison result does not match, an error message will be displayed and the user will be asked to upload the ID card portrait image again; After the customer's ID card information is compared with the content filled out by the customer, the national emblem image of the ID card is extracted from the ID card database, and the national emblem image of the ID card is recognized using OCR recognition technology to obtain the expiration date of the ID card.
4. The method according to claim 1, wherein Based on the customer's identity information, ID card information, and ID card expiration date, the system connects to the Citizen Identity Information System for online verification, outputs the ID verification results, and feeds them back to the mobile device, including: Connect to the Citizen Identity Information System for online verification based on the customer's identity information, ID card information, and ID card expiration date; When the online verification is passed, the certificate verification result is output as passed and fed back to the mobile device to continue business processing; When the online verification fails, the result of the document verification is output as failure, and the customer is prompted on the mobile device to go to the counter to handle the business.
5. A document identification and verification device, characterized in that: include: The customer identity information acquisition module is used to obtain customer identity information based on the business application document on the mobile device; wherein the customer identity information includes: user certificate type; The upload module is used to display the ID card upload page on the mobile device when the user's ID card type is ID card, and upload the ID card portrait image and the ID card national emblem image to the ID card database; The OCR recognition module is used to use OCR recognition technology to recognize the portrait side image and the national emblem side image of the ID card to obtain the customer's ID card information and ID card expiration date; The document verification module is used to connect to the citizen identity information system for online verification based on the customer's identity information, customer ID card information and ID card expiration date, output the document verification results, and feedback them to the mobile device; The OCR recognition module is also used for: Compare the expiration date of the ID card obtained by identification with the current system date to determine the date difference and judge whether the customer's ID card has expired or is about to expire; When the date difference is greater than the expiration threshold, the ID card status is determined to be normal; When the date difference is less than the near-expiry threshold, the customer's ID card is determined to be about to expire, and a reminder of the customer's ID card's near-expiry date is displayed on the identification page; When the date difference is a negative number, the customer's ID card is determined to be expired, and a prompt is displayed on the identification page indicating that the ID card has expired. The ID card portrait image and the ID card national emblem image stored in the ID card database are marked as expired, and the user is prompted to upload a new ID card portrait image and ID card national emblem image. The OCR recognition module is also used for: When the user re-uploads a new ID card portrait image and ID card national emblem image, the new ID card national emblem image is recognized using OCR recognition technology to obtain the new ID card expiration date, and the new date difference between the new ID card expiration date and the current system is determined to be a negative number; When the new date difference is not a negative number, the ID card status is judged as normal or about to expire based on the expiration threshold; If the new date difference is still negative, the customer's ID card is determined to be expired, and the user is repeatedly prompted to re-upload a new ID card portrait image and ID card national emblem image for identification and date difference determination until the number of re-uploads reaches the second upload threshold. The user is then stopped from re-uploading, the document verification result is output as failure, a return to homepage button is displayed to the user, and the customer is prompted to go to the counter to handle the business on the mobile device; Upload module, specifically used for: Analyze the user ID type in the customer identity information; the user ID type includes: ID card, other ID cards except ID card; When the user's ID type is ID card, the ID card upload page is displayed on the mobile device. The ID card portrait image upload page is displayed first, guiding the customer to upload the ID card portrait image to the ID card database; When the ID card portrait image is successfully uploaded to the ID card database or the number of failed uploads reaches the first upload threshold, the ID card portrait image upload process is skipped and the page for uploading the ID card national emblem image is directly displayed, guiding the customer to upload the ID card national emblem image to the ID card database; After the national emblem side image of the ID card is uploaded successfully, you can jump back to the ID card portrait side image upload page to upload the ID card portrait side image.
6. The device according to claim 5, characterized in that The upload module is also used to: when the user's ID type is other than the ID card, display the other ID upload page on the mobile device, guide the customer to upload other IDs, and save the uploaded other IDs to the other ID database.
7. The device according to claim 5, characterized in that OCR recognition module, specifically used for: Extract the ID card face image from the ID card database, use OCR recognition technology to recognize the ID card face image, and obtain the customer's ID card information; Compare the customer's ID card information with the customer's form content; If the comparison result matches, the ID card face image and the customer’s ID card information will be displayed on the identification page of the mobile device; If the comparison result does not match, an error message will be displayed and the user will be asked to upload the ID card portrait image again; After the customer's ID card information is compared with the content filled out by the customer, the national emblem image of the ID card is extracted from the ID card database, and the national emblem image of the ID card is recognized using OCR recognition technology to obtain the expiration date of the ID card.
8. The device according to claim 5, wherein The document verification module is specifically used to: Connect to the Citizen Identity Information System for online verification based on the customer's identity information, ID card information, and ID card expiration date; When the online verification is passed, the certificate verification result is output as passed and fed back to the mobile device to continue business processing; When the online verification fails, the result of the document verification is output as failure, and the customer is prompted on the mobile device to go to the counter to handle the business.
9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the method according to any one of claims 1 to 4 is implemented.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program for executing the method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Face recognition intelligent comparison method, electronic device and computer readable storage medium
CN107818308A
Remote business handling method, storage medium and server
CN107835173A
Identity authentication method, apparatus, device and storage medium based on face recognition
CN109410026A
Business handling method and device
CN111553312A