CN112784833A - Certificate identification method and device and server - Google Patents

Certificate identification method and device and server Download PDF

Info

Publication number
CN112784833A
CN112784833A CN202110271785.6A CN202110271785A CN112784833A CN 112784833 A CN112784833 A CN 112784833A CN 202110271785 A CN202110271785 A CN 202110271785A CN 112784833 A CN112784833 A CN 112784833A
Authority
CN
China
Prior art keywords
picture
certificate
character recognition
detection
optical character
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
CN202110271785.6A
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.)
Alipay Hangzhou Information Technology Co Ltd
Original Assignee
Alipay Hangzhou Information 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 Alipay Hangzhou Information Technology Co Ltd filed Critical Alipay Hangzhou Information Technology Co Ltd
Priority to CN202110271785.6A priority Critical patent/CN112784833A/en
Publication of CN112784833A publication Critical patent/CN112784833A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/10Image acquisition
    • G06V10/12Details of acquisition arrangements; Constructional details thereof
    • G06V10/14Optical characteristics of the device performing the acquisition or on the illumination arrangements
    • G06V10/141Control of illumination
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures

Abstract

The embodiment of the specification provides a certificate identification method, a certificate identification device and a server, wherein in the certificate identification method, the server acquires a first picture acquired by an electronic device in a state that a flash lamp is not turned on and a second picture acquired by the electronic device in a state that the flash lamp is turned on. Then, the server carries out flash image detection on the second image, carries out OCR on the first image and the second image respectively, and fuses the OCR results of the first image and the second image. And the server compares the fused OCR result with the information stored in the information base, and determines that the certificate is validated when the flash picture detection result is that the second picture is a picture obtained by shooting the certificate by the electronic equipment and the fused OCR result is consistent with the information stored in the information base.

Description

Certificate identification method and device and server
[ technical field ] A method for producing a semiconductor device
The embodiment of the specification relates to the technical field of internet, in particular to a certificate identification method, a certificate identification device and a certificate identification server.
[ background of the invention ]
In the prior art, a user can scan an identity card and perform self-shooting by using a mobile phone without going to a bank outlet, and then provide some personal information online, so that the credible opening procedures such as electronic customer identification (eKYC) and the like can be completed simply and quickly.
In the eKYC process, verification processing needs to be performed on the user's certificate, and Optical Character Recognition (OCR) needs to be performed on the user's certificate. In the process, the accuracy of the verification processing and the OCR is a key problem to be paid attention, so that a scheme needs to be provided, and the accuracy of the document verification and the OCR in the eKYC process can be improved.
[ summary of the invention ]
The embodiment of the specification provides a certificate identification method, a certificate identification device and a server, so that authenticity of a certificate is identified, and the identification accuracy of OCR is effectively improved.
In a first aspect, an embodiment of the present specification provides a certificate identification method, including: acquiring a first picture and a second picture acquired by electronic equipment; the first picture is acquired by the electronic equipment in a state that a flash lamp is not turned on, and the second picture is acquired by the electronic equipment in a state that the flash lamp is turned on; flash picture detection is carried out on the second picture, and optical character recognition is respectively carried out on the first picture and the second picture; fusing the results of the optical character recognition of the first picture and the second picture; comparing the optical character recognition result obtained by fusion with the information stored in the information base; and when the flash picture detection result is that the second picture is a picture obtained by shooting the certificate by the electronic equipment and the obtained optical character recognition result is fused to be consistent with the information stored in the information base, determining that the validity of the certificate passes verification.
In the certificate identification method, the server acquires a first picture acquired by the electronic equipment in a state that the flash lamp is not turned on and a second picture acquired by the electronic equipment in a state that the flash lamp is turned on. Then, the server carries out flash image detection on the second image, carries out OCR on the first image and the second image respectively, and fuses the OCR results of the first image and the second image. And then, the server compares the result of the OCR obtained by fusion with the information stored in the information base, and when the result of the flash image detection is that the second image is the image obtained by shooting the certificate by the electronic equipment and the result of the OCR obtained by fusion is consistent with the information stored in the information base, the legality of the certificate is determined to pass verification, so that the certificate can be verified by using the images collected under the states that the flash lamp of the electronic equipment is not turned on and the flash lamp is turned on, and the identification accuracy of certificate verification and OCR can be effectively improved.
In one possible implementation manner, the flash picture detecting for the second picture includes: detecting whether light spots exist on the second picture or not; and if the second picture has light spots, the area of the light spots is smaller than or equal to a preset light spot area threshold value, and the shapes of the light spots are the same as the preset light spot shapes, determining that the second picture is a picture obtained by shooting the certificate by the electronic equipment.
In one possible implementation manner, the performing optical character recognition on the first picture and the second picture respectively includes: respectively carrying out character line detection on the first picture and the second picture; and respectively carrying out optical character recognition on the character lines in the first picture and the second picture to obtain an optical character recognition result of each character line and a confidence corresponding to the optical character recognition result of each character line.
In one possible implementation manner, the fusing the results of the optical character recognition of the first picture and the second picture includes: and fusing the optical character recognition results of the same character line in the first picture and the second picture according to the confidence coefficient.
In one possible implementation manner, after comparing the result of the optical character recognition obtained by fusing with the information stored in the information base, the method further includes: when the flash picture detection result is that the second picture is a picture obtained by shooting the certificate by the electronic equipment, carrying out anti-counterfeiting detection on the certificate according to the first picture and the second picture; and when the result of the optical character recognition obtained by fusion is consistent with the information stored in the information base and the result of the anti-counterfeiting detection is that the certificate is a legal certificate, determining that the legality of the certificate passes verification.
In one possible implementation manner, the performing, according to the first picture and the second picture, anti-counterfeit detection on the certificate includes: extracting anti-counterfeiting features of the first picture and the second picture; acquiring the difference between the first picture and the second picture according to the anti-counterfeiting characteristics of the first picture and the second picture; and when the difference degree is greater than or equal to a preset difference degree threshold value, determining that the certificate is a legal certificate.
In a second aspect, embodiments of the present specification provide a document identification apparatus, including: the acquisition module is used for acquiring a first picture and a second picture acquired by the electronic equipment; the first picture is acquired by the electronic equipment in a state that a flash lamp is not turned on, and the second picture is acquired by the electronic equipment in a state that the flash lamp is turned on; the detection module is used for carrying out flash picture detection on the second picture; the recognition module is used for respectively carrying out optical character recognition on the first picture and the second picture; the fusion module is used for fusing the results of the optical character recognition of the first picture and the second picture; the comparison module is used for comparing the optical character recognition result obtained by the fusion module with the information stored in the information base; the detection module is further configured to determine that the validity of the certificate is verified when the result of the flash image detection is that the second picture is a picture obtained by shooting the certificate by the electronic device, and the result of the optical character recognition obtained by the fusion module is consistent with the information stored in the information base.
In one possible implementation manner, the detection module is specifically configured to detect whether there is a light spot on the second picture; when the second picture has light spots, the area of the light spots is smaller than or equal to a preset light spot area threshold value, and the shape of the light spots is the same as the preset light spot shape, it is determined that the second picture is a picture obtained by shooting a certificate by the electronic equipment.
In one possible implementation manner, the identification module includes: the character line detection submodule is used for respectively detecting the character lines of the first picture and the second picture; and the optical recognition submodule is used for respectively carrying out optical character recognition on the character lines in the first picture and the second picture to obtain an optical character recognition result of each character line and a confidence coefficient corresponding to the optical character recognition result of each character line.
In one possible implementation manner, the fusion module is specifically configured to fuse the optical character recognition results of the same text line in the first picture and the second picture according to the confidence.
In one possible implementation manner, the detection module is further configured to perform anti-counterfeit detection on the certificate according to the first picture and the second picture when the result of the flash picture detection is that the second picture is a picture obtained by shooting the certificate by the electronic device; and when the result of the optical character recognition obtained by fusion is consistent with the information stored in the information base and the result of the anti-counterfeiting detection is that the certificate is a legal certificate, determining that the legality of the certificate passes verification.
In one possible implementation manner, the detection module is specifically configured to extract the anti-counterfeiting features of the first picture and the second picture; acquiring the difference between the first picture and the second picture according to the anti-counterfeiting characteristics of the first picture and the second picture; and when the difference degree is greater than or equal to a preset difference degree threshold value, determining that the certificate is a legal certificate.
In a third aspect, an embodiment of the present specification provides a server, including: at least one processor; and at least one memory communicatively coupled to the processor, wherein: the memory stores program instructions executable by the processor, the processor calling the program instructions to be able to perform the method provided by the first aspect.
In a fourth aspect, embodiments of the present specification provide a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the method provided in the first aspect.
It should be understood that the second to fourth aspects of the embodiments of the present description are consistent with the technical solution of the first aspect of the embodiments of the present description, and similar beneficial effects are obtained in all aspects and corresponding possible implementation manners, and are not described again.
[ description of the drawings ]
In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present disclosure, and it is obvious for those skilled in the art to obtain other drawings based on the drawings without creative efforts.
FIG. 1 is a flow diagram of a method of credential identification provided by one embodiment of the present description;
FIG. 2(a) is a schematic diagram of a first picture in one embodiment of the present disclosure;
FIG. 2(b) is a schematic diagram of a second picture in one embodiment of the present disclosure;
FIG. 3 is a flow diagram of a method of credential identification provided by another embodiment of the present description;
FIG. 4 is a flow diagram of a method of credential identification provided by yet another embodiment of the present description;
FIG. 5 is a schematic diagram of a document identification device provided in one embodiment of the present disclosure;
FIG. 6 is a schematic view of a document identification device according to another embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a server according to an embodiment of the present disclosure.
[ detailed description ] embodiments
For better understanding of the technical solutions in the present specification, the following detailed description of the embodiments of the present specification is provided with reference to the accompanying drawings.
It should be understood that the described embodiments are only a few embodiments of the present specification, and not all embodiments. All other embodiments obtained by a person skilled in the art based on the embodiments in the present specification without any inventive step are within the scope of the present specification.
The terminology used in the embodiments of the specification is for the purpose of describing particular embodiments only and is not intended to be limiting of the specification. As used in the specification examples 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.
In the eKYC process, authentication processing needs to be performed on the certificate of the user, and OCR needs to be performed on the certificate of the user. In the prior related art, certificate authentication and OCR recognition are separated, and the accuracy of certificate authentication and OCR recognition is not improved by well utilizing multi-frame pictures.
The embodiment of the specification provides a certificate identification method, and in the method, the electronic equipment needs to acquire the pictures of the certificate under the states that a flash lamp is not turned on and the flash lamp is turned on respectively. The certificate picture collected in the state of opening the flash lamp can be used for certificate verification, and the accuracy of OCR recognition of the certificate can be improved. The certificate identification method provided by the embodiment of the specification utilizes the certificate pictures acquired by the electronic equipment in the states of not turning on the flash lamp and turning on the flash lamp to verify and OCR identify the certificate, so that the accuracy of certificate verification and OCR identification can be improved.
Fig. 1 is a flowchart of a certificate identification method according to an embodiment of the present disclosure, and as shown in fig. 1, the certificate identification method may include:
102, a server acquires a first picture and a second picture acquired by electronic equipment; the first picture is acquired by the electronic equipment in a state that the flash lamp is not turned on, and the second picture is acquired by the electronic equipment in a state that the flash lamp is turned on.
Specifically, when target application software (APP) runs in the foreground of the electronic device, after detecting an operation of a user, in response to the operation, the electronic device acquires a first picture through a camera in the electronic device in a state where a flash is not turned on. At this moment, prompt information is displayed in the current display interface of the target APP to prompt a user not to move the electronic equipment and the position of an article shot by the electronic equipment, then, the target APP opens a flash lamp of the electronic equipment, and the electronic equipment collects a second picture through a camera in the electronic equipment in a state that the flash lamp is opened.
After the first picture and the second picture are collected, the electronic equipment uploads the first picture and the second picture to the server, and the server acquires the first picture and the second picture collected by the electronic equipment.
Referring to fig. 2(a) to 2(b), fig. 2(a) is a schematic diagram of a first picture in an embodiment of the present disclosure, and fig. 2(b) is a schematic diagram of a second picture in an embodiment of the present disclosure.
It should be noted that, in this embodiment, an example of taking a first picture and then taking a second picture is taken, but the embodiment of the present disclosure is not limited to this, and the electronic device may capture the second picture in a state where the flash is turned on and then capture the first picture in a state where the flash is not turned on, and the order of capturing the first picture and the second picture is not limited in the embodiment of the present disclosure.
And 104, the server performs flash picture detection on the second picture and performs OCR on the first picture and the second picture respectively.
And 106, fusing the OCR results of the first picture and the second picture by the server.
In this embodiment, the server performs OCR on the first picture and the second picture respectively, and then fuses OCR results of the first picture and the second picture, so that OCR can be performed by using two frames of pictures, and OCR result fusion of the two frames of pictures can effectively improve recognition accuracy of OCR.
And step 108, the server compares the OCR result obtained by fusion with the information stored in the information base.
Specifically, the certificate type of the certificate to be verified can be determined according to the OCR result obtained by fusion, and then the OCR result obtained by fusion is compared with the information stored in the corresponding information base according to the certificate type.
For example, when the type of the certificate to be verified is determined to be the resident identification card according to the OCR result obtained by fusing, the OCR result obtained by fusing may be compared with the information stored in the identification card information base of the public security system.
And step 110, when the result of the flash image detection is that the second picture is a picture obtained by shooting the certificate by the electronic equipment, and the result of the fused OCR is consistent with the information stored in the information base, determining that the validity of the certificate passes verification.
Specifically, the validity of the certificate is verified to be that the certificate is a true certificate, but not a fake certificate, a copy or a photo.
And if the result of the flash picture detection is that the second picture is not a picture obtained by shooting the certificate by the electronic equipment, or the result of the fused OCR is inconsistent with the information stored in the information base, submitting a manual verification request, and manually judging the authenticity of the certificate.
In the certificate identification method, the server acquires a first picture acquired by the electronic equipment in a state that the flash lamp is not turned on and a second picture acquired by the electronic equipment in a state that the flash lamp is turned on. Then, the server carries out flash image detection on the second image, carries out OCR on the first image and the second image respectively, and fuses the OCR results of the first image and the second image. And then, the server compares the result of the OCR obtained by fusion with the information stored in the information base, and when the result of the flash image detection is that the second image is the image obtained by shooting the certificate by the electronic equipment and the result of the OCR obtained by fusion is consistent with the information stored in the information base, the legality of the certificate is determined to pass verification, so that the certificate can be verified by using the images collected under the states that the flash lamp of the electronic equipment is not turned on and the flash lamp is turned on, and the identification accuracy of certificate verification and OCR can be effectively improved.
Fig. 3 is a flowchart of a certificate identification method according to another embodiment of the present disclosure, and as shown in fig. 3, in the embodiment of the present disclosure shown in fig. 1, step 104 may include:
step 302, the server detects whether there is a light spot on the second picture.
Step 304, if a light spot exists on the second picture, the area of the light spot is smaller than or equal to a preset light spot area threshold value, and the shape of the light spot is the same as a preset light spot shape, the server determines that the second picture is a picture obtained by shooting the certificate by the electronic equipment.
Specifically, since the flash lamp shines on the certificate to form mirror reflection, the electronic device has obvious light spots in the certificate picture collected in the state of turning on the flash lamp; the flash light is diffused and reflected on the copy, so that no obvious light spot exists in the certificate picture acquired by the electronic equipment under the state that the flash light is not turned on.
Therefore, referring to fig. 2(b), if there is a light spot 21 on the second picture, the area of the light spot 21 is smaller than or equal to the predetermined light spot area threshold, and the shape of the light spot 21 is the same as the preset light spot shape, the server determines that the second picture is a picture obtained by shooting the certificate by the electronic device.
The predetermined light spot area threshold may be set according to system performance and/or implementation requirements, and the size of the predetermined light spot area threshold is not limited in this embodiment; similarly, the preset spot shape may also be set according to system performance and/or implementation requirements during implementation, and the preset spot shape is not limited in this embodiment.
Step 306, the server performs text line detection on the first picture and the second picture respectively.
Step 308, the server performs OCR on the text lines in the first image and the second image respectively to obtain an OCR result of each text line and a confidence corresponding to the OCR result of each text line.
Thus, step 106 may be:
and step 310, the server fuses the OCR results of the same text line in the first picture and the second picture according to the confidence.
For example, when the OCR results are merged, for each character line, an OCR result with a higher degree of confidence in the OCR results of the first and second images may be selected as the OCR result of the character line.
Fig. 4 is a flowchart of a certificate identification method according to still another embodiment of the present specification, as shown in fig. 4, in the embodiment shown in fig. 1 of the present specification, after step 108, the method may further include:
and step 402, when the flash picture detection result is that the second picture is a picture obtained by shooting the certificate by the electronic equipment, the server performs anti-counterfeiting detection on the certificate according to the first picture and the second picture.
Specifically, the anti-counterfeiting detection of the certificate according to the first picture and the second picture may be: the server extracts the anti-counterfeiting characteristics of the first picture and the second picture, and obtains the difference between the first picture and the second picture according to the anti-counterfeiting characteristics of the first picture and the second picture; and when the difference degree is greater than or equal to a preset difference degree threshold value, determining the certificate to be legal.
In specific implementation, the server can extract the anti-counterfeiting features of the first picture and the second picture by using a pre-trained multi-frame anti-counterfeiting model, then obtain the difference degree between the first picture and the second picture according to the anti-counterfeiting features of the first picture and the second picture, and when the difference degree is larger than or equal to a preset difference degree threshold value, determine that the certificate is a legal certificate.
The predetermined difference threshold may be set according to system performance and/or implementation requirements, and the size of the predetermined difference threshold is not limited in this embodiment.
And step 404, when the result of the OCR obtained by fusion is consistent with the information stored in the information base and the result of the anti-counterfeiting detection is that the certificate is a legal certificate, determining that the validity of the certificate is verified.
The certificate identification method provided by the embodiment of the specification verifies the certificate by using the pictures acquired by the electronic equipment in the states of turning on the flash lamp and not turning on the flash lamp, can effectively identify the authenticity of the certificate, improves the identification accuracy of certificate verification, and is particularly suitable for high-imitation counterfeit certificates or color printing copies and the like; in addition, when flash anti-counterfeiting is carried out, more frame of picture information can be utilized, the OCR results of two frames of pictures are mutually fused, the recognition accuracy of OCR is effectively improved, and the recognition passing rate of certificates in a poor environment can be improved.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
Fig. 5 is a schematic structural diagram of a document identification device provided in an embodiment of the present disclosure, and as shown in fig. 5, the document identification device may include: the system comprises an acquisition module 51, a detection module 52, an identification module 53, a fusion module 54 and a comparison module 55;
the acquiring module 51 is configured to acquire a first picture and a second picture acquired by an electronic device; the first picture is acquired by the electronic equipment in a state that a flash lamp is not turned on, and the second picture is acquired by the electronic equipment in a state that the flash lamp is turned on;
a detection module 52, configured to perform flash picture detection on the second picture;
an identifying module 53, configured to perform OCR on the first picture and the second picture respectively;
a fusion module 54, configured to fuse OCR results of the first picture and the second picture;
a comparison module 55, configured to compare the OCR result obtained by the fusion module 54 with information stored in the information base;
the detection module 52 is further configured to determine that the validity of the certificate is verified when the result of the flash image detection is that the second picture is a picture obtained by shooting the certificate by the electronic device, and the result of the OCR obtained by the fusion module 54 is consistent with the information stored in the information base.
The certificate recognition apparatus provided in the embodiment shown in fig. 5 may be used as a server, or a part of the server to execute the technical solution of the method embodiment shown in fig. 1 in this specification, and further reference may be made to the relevant description in the method embodiment for implementation principle and technical effect.
Fig. 6 is a schematic structural diagram of a document identification device according to another embodiment of the present disclosure, in comparison with the document identification device shown in fig. 5, in the document identification device shown in fig. 6, a detection module 52 is specifically configured to detect whether there is a light spot on the second picture; and when the second picture has light spots, the area of the light spots is smaller than or equal to a preset light spot area threshold value, and the shape of the light spots is the same as the preset light spot shape, determining that the second picture is a picture obtained by shooting the certificate by the electronic equipment.
In this embodiment, the identification module 53 may include: a text line detection submodule 531 and an optical recognition submodule 532;
the text line detection submodule 531 is configured to perform text line detection on the first picture and the second picture respectively;
the optical identification sub-module 532 is configured to perform OCR on the text lines in the first picture and the second picture respectively, and obtain an OCR result of each text line and a confidence corresponding to the OCR result of each text line.
In this embodiment, the fusion module 54 is specifically configured to fuse the OCR results of the same text line in the first image and the second image according to the above-mentioned confidence level.
In this embodiment, the detection module 52 is further configured to perform anti-counterfeit detection on the certificate according to the first picture and the second picture when the result of the flash picture detection is that the second picture is a picture obtained by shooting the certificate by the electronic device; and when the result of the OCR obtained by fusion is consistent with the information stored in the information base and the result of the anti-counterfeiting detection is that the certificate is a legal certificate, determining that the legality of the certificate passes verification.
Specifically, the detection module 52 is specifically configured to extract the anti-counterfeiting features of the first picture and the second picture; acquiring the difference between the first picture and the second picture according to the anti-counterfeiting characteristics of the first picture and the second picture; and when the difference degree is greater than or equal to a preset difference degree threshold value, determining the certificate to be legal.
The certificate recognition apparatus provided in the embodiment shown in fig. 6 may be used as a server, or a part of the server to execute the technical solutions of the method embodiments shown in fig. 1 to 4 of the present application, and the implementation principles and technical effects of the technical solutions may be further described with reference to the related descriptions in the method embodiments.
Fig. 7 is a schematic structural diagram of a server provided in an embodiment of the present disclosure, and as shown in fig. 7, the server may include at least one processor; and at least one memory communicatively coupled to the processor, wherein: the memory stores program instructions executable by the processor, and the processor calls the program instructions to execute the certificate identification method provided by the embodiments shown in fig. 1 to 4 in the specification.
The server may be a cloud server or other types of servers, and the type of the server is not limited in this embodiment.
FIG. 7 illustrates a block diagram of an exemplary server suitable for use in implementing embodiments of the present specification. The server shown in fig. 7 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present specification.
As shown in fig. 7, the server is in the form of a general purpose computing device. Components of the server may include, but are not limited to: one or more processors 410, a communication interface 420, a memory 430, and a communication bus 440 that connects the various components (including the memory 430, the communication interface 420, and the processing unit 410).
Communication bus 440 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, or a local bus using any of a variety of bus architectures. For example, communication bus 440 may include, but is not limited to, an Industry Standard Architecture (ISA) bus, a micro channel architecture (MAC) bus, an enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.
The server typically includes a variety of computer system readable media. Such media may be any available media that is accessible by the server and includes both volatile and nonvolatile media, removable and non-removable media.
Memory 430 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) and/or cache memory. Memory 430 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of the embodiments described herein with respect to fig. 1-4.
A program/utility having a set (at least one) of program modules, including but not limited to an operating system, one or more application programs, other program modules, and program data, may be stored in memory 430, each of which examples or some combination may include an implementation of a network environment. The program modules generally perform the functions and/or methods of the embodiments described in fig. 1-4 herein.
The processor 410 executes various functional applications and data processing by executing programs stored in the memory 430, for example, implementing the certificate recognition method provided by the embodiments shown in fig. 1 to 4 of the present specification.
The embodiment of the specification provides a non-transitory computer readable storage medium, which stores computer instructions, and the computer instructions cause the computer to execute the certificate identification method provided by the embodiment shown in fig. 1 to 4 of the specification.
The non-transitory computer readable storage medium described above may take any combination of one or more computer readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read Only Memory (ROM), an Erasable Programmable Read Only Memory (EPROM) or flash memory, an optical fiber, a portable compact disc read only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, Radio Frequency (RF), etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present description may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
In the description of the specification, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the specification. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present specification, "a plurality" means at least two, e.g., two, three, etc., unless explicitly defined otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing steps of a custom logic function or process, and alternate implementations are included within the scope of the preferred embodiment of the present description in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the embodiments of the present description.
The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
It should be noted that the terminal referred to in the embodiments of the present specification may include, but is not limited to, a Personal Computer (PC), a Personal Digital Assistant (PDA), a wireless handheld device, a tablet computer (tablet computer), a mobile phone, an MP3 player, an MP4 player, and the like.
In the several embodiments provided in this specification, it should be understood that the disclosed system, apparatus, and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions in actual implementation, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
In addition, functional units in the embodiments of the present description may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods described in the embodiments of the present disclosure. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only a preferred embodiment of the present disclosure, and should not be taken as limiting the present disclosure, and any modifications, equivalents, improvements, etc. made within the spirit and principle of the present disclosure should be included in the scope of the present disclosure.

Claims (14)

1. A method of document identification, comprising:
acquiring a first picture and a second picture acquired by electronic equipment; the first picture is acquired by the electronic equipment in a state that a flash lamp is not turned on, and the second picture is acquired by the electronic equipment in a state that the flash lamp is turned on;
flash picture detection is carried out on the second picture, and optical character recognition is respectively carried out on the first picture and the second picture;
fusing the results of the optical character recognition of the first picture and the second picture;
comparing the optical character recognition result obtained by fusion with the information stored in the information base;
and when the flash picture detection result is that the second picture is a picture obtained by shooting the certificate by the electronic equipment and the obtained optical character recognition result is fused to be consistent with the information stored in the information base, determining that the validity of the certificate passes verification.
2. The method of claim 1, wherein the flash picture detection of the second picture comprises:
detecting whether light spots exist on the second picture or not;
and if the second picture has light spots, the area of the light spots is smaller than or equal to a preset light spot area threshold value, and the shapes of the light spots are the same as the preset light spot shapes, determining that the second picture is a picture obtained by shooting the certificate by the electronic equipment.
3. The method of claim 1, wherein the optical character recognition of the first picture and the second picture, respectively, comprises:
respectively carrying out character line detection on the first picture and the second picture;
and respectively carrying out optical character recognition on the character lines in the first picture and the second picture to obtain an optical character recognition result of each character line and a confidence corresponding to the optical character recognition result of each character line.
4. The method of claim 3, wherein the fusing the results of the optical character recognition of the first picture and the second picture comprises:
and fusing the optical character recognition results of the same character line in the first picture and the second picture according to the confidence coefficient.
5. The method according to claim 1, wherein after comparing the result of optical character recognition obtained by fusion with the information stored in the information base, the method further comprises:
when the flash picture detection result is that the second picture is a picture obtained by shooting the certificate by the electronic equipment, carrying out anti-counterfeiting detection on the certificate according to the first picture and the second picture;
and when the result of the optical character recognition obtained by fusion is consistent with the information stored in the information base and the result of the anti-counterfeiting detection is that the certificate is a legal certificate, determining that the legality of the certificate passes verification.
6. The method of claim 5, wherein the performing anti-counterfeiting detection on the document according to the first picture and the second picture comprises:
extracting anti-counterfeiting features of the first picture and the second picture;
acquiring the difference between the first picture and the second picture according to the anti-counterfeiting characteristics of the first picture and the second picture;
and when the difference degree is greater than or equal to a preset difference degree threshold value, determining that the certificate is a legal certificate.
7. A credential identification device comprising:
the acquisition module is used for acquiring a first picture and a second picture acquired by the electronic equipment; the first picture is acquired by the electronic equipment in a state that a flash lamp is not turned on, and the second picture is acquired by the electronic equipment in a state that the flash lamp is turned on;
the detection module is used for carrying out flash picture detection on the second picture;
the recognition module is used for respectively carrying out optical character recognition on the first picture and the second picture;
the fusion module is used for fusing the results of the optical character recognition of the first picture and the second picture;
the comparison module is used for comparing the optical character recognition result obtained by the fusion module with the information stored in the information base;
the detection module is further configured to determine that the validity of the certificate is verified when the result of the flash image detection is that the second picture is a picture obtained by shooting the certificate by the electronic device, and the result of the optical character recognition obtained by the fusion module is consistent with the information stored in the information base.
8. The apparatus of claim 7, wherein,
the detection module is specifically configured to detect whether a light spot exists on the second picture; when the second picture has light spots, the area of the light spots is smaller than or equal to a preset light spot area threshold value, and the shape of the light spots is the same as the preset light spot shape, it is determined that the second picture is a picture obtained by shooting a certificate by the electronic equipment.
9. The apparatus of claim 7, wherein the identification module comprises:
the character line detection submodule is used for respectively detecting the character lines of the first picture and the second picture;
and the optical recognition submodule is used for respectively carrying out optical character recognition on the character lines in the first picture and the second picture to obtain an optical character recognition result of each character line and a confidence coefficient corresponding to the optical character recognition result of each character line.
10. The apparatus of claim 9, wherein,
the fusion module is specifically configured to fuse the optical character recognition results of the same text line in the first picture and the second picture according to the confidence level.
11. The apparatus of claim 7, wherein,
the detection module is further used for performing anti-counterfeiting detection on the certificate according to the first picture and the second picture when the flash picture detection result indicates that the second picture is a picture obtained by shooting the certificate by the electronic equipment; and when the result of the optical character recognition obtained by fusion is consistent with the information stored in the information base and the result of the anti-counterfeiting detection is that the certificate is a legal certificate, determining that the legality of the certificate passes verification.
12. The apparatus of claim 11, wherein,
the detection module is specifically used for extracting the anti-counterfeiting features of the first picture and the second picture; acquiring the difference between the first picture and the second picture according to the anti-counterfeiting characteristics of the first picture and the second picture; and when the difference degree is greater than or equal to a preset difference degree threshold value, determining that the certificate is a legal certificate.
13. A server, comprising:
at least one processor; and
at least one memory communicatively coupled to the processor, wherein:
the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform the method of any of claims 1 to 6.
14. A non-transitory computer-readable storage medium storing computer instructions that cause the computer to perform the method of any of claims 1-6.
CN202110271785.6A 2021-03-12 2021-03-12 Certificate identification method and device and server Pending CN112784833A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110271785.6A CN112784833A (en) 2021-03-12 2021-03-12 Certificate identification method and device and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110271785.6A CN112784833A (en) 2021-03-12 2021-03-12 Certificate identification method and device and server

Publications (1)

Publication Number Publication Date
CN112784833A true CN112784833A (en) 2021-05-11

Family

ID=75762604

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110271785.6A Pending CN112784833A (en) 2021-03-12 2021-03-12 Certificate identification method and device and server

Country Status (1)

Country Link
CN (1) CN112784833A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150341370A1 (en) * 2014-02-25 2015-11-26 Sal Khan Systems and methods relating to the authenticity and verification of photographic identity documents
CN106803086A (en) * 2016-12-30 2017-06-06 北京旷视科技有限公司 Distinguish method, the apparatus and system of certificate authenticity
CN110059686A (en) * 2019-04-26 2019-07-26 腾讯科技(深圳)有限公司 Character identifying method, device, equipment and readable storage medium storing program for executing
CN110533643A (en) * 2019-08-21 2019-12-03 阿里巴巴集团控股有限公司 Certificate identification method and device
CN110569718A (en) * 2019-07-26 2019-12-13 华中科技大学 Examinee identity verification method and device based on certificate
CN110688939A (en) * 2019-09-25 2020-01-14 支付宝(杭州)信息技术有限公司 Method, system and equipment for verifying certificate image to be identified
CN111291797A (en) * 2020-01-21 2020-06-16 支付宝实验室(新加坡)有限公司 Anti-counterfeiting identification method and device and electronic equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150341370A1 (en) * 2014-02-25 2015-11-26 Sal Khan Systems and methods relating to the authenticity and verification of photographic identity documents
CN106803086A (en) * 2016-12-30 2017-06-06 北京旷视科技有限公司 Distinguish method, the apparatus and system of certificate authenticity
CN110059686A (en) * 2019-04-26 2019-07-26 腾讯科技(深圳)有限公司 Character identifying method, device, equipment and readable storage medium storing program for executing
CN110569718A (en) * 2019-07-26 2019-12-13 华中科技大学 Examinee identity verification method and device based on certificate
CN110533643A (en) * 2019-08-21 2019-12-03 阿里巴巴集团控股有限公司 Certificate identification method and device
CN110688939A (en) * 2019-09-25 2020-01-14 支付宝(杭州)信息技术有限公司 Method, system and equipment for verifying certificate image to be identified
CN111291797A (en) * 2020-01-21 2020-06-16 支付宝实验室(新加坡)有限公司 Anti-counterfeiting identification method and device and electronic equipment

Similar Documents

Publication Publication Date Title
US10699103B2 (en) Living body detecting method and apparatus, device and storage medium
TWI786291B (en) Face recognition method, terminal device, and computer-readable storage medium
KR102324706B1 (en) Face recognition unlock method and device, device, medium
TWI706264B (en) Method and apparatus for verifying identity document, electronic device, and storage medium
TWI701603B (en) Method, device and electronic equipment for image compliance of auxiliary articles
US11210541B2 (en) Liveness detection method, apparatus and computer-readable storage medium
US11367310B2 (en) Method and apparatus for identity verification, electronic device, computer program, and storage medium
KR20200118842A (en) Identity authentication method and device, electronic device and storage medium
CN110163053B (en) Method and device for generating negative sample for face recognition and computer equipment
WO2020238232A1 (en) Image recognition method, apparatus and device, and authentication method, apparatus and device
CN110263805B (en) Certificate verification and identity verification method, device and equipment
US20200218772A1 (en) Method and apparatus for dynamically identifying a user of an account for posting images
CN111241873A (en) Image reproduction detection method, training method of model thereof, payment method and payment device
CN113379713B (en) Certificate image detection method and device
CN111062922B (en) Method and system for distinguishing flip image and electronic equipment
CN116912478A (en) Object detection model construction, image classification method and electronic equipment
CN111311550A (en) Counterfeit certificate identification method and device and electronic equipment
CN112784833A (en) Certificate identification method and device and server
CN111754245B (en) Method, device and equipment for authenticating business scene
CN111767845B (en) Certificate identification method and device
CN109344732B (en) Method and device for authentication and determining authentication mode and electronic equipment
CN111160093A (en) Method, device, equipment and storage medium for identifying certificate photo camouflage in certificate
CN112966680B (en) Certificate picture acquisition method and device and electronic equipment
CN111243159A (en) Counterfeit certificate identification method and device and electronic equipment
US20240021016A1 (en) Method and system for identity verification

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210511