CN116363677A - Identification card identification method and device under complex background, computer equipment and storage medium - Google Patents

Identification card identification method and device under complex background, computer equipment and storage medium Download PDF

Info

Publication number
CN116363677A
CN116363677A CN202310314537.4A CN202310314537A CN116363677A CN 116363677 A CN116363677 A CN 116363677A CN 202310314537 A CN202310314537 A CN 202310314537A CN 116363677 A CN116363677 A CN 116363677A
Authority
CN
China
Prior art keywords
result
identification
image
identity card
card
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310314537.4A
Other languages
Chinese (zh)
Inventor
李剑平
沈斌峰
管为进
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Haigui Technology Co ltd
Original Assignee
Zhejiang Haigui Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Haigui Technology Co ltd filed Critical Zhejiang Haigui Technology Co ltd
Priority to CN202310314537.4A priority Critical patent/CN116363677A/en
Publication of CN116363677A publication Critical patent/CN116363677A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/40Document-oriented image-based pattern recognition
    • G06V30/41Analysis of document content
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • G06V30/14Image acquisition
    • G06V30/148Segmentation of character regions
    • G06V30/15Cutting or merging image elements, e.g. region growing, watershed or clustering-based techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • G06V30/19Recognition using electronic means
    • G06V30/191Design or setup of recognition systems or techniques; Extraction of features in feature space; Clustering techniques; Blind source separation
    • G06V30/19173Classification techniques
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The embodiment of the invention discloses an identification card identification method, an identification card identification device, computer equipment and a storage medium under a complex background. The method comprises the following steps: acquiring an identity card image to be identified; removing complex backgrounds from the identity card image to be identified to obtain a removal result; performing image enhancement on the eliminating result to obtain a processing result; cutting the processing result to obtain a cutting result; OCR recognition is carried out on the cutting result to obtain a recognition result; and automatically correcting and checking the identification result to obtain an identification card identification result. By implementing the method provided by the embodiment of the invention, the recognition efficiency of the complex background can be improved.

Description

