WO2020082610A1 - 身份证信息验证方法、装置、设备及计算机可读存储介质 - Google Patents

身份证信息验证方法、装置、设备及计算机可读存储介质 Download PDF

Info

Publication number
WO2020082610A1
WO2020082610A1 PCT/CN2019/070288 CN2019070288W WO2020082610A1 WO 2020082610 A1 WO2020082610 A1 WO 2020082610A1 CN 2019070288 W CN2019070288 W CN 2019070288W WO 2020082610 A1 WO2020082610 A1 WO 2020082610A1
Authority
WO
WIPO (PCT)
Prior art keywords
picture
verified
information
preset area
area
Prior art date
Application number
PCT/CN2019/070288
Other languages
English (en)
French (fr)
Inventor
唐晟
Original Assignee
深圳壹账通智能科技有限公司
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 深圳壹账通智能科技有限公司 filed Critical 深圳壹账通智能科技有限公司
Publication of WO2020082610A1 publication Critical patent/WO2020082610A1/zh

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/21Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
    • G06F18/214Generating training patterns; Bootstrap methods, e.g. bagging or boosting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/26Segmentation of patterns in the image field; Cutting or merging of image elements to establish the pattern region, e.g. clustering-based techniques; Detection of occlusion
    • G06V10/267Segmentation of patterns in the image field; Cutting or merging of image elements to establish the pattern region, e.g. clustering-based techniques; Detection of occlusion by performing operations on regions, e.g. growing, shrinking or watersheds
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/44Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/98Detection or correction of errors, e.g. by rescanning the pattern or by human intervention; Evaluation of the quality of the acquired patterns
    • G06V10/993Evaluation of the quality of the acquired pattern
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/60Type of objects
    • G06V20/62Text, e.g. of license plates, overlay texts or captions on TV images
    • G06V20/63Scene text, e.g. street names
    • 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
    • G06V30/413Classification of content, e.g. text, photographs or tables
    • 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

