[go: up one dir, main page]

CN118196856B - Social security identification method and device based on public service convenience registration - Google Patents

Social security identification method and device based on public service convenience registration Download PDF

Info

Publication number
CN118196856B
CN118196856B CN202410286441.6A CN202410286441A CN118196856B CN 118196856 B CN118196856 B CN 118196856B CN 202410286441 A CN202410286441 A CN 202410286441A CN 118196856 B CN118196856 B CN 118196856B
Authority
CN
China
Prior art keywords
social security
image
license
user
security card
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202410286441.6A
Other languages
Chinese (zh)
Other versions
CN118196856A (en
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.)
Guangzhou Tecsun Intelligent Information Technology Co ltd
Original Assignee
Guangzhou Tecsun Intelligent 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 Guangzhou Tecsun Intelligent Information Technology Co ltd filed Critical Guangzhou Tecsun Intelligent Information Technology Co ltd
Priority to CN202410286441.6A priority Critical patent/CN118196856B/en
Publication of CN118196856A publication Critical patent/CN118196856A/en
Application granted granted Critical
Publication of CN118196856B publication Critical patent/CN118196856B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/26Government or public services
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/74Image or video pattern matching; Proximity measures in feature spaces
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/74Image or video pattern matching; Proximity measures in feature spaces
    • G06V10/761Proximity, similarity or dissimilarity measures
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • G06V30/14Image acquisition

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Business, Economics & Management (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • Tourism & Hospitality (AREA)
  • Software Systems (AREA)
  • Medical Informatics (AREA)
  • Evolutionary Computation (AREA)
  • Databases & Information Systems (AREA)
  • Artificial Intelligence (AREA)
  • Human Resources & Organizations (AREA)
  • Economics (AREA)
  • Educational Administration (AREA)
  • Strategic Management (AREA)
  • Marketing (AREA)
  • General Business, Economics & Management (AREA)
  • Primary Health Care (AREA)
  • Development Economics (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • Human Computer Interaction (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

本发明涉及一种基于公共服务便民登记的社保身份识别方法,包括以下:获取用户的预约请求及其关联的身份验证内容;获取所述身份验证内容所对应的用户的身份识别信息;当所述身份识别信息与所述身份验证内容相匹配,通过预设的规则获取用户的社保卡证照信息;基于所述社保卡证照信息得到社保卡证照典型图像;对所述社保卡证照典型图像进行识别得到用户的社保身份信息;将用户的所述社保身份信息进行录入并生成办理凭证;将所述办理凭证反馈给用户。本发明建立从预约到办理完成的整个自动化过程,能够为用户带来舒适便捷的办理体验,另外提高了证照识别精度,进而提高用户的办理体验,保障本产品的推广与普及。

The present invention relates to a social security identity recognition method based on public service convenience registration, including the following: obtaining a user's reservation request and its associated identity verification content; obtaining the user's identity recognition information corresponding to the identity verification content; when the identity recognition information matches the identity verification content, obtaining the user's social security card license information through preset rules; obtaining a typical image of the social security card license based on the social security card license information; recognizing the typical image of the social security card license to obtain the user's social security identity information; entering the user's social security identity information and generating a handling voucher; and feeding back the handling voucher to the user. The present invention establishes an entire automated process from reservation to completion of handling, which can bring users a comfortable and convenient handling experience, and also improves the license recognition accuracy, thereby improving the user's handling experience and ensuring the promotion and popularization of this product.

Description

一种基于公共服务便民登记的社保身份识别方法及装置A social security identity recognition method and device based on public service convenience registration

技术领域Technical Field

本发明涉及证照识别相关技术领域,尤其涉及一种基于公共服务便民登记的社保身份识别方法及装置。The present invention relates to the technical field related to certificate recognition, and in particular to a social security identity recognition method and device based on public service convenience registration.

背景技术Background Art

在进行公共服务便民登记时通常有现场登记以及线上登记两种方式,这两种方式均需要获取用户的社保身份信息。There are usually two ways to register for public services: on-site registration and online registration. Both methods require obtaining the user's social security identity information.

在获取用户的社保身份信息时,最原始的方式是进行人工手动读取与填写,这种方式非常繁琐耗时费力,尤其是在遇到登记高峰期时,经常遭到用户的投诉,之后随着人工智能的兴起出现了以摄像头获取社保卡图像的方式进而进行识别自动得到用户的社保身份信息的方法,这种方式能够很好地解决人工手动读取与填写的弊端,但是在获取社保卡图像的过程中常常会因为环境因素干扰亦或是社保卡本身的折损等问题而导致获取的社保卡图像质量不佳,进而使后续的识别失败,另外现有的识别登记流程也不够完善,仅仅聚焦于识别过程,不能给用户带来优质的使用体验。When obtaining a user's social security identity information, the most primitive method is to manually read and fill it out. This method is very cumbersome, time-consuming and laborious, especially during peak registration periods, and is often complained by users. Later, with the rise of artificial intelligence, a method of using a camera to obtain social security card images and then identify and automatically obtain the user's social security identity information has emerged. This method can well solve the drawbacks of manual reading and filling out, but in the process of obtaining the social security card image, the quality of the obtained social security card image is often poor due to interference from environmental factors or damage to the social security card itself, which leads to subsequent recognition failure. In addition, the existing recognition and registration process is not perfect enough. It only focuses on the recognition process and cannot provide users with a high-quality user experience.

发明内容Summary of the invention

本发明的目的是为了至少解决现有技术的不足之一,提供一种基于公共服务便民登记的社保身份识别方法。The purpose of the present invention is to solve at least one of the deficiencies of the prior art and to provide a social security identity recognition method based on public service convenience registration.

为了实现上述目的,本发明采用以下的技术方案:In order to achieve the above object, the present invention adopts the following technical solutions:

具体的,提出一种基于公共服务便民登记的社保身份识别方法,包括以下:Specifically, a social security identity recognition method based on public service convenience registration is proposed, including the following:

获取用户的预约请求及其关联的身份验证内容;Get the user's reservation request and its associated authentication content;

获取所述身份验证内容所对应的用户的身份识别信息;Obtaining the identity information of the user corresponding to the identity verification content;

当所述身份识别信息与所述身份验证内容相匹配,通过预设的规则获取用户的社保卡证照信息;When the identity recognition information matches the identity verification content, the user's social security card information is obtained according to preset rules;

基于所述社保卡证照信息得到社保卡证照典型图像;Obtaining a typical image of the social security card based on the social security card information;

对所述社保卡证照典型图像进行识别得到用户的社保身份信息;Recognize the typical image of the social security card to obtain the user's social security identity information;

将用户的所述社保身份信息进行录入并生成办理凭证;Enter the user's social security identity information and generate a processing voucher;

将所述办理凭证反馈给用户。Feedback the handling certificate to the user.

进一步,具体的,所述身份验证内容为用户的预存人脸图像,相对应的所述身份识别信息为用户的实时人脸图像,若用户的实时人脸图像与用户的预存人脸图像通过人脸识别则判断此时为相匹配。Further, specifically, the identity verification content is a pre-stored facial image of the user, and the corresponding identity recognition information is a real-time facial image of the user. If the real-time facial image of the user and the pre-stored facial image of the user are recognized through facial recognition, they are judged to be a match at this time.

进一步,具体的,通过预设的规则获取用户的社保卡证照信息,包括,Further, specifically, the user's social security card information is obtained through preset rules, including:

于预设时间范围内,获取用户的连续帧社保卡证照图像得到用户的社保卡证照信息。Within a preset time range, continuous frames of social security card images of the user are obtained to obtain the social security card information of the user.

进一步,具体的,基于所述社保卡证照信息得到社保卡证照典型图像,包括,Further, specifically, obtaining a typical image of a social security card based on the social security card information includes:

对于连续帧社保卡证照图像,将当前帧社保卡证照图像与前一帧社保卡证照图像进行相似度计算,将相似度低于第一阈值的当前帧社保卡证照图像进行剔除,最终得到剩余社保卡证照图像序列;For consecutive frames of social security card images, similarity calculation is performed between the current frame social security card image and the previous frame social security card image, and the current frame social security card image with a similarity lower than a first threshold is eliminated, and finally a sequence of remaining social security card images is obtained;

另外约定,当存在当前帧社保卡证照图像的前一帧社保卡证照图像被剔除的情况时,以被剔除的社保卡证照图像的前一帧社保卡证照图像作为当前帧社保卡证照图像的前一帧社保卡证照图像进行相似度计算;In addition, it is agreed that when the previous social security card image of the current social security card image is removed, the previous social security card image of the removed social security card image is used as the previous social security card image of the current social security card image for similarity calculation;

假定剩余社保卡证照图像序列共包括m张社保卡证照图像,第j张社保卡证照图像的图像矩阵为Bj(j),其序列号标记为j,定义图像矩阵Bj(j)中第wj行第dj列的像素点的像素值为Bj(j,wj,dj);Assume that the remaining social security card image sequence includes m social security card images, the image matrix of the j-th social security card image is Bj(j), and its serial number is j. Define the pixel value of the pixel point in the wj-th row and the dj-th column in the image matrix Bj(j) as Bj(j, wj, dj);

计算任意像素点Bj(j,wj,dj)基于其邻域像素点的清晰趋势度clear(j,wj,dj),相关计算式如下,Calculate the clear trend of any pixel point Bj(j, wj, dj) based on its neighborhood pixels, clear(j, wj, dj), the relevant calculation formula is as follows:

其中max(j,wj,dj)为Bj(j,wj,dj)邻域像素点的最大值,avg(j,wj,dj)以及min(j,wj,dj)分别为Bj(j,wj,dj)邻域像素点的平均值以及最小值;Where max(j, wj, dj) is the maximum value of the pixels in the neighborhood of Bj(j, wj, dj), avg(j, wj, dj) and min(j, wj, dj) are the average value and minimum value of the pixels in the neighborhood of Bj(j, wj, dj) respectively;

基于清晰趋势度找寻出剩余社保卡证照图像序列中所有图像的清晰表示区域;Based on the clarity trend, find the clear representation area of all images in the remaining social security card image sequence;

通过计算m张社保卡证照图像于相同位置的像素点的平均像素值,并以每个不同位置的平均像素值共同构建初建图像;By calculating the average pixel value of the pixels at the same position of m social security card images, and constructing the initial image with the average pixel value of each different position;

将剩余社保卡证照图像序列中所有图像的清晰表示区域所对应的像素点位置替换初建图像中相同的像素点位置得到社保卡证照典型图像。The pixel positions corresponding to the clear representation areas of all images in the remaining social security card image sequence are replaced with the same pixel positions in the initial image to obtain a typical social security card image.

进一步,具体的,基于清晰趋势度找寻出剩余社保卡证照图像序列中所有图像的清晰表示区域,包括,Further, specifically, based on the clarity trend, the clear representation areas of all images in the remaining social security card image sequence are found, including:

当图像的序列号为1时,遍历图像矩阵B1(1),从中挑选出清晰趋势度数值最大以及第二大的两个像素点,连接这两个像素点得到线段zx(1),之后在B1(1)中挑选出除线段zx(1)以外的清晰趋势度最大的像素点,将线段zx(1)的两个端点分别与在B1(1)中挑选出的除线段lin(1)以外的清晰趋势度最大的像素点连接得到B1(1)的清晰表示区域;When the sequence number of the image is 1, the image matrix B1(1) is traversed to select the two pixels with the largest and second largest clarity trend values, and the two pixels are connected to obtain the line segment zx(1). Then, the pixel with the largest clarity trend other than the line segment zx(1) is selected in B1(1), and the two end points of the line segment zx(1) are respectively connected to the pixel with the largest clarity trend other than the line segment lin(1) selected in B1(1) to obtain the clear representation area of B1(1);

当图像的序列号不为1时,假定其图像矩阵为Bj(j),计算Bj-1(j-1)的清晰表示区域中像素点的像素平均值avg(j-1),遍历图像矩阵Bj(j),从中挑选出清晰趋势度大于avg(j-1)的像素点,再挑选出其中的两个随机像素点,连接两个所述随机像素点得到线段zx(j),之后在Bj(j)中挑选出除线段zx(j)以外的清晰趋势度最大的像素点,将线段zx(j)的两个端点分别与在Bj(j)中挑选出除线段zx(j)以外的清晰趋势度最大的像素点连接得到Bj(j)的清晰表示区域。When the sequence number of the image is not 1, assume that its image matrix is Bj(j), calculate the pixel average value avg(j-1) of the pixel points in the clear representation area of Bj-1(j-1), traverse the image matrix Bj(j), select the pixel points with a clarity trend greater than avg(j-1), and then select two random pixel points from them, connect the two random pixel points to obtain a line segment zx(j), then select the pixel point with the largest clarity trend other than the line segment zx(j) in Bj(j), and connect the two endpoints of the line segment zx(j) to the pixel point with the largest clarity trend other than the line segment zx(j) selected in Bj(j) to obtain the clear representation area of Bj(j).

进一步,具体的,所述办理凭证包括办理编号、预约时间以及处理时间的信息。Furthermore, specifically, the processing voucher includes information on the processing number, appointment time, and processing time.

进一步,具体的,通过计算巴氏距离以基于直方图的方式将当前帧社保卡证照图像与前一帧社保卡证照图像进行相似度计算。Further, specifically, the similarity between the current frame social security card image and the previous frame social security card image is calculated by calculating the Bhattacharyya distance in a histogram-based manner.

进一步,对所述社保卡证照典型图像进行识别得到用户的社保身份信息,包括,Furthermore, the typical image of the social security card is identified to obtain the user's social security identity information, including:

通过内置的OCR识别算法以及人像识别算法对社保卡证照典型图像进行识别得到OCR识别内容以及人像识别内容即用户的社保身份信息。The built-in OCR recognition algorithm and portrait recognition algorithm are used to recognize typical images of social security cards to obtain OCR recognition content and portrait recognition content, namely the user's social security identity information.

本发明还提出一种基于公共服务便民登记的社保身份识别装置,包括,The present invention also proposes a social security identity recognition device based on public service convenience registration, comprising:

预约请求获取模块,用于获取用户的预约请求及其关联的身份验证内容;The reservation request acquisition module is used to obtain the user's reservation request and its associated identity authentication content;

身份识别信息获取模块,用于获取所述身份验证内容所对应的用户的身份识别信息;An identity information acquisition module, used to acquire the identity information of the user corresponding to the identity authentication content;

第一判断模块,用于当所述身份识别信息与所述身份验证内容相匹配,通过预设的规则获取用户的社保卡证照信息;A first judgment module is used to obtain the user's social security card information according to a preset rule when the identity recognition information matches the identity authentication content;

待识别图像获取模块,用于基于所述社保卡证照信息得到社保卡证照典型图像;An image acquisition module to be identified, used to obtain a typical image of a social security card based on the social security card information;

图像识别模块,用于对所述社保卡证照典型图像进行识别得到用户的社保身份信息;An image recognition module is used to recognize the typical image of the social security card to obtain the user's social security identity information;

信息录入及凭证生成模块,用于将用户的所述社保身份信息进行录入并生成办理凭证;An information entry and voucher generation module, used to enter the user's social security identity information and generate a processing voucher;

信息反馈模块,用于将所述办理凭证反馈给用户。The information feedback module is used to feed back the processing certificate to the user.

本发明的有益效果为:The beneficial effects of the present invention are:

本发明提出了一种基于公共服务便民登记的社保身份识别方法,建立从预约到办理完成的整个自动化过程,能够为用户带来舒适便捷的办理体验,另外在进行社保身份信息识别时,设计了社保卡证照典型图像的构建方法,能够在源头保证图像质量高,再通过成熟的OCR与人像识别算法进行用户的社保身份信息的识别,提高识别精度,进而提高用户的办理体验,保障本产品的推广与普及。The present invention proposes a social security identity recognition method based on public service convenience registration, establishes the entire automated process from appointment to completion, and can bring users a comfortable and convenient processing experience. In addition, when performing social security identity information recognition, a method for constructing typical images of social security card certificates is designed, which can ensure high image quality at the source, and then use mature OCR and portrait recognition algorithms to recognize the user's social security identity information, improve recognition accuracy, and then improve the user's processing experience, thereby ensuring the promotion and popularization of this product.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

通过对结合附图所示出的实施方式进行详细说明,本公开的上述以及其他特征将更加明显,本公开附图中相同的参考标号表示相同或相似的元素,显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图,在附图中:The above and other features of the present disclosure will become more obvious by describing in detail the embodiments shown in the accompanying drawings. The same reference numerals in the accompanying drawings of the present disclosure represent the same or similar elements. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure. For those skilled in the art, other accompanying drawings can be obtained based on these accompanying drawings without creative work. In the accompanying drawings:

图1所示为本发明一种基于公共服务便民登记的社保身份识别方法的流程图。FIG1 is a flow chart of a social security identity recognition method based on public service convenience registration according to the present invention.

具体实施方式DETAILED DESCRIPTION

以下将结合实施例和附图对本发明的构思、具体结构及产生的技术效果进行清楚、完整的描述,以充分地理解本发明的目的、方案和效果。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。附图中各处使用的相同的附图标记指示相同或相似的部分。The following will be combined with the embodiments and drawings to clearly and completely describe the concept, specific structure and technical effects of the present invention, so as to fully understand the purpose, scheme and effect of the present invention. It should be noted that the embodiments in this application and the features in the embodiments can be combined with each other without conflict. The same reference numerals used throughout the drawings indicate the same or similar parts.

实施例1,参照图1,本发明提出一种基于公共服务便民登记的社保身份识别方法,包括以下:Embodiment 1, referring to FIG. 1 , the present invention proposes a social security identity recognition method based on public service convenience registration, comprising the following:

步骤110、获取用户的预约请求及其关联的身份验证内容;Step 110: Obtain the user's reservation request and its associated identity verification content;

步骤120、获取所述身份验证内容所对应的用户的身份识别信息;Step 120: Obtain the user identity information corresponding to the identity verification content;

步骤130、当所述身份识别信息与所述身份验证内容相匹配,通过预设的规则获取用户的社保卡证照信息;Step 130: When the identity recognition information matches the identity verification content, the user's social security card information is obtained according to a preset rule;

步骤140、基于所述社保卡证照信息得到社保卡证照典型图像;Step 140: obtaining a typical image of a social security card based on the social security card information;

步骤150、对所述社保卡证照典型图像进行识别得到用户的社保身份信息;Step 150: Recognize the typical image of the social security card to obtain the user's social security identity information;

步骤160、将用户的所述社保身份信息进行录入并生成办理凭证;Step 160: Enter the user's social security identity information and generate a processing certificate;

步骤170、将所述办理凭证反馈给用户。Step 170: Feedback the processing certificate to the user.

在本实施例1中,建立从预约到办理完成的整个自动化过程,能够为用户带来舒适便捷的办理体验,另外在进行社保身份信息识别时,设计了社保卡证照典型图像的构建方法,能够在源头保证图像质量高,再通过成熟的OCR与人像识别算法进行用户的社保身份信息的识别,提高识别精度,进而提高用户的办理体验,保障本产品的推广与普及。In this embodiment 1, the entire automated process from appointment to completion is established, which can bring users a comfortable and convenient processing experience. In addition, when performing social security identity information recognition, a method for constructing typical images of social security card certificates is designed, which can ensure high image quality at the source, and then use mature OCR and portrait recognition algorithms to recognize the user's social security identity information, improve recognition accuracy, and then improve the user's processing experience, thereby ensuring the promotion and popularization of this product.

作为本发明的优选实施方式,具体的,所述身份验证内容为用户的预存人脸图像,相对应的所述身份识别信息为用户的实时人脸图像,若用户的实时人脸图像与用户的预存人脸图像通过人脸识别则判断此时为相匹配。As a preferred embodiment of the present invention, specifically, the identity authentication content is a pre-stored facial image of the user, and the corresponding identity recognition information is a real-time facial image of the user. If the real-time facial image of the user and the pre-stored facial image of the user pass facial recognition, they are judged to be a match at this time.

在本优选实施方式中,考虑到人脸识别是目前成熟可靠的验证方式,故而选用人脸图像进行用户的身份信息确定,当然通过声纹、指纹等方式进行身份确定也是可以的。In this preferred embodiment, considering that face recognition is currently a mature and reliable verification method, face images are selected to determine the user's identity information. Of course, identity determination through voiceprints, fingerprints, etc. is also possible.

作为本发明的优选实施方式,具体的,通过预设的规则获取用户的社保卡证照信息,包括,As a preferred embodiment of the present invention, specifically, obtaining the user's social security card information through preset rules includes:

于预设时间范围内,获取用户的连续帧社保卡证照图像得到用户的社保卡证照信息。Within a preset time range, continuous frames of social security card images of the user are obtained to obtain the social security card information of the user.

具体的,基于所述社保卡证照信息得到社保卡证照典型图像,包括,Specifically, obtaining a typical image of a social security card based on the social security card information includes:

对于连续帧社保卡证照图像,将当前帧社保卡证照图像与前一帧社保卡证照图像进行相似度计算,将相似度低于第一阈值的当前帧社保卡证照图像进行剔除,最终得到剩余社保卡证照图像序列;For consecutive frames of social security card images, similarity calculation is performed between the current frame social security card image and the previous frame social security card image, and the current frame social security card image with a similarity lower than a first threshold is eliminated, and finally a sequence of remaining social security card images is obtained;

另外约定,当存在当前帧社保卡证照图像的前一帧社保卡证照图像被剔除的情况时,以被剔除的社保卡证照图像的前一帧社保卡证照图像作为当前帧社保卡证照图像的前一帧社保卡证照图像进行相似度计算,并以此类推;In addition, it is agreed that when the social security card image of the previous frame is removed, the social security card image of the previous frame of the removed social security card image is used as the social security card image of the previous frame of the current social security card image for similarity calculation, and so on;

假定剩余社保卡证照图像序列共包括m张社保卡证照图像,第j张社保卡证照图像的图像矩阵为Bj(j),其序列号标记为j,定义图像矩阵Bj(j)中第wj行第dj列的像素点的像素值为Bj(j,wj,dj);Assume that the remaining social security card image sequence includes m social security card images, the image matrix of the j-th social security card image is Bj(j), and its serial number is j. Define the pixel value of the pixel point in the wj-th row and the dj-th column in the image matrix Bj(j) as Bj(j, wj, dj);

计算任意像素点Bj(j,wj,dj)基于其邻域像素点的清晰趋势度clear(j,wj,dj),相关计算式如下,Calculate the clear trend of any pixel point Bj(j, wj, dj) based on its neighborhood pixels, clear(j, wj, dj), the relevant calculation formula is as follows:

其中max(j,wj,dj)为Bj(j,wj,dj)邻域像素点的最大值,avg(j,wj,dj)以及min(j,wj,dj)分别为Bj(j,wj,dj)邻域像素点的平均值以及最小值,其中的邻域指的是像素点的8邻域;Where max(j, wj, dj) is the maximum value of the pixel in the neighborhood of Bj(j, wj, dj), avg(j, wj, dj) and min(j, wj, dj) are the average and minimum values of the pixel in the neighborhood of Bj(j, wj, dj), respectively. The neighborhood refers to the 8-neighborhood of the pixel.

基于清晰趋势度找寻出剩余社保卡证照图像序列中所有图像的清晰表示区域;Based on the clarity trend, find the clear representation area of all images in the remaining social security card image sequence;

通过计算m张社保卡证照图像于相同位置的像素点的平均像素值,并以每个不同位置的平均像素值共同构建初建图像;By calculating the average pixel value of the pixels at the same position of m social security card images, and constructing the initial image with the average pixel value of each different position;

将剩余社保卡证照图像序列中所有图像的清晰表示区域所对应的像素点位置替换初建图像中相同的像素点位置得到社保卡证照典型图像。The pixel positions corresponding to the clear representation areas of all images in the remaining social security card image sequence are replaced with the same pixel positions in the initial image to obtain a typical social security card image.

在本优选实施方式中,通过计算清晰趋势度的方式找寻出每张社保卡证照图像中的清晰表示区域,相当于将每张图像中的清晰表示区域共同替换以平均像素值构成的初建图像的对应位置,这样得到的剩余社保卡证照图像序列的识别成功率将会非常高,另外考虑到用户在拍摄社保卡证照图像时可能会手抖等误操作导致部分帧图像差异过大,通过相似度识别的方式剔除这些图像,以便后续的处理。In this preferred embodiment, the clear representation area in each social security card certificate image is found by calculating the clarity trend, which is equivalent to replacing the corresponding position of the initial image composed of the average pixel value with the clear representation area in each image. The recognition success rate of the remaining social security card certificate image sequence obtained in this way will be very high. In addition, considering that the user may have hand shaking and other erroneous operations when taking the social security card certificate image, which may cause excessive differences in some frame images, these images are eliminated through similarity recognition for subsequent processing.

作为本发明的优选实施方式,具体的,基于清晰趋势度找寻出剩余社保卡证照图像序列中所有图像的清晰表示区域,包括,As a preferred embodiment of the present invention, specifically, based on the clarity trend, the clear representation area of all images in the remaining social security card image sequence is found, including:

当图像的序列号为1时,遍历图像矩阵B1(1),从中挑选出清晰趋势度数值最大以及第二大的两个像素点,连接这两个像素点得到线段zx(1),之后在B1(1)中挑选出除线段zx(1)以外的清晰趋势度最大的像素点,将线段zx(1)的两个端点分别与在B1(1)中挑选出的除线段lin(1)以外的清晰趋势度最大的像素点连接得到B1(1)的清晰表示区域;When the sequence number of the image is 1, the image matrix B1(1) is traversed to select the two pixels with the largest and second largest clarity trend values, and the two pixels are connected to obtain the line segment zx(1). Then, the pixel with the largest clarity trend other than the line segment zx(1) is selected in B1(1), and the two end points of the line segment zx(1) are respectively connected to the pixel with the largest clarity trend other than the line segment lin(1) selected in B1(1) to obtain the clear representation area of B1(1);

当图像的序列号不为1时,假定其图像矩阵为Bj(j),计算Bj-1(j-1)的清晰表示区域中像素点的像素平均值avg(j-1),遍历图像矩阵Bj(j),从中挑选出清晰趋势度大于avg(j-1)的像素点,再挑选出其中的两个随机像素点,连接两个所述随机像素点得到线段zx(j),之后在Bj(j)中挑选出除线段zx(j)以外的清晰趋势度最大的像素点,将线段zx(j)的两个端点分别与在Bj(j)中挑选出除线段zx(j)以外的清晰趋势度最大的像素点连接得到Bj(j)的清晰表示区域。When the sequence number of the image is not 1, assume that its image matrix is Bj(j), calculate the pixel average value avg(j-1) of the pixel points in the clear representation area of Bj-1(j-1), traverse the image matrix Bj(j), select the pixel points with a clarity trend greater than avg(j-1), and then select two random pixel points from them, connect the two random pixel points to obtain a line segment zx(j), then select the pixel point with the largest clarity trend other than the line segment zx(j) in Bj(j), and connect the two endpoints of the line segment zx(j) to the pixel point with the largest clarity trend other than the line segment zx(j) selected in Bj(j) to obtain the clear representation area of Bj(j).

作为本发明的优选实施方式,具体的,所述办理凭证包括办理编号、预约时间以及处理时间的信息。As a preferred implementation manner of the present invention, specifically, the handling voucher includes information on the handling number, appointment time and processing time.

作为本发明的优选实施方式,具体的,通过计算巴氏距离以基于直方图的方式将当前帧社保卡证照图像与前一帧社保卡证照图像进行相似度计算。As a preferred embodiment of the present invention, specifically, the similarity between the social security card photo image of the current frame and the social security card photo image of the previous frame is calculated by calculating the Bhattacharyya distance in a histogram-based manner.

作为本发明的优选实施方式,对所述社保卡证照典型图像进行识别得到用户的社保身份信息,包括,As a preferred embodiment of the present invention, the social security card typical image is identified to obtain the user's social security identity information, including:

通过内置的OCR识别算法以及人像识别算法对社保卡证照典型图像进行识别得到OCR识别内容以及人像识别内容即用户的社保身份信息。The built-in OCR recognition algorithm and portrait recognition algorithm are used to recognize typical images of social security cards to obtain OCR recognition content and portrait recognition content, namely the user's social security identity information.

其中的OCR识别算法以及人像识别算法均选用市面流行的稳定算法。The OCR recognition algorithm and portrait recognition algorithm are both popular and stable algorithms on the market.

本发明还提出一种基于公共服务便民登记的社保身份识别装置,包括,The present invention also proposes a social security identity recognition device based on public service convenience registration, comprising:

预约请求获取模块,用于获取用户的预约请求及其关联的身份验证内容;The reservation request acquisition module is used to obtain the user's reservation request and its associated identity authentication content;

身份识别信息获取模块,用于获取所述身份验证内容所对应的用户的身份识别信息;An identity information acquisition module, used to acquire the identity information of the user corresponding to the identity authentication content;

第一判断模块,用于当所述身份识别信息与所述身份验证内容相匹配,通过预设的规则获取用户的社保卡证照信息;A first judgment module is used to obtain the user's social security card information according to a preset rule when the identity recognition information matches the identity authentication content;

待识别图像获取模块,用于基于所述社保卡证照信息得到社保卡证照典型图像;An image acquisition module to be identified, used to obtain a typical image of a social security card based on the social security card information;

图像识别模块,用于对所述社保卡证照典型图像进行识别得到用户的社保身份信息;An image recognition module is used to recognize the typical image of the social security card to obtain the user's social security identity information;

信息录入及凭证生成模块,用于将用户的所述社保身份信息进行录入并生成办理凭证;An information entry and voucher generation module, used to enter the user's social security identity information and generate a processing voucher;

信息反馈模块,用于将所述办理凭证反馈给用户。The information feedback module is used to feed back the processing certificate to the user.

另外,在本发明各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。In addition, each functional module in each embodiment of the present invention may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module. The above integrated modules may be implemented in the form of hardware or in the form of software functional modules.

所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储的介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或系统、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,RandomAccess Memory)、电载波信号、电信信号以及软件分发介质等。If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or system that can carry the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electrical carrier signal, telecommunication signal and software distribution medium, etc.

尽管本发明的描述已经相当详尽且特别对几个所述实施例进行了描述,但其并非旨在局限于任何这些细节或实施例或任何特殊实施例,而是应当将其视作是通过参考所附权利要求考虑到现有技术为这些权利要求提供广义的可能性解释,从而有效地涵盖本发明的预定范围。此外,上文以发明人可预见的实施例对本发明进行描述,其目的是为了提供有用的描述,而那些目前尚未预见的对本发明的非实质性改动仍可代表本发明的等效改动。Although the description of the present invention has been quite detailed and specifically describes several described embodiments, it is not intended to be limited to any of these details or embodiments or any particular embodiment, but should be regarded as providing a broad possible interpretation of these claims in view of the prior art by reference to the appended claims, thereby effectively covering the intended scope of the present invention. In addition, the above description of the present invention is based on the embodiments foreseeable by the inventor, and its purpose is to provide a useful description, and those non-substantial changes to the present invention that have not yet been foreseen may still represent equivalent changes to the present invention.

以上所述,只是本发明的较佳实施例而已,本发明并不局限于上述实施方式,只要其以相同的手段达到本发明的技术效果,都应属于本发明的保护范围。在本发明的保护范围内其技术方案和/或实施方式可以有各种不同的修改和变化。The above is only a preferred embodiment of the present invention. The present invention is not limited to the above implementation. As long as the technical effect of the present invention is achieved by the same means, it should belong to the protection scope of the present invention. Within the protection scope of the present invention, its technical scheme and/or implementation method can have various modifications and changes.

Claims (6)

1. A social security identification method based on public service convenience registration, characterized by comprising the following steps:
acquiring a reservation request of a user and associated identity verification content thereof;
acquiring the identity information of the user corresponding to the identity verification content;
When the identity identification information is matched with the identity verification content, obtaining social security card license information of the user through a preset rule;
Obtaining a typical image of the social security card license based on the social security card license information;
Identifying the representative image of the social security card license to obtain social security information of the user;
Inputting the social security information of the user and generating a handling certificate;
feeding back the handling certificate to the user;
specifically, the social security card license information of the user is obtained through a preset rule, which comprises,
Obtaining continuous frame social security card license images of a user within a preset time range to obtain social security card license information of the user;
Specifically, a typical image of the social security card license is obtained based on the social security card license information, which comprises,
For continuous frame social security license images, similarity calculation is carried out on the current frame social security license image and the previous frame social security license image, the current frame social security license image with the similarity lower than a first threshold value is removed, and finally a residual social security license image sequence is obtained;
When the condition that the previous-frame social security card license image of the current-frame social security card license image is removed exists, the previous-frame social security card license image of the removed social security card license image is used as the previous-frame social security card license image of the current-frame social security card license image to perform similarity calculation;
Assuming that the remaining social security license image sequences comprise m Zhang Shebao card license images in total, wherein an image matrix of a j Zhang Shebao th card license image is Bj (j), a serial number of the image matrix is marked as j, and pixel values of pixel points of a wj row and a dj column in the image matrix Bj (j) are defined as Bj, wj and dj;
Any pixel point Bj (j, wj, dj) is calculated based on the clear trend clear (j, wj, dj) of the neighborhood pixel point, the correlation calculation formula is as follows,
Wherein max (j, wj, dj) is the maximum value of the adjacent pixel points of Bj (j, wj, dj), avg (j, wj, dj) and min (j, wj, dj) are the average value and the minimum value of the adjacent pixel points of Bj (j, wj, dj) respectively;
searching out clear representation areas of all images in the remaining social security card license image sequence based on the clear trend;
Calculating the average pixel value of the pixel points of the m Zhang Shebao card license image at the same position, and constructing a built image together by using the average pixel value of each different position;
replacing the same pixel point positions in the initial image with the pixel point positions corresponding to the clear representation areas of all images in the rest social security license image sequence to obtain a representative social security license image;
Specifically, the clear representation area of all images in the remaining social security license image sequence is found based on the clear trend, including,
When the sequence number of the image is 1, traversing an image matrix B1 (1), selecting two pixels with the largest clear trend degree value and the second largest value from the two pixels, connecting the two pixels to obtain a line segment zx (1), selecting the pixel with the largest clear trend degree except the line segment zx (1) from the B1 (1), and connecting two end points of the line segment zx (1) with the pixel with the largest clear trend degree except the line segment lin (1) selected from the B1 (1) to obtain a clear representation area of the B1 (1);
When the serial number of the image is not 1, assuming that an image matrix of the image is Bj (j), calculating a pixel average value avg (j-1) of pixel points in a clear representation area of Bj-1 (j-1), traversing the image matrix Bj (j), selecting pixel points with clear trend degree larger than avg (j-1), selecting two random pixel points, connecting the two random pixel points to obtain a line segment zx (j), selecting a pixel point with the largest clear trend degree except the line segment zx (j) in the Bj (j), and connecting two end points of the line segment zx (j) with the pixel point with the largest clear trend degree except the line segment zx (j) in the Bj to obtain the clear representation area of the Bj (j).
2. The social security identity recognition method based on public service convenience registration according to claim 1, wherein the identity verification content is a pre-stored face image of a user, the corresponding identity recognition information is a real-time face image of the user, and the identity verification content is judged to be matched at the moment if the real-time face image of the user and the pre-stored face image of the user pass through face recognition.
3. The social security identification method based on public service convenience registration according to claim 1, wherein the transaction certificate includes information of a transaction number, a reservation time, and a processing time.
4. The social security identification method based on public service convenience registration according to claim 1, wherein the similarity calculation is performed between the current frame social security license image and the previous frame social security license image in a histogram-based manner by calculating the pasteurization distance.
5. The social security identification method based on public service convenience registration according to claim 1, wherein the social security identification information of the user is obtained by identifying the representative image of the social security card license,
And the built-in OCR recognition algorithm and the human image recognition algorithm are used for recognizing the typical image of the social security card license to obtain OCR recognition content and human image recognition content, namely social security identity information of the user.
6. A social security identification device based on public service registration is characterized by comprising,
The reservation request acquisition module is used for acquiring a reservation request of a user and associated identity verification content;
The identity information acquisition module is used for acquiring the identity information of the user corresponding to the identity verification content;
The first judging module is used for acquiring social security card license information of the user through a preset rule when the identity identification information is matched with the identity verification content;
the image acquisition module to be identified is used for acquiring a typical image of the social security card license based on the social security card license information;
the image identification module is used for identifying the typical image of the social security card license to obtain the social security information of the user;
the information input and credential generation module is used for inputting the social security information of the user and generating a transacting credential;
The information feedback module is used for feeding the handling certificate back to the user;
specifically, the social security card license information of the user is obtained through a preset rule, which comprises,
Obtaining continuous frame social security card license images of a user within a preset time range to obtain social security card license information of the user;
Specifically, a typical image of the social security card license is obtained based on the social security card license information, which comprises,
For continuous frame social security license images, similarity calculation is carried out on the current frame social security license image and the previous frame social security license image, the current frame social security license image with the similarity lower than a first threshold value is removed, and finally a residual social security license image sequence is obtained;
When the condition that the previous-frame social security card license image of the current-frame social security card license image is removed exists, the previous-frame social security card license image of the removed social security card license image is used as the previous-frame social security card license image of the current-frame social security card license image to perform similarity calculation;
Assuming that the remaining social security license image sequences comprise m Zhang Shebao card license images in total, wherein an image matrix of a j Zhang Shebao th card license image is Bj (j), a serial number of the image matrix is marked as j, and pixel values of pixel points of a wj row and a dj column in the image matrix Bj (j) are defined as Bj, wj and dj;
Any pixel point Bj (j, wj, dj) is calculated based on the clear trend clear (j, wj, dj) of the neighborhood pixel point, the correlation calculation formula is as follows,
Wherein max (j, wj, dj) is the maximum value of the adjacent pixel points of Bj (j, wj, dj), avg (j, wj, dj) and min (j, wj, dj) are the average value and the minimum value of the adjacent pixel points of Bj (j, wj, dj) respectively;
searching out clear representation areas of all images in the remaining social security card license image sequence based on the clear trend;
Calculating the average pixel value of the pixel points of the m Zhang Shebao card license image at the same position, and constructing a built image together by using the average pixel value of each different position;
replacing the same pixel point positions in the initial image with the pixel point positions corresponding to the clear representation areas of all images in the rest social security license image sequence to obtain a representative social security license image;
Specifically, the clear representation area of all images in the remaining social security license image sequence is found based on the clear trend, including,
When the sequence number of the image is 1, traversing an image matrix B1 (1), selecting two pixels with the largest clear trend degree value and the second largest value from the two pixels, connecting the two pixels to obtain a line segment zx (1), selecting the pixel with the largest clear trend degree except the line segment zx (1) from the B1 (1), and connecting two end points of the line segment zx (1) with the pixel with the largest clear trend degree except the line segment lin (1) selected from the B1 (1) to obtain a clear representation area of the B1 (1);
When the serial number of the image is not 1, assuming that an image matrix of the image is Bj (j), calculating a pixel average value avg (j-1) of pixel points in a clear representation area of Bj-1 (j-1), traversing the image matrix Bj (j), selecting pixel points with clear trend degree larger than avg (j-1), selecting two random pixel points, connecting the two random pixel points to obtain a line segment zx (j), selecting a pixel point with the largest clear trend degree except the line segment zx (j) in the Bj (j), and connecting two end points of the line segment zx (j) with the pixel point with the largest clear trend degree except the line segment zx (j) in the Bj to obtain the clear representation area of the Bj (j).
CN202410286441.6A 2024-03-13 2024-03-13 Social security identification method and device based on public service convenience registration Active CN118196856B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410286441.6A CN118196856B (en) 2024-03-13 2024-03-13 Social security identification method and device based on public service convenience registration

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410286441.6A CN118196856B (en) 2024-03-13 2024-03-13 Social security identification method and device based on public service convenience registration

Publications (2)

Publication Number Publication Date
CN118196856A CN118196856A (en) 2024-06-14
CN118196856B true CN118196856B (en) 2024-09-13

Family

ID=91401497

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410286441.6A Active CN118196856B (en) 2024-03-13 2024-03-13 Social security identification method and device based on public service convenience registration

Country Status (1)

Country Link
CN (1) CN118196856B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112819772A (en) * 2021-01-28 2021-05-18 南京挥戈智能科技有限公司 High-precision rapid pattern detection and identification method
CN117690120A (en) * 2023-12-15 2024-03-12 北京卓视智通科技有限责任公司 A vehicle monitoring method and system for capturing license plates with mobile devices

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9300841B2 (en) * 2012-06-25 2016-03-29 Yoldas Askan Method of generating a smooth image from point cloud data
CN211015511U (en) * 2019-12-04 2020-07-14 重庆电子工程职业学院 Patient identity registration device that wisdom medical treatment was used
CN112651392A (en) * 2020-12-22 2021-04-13 深圳壹账通智能科技有限公司 Certificate information acquisition method and device, storage medium and computer equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112819772A (en) * 2021-01-28 2021-05-18 南京挥戈智能科技有限公司 High-precision rapid pattern detection and identification method
CN117690120A (en) * 2023-12-15 2024-03-12 北京卓视智通科技有限责任公司 A vehicle monitoring method and system for capturing license plates with mobile devices

Also Published As

Publication number Publication date
CN118196856A (en) 2024-06-14

Similar Documents

Publication Publication Date Title
CN108229427B (en) A kind of identity security verification method and system based on identity document and face recognition
CN105956578B (en) A kind of face verification method of identity-based certificate information
US10095927B2 (en) Quality metrics for biometric authentication
US9922238B2 (en) Apparatuses, systems, and methods for confirming identity
CN108985134B (en) Face living body detection and face brushing transaction method and system based on binocular camera
JP6403233B2 (en) User authentication method, apparatus for executing the same, and recording medium storing the same
CN113614731B (en) Authentication verification using soft biometrics
CN111079676B (en) A kind of human iris detection method and device
JP2004209244A (en) Extraction method of tooth region from tooth image and identification method and device using tooth image
CN111695386A (en) Fingerprint image enhancement, fingerprint identification and application program starting method
US20060147093A1 (en) ID card generating apparatus, ID card, facial recognition terminal apparatus, facial recognition apparatus and system
US9449217B1 (en) Image authentication
JP2008287433A (en) Vein pattern management system, vein pattern registering device, vein pattern authentication device, vein pattern registering method, vein pattern authentication method, program, and vein data structure
CN114445843A (en) Fixed-format card image text recognition method and device
CN115376160A (en) Pet identity recognition method and device, electronic equipment and storage medium
CN115019364A (en) Identity authentication method, device, electronic device and medium based on face recognition
CN109858219B (en) User registration method and device, electronic equipment and computer readable storage medium
Qin et al. Finger-vein image quality evaluation based on the representation of grayscale and binary image
JP2008287432A (en) Vein pattern management system, vein pattern registering device, vein pattern authentication device, vein pattern registering method, vein pattern authentication method, program, and vein data structure
CN118196856B (en) Social security identification method and device based on public service convenience registration
WO2020232889A1 (en) Check encashment method, apparatus and device, and computer-readable storage medium
CN114463831B (en) Training method and recognition method of iris recognition model for eyelashes
CN107368726A (en) Terminal unlocking method and terminal
CN116778562A (en) Facial verification method, device, electronic device and readable storage medium
JP2005084979A (en) Face authentication system, method and program

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
GR01 Patent grant
GR01 Patent grant