Identification card identification method and device under complex background, computer equipment and storage medium
Technical Field
The invention relates to an identification card identification method, in particular to an identification card identification method, an identification card identification device, computer equipment and a storage medium under a complex background.
Background
The identity card is used as a certificate of the identity card of the bearer, and plays a very important role in daily life and work of people. In the processes of registration, access procedures, license handling, employment of entrance, financial credit and the like, an identity card is used as an identity uniqueness proving material to be submitted for verification.
Under the condition of fuzzy images, the current identification card identification technology can fail to identify key information due to complex background, and other manual schemes need manual identification treatment, so that the efficiency is low.
Therefore, it is necessary to design a new method to achieve improvement of the recognition efficiency of the complex background.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provide an identification card identification method, an identification card identification device, computer equipment and a storage medium under a complex background.
In order to achieve the above purpose, the present invention adopts the following technical scheme: the identification method under the complex background comprises the following steps:
acquiring an identity card image to be identified;
removing complex backgrounds from the identity card image to be identified to obtain a removal result;
performing image enhancement on the eliminating result to obtain a processing result;
cutting the processing result to obtain a cutting result;
OCR recognition is carried out on the cutting result to obtain a recognition result;
and automatically correcting and checking the identification result to obtain an identification card identification result.
The further technical scheme is as follows: the step of removing the complex background from the identification card image to be identified to obtain a removal result comprises the following steps:
performing target recognition on the identity card image to be recognized to obtain an area where the identity card is located;
cutting the identity card image to be identified according to the area where the identity card is positioned by adopting an image processing technology so as to obtain an identity card area image;
and rotating the identity card area image by adopting an image processing technology to obtain a rejection result.
The further technical scheme is as follows: the step of carrying out watermark removal processing on the eliminating result to obtain a processing result comprises the following steps:
and carrying out image enhancement on the eliminating result by adopting an image binarization technology so as to obtain a processing result.
The further technical scheme is as follows: the step of clipping the processing result to obtain a clipping result comprises the following steps:
determining a key information area of the processing result through a preset key word mask so as to obtain the key information area;
and cutting out the key information area to obtain a cutting result.
The further technical scheme is as follows: the step of automatically correcting and checking the identification result to obtain an identification result of the identity card comprises the following steps:
correcting the gender content in the identification result by adopting a nearest matching method so as to obtain a correction result;
the birth year, the month, the address and the identity card number in the identification result are matched with the verification format by adopting character strings regularly to obtain a verification result;
automatically compensating the address in the identification result to obtain a compensation result;
and integrating the correction result, the verification result and the compensation result to obtain an identification card recognition result.
The further technical scheme is as follows: the automatic compensation of the address in the identification result to obtain a compensation result comprises the following steps:
and inputting the address in the identification result into an open interface of the Goldmap or the hundred-degree map, so that the Goldmap or the hundred-degree map returns a corrected address according to the address to form a compensation result.
The invention also provides an identity card recognition device under the complex background, which comprises:
the image acquisition unit is used for acquiring an identity card image to be identified;
the rejecting unit is used for rejecting the complex background of the identity card image to be identified to obtain a rejecting result;
the strengthening unit is used for strengthening the images of the eliminating results to obtain processing results;
the cutting unit is used for cutting the processing result to obtain a cutting result;
the recognition unit is used for performing OCR recognition on the cutting result to obtain a recognition result;
and the correction unit is used for automatically correcting and checking the identification result to obtain an identification card identification result.
The further technical scheme is as follows: the rejection unit includes:
the target recognition subunit is used for carrying out target recognition on the identity card image to be recognized so as to obtain an area where the identity card is located;
the area clipping subunit is used for clipping the identity card image to be identified according to the area where the identity card is positioned by adopting an image processing technology so as to obtain an identity card area image;
and the rotating subunit is used for rotating the identity card area image by adopting an image processing technology so as to obtain a rejection result.
The invention also provides a computer device which comprises a memory and a processor, wherein the memory stores a computer program, and the processor realizes the method when executing the computer program.
The present invention also provides a storage medium storing a computer program which, when executed by a processor, performs the above-described method.
Compared with the prior art, the invention has the beneficial effects that: according to the identification card image recognition method, the complex background is removed from the identification card image to be recognized, the removed image is subjected to binarization reinforcement, the area only comprising the identification card information is cut out, OCR recognition is carried out on the area, and automatic correction and verification are carried out on the recognition result, so that the recognition efficiency of the complex background is improved.
The invention is further described below with reference to the drawings and specific embodiments.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of an application scenario of an identification card recognition method under a complex background provided by an embodiment of the present invention;
FIG. 2 is a schematic flow chart of an identification method under a complex background provided by an embodiment of the present invention;
FIG. 3 is a schematic sub-flowchart of an identification method under a complex background provided by an embodiment of the present invention;
FIG. 4 is a schematic sub-flowchart of an identification card recognition method under a complex background provided by an embodiment of the present invention;
FIG. 5 is a schematic sub-flowchart of an identification card recognition method under a complex background provided by an embodiment of the present invention;
FIG. 6 is a schematic diagram of address compensation according to an embodiment of the present invention;
FIG. 7 is a schematic block diagram of an identification card recognition device in a complex background provided by an embodiment of the present invention;
FIG. 8 is a schematic block diagram of a rejection unit of an identification card recognition device under a complex background provided by an embodiment of the present invention;
FIG. 9 is a schematic block diagram of a clipping unit of an identification card recognition device under a complex background provided by an embodiment of the present invention;
FIG. 10 is a schematic block diagram of a correction unit of an identification card recognition device in a complex background provided by an embodiment of the present invention;
fig. 11 is a schematic block diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be understood that the terms "comprises" and "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
Referring to fig. 1 and fig. 2, fig. 1 is a schematic diagram of an application scenario of an identification card recognition method under a complex background according to an embodiment of the present invention. Fig. 2 is a schematic flowchart of an identification card recognition method under a complex background provided by an embodiment of the present invention. The identification card recognition method under the complex background is applied to the server. The server performs data interaction with the terminal, the terminal shoots an identity card image to be identified, and the server performs complex background extraction, image enhancement, cutting, OCR (optical character recognition) and automatic correction and verification, so that the identification efficiency of the complex background is improved.
Fig. 2 is a schematic flow chart of an identification card recognition method under a complex background provided by the embodiment of the invention. As shown in fig. 2, the method includes the following steps S110 to S160.
S110, acquiring an identity card image to be identified.
In this embodiment, the identification card image to be identified refers to an image with an identification card that needs identification card information identification.
S120, eliminating complex backgrounds from the identity card image to be identified to obtain elimination results.
In this embodiment, the rejection result refers to an image that only includes the identification card information and is left after the complex background in the image is rejected, and the identification card information part has no angular deviation.
In one embodiment, referring to fig. 3, the step S120 may include steps S121 to S123.
S121, carrying out target recognition on the identity card image to be recognized so as to obtain the area where the identity card is located.
In this embodiment, the area where the identification card is located refers to the area where the identification card information is located.
In this embodiment, a target recognition technique such as a trained deep learning network may be used to distinguish between the background and the identification card.
S122, cutting the identity card image to be identified according to the area where the identity card is located by adopting an image processing technology so as to obtain an identity card area image.
In this embodiment, the identification card area image refers to an area including only identification card information.
And when the position information of the area where the identity card is located, namely the coordinate information of the area where the identity card information is located in the whole identity card image to be identified is determined, the corresponding area can be cut out according to the coordinate information.
S123, rotating the identity card area image by adopting an image processing technology to obtain a rejection result.
In this embodiment, for the cut area, whether the rotation angle of the identification card is required may be determined by determining the inclination angle of the identification card area, determining whether there is no angle deviation from four vertices of the area, and if there is a deviation, determining the angle to be rotated, which is possible in the prior art, and will not be described herein.
S130, performing image reinforcement on the eliminating result to obtain a processing result.
In this embodiment, the processing result refers to an image obtained after binarization strengthening is performed on the rejection result.
Specifically, image enhancement is performed on the eliminating result by adopting an image binarization technology so as to obtain a processing result.
The cut identity card may contain watermark, which can interfere identification, and because the key information of the identity card is black characters, the light color part is weakened and the dark color part is strengthened by the image binarization technology, thereby increasing the identification accuracy.
And S140, cutting the processing result to obtain a cutting result.
In this embodiment, the clipping result refers to clipping out the key information area of the identification card.
In one embodiment, referring to fig. 4, the step S140 may include steps S141 to S142.
S141, determining a key information area of the processing result through a preset key word mask to obtain the key information area.
In this embodiment, a keyword mask of the identification card is set first, so as to determine the area of the key information.
S142, cutting out the key information area to obtain a cutting result.
In this embodiment, the key information area is scratched out by using the set key word mask in a mask pattern, so as to achieve the effect of only cutting the key information area.
Specifically, the key information area of the identity card to be identified is cut according to the proportion of the input image, if the name and the identity card number are required to be identified, a name keyword mask and an identity card number keyword mask are set, and then a name picture and an identity card number picture are cut according to the masks.
S150, performing OCR (optical character recognition) on the cutting result to obtain a recognition result.
In the present embodiment, the recognition result refers to key information obtained after OCR recognition of the clipping result.
S160, automatically correcting and checking the identification result to obtain an identification card identification result.
In this embodiment, the identification result refers to identification information, including a name, an identification number, and the like.
In one embodiment, referring to fig. 5, the step S160 may include steps S161 to S164.
And S161, correcting the gender content in the identification result by adopting a nearest matching method so as to obtain a correction result.
In this embodiment, if the sex content in the identification result is male or female, correction is not required, if other content appears, the sex is determined by the closest matching method, that is, the font similarity degree, according to the closest matching, for example , when the sex content is determined to be male.
S162, adopting character string regular matching to check whether the format of the birth month, the address and the identity card number in the identification result is normal or not so as to obtain a check result.
In this embodiment, the verification result indicates whether the year, month, address and identification card number are in a character string regular matching verification format, if so, the verification result is used as the verification result, if not, the verification result is needed to be in a corresponding format, for example, the year, month and month of birth should be (number) year (number) month, the identification card number should be 13 numbers or 12 numbers plus one letter, and the address should be in a form including province, city, district, and the like.
And S163, automatically compensating the address in the identification result to obtain a compensation result.
In the present embodiment, the compensation result means compensation correction for the content in which an error occurs in the address.
Specifically, the address in the identification result is input into an open interface of the Goldmap or the hundred-degree map, so that the Goldmap or the hundred-degree map returns a corrected address according to the address to form a compensation result.
For example: inputting the address obtained by recognition: "the Hangzhou area Le Gui International" in Hangzhou, zhejiang province, because the "Gui" is wrong here. When the image is blurred, the error easily occurs, and the map API query is performed on the address with the error, so that a corrected address of 'the Hash area Lejia International in Hangzhou, zhejiang province' can be obtained, as shown in fig. 6.
S164, integrating the correction result, the verification result and the compensation result to obtain an identification card recognition result.
The method of the embodiment is based on a complex background, namely, the identity card can be accurately identified under the condition of complex background. The same logic may identify different kinds of documents, such as China's second generation identity cards, passports, etc. The image processing and recognition algorithm is used, so that the accuracy and the efficiency of recognition can be improved.
According to the identification card recognition method under the complex background, the complex background is removed from the identification card image to be recognized, the removed image is subjected to binarization strengthening, the area only comprising the identification card information is cut out, OCR recognition is carried out on the area, and automatic correction and verification are carried out on the recognition result, so that the recognition efficiency of the complex background is improved.
Fig. 7 is a schematic block diagram of an identification card recognition device 300 in a complex background according to an embodiment of the present invention. As shown in fig. 7, the present invention further provides an identification device 300 in the complex background, corresponding to the identification method in the complex background. The identification card recognition device 300 in the complex context includes a unit for performing the identification card recognition method in the complex context described above, and the device may be configured in a server. Specifically, referring to fig. 7, the identification device 300 for the complex background includes an image acquisition unit 301, a rejection unit 302, an enhancement unit 303, a clipping unit 304, an identification unit 305, and a correction unit 306.
An image acquisition unit 301, configured to acquire an image of an identification card to be identified; the rejecting unit 302 is configured to reject the complex background from the identification card image to be identified, so as to obtain a reject result; a strengthening unit 303, configured to perform image strengthening on the rejection result to obtain a processing result; a clipping unit 304, configured to clip the processing result to obtain a clipping result; a recognition unit 305, configured to perform OCR recognition on the clipping result to obtain a recognition result; and the correcting unit 306 is used for automatically correcting and checking the identification result to obtain an identification card identification result.
In one embodiment, as shown in fig. 8, the culling unit 302 includes a target recognition subunit 3021, a region clipping subunit 3022, and a rotation subunit 3023.
The target recognition subunit 3021 is configured to perform target recognition on the to-be-recognized identity card image to obtain an area where the identity card is located; the area clipping subunit 3022 is configured to clip the to-be-identified identification card image according to the area where the identification card is located by using an image processing technology, so as to obtain an identification card area image; and the rotation subunit 3023 is configured to rotate the identification card area image by using an image processing technology to obtain a rejection result.
In an embodiment, the strengthening unit 303 is configured to perform image strengthening on the rejection result by using an image binarization technique, so as to obtain a processing result.
In one embodiment, as shown in fig. 9, the clipping unit 304 includes an information determining subunit 3041 and an information clipping subunit 3042.
An information determining subunit 3041, configured to determine a key information area of the processing result through a preset key word mask, so as to obtain the key information area; and an information clipping subunit 3042, configured to clip the key information area to obtain a clipping result.
In one embodiment, as shown in FIG. 10, the correction unit 306 includes a gender correction subunit 3061, a verification subunit 3062, a compensation subunit 3063, and an integration subunit 3064.
The gender correction subunit 3061 is configured to correct the gender content in the identification result by using a nearest matching method, so as to obtain a correction result; the checking subunit 3062 is configured to use a character string regular matching check format to check whether the birth year, the month, the address and the identification card number in the identification result are normal, so as to obtain a check result; the compensation subunit 3063 is configured to automatically compensate an address in the identification result, so as to obtain a compensation result; and the integration subunit 3064 is used for integrating the correction result, the verification result and the compensation result to obtain an identification card recognition result.
In an embodiment, the compensation subunit 3063 is configured to input the address in the identification result to the open interface of the german map or the hundred-degree map, so that the german map or the hundred-degree map returns a corrected address according to the address to form a compensation result.
It should be noted that, as those skilled in the art can clearly understand, the specific implementation process of the identification card recognition device 300 and each unit in the above complex background may refer to the corresponding description in the foregoing method embodiment, and for convenience and brevity of description, the description is omitted here.
The identification card recognition apparatus 300 may be implemented in the form of a computer program that can be run on a computer device as shown in fig. 11 in the complex context described above.
Referring to fig. 11, fig. 11 is a schematic block diagram of a computer device according to an embodiment of the present application. The computer device 500 may be a server, where the server may be a stand-alone server or may be a server cluster formed by a plurality of servers.
With reference to FIG. 11, the computer device 500 includes a processor 502, memory, and a network interface 505 connected by a system bus 501, where the memory may include a non-volatile storage medium 503 and an internal memory 504.
The non-volatile storage medium 503 may store an operating system 5031 and a computer program 5032. The computer program 5032 includes program instructions that, when executed, cause the processor 502 to perform a method of identification in a complex context.
The processor 502 is used to provide computing and control capabilities to support the operation of the overall computer device 500.
The internal memory 504 provides an environment for the execution of a computer program 5032 in the non-volatile storage medium 503, which computer program 5032, when executed by the processor 502, causes the processor 502 to perform a method for identification in a complex context.
The network interface 505 is used for network communication with other devices. Those skilled in the art will appreciate that the architecture shown in fig. 11 is merely a block diagram of a portion of the architecture in connection with the present application and is not intended to limit the computer device 500 to which the present application is applied, and that a particular computer device 500 may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
Wherein the processor 502 is configured to execute a computer program 5032 stored in a memory to implement the steps of:
acquiring an identity card image to be identified; removing complex backgrounds from the identity card image to be identified to obtain a removal result; performing image enhancement on the eliminating result to obtain a processing result; cutting the processing result to obtain a cutting result; OCR recognition is carried out on the cutting result to obtain a recognition result; and automatically correcting and checking the identification result to obtain an identification card identification result.
In an embodiment, when the step of removing the complex background from the identification card image to be identified to obtain the removal result is implemented by the processor 502, the following steps are specifically implemented:
performing target recognition on the identity card image to be recognized to obtain an area where the identity card is located; cutting the identity card image to be identified according to the area where the identity card is positioned by adopting an image processing technology so as to obtain an identity card area image; and rotating the identity card area image by adopting an image processing technology to obtain a rejection result.
In an embodiment, when the step of watermarking the culling result to obtain a processing result is implemented by the processor 502, the following steps are specifically implemented:
and carrying out image enhancement on the eliminating result by adopting an image binarization technology so as to obtain a processing result.
In one embodiment, when the step of clipping the processing result to obtain a clipping result is implemented by the processor 502, the following steps are specifically implemented:
determining a key information area of the processing result through a preset key word mask so as to obtain the key information area; and cutting out the key information area to obtain a cutting result.
In an embodiment, when the step of automatically correcting and verifying the identification result to obtain the identification result of the identification card is implemented by the processor 502, the following steps are specifically implemented:
correcting the gender content in the identification result by adopting a nearest matching method so as to obtain a correction result; the birth year, the month, the address and the identity card number in the identification result are matched with the verification format by adopting character strings regularly to obtain a verification result; automatically compensating the address in the identification result to obtain a compensation result; and integrating the correction result, the verification result and the compensation result to obtain an identification card recognition result.
In an embodiment, when the step of automatically compensating the address in the identification result to obtain a compensation result is implemented by the processor 502, the following steps are specifically implemented:
and inputting the address in the identification result into an open interface of the Goldmap or the hundred-degree map, so that the Goldmap or the hundred-degree map returns a corrected address according to the address to form a compensation result.
It should be appreciated that in embodiments of the present application, the processor 502 may be a central processing unit (Central Processing Unit, CPU), the processor 502 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSPs), application specific integrated circuits (Application Specific Integrated Circuit, ASICs), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. Wherein the general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Those skilled in the art will appreciate that all or part of the flow in a method embodying the above described embodiments may be accomplished by computer programs instructing the relevant hardware. The computer program comprises program instructions, and the computer program can be stored in a storage medium, which is a computer readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the flow steps of the embodiments of the method described above.
Accordingly, the present invention also provides a storage medium. The storage medium may be a computer readable storage medium. The storage medium stores a computer program which, when executed by a processor, causes the processor to perform the steps of:
acquiring an identity card image to be identified; removing complex backgrounds from the identity card image to be identified to obtain a removal result; performing image enhancement on the eliminating result to obtain a processing result; cutting the processing result to obtain a cutting result; OCR recognition is carried out on the cutting result to obtain a recognition result; and automatically correcting and checking the identification result to obtain an identification card identification result.
In an embodiment, when the processor executes the computer program to implement the step of removing the complex background from the identification card image to be identified to obtain a removal result, the steps are specifically implemented as follows:
performing target recognition on the identity card image to be recognized to obtain an area where the identity card is located; cutting the identity card image to be identified according to the area where the identity card is positioned by adopting an image processing technology so as to obtain an identity card area image; and rotating the identity card area image by adopting an image processing technology to obtain a rejection result.
In one embodiment, when the processor executes the computer program to implement the step of watermarking the culling result to obtain a processing result, the following steps are specifically implemented:
and carrying out image enhancement on the eliminating result by adopting an image binarization technology so as to obtain a processing result.
In one embodiment, when the processor executes the computer program to implement the step of clipping the processing result to obtain a clipping result, the following steps are specifically implemented:
determining a key information area of the processing result through a preset key word mask so as to obtain the key information area; and cutting out the key information area to obtain a cutting result.
In one embodiment, when the processor executes the computer program to implement the step of automatically correcting and verifying the identification result to obtain the identification result of the identification card, the steps are specifically implemented as follows:
correcting the gender content in the identification result by adopting a nearest matching method so as to obtain a correction result; the birth year, the month, the address and the identity card number in the identification result are matched with the verification format by adopting character strings regularly to obtain a verification result; automatically compensating the address in the identification result to obtain a compensation result; and integrating the correction result, the verification result and the compensation result to obtain an identification card recognition result.
In one embodiment, when the processor executes the computer program to implement the step of automatically compensating the address in the identification result to obtain a compensation result, the method specifically includes the following steps:
and inputting the address in the identification result into an open interface of the Goldmap or the hundred-degree map, so that the Goldmap or the hundred-degree map returns a corrected address according to the address to form a compensation result.
The storage medium may be a U-disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk, or other various computer-readable storage media that can store program codes.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps described in connection with the embodiments disclosed herein may be embodied in electronic hardware, in computer software, or in a combination of the two, and that the elements and steps of the examples have been generally described in terms of function in the foregoing description to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the several embodiments provided by the present invention, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of each unit is only one logic function division, and there may be another division manner in actual implementation. For example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs. The units in the device of the embodiment of the invention can be combined, divided and deleted according to actual needs. In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The integrated unit may be stored in a storage medium if implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present invention is essentially or a part contributing to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a terminal, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention.
While the invention has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made and equivalents will be apparent to those skilled in the art without departing from the scope of the invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.