Definitions

  • This application relates to the field of computer technology, and in particular to a method, device, equipment, and computer-readable storage medium for ID card information verification.
  • the use of information processing technology can achieve rapid identification of user ID information, which can verify the user's identity. Specifically, it is usually to obtain a picture of the user's ID card, then identify the ID card information in the picture, and then verify the ID card information.
  • ID card information verification technologies are that the client captures the ID card image, uploads the captured image to the server, and then the server performs ID card information identification and verification on the image.
  • the server When the quality of the pictures captured by the client is poor, it is difficult for the server to identify the ID information on the poor quality pictures, which will reduce the speed of ID card information verification, even when the image captured by the client does not contain identity
  • the server cannot identify the user ’s ID card information, so the success rate of ID card information verification is reduced. Therefore, existing ID card information verification methods affect user experience.
  • the purpose of this application is to provide an ID card information verification method, device, equipment and computer-readable storage medium, thereby solving the problem of slow server-side identification speed in the existing ID card information verification process, achieving high efficiency and speed The technical effect of ID card information verification.
  • a method for verifying identity card information including the following steps:
  • the client gets the picture to be verified
  • the client performs information identification on the preset area of the picture to be verified, and performs information verification on the identified information to obtain an information verification result;
  • the picture to be verified is sent to the server for information verification.
  • an ID card information verification device which is located in a client terminal and includes:
  • the to-be-verified picture acquisition module is used to obtain the to-be-verified picture
  • the client identification verification module is used to identify the preset area of the picture to be verified, and perform information verification on the identified information to obtain an information verification result;
  • the picture sending module is used to send the picture to be verified to the server for information verification when the information verification result is successful.
  • a computer device including a memory and a processor, wherein the processor is used to perform the following steps:
  • the picture to be verified is sent to the server for information verification.
  • the picture to be verified is sent to the server for information verification.
  • the positive progress effect of this application is that before the client sends the picture to be verified to the server, the client performs preliminary information identification and local identification and verification of the picture to be verified. When the verification result is successful, the determination can be determined The picture to be verified is a valid picture, so as to ensure that the captured ID card picture is a picture of higher quality.
  • the client then sends high-quality pictures to be verified to the server for identification and verification of ID card information, which can ensure that the server can quickly and successfully identify and verify ID card information, which can effectively solve the existing The low quality of the ID card image caused the problem of slow ID card information verification speed.
  • FIG. 1 is a schematic diagram of an optional process of the ID card information verification method according to an embodiment of the present application
  • FIG. 2 is a schematic flowchart of an optional process of identifying information in a preset area of a picture to be verified in the ID card information verification method according to an embodiment of the present application;
  • FIG. 3 is a schematic diagram of an optional program module of the ID card information verification device according to an embodiment of the present application.
  • FIG. 4 is a schematic diagram of an optional program sub-module of a client identification verification module in an ID card information verification device according to an embodiment of the present application
  • FIG. 5 is a schematic diagram of an optional hardware architecture of a computer device according to an embodiment of the present application.
  • the embodiments of the present specification provide an ID card information verification method, device, equipment, and computer-readable storage medium.
  • ID card information verification technologies are that the client captures the ID card image, uploads the captured image to the server, and then the server performs ID card information identification and verification on the image.
  • the server When the quality of the pictures captured by the client is poor, it is difficult for the server to identify the ID information on the poor quality pictures, which will reduce the speed of ID card information verification, even when the image captured by the client does not contain identity
  • verifying information the server cannot identify the user ’s ID card information, so the success rate of ID card information verification is reduced.
  • the ID card pictures to be verified captured by the client can be preliminarily identified and locally verified by the client in advance to ensure that the quality of the ID card pictures sent to the server is high.
  • High-quality ID card pictures are uploaded to the server to verify ID card information, which can effectively solve the problem of slow ID card information verification speed caused by the low quality of the captured ID card pictures.
  • FIG. 1 is a schematic flowchart of an embodiment of a method for verifying ID card information provided in this specification.
  • This specification provides method operation steps as described in the embodiments or flowcharts. However, routine or non-creative labor may include more or Fewer operating steps.
  • the order of the steps listed in the embodiment is only one way among the order of execution of many steps, and does not represent a unique order of execution.
  • the actual system or client product When executed, it may be executed sequentially or in parallel according to the method shown in the embodiments or the drawings (for example, a parallel processor or a multi-threaded processing environment).
  • the method may include the following steps S102 to S106.
  • S102 The client obtains the picture to be verified.
  • the picture to be verified may be an ID card picture.
  • the picture to be verified obtained by the client may be an ID card picture taken by a camera device.
  • the picture to be verified may include: a picture containing an avatar, and a picture containing a national emblem.
  • a picture frame may be provided to adapt the picture to be verified to the picture frame.
  • a picture frame containing the outline of the avatar may be provided, and the obtained picture containing the avatar may be adapted to the picture frame.
  • the profile of the avatar in the image may match the profile of the avatar in the picture frame.
  • a picture frame containing the outline of the national emblem can also be provided, and the obtained picture containing the national emblem can be adapted to the picture frame.
  • the outline of the national emblem in the image and the outline of the national emblem in the picture frame may coincide with each other.
  • the size of the picture to be verified can be more standardized, and the identification efficiency of the ID card information can be improved.
  • S104 The client performs information identification on the preset area of the picture to be verified, and performs information verification on the identified information to obtain an information verification result.
  • the client performs information identification on the preset area of the picture to be verified.
  • the preset area may be an area corresponding to ID card information. Specifically, it may include: a name area, a gender area, a clan area, a date of birth area, an address area, an ID number area, an avatar area, a issuing authority area, and / or a certificate validity period area.
  • FIG. 2 is an optional flowchart of the step of identifying information in the preset area of the picture to be verified in the ID card information verification method according to an embodiment of the present application. As shown in FIG. 2, it may specifically include the following steps S1- S3.
  • S1 Use Tesseract to perform font training on the pictures in the preset area of the ID card.
  • the training sample picture may be obtained in advance, the training sample picture may be aggregated, character correction may be performed on the training sample picture, and the corrected training sample picture may be trained to generate a font.
  • the training sample picture is a picture corresponding to the text of the preset area.
  • the training sample picture in the ID number area may be a picture with a bold font, and the text content is a number or letter X;
  • the training sample picture in the birth date area may be a picture with a simplified font and a text content.
  • the training of the corrected training sample image to generate a font may specifically include: generating a character feature file, calculating a character set file, font attribute file, and feature aggregation file according to the training sample image, and generating a font according to the feature aggregation file.
  • S2 Perform image processing on the picture to be verified to obtain a picture of a preset area of the picture to be verified.
  • Image processing may be performed on the picture to be verified to obtain the name area, gender area, clan area, date of birth area, address area, ID number area, avatar area, issuing authority area and / or Or a picture of the area where the certificate is valid.
  • performing image processing on the picture to be verified to obtain a picture of a preset area may include: performing gray-scale processing, binarization processing, corrosion, and contour detection on the picture to be verified in sequence to determine a predetermined Set some pictures of the area.
  • the grayscale processing refers to converting the RGB components of each pixel of the picture into grayscale values so that the image does not contain color information.
  • each connected area in the picture to be verified can be determined, thereby determining the picture of the preset area of the picture to be verified.
  • the image to be verified may be image-processed using a coordinate calculation method to obtain a picture in a preset area. That is, the position of the preset area on the picture to be verified is determined according to the coordinate position of the information such as gender, date of birth, ID number, etc. on the ID card, so as to extract part of the picture in the preset area.
  • the picture to be verified is adapted to the picture frame provided. Specifically, the avatar outline in the picture containing the avatar matches the avatar outline in the picture frame, and / or, the national emblem outline in the picture containing the national emblem coincides with the national emblem outline in the picture frame.
  • the picture to be verified may be cut to adapt the picture to be verified to the provided picture frame.
  • the client may perform information verification on the identified information to obtain a verification result. Specifically, it may be verified whether the identified preset information conforms to the preset information rule of the preset area, and if so, the verification result may be successful. For example, it may be verified whether the information of the identified date of birth area contains information of year, month, and day, whether the information of the address area is a real address, and so on.
  • the verification result is successful, it can be determined that the picture to be verified is a valid picture, that is, the quality of the picture to be verified reaches a quality that information can be identified. Then, the picture to be verified can be sent to the server again.
  • the picture to be verified can be sent to the server for identity information verification. For example, it can be verified whether the identity information filled in by the user matches the identity information in the picture to be verified.
  • the client before the client sends the image to be verified to the server, the client preliminarily performs information preliminary identification and local identification and verification of the image to be verified When the verification result is successful, the picture to be verified can be determined to be a valid picture, thereby ensuring that the captured ID card picture is a picture of higher quality.
  • the client then sends high-quality pictures to be verified to the server for identification and verification of ID card information, which can ensure that the server can quickly and successfully identify and verify ID card information, which can effectively solve the existing The low quality of the ID card image caused the problem of slow ID card information verification speed.
  • FIG. 3 is a schematic diagram of an optional program module of the ID card information verification device according to an embodiment of the present application.
  • the ID card information verification device 300 may include: a to-be-verified picture acquisition module 320, a client identification verification module 340, and a picture sending module 360.
  • the picture-to-be-verified module 320 may be used to obtain a picture to be verified.
  • the client identification verification module 340 may be used to perform information identification on the preset area of the picture to be verified, and perform information verification on the identified information to obtain an information verification result.
  • the picture sending module 360 may be used to send the picture to be verified to the server for information verification when the information verification result is successful.
  • FIG. 4 is a schematic diagram of an optional program sub-module of the client identification verification module in the ID card information verification device according to an embodiment of the present application.
  • the client identification verification module 340 may include: a font training sub-module 342, a preset area picture acquisition sub-module 344, and a preset area information acquisition sub-module 346.
  • the font training sub-module 342 may be used to perform font training on pictures of the preset area of the ID card using Tesseract.
  • the preset area picture obtaining sub-module 344 may be used to perform image processing on the picture to be verified and obtain a picture of the preset area of the picture to be verified.
  • the preset area information acquisition submodule 346 may be used to identify the text information in the partial picture according to the font training result, and the text information in the partial picture is the information of the identified preset area.
  • FIG. 5 is a schematic diagram of an optional hardware architecture of a computer device according to an embodiment of the present application.
  • the computer device may include a processor, internal bus, transmission module, and memory.
  • the memory may include memory and non-volatile memory.
  • the processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it to form a word string recognition device at a logical level.
  • the structure shown in FIG. 5 is merely an illustration, which does not limit the structure of the computer device described above.
  • the computer device may also include more or fewer components than those shown in FIG. 5, for example, it may also include other processing hardware, such as a GPU (Graphics Processing Unit, image processor), or have Show different configurations.
  • this application does not exclude other implementations, such as a logic device or a combination of software and hardware, etc., that is to say, the execution body of the processing process is not limited to each logical unit, but can also be hardware Or logic devices.
  • another aspect of this specification also provides a computer-readable storage medium on which computer instructions are stored, and when the instructions are executed, the steps of the above method are implemented.
  • the processor may include a central processing unit (CPU) or a graphics processor (GPU), and of course, may also include other single-chip computers, logic gate circuits, integrated circuits, etc. with logic processing capabilities, or Appropriate combination.
  • the memory described in the embodiments of the present application may be a memory device for storing information.
  • the device that can save binary data can be a memory; in an integrated circuit, a circuit with a storage function that does not have a physical form can also be a memory, such as RAM, FIFO, etc .; in the system, there is a physical form of storage
  • the device can also be called a memory, etc.
  • the storage can also be implemented in the form of cloud storage. The specific implementation is well limited in this specification.
  • the embodiments of the ID card information verification device, device and computer-readable storage medium provided in this specification are based on the same innovative concept as the method embodiments in this specification. Therefore, the ID card information verification device provided in this specification The embodiments of the device and the computer-readable storage medium can achieve the technical effects of the method embodiments in the description.
  • the improvement of a technology can be clearly distinguished from the improvement of hardware (for example, the improvement of the circuit structure of diodes, transistors, switches, etc.) or the improvement of software (the improvement of the process flow).
  • hardware for example, the improvement of the circuit structure of diodes, transistors, switches, etc.
  • software the improvement of the process flow.
  • the improvement of many methods and processes can be regarded as a direct improvement of the hardware circuit structure.
  • Designers almost get the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that the improvement of a method flow cannot be realized by hardware physical modules.
  • a programmable logic device (Programmable Logic Device, PLD) (such as a field programmable gate array (Field Programmable Gate Array, FPGA)) is such an integrated circuit, and its logic function is determined by the user programming the device.
  • PLD Programmable Logic Device
  • FPGA Field Programmable Gate Array
  • HDL Hardware Description Language
  • ABEL Advanced Boolean Expression
  • AHDL AlteraHardwareDescriptionLanguage
  • Confluence CUPL
  • CornellUniversityProgrammingLanguage HDCal
  • JHDL JavaHardwareDescriptionLanguage
  • Lava Lava
  • Lola MyHDL
  • PALASM RHDL
  • VHDL Very-High-Speed Integrated Circuit Hardware Description
  • the controller may be implemented in any suitable manner, for example, the controller may take the form of a microprocessor or processor and a computer-readable medium storing computer-readable program code (such as software or firmware) executable by the (micro) processor , Logic gates, switches, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable logic controllers and embedded microcontrollers, examples of controllers include but are not limited to the following microcontrollers: ARC625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicon Labs C8051F320, the memory controller can also be implemented as part of the control logic of the memory.
  • the controller may take the form of a microprocessor or processor and a computer-readable medium storing computer-readable program code (such as software or firmware) executable by the (micro) processor , Logic gates, switches, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable logic controllers and embedded microcontrollers, examples of controllers include but are not limited to the
  • controller in addition to implementing the controller in a pure computer-readable program code manner, it is entirely possible to make the controller into logic gates, switches, application specific integrated circuits, programmable logic controllers and embedded by logically programming method steps The same function is realized in the form of a microcontroller or the like. Therefore, such a controller can be regarded as a hardware component, and the devices included therein for realizing various functions can also be regarded as a structure within the hardware component. Or even, the device for realizing various functions can be regarded as both a software module of an implementation method and a structure within a hardware component.
  • the device, module or unit explained in the above embodiments may be specifically implemented by a computer chip or entity, or by a product with a certain function.
  • a typical implementation device is a computer.
  • the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or Any combination of these devices.
  • the embodiments of the present application may be provided as methods, devices, or computer program products. Therefore, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Moreover, the present application may take the form of a computer program product implemented on one or more computer usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer usable program code.
  • computer usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • These computer program instructions may also be stored in a computer readable memory that can guide a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, the instructions The device implements the functions specified in one block or multiple blocks of the flowchart one flow or multiple flows and / or block diagrams.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operating steps are performed on the computer or other programmable device to produce computer-implemented processing, which is executed on the computer or other programmable device
  • the instructions provide steps for implementing the functions specified in one block or multiple blocks of the flowchart one flow or multiple flows and / or block diagrams.
  • the computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.
  • processors CPUs
  • input / output interfaces output interfaces
  • network interfaces network interfaces
  • memory volatile and non-volatile memory
  • the memory may include non-permanent memory, random access memory (RAM) and / or non-volatile memory in computer-readable media, such as read only memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
  • RAM random access memory
  • ROM read only memory
  • flash RAM flash memory
  • Computer-readable media including permanent and non-permanent, removable and non-removable media, can store information by any method or technology.
  • the information may be computer readable instructions, data structures, modules of programs, or other data.
  • Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, read-only compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, Magnetic tape cartridges, magnetic tape magnetic disk storage, graphene storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices. According to the definition in this article, computer-readable media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.
  • program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types.
  • This specification can also be practiced in distributed computing environments in which tasks are performed by remote processing devices connected through a communication network.
  • program modules may be located in local and remote computer storage media including storage devices.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Artificial Intelligence (AREA)
  • Data Mining & Analysis (AREA)
  • Quality & Reliability (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • General Engineering & Computer Science (AREA)
  • Evolutionary Computation (AREA)
  • Evolutionary Biology (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Information Transfer Between Computers (AREA)
  • Image Processing (AREA)

Abstract

本申请公开了一种身份证信息验证方法、装置、设备及计算机可读存储介质,该方法包括:客户端获取待验证图片;所述客户端对所述待验证图片的预设区域进行信息识别,并对识别出的信息进行信息校验;在所述信息校验结果为成功的情况下,将所述待验证图片发送给服务器,以使所述服务器对所述待验证图片进行身份信息识别。通过上述方案解决了由于抓取的身份证图片质量较低引起的身份证信息验证速度慢的问题,达到了提高服务器身份证信息验证成功率,减少识别和验证时间,提升用户体验的技术效果。

Description

身份证信息验证方法、装置、设备及计算机可读存储介质
相关申请的交叉引用
本申请申明享有2018年10月23日递交的申请号为CN 201811237144.3、名称为“身份证信息验证方法、装置、设备及计算机可读存储介质”的中国专利申请的优先权,该中国专利申请的整体内容以参考的方式结合在本申请中。
技术领域
本申请涉及计算机技术领域,具体涉及一种身份证信息验证方法、装置、设备及计算机可读存储介质。
背景技术
随着互联网技术的不断发展,利用信息处理技术可以实现对用户身份证信息的快速识别,从而可以验证用户的身份。具体地,通常是获取用户身份证的图片,再识别出图片中的身份证信息,进而验证身份证信息。
目前,大多数身份证信息验证技术都是由客户端抓取身份证图片,并将抓取到的图片上传至服务器,再由服务器对该图片进行身份证信息识别和校验。当客户端抓取的图片质量较差时,服务器很难识别出较差质量的图片上的身份证信息,那么会降低身份证信息验证的速度,甚至当客户端抓取的图片中不包含身份证信息时,服务器则无法识别出用户的身份证信息,那么就降低了身份证信息验证的成功率。因此,现有的身份证信息验证方法影响用户体验。
针对上述问题,目前尚未提出有效的解决方案。
发明内容
本申请的目的在于提供一种身份证信息验证方法、装置、设备及计算机可读存储介质,进而解决现有的身份证信息验证过程中所存在的服务器端识别速度慢的问题,达到了高效快速进行身份证信息验证的技术效果。
本申请是通过下述技术方案来解决上述技术问题:
根据本申请的一个方面,提供了一种身份证信息验证方法,包括如下步骤:
客户端获取待验证图片;
所述客户端对所述待验证图片的预设区域进行信息识别,并对识别出的信息进行信息校验,得到信息校验结果;
在所述信息校验结果为成功的情况下,将所述待验证图片发送给服务器进行信息验证。
根据本申请的另一个方面,提供了一种身份证信息验证装置,位于客户端中,包括:
待验证图片获取模块,用于获取待验证图片;
客户端识别校验模块,用于对所述待验证图片的预设区域进行信息识别,并对识别出的信息进行信息校验,得到信息校验结果;
图片发送模块,用于在所述信息校验结果为成功的情况下,将所述待验证图片发送给服务器进行信息验证。
根据本申请的又一个方面,提供了一种计算机设备,包括存储器和处理器,其中,所述处理器用于执行如下步骤:
获取待验证图片;
对所述待验证图片的预设区域进行信息识别,并对识别出的信息进行信息校验,得到信息校验结果;
在所述信息校验结果为成功的情况下,将所述待验证图片发送给服务器进行信息验证。
根据本申请的又一个方面,提供了一种计算机可读存储介质,其上存储有计算机指令,所述指令被执行时实现如下步骤:
获取待验证图片;
对所述待验证图片的预设区域进行信息识别,并对识别出的信息进行信息校验,得到信息校验结果;
在所述信息校验结果为成功的情况下,将所述待验证图片发送给服务器进行信息验证。
本申请的积极进步效果在于:客户端在向服务器发送待验证图片之前,客户端预先对待验证图片进行信息初步识别和信息本地识别和校验,当校验结果为成功时,则可以确定所述待验证图片为有效图片,从而可以保证抓取到的身份证图片为质量较高的图片。客户端再将高质量的待校验图片发送到服务器进行身份证信息识别和校验,可以保证服务器可以快速并成功地进行身份证信息识别和校验,从而可以有效解决现有的由于抓取的身份证图片质量较低引起的身份证信息验证速度慢的问题。达到提高服务器身份证信息验证成功率,减少识别和验证时间,提升用户体验的技术效果。
附图说明
为了更清楚地说明本说明书一个或多个实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本说明书中记载的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是根据本申请实施例的身份证信息验证方法的一种可选的流程示意图;
图2是根据本申请实施例的身份证信息验证方法中对待验证图片的预设区域进行信息识别这一步骤的一种可选的流程示意图;
图3是根据本申请实施例的身份证信息验证装置的一种可选的程序模块示意图;
图4是根据本申请实施例的身份证信息验证装置中客户端识别校验模块的一种可选的程序子模块示意图;
图5是根据本申请实施例的计算机设备的一种可选的硬件架构示意图。
具体实施方式
本说明书实施例提供一种身份证信息验证方法、装置、设备及计算机可读存储介质。
为了使本技术领域的人员更好地理解本说明书中的技术方案,下面将结合本说明书实施例中的附图,对本说明书实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本说明书一部分实施例,而不是全部的实施例。基于本说明书中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本说明书保护的范围。
目前,大多数身份证信息验证技术都是由客户端抓取身份证图片,并将抓取到的图片上传至服务器,再由服务器对该图片进行身份证信息识别和校验。当客户端抓取的图片质量较差时,服务器很难识别出较差质量的图片上的身份证信息,那么会降低身份证信息验证的速度,甚至当客户端抓取的图片中不包含身份证信息时,服务器则无法识别出用户的身份证信息,那么就降低了身份证信息验证的成功率。
基于此,本说明书实施例中可以对客户端抓取的待验证的身份证图片,客户端预先进行信息初步识别和本地校验,以保证发送给服务器的身份证图片的质量较高,再将高质量的身份证图片上传到服务器进行身份证信息验证,从而可以有效解决现有的由于抓取的身份证图片质量较低引起的身份证信息验证速度慢的问题。
以下介绍本说明书一种身份证信息验证方法的一种具体实施例。图1是本说明书提供的身份证信息验证方法一种实施例的流程示意图,本说明书提供了如实施例或流程图所述的方法操作步骤,但基于常规或者无创造性的劳动可以包括更多或者更少的操作步骤。实施例中列举的步骤顺序仅仅为众多步骤执行顺序中的一种方式,不代表唯一的执行顺序。在实际中的系统或客户端产品执行时,可以按照实施例或者附图所示的方法顺序执行或者并行执行(例如并行处理器或者多线程处理的环境)。具体的如图1所示,所述方法可以包括以下步骤S102~S106。
S102:客户端获取待验证图片。
所述待验证图片可以是身份证图片。
所述客户端获取的待验证图片可以是利用摄像装置拍摄得到的身份证图片。
所述待验证图片可以包括:包含头像的图片,以及包含国徽的图片。
在一个实施方式中,可以提供图片框以使所述待验证图片与所述图片框相适应。
具体地,可以提供一包含头像轮廓的图片框,所述获取的包含头像的图片可以与该图片框相适应。例如,图像中的头像轮廓与所述图片框中的头像轮廓可以相吻合。
还可以提供一包含国徽轮廓的图片框,所述获取的包含国徽的图片可以与该图片框相适应。例如,图像中的国徽轮廓与所述图片框中的国徽轮廓可以互相吻合。
通过提供图片框,可以使得待验证的图片尺寸更加标准化,可以提高身份证信息的识别效率。
S104:所述客户端对所述待验证图片的预设区域进行信息识别,并对识别出的信息进行信息校验,得到信息校验结果。
所述客户端对所述待验证图片的预设区域进行信息识别。所述预设区域可以是身份证信息对应的区域。具体地,可以包括:姓名区域、性别区域、名族区域、出生日期区域、住址区域、身份证号区域、头像区域、发证机关区域和/或证件有效期区域。
所述对所述待验证图片的预设区域进行信息识别,可以采用Tesseract的ORC引擎来实现。图2是根据本申请实施例的身份证信息验证方法中对待验证图片的预设区域进行信息识别这一步骤的一种可选的流程示意图,如图2所示,具体可以包括以下步骤S1-S3。
S1:利用Tesseract对身份证所述预设区域的图片进行字库训练。
可以预先利用Tesseract对身份证所述预设区域的图片进行字库训练。具体地,可以预先获取训练样本图片,汇总所述训练样本图片,对所述训练样本图片进行字符校正,对校正后的训练样本图片进行训练生成字库。
其中,所述训练样本图片为预设区域文本对应的图片。例如,身份证号区域的训练样本图片可以是字体为黑体、文本内容为数字或字母X的图片;出生日期区域的训练样本图片可以是字体为方正黑体简体、文本内容为数字或文字的图片。
所述对校正后的训练样本图片进行训练生成字库具体可以包括:根据所述训练样本图片生成字符特征文件、计算字符集文件、字体属性文件、特征聚合文件,根据所述特征聚合文件生成字库。
S2:对所述待验证图片进行图像处理,获取所述待验证图片的预设区域的图片。
可以对所述待验证图片进行图像处理,进而获取所述待验证图片中姓名区域、性别区域、名族区域、出生日期区域、住址区域、身份证号区域、头像区域、发证机关区域和/或证件有效期区域的图片。
在一个实施方式中,对所述待验证图片进行图像处理得到预设区域的图片可以包括:对所述待验证图片依次进行灰度化处理、二值化处理、腐蚀和轮廓检测,确定出预设区域的部分图片。
所述灰度化处理是指将图片每个像素的RGB分量转换为灰度值,以使图像不含色彩信息。
通过对图片进行腐蚀,可以将二值化后图片中的黑色块进行放大,那么每个预设区域内的多个文本就可以联通为一个区域。再利用轮廓检测,可以确定出所述待验证图片中的各个联通区域,从而确定所述待验证图片的预设区域的图片。
在另一个实施方式中,可以对所述待验证图片采用坐标计算的方法进行图像处理得到预设区域的图片。即根据性别、出生日期、身份证号等这些信息在身份证上的坐标位置,确定出待验证图片上的预设区域所在的位置,从而截取出预设区域的部分图片。
在本实施方式中,所述待验证图片与提供的图片框相适应。具体地,包含头像的图片中的头像轮廓与所述图片框中的头像轮廓相吻合,和/或,包含国徽的图片中的国徽轮廓与所述图片框中的国徽轮廓相吻合。
当所述待验证图片与所述提供的图片框不相适应时,可以对所述待验证图片进行剪切,以使所述待验证图片与所述提供的图片框相适应。
S3:根据字库训练结果识别所述部分图片中的文本信息,所述部分图片中的文本信息即为识别出的预设区域的信息。
识别出所述待验证图片的预设区域的信息后,所述客户端可以对所述识别出的信息进行信息校验,得到校验结果。具体地,可以校验所述识别出预设的信息是否符合所述预设区域的预设信息规则,若符合,则校验结果可以为成功。例如,可以校验所述识别出的出生日期区域的信息是否包含年月日的信息,所述住址区域的信息是否为真实存在的地址等等。
若校验结果为成功,则可以确定所述待验证图片为有效图片,即,所述待验证图片的质量达到了信息可以被识别出的质量。那么,可以再将该待验证图片发送给服务器。
S106:在所述信息校验结果为成功的情况下,将所述待验证图片发送给服务器进行身份信息验证。
在所述信息校验结果为成功的情况下,可以将所述待验证图片发送给服务器进行身份信息验证。例如,可以验证用户填写的身份信息与所述待验证图片中的身份信息是否吻合。
由此可见,本说明书提供的身份证信息验证方法的一个或多个实施例中,客户端在向服务器发送待验证图片之前,客户端预先对待验证图片进行信息初步识别和信息本地识别和校验,当校验结果为成功时,则可以确定所述待验证图片为有效图片,从而可以保证抓取到的身份证图片为质量较高的图片。客户端再将高质量的待校验图片发送到服务器进行身份证信息识别和校验,可以保证服务器可以快速并成功地进行身份证信息识别和校验, 从而可以有效解决现有的由于抓取的身份证图片质量较低引起的身份证信息验证速度慢的问题。达到提高服务器身份证信息验证成功率,减少识别和验证时间,提升用户体验的技术效果。
本说明书另一方面还提供身份证信息验证装置。图3是根据本申请实施例的身份证信息验证装置的一种可选的程序模块示意图。如图3所示,所述身份证信息验证装置300可以包括:待验证图片获取模块320、客户端识别校验模块340和图片发送模块360。
所述待验证图片获取模块320,可以用于获取待验证图片。
所述客户端识别校验模块340,可以用于对所述待验证图片的预设区域进行信息识别,并对识别出的信息进行信息校验,得到信息校验结果。
所述图片发送模块360,可以用于在所述信息校验结果为成功的情况下,将所述待验证图片发送给服务器进行信息验证。
图4是根据本申请实施例的身份证信息验证装置中客户端识别校验模块的一种可选的程序子模块示意图。如图4所示,所述客户端识别校验模块340可以包括:字库训练子模块342、预设区域图片获取子模块344和预设区域信息获取子模块346。
所述字库训练子模块342,可以用于利用Tesseract对身份证所述预设区域的图片进行字库训练。
所述预设区域图片获取子模块344,可以用于对所述待验证图片进行图像处理并获取所述待验证图片的预设区域的图片。
所述预设区域信息获取子模块346,可以用于根据字库训练结果识别所述部分图片中的文本信息,所述部分图片中的文本信息即为识别出的预设区域的信息。
本说明书实施例提供的上述身份证信息验证方法或装置可以在计算机设备中由处理器执行相应的程序指令来实现,如使用windows操作系统的c++语言在PC端实现,或其他例如使用android、iOS系统程序设计语言在智能终端实现,以及基于量子计算机的处理逻辑实现等。如图5所示,图5是根据本申请实施例的计算机设备的一种可选的硬件架构示意图。在硬件层面,该计算机设备可以包括处理器、内部总线、传输模块和存储器。所述存储器可以包括内存以及非易失性存储器。处理器从非易失性存储器中读取对应的计算机程序到内存中然后运行,在逻辑层面上形成词串识别装置。本领域普通技术人员可以理解,图5所示的结构仅为示意,其并不对上述计算机设备的结构造成限定。例如,所述计算机设备还可包括比图5中所示更多或者更少的组件,例如还可以包括其他的处理硬件,如GPU(Graphics Processing Unit,图像处理器),或者具有与图5所示不同的配置。当然,除了 软件实现方式之外,本申请并不排除其他实现方式,比如逻辑器件抑或软硬件结合的方式等等,也就是说处理流程的执行主体并不限定于各个逻辑单元,也可以是硬件或逻辑器件。
具体的,本说明书另一方面还提供一种计算机可读存储介质,其上存储有计算机指令,所述指令被执行时实现上述方法的步骤。
本说明书实施例中,所述的处理器可以包括中央处理器(CPU)或图形处理器(GPU),当然也可以包括其他的具有逻辑处理能力的单片机、逻辑门电路、集成电路等,或其适当组合。本申请实施例所述的存储器可以是用于保存信息的记忆设备。在数字系统中,能保存二进制数据的设备可以是存储器;在集成电路中,一个没有实物形式的具有存储功能的电路也可以为存储器,如RAM、FIFO等;在系统中,具有实物形式的存储设备也可以叫存储器等。实现的时候,该存储器也可以采用云存储器的方式实现,具体实现方式,本说明书不错限定。
由此可见,本说明书提供的身份证信息验证装置、设备及计算机可读存储介质的实施例与本说明书中的方法实施例是基于同一创新构思,因此,本说明书提供的身份证信息验证装置、设备及计算机可读存储介质的实施例可以实现说明书中方法实施例的技术效果。
上述对本说明书特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可以的或者可能是有利的。
在20世纪90年代,对于一个技术的改进可以很明显地区分是硬件上的改进(例如,对二极管、晶体管、开关等电路结构的改进)还是软件上的改进(对于方法流程的改进)。然而,随着技术的发展,当今的很多方法流程的改进已经可以视为硬件电路结构的直接改进。设计人员几乎都通过将改进的方法流程编程到硬件电路中来得到相应的硬件电路结构。因此,不能说一个方法流程的改进就不能用硬件实体模块来实现。例如,可编程逻辑器件(Programmable Logic Device,PLD)(例如现场可编程门阵列(Field Programmable Gate Array,FPGA))就是这样一种集成电路,其逻辑功能由用户对器件编程来确定。由设计人员自行编程来把一个数字系统“集成”在一片PLD上,而不需要请芯片制造厂商来设计和制作专用的集成电路芯片。而且,如今,取代手工地制作集成电路芯片,这种编程也多半改用“逻辑编译器(logic compiler)”软件来实现,它与程序开发撰写时所用的软件编译器相类似,而要编译之前的原始代码也得用特定的编程语言来撰写,此称之为硬件描述语言 (Hardware Description Language,HDL),而HDL也并非仅有一种,而是有许多种,如ABEL(Advanced Boolean Expression Language)、AHDL(Altera Hardware Description Language)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL(Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(Ruby Hardware Description Language)等,目前最普遍使用的是VHDL(Very-High-Speed Integrated Circuit Hardware Description Language)与Verilog。本领域技术人员也应该清楚,只需要将方法流程用上述几种硬件描述语言稍作逻辑编程并编程到集成电路中,就可以很容易得到实现该逻辑方法流程的硬件电路。
控制器可以按任何适当的方式实现,例如,控制器可以采取例如微处理器或处理器以及存储可由该(微)处理器执行的计算机可读程序代码(例如软件或固件)的计算机可读介质、逻辑门、开关、专用集成电路(Application Specific Integrated Circuit,ASIC)、可编程逻辑控制器和嵌入微控制器的形式,控制器的例子包括但不限于以下微控制器:ARC625D、Atmel AT91SAM、Microchip PIC18F26K20以及Silicone Labs C8051F320,存储器控制器还可以被实现为存储器的控制逻辑的一部分。本领域技术人员也知道,除了以纯计算机可读程序代码方式实现控制器以外,完全可以通过将方法步骤进行逻辑编程来使得控制器以逻辑门、开关、专用集成电路、可编程逻辑控制器和嵌入微控制器等的形式来实现相同功能。因此这种控制器可以被认为是一种硬件部件,而对其内包括的用于实现各种功能的装置也可以视为硬件部件内的结构。或者甚至,可以将用于实现各种功能的装置视为既可以是实现方法的软件模块又可以是硬件部件内的结构。
上述实施例阐明的装置、模块或单元,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。一种典型的实现设备为计算机。具体的,计算机例如可以为个人计算机、膝上型计算机、蜂窝电话、相机电话、智能电话、个人数字助理、媒体播放器、导航设备、电子邮件设备、游戏控制台、平板计算机、可穿戴设备或者这些设备中的任何设备的组合。
为了描述的方便,描述以上装置时以功能分为各种单元分别描述。当然,在实施本说明书时可以把各单元的功能在同一个或多个软件和/或硬件中实现。
本领域内的技术人员应明白,本申请的实施例可提供为方法、装置、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
本申请是参照根据本申请实施例的方法、设备(装置)、和计算机程序产品的流程图和 /或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储、石墨烯存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。
本领域技术人员应明白,本说明书的实施例可提供为方法、装置或计算机程序产品。因此,本说明书可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本说明书可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
本说明书可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块。一般地,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。也可以在分布式计算环境中实践本说明书,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。在分布式计算环境中,程序模块可以位于包括存储设备在内的本地和远程计算机存储介质中。
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置和服务器实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
以上所述仅为本说明书的实施例而已,并不用于限制本说明书。对于本领域技术人员来说,本说明书可以有各种更改和变化。凡在本说明书的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在权利要求范围之内。

Claims (20)

  1. 一种身份证信息验证方法,其特征在于,包括如下步骤:
    客户端获取待验证图片;
    所述客户端对所述待验证图片的预设区域进行信息识别,并对识别出的信息进行信息校验,得到信息校验结果;
    在所述信息校验结果为成功的情况下,将所述待验证图片发送给服务器进行信息验证。
  2. 根据权利要求1所述的方法,其特征在于,所述待验证图片包括:包含头像的图片,以及包含国徽的图片。
  3. 根据权利要求1所述的方法,其特征在于,所述预设区域包括:身份证信息对应的区域,具体包括:姓名区域、性别区域、名族区域、出生日期区域、住址区域、身份证号区域、头像区域、发证机关区域和/或证件有效期区域。
  4. 根据权利要求1所述的方法,其特征在于,对所述待验证图片的预设区域进行信息识别采用Tesseract的ORC引擎来实现,具体包括如下步骤:
    利用Tesseract对身份证所述预设区域的图片进行字库训练;
    对所述待验证图片进行图像处理,获取所述待验证图片的预设区域的图片;
    根据字库训练结果识别所述部分图片中的文本信息,所述部分图片中的文本信息即为识别出的预设区域的信息。
  5. 根据权利要求4所述的方法,其特征在于,所述对所述待验证图片进行图像处理得到预设区域的图片包括:
    对所述待验证图片依次进行灰度化处理、二值化处理、腐蚀和轮廓检测,确定出预设区域的部分图片。
  6. 根据权利要求4所述的方法,其特征在于,所述对所述待验证图片进行图像处理得到预设区域的图片采用坐标计算的方法来实现。
  7. 一种身份证信息验证装置,位于客户端中,其特征在于,包括:
    待验证图片获取模块,用于获取待验证图片;
    客户端识别校验模块,用于对所述待验证图片的预设区域进行信息识别,并对识别出的信息进行信息校验,得到信息校验结果;
    图片发送模块,用于在所述信息校验结果为成功的情况下,将所述待验证图片发送给服务器进行信息验证。
  8. 根据权利要求7所述的装置,其特征在于,所述客户端识别校验模块包括:
    字库训练子模块,用于利用Tesseract对身份证所述预设区域的图片进行字库训练;
    预设区域图片获取子模块,用于对所述待验证图片进行图像处理并获取所述待验证图片的预设区域的图片;
    预设区域信息获取子模块,用于根据字库训练结果识别所述部分图片中的文本信息,所述部分图片中的文本信息即为识别出的预设区域的信息。
  9. 根据权利要求8所述的装置,其特征在于,所述预设区域图片获取子模块具体用于对所述待验证图片依次进行灰度化处理、二值化处理、腐蚀和轮廓检测,确定出预设区域的部分图片。
  10. 根据权利要求8所述的装置,其特征在于,所述对所述待验证图片进行图像处理得到预设区域的图片采用坐标计算的方法来实现。
  11. 一种计算机设备,包括存储器和处理器,其中,所述处理器用于执行如下步骤:
    获取待验证图片;
    对所述待验证图片的预设区域进行信息识别,并对识别出的信息进行信息校验,得到信息校验结果;
    在所述信息校验结果为成功的情况下,将所述待验证图片发送给服务器进行信息验证。
  12. 根据权利要求11所述的计算机设备,其特征在于,所述待验证图片包括:包含头像的图片,以及包含国徽的图片。
  13. 根据权利要求11所述的计算机设备,其特征在于,所述预设区域包括:身份 证信息对应的区域,具体包括:姓名区域、性别区域、名族区域、出生日期区域、住址区域、身份证号区域、头像区域、发证机关区域和/或证件有效期区域。
  14. 根据权利要求11所述的计算机设备,其特征在于,对所述待验证图片的预设区域进行信息识别采用Tesseract的ORC引擎来实现,具体包括如下步骤:
    利用Tesseract对身份证所述预设区域的图片进行字库训练;
    对所述待验证图片进行图像处理,获取所述待验证图片的预设区域的图片;
    根据字库训练结果识别所述部分图片中的文本信息,所述部分图片中的文本信息即为识别出的预设区域的信息。
  15. 根据权利要求14所述的计算机设备,其特征在于,所述对所述待验证图片进行图像处理得到预设区域的图片包括:
    对所述待验证图片依次进行灰度化处理、二值化处理、腐蚀和轮廓检测,确定出预设区域的部分图片。
  16. 根据权利要求14所述的计算机设备,其特征在于,所述对所述待验证图片进行图像处理得到预设区域的图片采用坐标计算的方法来实现。
  17. 一种计算机可读存储介质,其上存储有计算机指令,其特征在于,所述指令被执行时实现如下步骤:
    获取待验证图片;
    对所述待验证图片的预设区域进行信息识别,并对识别出的信息进行信息校验,得到信息校验结果;
    在所述信息校验结果为成功的情况下,将所述待验证图片发送给服务器进行信息验证。
  18. 根据权利要求17所述的计算机可读存储介质,其特征在于,对所述待验证图片的预设区域进行信息识别采用Tesseract的ORC引擎来实现,具体包括如下步骤:
    利用Tesseract对身份证所述预设区域的图片进行字库训练;
    对所述待验证图片进行图像处理,获取所述待验证图片的预设区域的图片;
    根据字库训练结果识别所述部分图片中的文本信息,所述部分图片中的文本信息即为识别出的预设区域的信息。
  19. 根据权利要求18所述的计算机可读存储介质,其特征在于,所述对所述待验证图片进行图像处理得到预设区域的图片包括:
    对所述待验证图片依次进行灰度化处理、二值化处理、腐蚀和轮廓检测,确定出预设区域的部分图片。
  20. 根据权利要求18所述的计算机可读存储介质,其特征在于,所述对所述待验证图片进行图像处理得到预设区域的图片采用坐标计算的方法来实现。
PCT/CN2019/070288 2018-10-23 2019-01-03 身份证信息验证方法、装置、设备及计算机可读存储介质 WO2020082610A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811237144.3A CN109635628A (zh) 2018-10-23 2018-10-23 身份证信息验证方法、装置、设备及计算机可读存储介质
CN201811237144.3 2018-10-23

Publications (1)

Publication Number Publication Date
WO2020082610A1 true WO2020082610A1 (zh) 2020-04-30

Family

ID=66066593

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/070288 WO2020082610A1 (zh) 2018-10-23 2019-01-03 身份证信息验证方法、装置、设备及计算机可读存储介质

Country Status (2)

Country Link
CN (1) CN109635628A (zh)
WO (1) WO2020082610A1 (zh)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111783527A (zh) * 2020-05-21 2020-10-16 深圳英飞拓智能技术有限公司 一种基于额温检测的身份识别方法、装置及存储介质
CN112232336A (zh) * 2020-09-02 2021-01-15 深圳前海微众银行股份有限公司 一种证件识别方法、装置、设备及存储介质
CN113378549A (zh) * 2021-06-29 2021-09-10 平安普惠企业管理有限公司 单证校验方法、装置、计算机设备及存储介质
CN113656842A (zh) * 2021-08-10 2021-11-16 支付宝(杭州)信息技术有限公司 一种数据验证方法、装置及设备
CN113761496A (zh) * 2021-10-21 2021-12-07 支付宝(杭州)信息技术有限公司 一种基于区块链的身份校验方法及装置和电子设备
CN114089691A (zh) * 2021-11-24 2022-02-25 歌尔股份有限公司 机加工信息交互验证方法、电子设备及可读存储介质
CN116958135A (zh) * 2023-09-18 2023-10-27 支付宝(杭州)信息技术有限公司 纹理检测处理方法及装置

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110414517B (zh) * 2019-04-18 2023-04-07 河北神玥软件科技股份有限公司 一种用于配合拍照场景的快速高精度身份证文本识别算法
CN110020640B (zh) * 2019-04-19 2021-08-24 厦门商集网络科技有限责任公司 一种纠正身份证信息的方法及终端
CN110415183A (zh) * 2019-06-18 2019-11-05 平安科技(深圳)有限公司 图片校正方法、装置、计算机设备及计算机可读存储介质
CN111064977B (zh) * 2019-12-05 2021-12-03 任子行网络技术股份有限公司 网络综艺节目备案在线监控的方法、系统及可读存储介质
CN113449673A (zh) * 2021-07-09 2021-09-28 中国银行股份有限公司 一种证件识别核实方法和装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202696733U (zh) * 2012-05-18 2013-01-23 王金浪 一种数据处理器
US20140105452A1 (en) * 2011-10-25 2014-04-17 David Lowell Bowne Sorting / scanning system camera upgrade apparatus with backwards compatibility
CN106407968A (zh) * 2016-08-25 2017-02-15 深圳市启明星电子商务有限公司 一种跨境电商快速身份识别方法及其识别系统
CN107766430A (zh) * 2017-09-18 2018-03-06 北京春鸿科技有限公司 一种文件搜索方法及系统

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103679436B (zh) * 2013-12-17 2018-08-14 重庆邮电大学 一种基于生物信息识别的电子合同保全系统和方法
CN106886774A (zh) * 2015-12-16 2017-06-23 腾讯科技(深圳)有限公司 识别身份证信息的方法和装置
CN108427911B (zh) * 2018-01-30 2020-06-23 阿里巴巴集团控股有限公司 一种身份验证方法、系统、装置及设备
CN108513280B (zh) * 2018-04-08 2019-08-02 远特(北京)通信技术有限公司 基于iccid信息实现sim卡归属渠道、开卡的方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140105452A1 (en) * 2011-10-25 2014-04-17 David Lowell Bowne Sorting / scanning system camera upgrade apparatus with backwards compatibility
CN202696733U (zh) * 2012-05-18 2013-01-23 王金浪 一种数据处理器
CN106407968A (zh) * 2016-08-25 2017-02-15 深圳市启明星电子商务有限公司 一种跨境电商快速身份识别方法及其识别系统
CN107766430A (zh) * 2017-09-18 2018-03-06 北京春鸿科技有限公司 一种文件搜索方法及系统

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111783527A (zh) * 2020-05-21 2020-10-16 深圳英飞拓智能技术有限公司 一种基于额温检测的身份识别方法、装置及存储介质
CN112232336A (zh) * 2020-09-02 2021-01-15 深圳前海微众银行股份有限公司 一种证件识别方法、装置、设备及存储介质
CN113378549A (zh) * 2021-06-29 2021-09-10 平安普惠企业管理有限公司 单证校验方法、装置、计算机设备及存储介质
CN113656842A (zh) * 2021-08-10 2021-11-16 支付宝(杭州)信息技术有限公司 一种数据验证方法、装置及设备
CN113656842B (zh) * 2021-08-10 2024-02-02 支付宝(杭州)信息技术有限公司 一种数据验证方法、装置及设备
CN113761496A (zh) * 2021-10-21 2021-12-07 支付宝(杭州)信息技术有限公司 一种基于区块链的身份校验方法及装置和电子设备
CN113761496B (zh) * 2021-10-21 2024-04-09 支付宝(杭州)信息技术有限公司 一种基于区块链的身份校验方法及装置和电子设备
CN114089691A (zh) * 2021-11-24 2022-02-25 歌尔股份有限公司 机加工信息交互验证方法、电子设备及可读存储介质
CN114089691B (zh) * 2021-11-24 2023-11-07 歌尔股份有限公司 机加工信息交互验证方法、电子设备及可读存储介质
CN116958135A (zh) * 2023-09-18 2023-10-27 支付宝(杭州)信息技术有限公司 纹理检测处理方法及装置
CN116958135B (zh) * 2023-09-18 2024-03-08 支付宝(杭州)信息技术有限公司 纹理检测处理方法及装置

Also Published As

Publication number Publication date
CN109635628A (zh) 2019-04-16

Similar Documents

Publication Publication Date Title
WO2020082610A1 (zh) 身份证信息验证方法、装置、设备及计算机可读存储介质
US11151363B2 (en) Expression recognition method, apparatus, electronic device, and storage medium
WO2018010657A1 (zh) 结构化文本检测方法和系统、计算设备
TWI704527B (zh) 車輛損傷識別的處理方法、處理裝置、處理設備、客戶端裝置及處理系統
WO2018121777A1 (zh) 人脸检测方法、装置和电子设备
WO2019029486A1 (zh) 人脸图像处理方法、装置和电子设备
TWI715814B (zh) 圖像生成方法及其設備
CN108491812B (zh) 人脸识别模型的生成方法和装置
US20150294184A1 (en) Pattern recognition based on information integration
WO2022227218A1 (zh) 药名识别方法、装置、计算机设备和存储介质
WO2019080702A1 (zh) 图像处理方法和装置
TW201947455A (zh) 車輛損傷識別的處理方法、處理設備、客戶端及伺服器
JP5832656B2 (ja) 画像中のテキストの検出を容易にする方法及び装置
JP2023526899A (ja) 画像修復モデルを生成するための方法、デバイス、媒体及びプログラム製品
CN106250755B (zh) 用于生成验证码的方法及装置
CN110414522A (zh) 一种字符识别方法及装置
CN114419621A (zh) 处理含有文字的图像的方法及装置
US10631050B2 (en) Determining and correlating visual context on a user device with user behavior using digital content on the user device
CN109657127A (zh) 一种答案获取方法、装置、服务器及存储介质
CN113537187A (zh) 文本识别方法、装置、电子设备及可读存储介质
CN109034117B (zh) 一种视频提取方法及装置
WO2023109086A1 (zh) 文字识别方法、装置、设备及存储介质
CN112102145A (zh) 图像处理方法及装置
CN111260756A (zh) 用于发送信息的方法和装置
CN115017922A (zh) 图片翻译的方法、装置、电子设备及可读存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19875357

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS (EPO FORM 1205A DATED 31.08.2021)

122 Ep: pct application non-entry in european phase

Ref document number: 19875357

Country of ref document: EP

Kind code of ref document: A1