Claims (10)

1. The identification card identification method under the complex background is characterized by comprising the following steps:
acquiring an identity card image to be identified;
removing complex backgrounds from the identity card image to be identified to obtain a removal result;
performing image enhancement on the eliminating result to obtain a processing result;
cutting the processing result to obtain a cutting result;
OCR recognition is carried out on the cutting result to obtain a recognition result;
and automatically correcting and checking the identification result to obtain an identification card identification result.
2. The method for identifying an identification card under a complex background according to claim 1, wherein the step of removing the complex background from the identification card image to be identified to obtain a removal result includes:
performing target recognition on the identity card image to be recognized to obtain an area where the identity card is located;
cutting the identity card image to be identified according to the area where the identity card is positioned by adopting an image processing technology so as to obtain an identity card area image;
and rotating the identity card area image by adopting an image processing technology to obtain a rejection result.
3. The method for identifying an identification card under a complex background according to claim 1, wherein the step of performing a watermark removal process on the removal result to obtain a processing result includes:
and carrying out image enhancement on the eliminating result by adopting an image binarization technology so as to obtain a processing result.
4. The method for identifying an identification card in a complex background according to claim 1, wherein the step of clipping the processing result to obtain a clipping result includes:
determining a key information area of the processing result through a preset key word mask so as to obtain the key information area;
and cutting out the key information area to obtain a cutting result.
5. The method for identifying an identification card in a complex background according to claim 1, wherein the automatically correcting and verifying the identification result to obtain an identification card identification result comprises:
correcting the gender content in the identification result by adopting a nearest matching method so as to obtain a correction result;
the birth year, the month, the address and the identity card number in the identification result are matched with the verification format by adopting character strings regularly to obtain a verification result;
automatically compensating the address in the identification result to obtain a compensation result;
and integrating the correction result, the verification result and the compensation result to obtain an identification card recognition result.
6. The method for identifying an id card in a complex background according to claim 5, wherein the automatically compensating the address in the identification result to obtain a compensation result includes:
and inputting the address in the identification result into an open interface of the Goldmap or the hundred-degree map, so that the Goldmap or the hundred-degree map returns a corrected address according to the address to form a compensation result.
7. Identification card recognition device under complicated background, its characterized in that includes:
the image acquisition unit is used for acquiring an identity card image to be identified;
the rejecting unit is used for rejecting the complex background of the identity card image to be identified to obtain a rejecting result;
the strengthening unit is used for strengthening the images of the eliminating results to obtain processing results;
the cutting unit is used for cutting the processing result to obtain a cutting result;
the recognition unit is used for performing OCR recognition on the cutting result to obtain a recognition result;
and the correction unit is used for automatically correcting and checking the identification result to obtain an identification card identification result.
8. The identification card recognition apparatus in complex background according to claim 7, wherein the rejection unit includes:
the target recognition subunit is used for carrying out target recognition on the identity card image to be recognized so as to obtain an area where the identity card is located;
the area clipping subunit is used for clipping the identity card image to be identified according to the area where the identity card is positioned by adopting an image processing technology so as to obtain an identity card area image;
and the rotating subunit is used for rotating the identity card area image by adopting an image processing technology so as to obtain a rejection result.
9. A computer device, characterized in that it comprises a memory on which a computer program is stored and a processor which, when executing the computer program, implements the method according to any of claims 1-6.
10. A storage medium storing a computer program which, when executed by a processor, performs the method of any one of claims 1 to 6.
CN202310314537.4A 2023-03-28 2023-03-28 Identification card identification method and device under complex background, computer equipment and storage medium Pending CN116363677A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310314537.4A CN116363677A (en) 2023-03-28 2023-03-28 Identification card identification method and device under complex background, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310314537.4A CN116363677A (en) 2023-03-28 2023-03-28 Identification card identification method and device under complex background, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116363677A true CN116363677A (en) 2023-06-30

Family

ID=86918610

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310314537.4A Pending CN116363677A (en) 2023-03-28 2023-03-28 Identification card identification method and device under complex background, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116363677A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008127443A1 (en) * 2007-04-13 2008-10-23 Bank Of America Corporation Image data extraction automation process
CN109492643A (en) * 2018-10-11 2019-03-19 平安科技(深圳)有限公司 Certificate recognition methods, device, computer equipment and storage medium based on OCR
CN111507957A (en) * 2020-04-15 2020-08-07 深圳前海环融联易信息科技服务有限公司 Identity card picture conversion method and device, computer equipment and storage medium
CN111783757A (en) * 2020-06-01 2020-10-16 成都科大极智科技有限公司 OCR technology-based identification card recognition method in complex scene
CN115171138A (en) * 2022-05-16 2022-10-11 君岭医疗信息技术(上海)有限公司 Method, system and equipment for detecting image text of identity card
CN115294593A (en) * 2022-08-09 2022-11-04 中国平安人寿保险股份有限公司 Image information extraction method and device, computer equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008127443A1 (en) * 2007-04-13 2008-10-23 Bank Of America Corporation Image data extraction automation process
CN109492643A (en) * 2018-10-11 2019-03-19 平安科技(深圳)有限公司 Certificate recognition methods, device, computer equipment and storage medium based on OCR
CN111507957A (en) * 2020-04-15 2020-08-07 深圳前海环融联易信息科技服务有限公司 Identity card picture conversion method and device, computer equipment and storage medium
CN111783757A (en) * 2020-06-01 2020-10-16 成都科大极智科技有限公司 OCR technology-based identification card recognition method in complex scene
CN115171138A (en) * 2022-05-16 2022-10-11 君岭医疗信息技术(上海)有限公司 Method, system and equipment for detecting image text of identity card
CN115294593A (en) * 2022-08-09 2022-11-04 中国平安人寿保险股份有限公司 Image information extraction method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
US11087125B2 (en) Document authenticity determination
CN109658584B (en) Bill information identification method and device
WO2021086837A1 (en) System and methods for authentication of documents
WO2021051554A1 (en) Certificate authenticity verification method and system, and computer device and readable storage medium
US8326041B2 (en) Machine character recognition verification
CN108053545B (en) Certificate verification method and device, server and storage medium
CN112257613B (en) Physical examination report information structured extraction method and device and computer equipment
CN112528998B (en) Certificate image processing method and device, electronic equipment and readable storage medium
US11023764B2 (en) Method and system for optical character recognition of series of images
US20230290210A1 (en) Systems and methods for updating an image registry for use in fraud detection related to financial documents
Abramova et al. Detecting copy–move forgeries in scanned text documents
CN111932766A (en) Invoice verification method and device, computer equipment and readable storage medium
CN112396047B (en) Training sample generation method and device, computer equipment and storage medium
CN116363677A (en) Identification card identification method and device under complex background, computer equipment and storage medium
CN108399597A (en) Key message treating method and apparatus
US20210090086A1 (en) Systems and methods for fraud detection for images of financial documents
CN111881938A (en) Image authenticity identification method based on blind evidence obtaining technology
CN115359302A (en) Coin identification method, system and storage medium
CN111814780B (en) Bill image processing method, device, equipment and storage medium
TW201732683A (en) Information identification method and device
CN114241463A (en) Signature verification method and device, computer equipment and storage medium
CN113342937B (en) Confirmation processing method and device, computer equipment and storage medium
CN112016561B (en) Text recognition method and related equipment
CN116665224A (en) Certificate information extraction method and device based on OCR (optical character recognition) technology
CN115761745A (en) Bill data identification method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination