WO2023284307A1 - Image processing method and apparatus, and electronic device, storage medium and computer program product - Google Patents

Image processing method and apparatus, and electronic device, storage medium and computer program product Download PDF

Info

Publication number
WO2023284307A1
WO2023284307A1 PCT/CN2022/079013 CN2022079013W WO2023284307A1 WO 2023284307 A1 WO2023284307 A1 WO 2023284307A1 CN 2022079013 W CN2022079013 W CN 2022079013W WO 2023284307 A1 WO2023284307 A1 WO 2023284307A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
target
registration
object recognition
similarity
Prior art date
Application number
PCT/CN2022/079013
Other languages
French (fr)
Chinese (zh)
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 WO2023284307A1 publication Critical patent/WO2023284307A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/32User authentication using biometric data, e.g. fingerprints, iris scans or voiceprints
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/45Structures or tools for the administration of authentication

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Evolutionary Computation (AREA)
  • Evolutionary Biology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Artificial Intelligence (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Image Analysis (AREA)

Abstract

Provided in the embodiments of the present disclosure are an image processing method and apparatus, and an electronic device, a storage medium and a computer program product. The method comprises: in response to a first object recognition instruction, acquiring a first object image of a target object that is collected by a local device, and a target reference image, wherein the target reference image is obtained by updating a registration image on the basis of a local object image, the registration image is an image of the target object that is collected by a remote device, and the registration image is used for performing object registration; and performing object recognition on the first object image on the basis of the target reference image, so as to obtain a first object recognition result.

Description

图像处理方法及装置、电子设备、存储介质和计算机程序产品Image processing method and device, electronic device, storage medium and computer program product
相关申请的交叉引用Cross References to Related Applications
本公开实施例基于申请号为202110805912.6、申请日为2021年07月16日、申请名称为“图像处理方法、装置、电子设备及存储介质”的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本公开作为参考。The embodiment of the present disclosure is based on the Chinese patent application with the application number 202110805912.6, the application date is July 16, 2021, and the application name is "image processing method, device, electronic equipment and storage medium", and requires the priority of the Chinese patent application Right, the entire content of this Chinese patent application is hereby incorporated into this disclosure as a reference.
技术领域technical field
本公开涉及但不限于计算机视觉技术领域,尤其涉及图像处理方法及装置、电子设备、存储介质和计算机程序产品。The present disclosure relates to but not limited to the technical field of computer vision, and in particular relates to image processing methods and devices, electronic equipment, storage media and computer program products.
背景技术Background technique
随着计算机视觉技术的发展,基于图像识别的各种应用也得到了广泛的使用,例如基于人脸识别进行门禁控制,考勤管理,收银支付等。在相关技术中,由于不同设备间存在的差异,导致对象识别的准确率、通过率以及安全性均不高。With the development of computer vision technology, various applications based on image recognition have also been widely used, such as access control based on face recognition, attendance management, cashier payment, etc. In related technologies, due to differences among different devices, the accuracy rate, pass rate and security of object recognition are not high.
发明内容Contents of the invention
本公开实施例提供一种图像处理方法及装置、电子设备、存储介质和计算机程序产品。Embodiments of the present disclosure provide an image processing method and device, electronic equipment, a storage medium, and a computer program product.
本公开实施例提供一种图像处理方法,包括:An embodiment of the present disclosure provides an image processing method, including:
响应于第一对象识别指令,获取本地设备采集的目标对象的第一对象图像和目标参考图像,所述目标参考图像是基于本地对象图像对注册图像更新得到的,所述注册图像为异地设备采集的所述目标对象的图像,所述注册图像用于进行对象注册;In response to the first object recognition instruction, acquire the first object image and the target reference image of the target object collected by the local device, the target reference image is obtained by updating the registered image based on the local object image, and the registered image is collected by the remote device an image of the target object, the registration image is used for object registration;
基于所述目标参考图像对所述第一对象图像进行对象识别,得到第一对象识别结果。Perform object recognition on the first object image based on the target reference image to obtain a first object recognition result.
本公开实施例提供一种图像处理装置,包括:An embodiment of the present disclosure provides an image processing device, including:
第一图像获取部分,被配置为执行响应于第一对象识别指令,获取本地设备采集的目标对象的第一对象图像和目标参考图像,所述目标参考图像是基于本地对象图像对注册图像更新得到的,所述注册图像为异地设备采集的所述目标对象的图像,所述注册图像用于进行对象注册;The first image acquisition part is configured to execute in response to the first object recognition instruction, acquire the first object image and the target reference image of the target object captured by the local device, and the target reference image is obtained by updating the registration image based on the local object image Wherein, the registration image is an image of the target object collected by a remote device, and the registration image is used for object registration;
第一对象识别部分,被配置为执行基于所述目标参考图像对所述第一对象图像进行对象识别,得到第一对象识别结果。The first object recognition part is configured to perform object recognition on the first object image based on the target reference image to obtain a first object recognition result.
本公开实施例提供一种电子设备,包括:处理器;用于存储所述处理器可执行指令的存储器;其中,所述处理器被配置为执行所述指令,以实现上述方法。An embodiment of the present disclosure provides an electronic device, including: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement the above method.
本公开实施例提供一种计算机可读存储介质,当所述存储介质中的指令由电子设备的处理器执行时,使得所述电子设备能够执行上述方法。An embodiment of the present disclosure provides a computer-readable storage medium, and when instructions in the storage medium are executed by a processor of the electronic device, the electronic device can execute the above method.
本公开实施例提供一种计算机程序产品,所述计算机程序产品包括计 算机程序或指令,在所述计算机程序或指令在电子设备上运行时,使得所述电子设备执行上述方法。An embodiment of the present disclosure provides a computer program product, where the computer program product includes a computer program or an instruction, and when the computer program or instruction is run on an electronic device, the electronic device is made to execute the above method.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理,并不构成对本公开的不当限定。The accompanying drawings here are incorporated into the specification and constitute a part of the specification, show embodiments consistent with the disclosure, and are used together with the description to explain the principle of the disclosure, and do not constitute an improper limitation of the disclosure.
图1为本公开实施例提供的一种图像处理方法的流程示意图;FIG. 1 is a schematic flowchart of an image processing method provided by an embodiment of the present disclosure;
图2为本公开实施例提供的一种预先得到目标参考图像的流程示意图;FIG. 2 is a schematic flow diagram of obtaining a target reference image in advance according to an embodiment of the present disclosure;
图3为本公开实施例提供的一种基于注册图像对第二对象图像进行对象识别,得到第二对象识别结果的流程示意图;FIG. 3 is a schematic flowchart of performing object recognition on a second object image based on a registered image to obtain a second object recognition result provided by an embodiment of the present disclosure;
图4为本公开实施例提供的一种更新目标参考图像的流程示意图;FIG. 4 is a schematic flow chart of updating a target reference image provided by an embodiment of the present disclosure;
图5为本公开实施例提供的一种预先得到目标参考图像的流程示意图;FIG. 5 is a schematic flowchart of obtaining a target reference image in advance according to an embodiment of the present disclosure;
图6为本公开实施例提供的一种图像处理装置的组成结构示意图;FIG. 6 is a schematic diagram of the composition and structure of an image processing device provided by an embodiment of the present disclosure;
图7为本公开实施例提供的一种电子设备的硬件结构示意图。FIG. 7 is a schematic diagram of a hardware structure of an electronic device provided by an embodiment of the present disclosure.
具体实施方式detailed description
为了使本领域普通人员更好地理解本公开的技术方案,下面将结合附图,对本公开实施例中的技术方案进行清楚、完整地描述。In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.
需要说明的是,本公开的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本公开的实施例能够以除了在这里图示或描述的那些以外的顺序实施。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。It should be noted that the terms "first" and "second" in the specification and claims of the present disclosure and the above drawings are used to distinguish similar objects, but not necessarily used to describe a specific sequence or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein can be practiced in sequences other than those illustrated or described herein. The implementations described in the following exemplary examples do not represent all implementations consistent with the present disclosure. Rather, they are examples of apparatuses and methods consistent with aspects of the present disclosure as recited in the appended claims.
应当理解,在本公开中,“至少一个(项)”是指一个或者多个,“多个”是指两个或两个以上,“至少两个(项)”是指两个或三个及三个以上,“和/或”,用于描述关联对象的关联关系,表示可以存在三种关系,例如,“A和/或B”可以表示:只存在A,只存在B以及同时存在A和B三种情况,其中A,B可以是单数或者复数。字符“/”可表示前后关联对象是一种“或”的关系,是指这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b或c中的至少一项(个),可以表示:a,b,c,“a和b”,“a和c”,“b和c”,或“a和b和c”,其中a,b,c可以是单个,也可以是多个。字符“/”还可表示数学运算中的除号,例如,a/b=a除以b;6/3=2。“以下至少一项(个)”或其类似表达。It should be understood that in this disclosure, "at least one (item)" means one or more, "multiple" means two or more, and "at least two (items)" means two or three And three or more, "and/or", is used to describe the association relationship of associated objects, indicating that there can be three types of relationships, for example, "A and/or B" can mean: only A exists, only B exists, and A exists at the same time and B, where A and B can be singular or plural. The character "/" can indicate that the contextual objects are an "or" relationship, which refers to any combination of these items, including any combination of single items (items) or plural items (items). For example, at least one item (piece) of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c ", where a, b, c can be single or multiple. The character "/" can also represent a division sign in mathematical operations, for example, a/b=a divided by b; 6/3=2. "At least one of the following" or similar expressions.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本公开的至少一个实施例中。在说明书中的各个位置出 现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present disclosure. The appearances of this phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is understood explicitly and implicitly by those skilled in the art that the embodiments described herein can be combined with other embodiments.
随着计算机视觉技术的发展,基于图像识别的各种应用也得到了广泛的使用,例如基于人脸识别进行门禁控制,考勤管理,收银支付等。目前,相关技术中进行人脸识别匹配的算法,往往是基于人脸识别设备采集的图像进行训练得到。但在实际应用中,常常会出现人脸识别设备上的注册图与待识别匹配的图来自不同设备的情况。例如酒店、工厂、宿舍、校园等场景下,人脸识别设备的使用方式往往是:用户提前使用手机上的一张图像进行远程注册,作为注册图;然后,在需要使用人脸识别设备时,用户站在人脸识别设备前拍摄的图像,作为对象图像。在这种场景下,由于不同设备间存在的差异,导致不同设备拍摄的图像的亮度、清晰度等图像光学属性不同,进而带来了识别准确率、通过率以及应用安全性降低的问题。基于此,本公开实施例提供了一种图像处理方法,可以提升实际应用中的对象识别准确率、通过率和应用的安全性。With the development of computer vision technology, various applications based on image recognition have also been widely used, such as access control based on face recognition, attendance management, cashier payment, etc. At present, algorithms for face recognition and matching in related technologies are often trained based on images collected by face recognition equipment. However, in practical applications, it often happens that the registration image on the face recognition device and the image to be identified and matched come from different devices. For example, in hotels, factories, dormitories, campuses and other scenarios, the use of face recognition equipment is often: the user uses an image on the mobile phone to perform remote registration in advance as a registration map; then, when the face recognition device needs to be used, The image captured by the user standing in front of the face recognition device is used as the object image. In this scenario, due to the differences between different devices, the optical properties of images such as brightness and clarity of images taken by different devices are different, which in turn brings problems of reduced recognition accuracy, pass rate and application security. Based on this, an embodiment of the present disclosure provides an image processing method, which can improve object recognition accuracy, pass rate and application security in practical applications.
本公开实施例提供的图像处理方法可以应用于终端,其中,该终端可以包括但不限于门禁设备、考勤设备、收银设备等,在一些实施方式中,上述门禁设备、考勤设备、收银设备等终端设置有摄像装置,其中,该摄像装置可以为与终端一体的摄像装置,也可以为通过有线或无线的方式连接的分体式摄像设置。The image processing method provided by the embodiments of the present disclosure can be applied to a terminal, where the terminal may include but not limited to access control equipment, attendance equipment, cash register equipment, etc., in some implementations, the above-mentioned access control equipment, attendance equipment, cash register equipment and other terminals A camera device is provided, wherein the camera device may be a camera device integrated with the terminal, or may be a separate camera device connected in a wired or wireless manner.
图1为本公开实施例提供的一种图像处理方法的流程图,如图1所示,该图像处理方法用于终端中,该图像处理方法包括步骤S101至步骤S102,其中:FIG. 1 is a flowchart of an image processing method provided by an embodiment of the present disclosure. As shown in FIG. 1, the image processing method is used in a terminal, and the image processing method includes steps S101 to S102, wherein:
步骤S101:响应于第一对象识别指令,获取本地设备采集的目标对象的第一对象图像和目标参考图像。Step S101: In response to a first object recognition instruction, acquire a first object image and a target reference image of a target object collected by a local device.
其中,第一对象识别指令可以结合实际应用需求的不同,而基于不同的触发操作触发。在一些实施方式中,可以基于目标对象的采集操作触发第一对象识别指令;例如在门禁设备上设置有触发拍摄用户人脸图像的按钮,相应的,可以通过按压按钮触发门禁设备上的摄像装置执行采集用户人脸图像的操作,相应的,在摄像装置执行采集用户(人脸)图像的操作的同时,可以触发上述第一对象识别指令,进而可以调用本地设备采集目标对象的第一对象图像(包括目标对象的图像),也可以获取目标参考图像。Wherein, the first object recognition instruction may be triggered based on different trigger operations in combination with different actual application requirements. In some implementations, the first object recognition instruction can be triggered based on the acquisition operation of the target object; for example, a button is set on the access control device to trigger the shooting of the user's face image, and correspondingly, the camera on the access control device can be triggered by pressing the button Execute the operation of collecting the user's face image. Correspondingly, when the camera device performs the operation of collecting the user's (face) image, the above-mentioned first object recognition instruction can be triggered, and then the local device can be called to collect the first object image of the target object. (including images of the target object), target reference images can also be acquired.
在一些实施方式中,上述目标参考图像是基于本地对象图像对注册图像更新得到的,其中,上述注册图像为异地设备采集的目标对象的图像,注册图像可以用于进行对象注册。在一些实施方式中,本地对象图像可以是本地设备采集的对象图像。在一些实施方式中,目标参考图像可以是预先得到的,即在第一对象识别指令被触发前得到的,并存储到相应的数据库或缓存,在第一对象识别指令被触发后,从相应的数据库或缓存读取该目标参考图像。在一些实施方式中,目标参考图像可以作为识别目标对象 的参考图像。在一些实施方式中,可以选取本地对象图像中满足预设条件的对象图像来更新注册图像,得到上述目标对象图像。相应的,上述目标参考图像(即满足预设条件的对象图像)可以至少包括以下之一:In some implementations, the target reference image is obtained by updating the registration image based on the local object image, wherein the registration image is an image of the target object collected by a remote device, and the registration image can be used for object registration. In some implementations, the local object image may be an object image captured by a local device. In some implementations, the target reference image may be obtained in advance, that is, obtained before the first object recognition instruction is triggered, and stored in a corresponding database or cache, after the first object recognition instruction is triggered, from the corresponding The database or cache reads the target reference image. In some implementations, the target reference image may serve as a reference image for identifying the target object. In some implementation manners, an object image satisfying a preset condition in the local object image may be selected to update the registration image to obtain the above-mentioned target object image. Correspondingly, the above-mentioned target reference image (that is, an object image satisfying a preset condition) may at least include one of the following:
从本地对象图像中选取的第一个与注册图像的相似度大于等于预设阈值的对象图像;The first object image selected from the local object image and the registration image is greater than or equal to the preset threshold;
从本地对象图像中选取的第一个与注册图像的相似度大于等于预设阈值,且图像质量分析结果满足预设质量条件的对象图像;The first object image selected from the local object image whose similarity with the registered image is greater than or equal to a preset threshold, and whose image quality analysis result satisfies the preset quality condition;
从本地对象图像中选取的第一个与注册图像的相似度大于等于预设阈值,且本地对象图像被采集时,目标对象相对于摄像装置的方位信息为至少一个指定方位信息的对象图像;The similarity between the first selected local object image and the registered image is greater than or equal to a preset threshold, and when the local object image is collected, the orientation information of the target object relative to the camera device is at least one object image with specified orientation information;
从本地对象图像中选取的第一个与注册图像的相似度大于等于预设阈值,且本地对象图像被采集时的时间属性信息,与注册图像的采集时间属性信息相匹配的对象图像;The first object image selected from the local object image whose similarity with the registration image is greater than or equal to a preset threshold, and whose time attribute information when the local object image is collected matches the acquisition time attribute information of the registration image;
从本地对象图像中选取的第一个与注册图像的相似度大于等于预设阈值,且本地对象图像被采集时的时间,位于目标时间段的对象图像,目标时间段为预设操作的执行频率大于等于预设频率的时间段;The first one selected from the local object image whose similarity with the registered image is greater than or equal to the preset threshold, and the time when the local object image is collected, the object image located in the target time period, and the target time period is the execution frequency of the preset operation The period of time greater than or equal to the preset frequency;
从本地对象图像中选取的与注册图像的相似度最高的对象图像;The object image with the highest similarity to the registered image is selected from the local object images;
从本地对象图像中选取的与注册图像的相似度和活体检测结果对应数值的加权平均之和最高的对象图像。Select the object image with the highest weighted average sum of the similarity with the registration image and the corresponding value of the living body detection result from the local object image.
需要说明的是,上述本地设备可以为上述设置有与终端一体式或分体式的摄像装置的终端。It should be noted that the above-mentioned local device may be the above-mentioned terminal provided with the camera device integrated or separate from the terminal.
在一些实施方式中,目标对象可以结合实际应用场景的不同而不同,例如需要基于人脸识别的应用场景中,目标对象可以为某一用户的人脸;例如需要基于虹膜识别的应用场景中,目标对象可以为某一用户的虹膜;例如需要基于指纹识别的应用场景中,目标对象可以为某一用户的指纹。相应的,不同类型的目标对象也可以采用不同类型的摄像装置来采集相应的对象图像。In some implementations, the target object can be different according to the actual application scenario. For example, in an application scenario that requires face recognition, the target object can be a user's face; for example, in an application scenario that requires iris recognition, The target object may be the iris of a certain user; for example, in an application scenario requiring fingerprint-based identification, the target object may be the fingerprint of a certain user. Correspondingly, different types of target objects may also use different types of camera devices to capture corresponding object images.
在一些实施方式中,上述方法还可以包括:预先得到目标参考图像的步骤。假设上述目标参考图像为从本地对象图像中选取的第一个与注册图像的相似度大于等于预设阈值的对象图像,相应的,图2为本公开实施例提供的一种预先得到目标参考图像的流程示意图,如图2所示,预先得到目标参考图像可以包括步骤S201至步骤S203:In some implementation manners, the above method may further include: a step of obtaining a target reference image in advance. Assuming that the above target reference image is the first object image selected from the local object images whose similarity with the registered image is greater than or equal to the preset threshold, correspondingly, Fig. 2 is a pre-obtained target reference image provided by the embodiment of the present disclosure As shown in FIG. 2 , obtaining the target reference image in advance may include steps S201 to S203:
步骤S201:响应于第二对象识别指令,获取本地设备采集的目标对象的第二对象图像注册图像。Step S201: In response to a second object recognition instruction, acquire a second object image registration image of a target object collected by a local device.
步骤S202:基于注册图像对第二对象图像进行对象识别,得到第二对象识别结果;Step S202: performing object recognition on the second object image based on the registered image to obtain a second object recognition result;
步骤S203:在第二对象识别结果指示第二对象图像和注册图像间的相似度大于等于预设阈值的情况下,基于第二对象图像更新注册图像,得到目标参考图像。Step S203: When the second object recognition result indicates that the similarity between the second object image and the registration image is greater than or equal to a preset threshold, update the registration image based on the second object image to obtain a target reference image.
在一些实施方式中,本地对象图像可以是本地设备采集的对象图像。 在一些实施方式中,上述第二对象识别指令可以为在第一对象识别指令之前触发的对象识别指令。该第二对象识别指令触发时,作为识别目标对象的参考图像可以为上述注册图像。In some implementations, the local object image may be an object image captured by a local device. In some implementations, the above-mentioned second object recognition instruction may be an object recognition instruction triggered before the first object recognition instruction. When the second object recognition instruction is triggered, the reference image used as the recognition target object may be the above-mentioned registered image.
在一些实施方式中,第二对象识别指令被触发后,除了执行上述获取本地设备采集的目标对象的第二对象图像和目标对象的注册图像,至基于第二对象图像更新注册图像,得到目标参考图像的操作;也可以结合实际应用需求,基于第二对象识别结果执行相应的操作,例如,在第二对象识别结果指示第二对象图像和注册图像间的相似度大于等于预设阈值的情况下,执行开启门禁、录入考勤信息、支付等操作。In some implementations, after the second object recognition instruction is triggered, in addition to performing the above acquisition of the second object image of the target object collected by the local device and the registration image of the target object, the registration image is updated based on the second object image to obtain the target reference Image operation; it is also possible to perform corresponding operations based on the second object recognition result in combination with actual application requirements, for example, when the second object recognition result indicates that the similarity between the second object image and the registered image is greater than or equal to a preset threshold , perform operations such as opening access control, entering attendance information, and making payment.
本公开实施例中,第二对象识别结果可以为注册图像和第二对象图像间的相似度。相应的,上述步骤S202可以包括计算第二对象图像与注册图像间的相似度。在一些实施方式中,图像间的相似度可以包括但不限于图像间的欧式距离、曼哈顿距离、余弦距离等。In the embodiment of the present disclosure, the second object recognition result may be the similarity between the registration image and the second object image. Correspondingly, the above step S202 may include calculating the similarity between the second object image and the registration image. In some implementations, the similarity between images may include but not limited to Euclidean distance, Manhattan distance, cosine distance, etc. between images.
在一些实施方式中,预设阈值可以结合实际应用中对对象识别精度要求和对象识别通过率要求进行设置。其中,对对象识别精度要求越高,预设阈值越高,相应的,对象识别通过率相对越低;反之,对对象识别精度要求越低,预设阈值越低,相应的,对象识别通过率相对越高。In some implementations, the preset threshold can be set in combination with the requirements for object recognition accuracy and object recognition pass rate in practical applications. Among them, the higher the requirement for object recognition accuracy, the higher the preset threshold, and correspondingly, the relatively lower object recognition pass rate; Relatively higher.
在一些实施方式中,在第二对象识别结果指示第二对象图像和注册图像间的相似度大于等于预设阈值的情况下,可以确定第二对象图像中的对象为目标对象,相应的,可以基于第二对象图像更新注册图像,得到目标参考图像。In some implementations, when the second object recognition result indicates that the similarity between the second object image and the registration image is greater than or equal to a preset threshold, it may be determined that the object in the second object image is the target object, and correspondingly, the The registration image is updated based on the second object image to obtain a target reference image.
上述实施方式中,在本地设备采集的对象图像被识别为目标对象的图像的情况下,基于本地设备采集的对象图像来更新预设的非本地设备采集的对象图像,可以有效保证后续的对象识别通过率和应用的安全性。In the above embodiments, when the object image collected by the local device is recognized as the image of the target object, updating the preset object image collected by the non-local device based on the object image collected by the local device can effectively ensure the subsequent object recognition. Pass rate and application security.
在一些实施方式中,在需要结合异地设备采集的注册图像进行对象识别的情况下,可以通过对注册图像进行光学属性校正,以缩小本地设备采集的图像与异地设备采集的图像间的光学属性差异,相应的,图3为本公开实施例提供的一种基于注册图像对第二对象图像进行对象识别,得到第二对象识别结果的流程示意图,如图3所示,上述步骤S202可以包括步骤S301至步骤S303:In some implementations, when it is necessary to perform object recognition in combination with registered images collected by remote devices, optical property correction can be performed on registered images to reduce the difference in optical properties between images collected by local devices and images collected by remote devices Correspondingly, FIG. 3 is a schematic flowchart of performing object recognition on a second object image based on a registered image to obtain a second object recognition result provided by an embodiment of the present disclosure. As shown in FIG. 3 , the above step S202 may include step S301 To step S303:
步骤S301:对注册图像和第二对象图像进行光学属性差异识别,得到光学属性差异信息;Step S301: Perform optical attribute difference identification on the registration image and the second object image to obtain optical attribute difference information;
步骤S302:基于光学属性差异信息对注册图像进行光学属性校正,得到校正后的图像;Step S302: Perform optical property correction on the registered image based on the optical property difference information to obtain a corrected image;
步骤S303:基于校正后的图像对第二对象图像进行对象识别,得到第二对象识别结果。Step S303: performing object recognition on the second object image based on the corrected image to obtain a second object recognition result.
在一些实施方式中,光学属性差异信息可以表征注册图像相对于第二对象图像的在光学属性上差异信息。其中,光学属性可以包括但不限于图像的清晰度、亮度等。In some implementations, the optical property difference information may represent difference information in optical properties of the registered image relative to the second object image. Wherein, the optical properties may include but not limited to the definition, brightness, etc. of the image.
在一些实施方式中,可以结合直方均衡,图像分布等方式对注册图像 进行光学属性校正。In some implementations, the optical property correction of the registered image can be performed in combination with histogram equalization, image distribution and the like.
在一些实施方式中,步骤S303可以包括:计算第二对象图像与校正后的图像间的相似度,将该相似度作为第二对象识别结果的具体细化。In some implementations, step S303 may include: calculating a similarity between the second object image and the corrected image, and using the similarity as a specific refinement of the second object recognition result.
上述实施方式中,在需要结合异地设备采集的注册图像进行对象识别的情况下,通过对注册图像和本地设备采集的第二对象图进行光学属性校正,可以有效降低设备差异带来的图像光学属性差异,进而提升对象识别通过率和应用的安全性。In the above embodiment, when it is necessary to perform object recognition in combination with registered images collected by remote devices, by correcting the optical properties of the registered images and the second object map collected by local devices, the optical properties of images caused by device differences can be effectively reduced. Differences, thereby improving the object recognition pass rate and application security.
在一些实施方式中,上述基于第二对象图像更新注册图像,得到目标参考图像包括步骤S2031,其中:In some embodiments, the updating of the registered image based on the second object image to obtain the target reference image includes step S2031, wherein:
步骤S2031、利用第二对象图像替换注册图像,得到目标参考图像。Step S2031, using the second object image to replace the registered image to obtain a target reference image.
在一些实施方式中,可以直接利用本地设备采集的目标对象的第二对象图像来替换注册图像,进而将第二对象图像作为后续用于进行对象识别的参考图像。In some implementation manners, the registration image may be directly replaced by the second object image of the target object collected by the local device, and then the second object image may be used as a reference image for subsequent object recognition.
上述实施方式中,利用本地设备采集的对象图像来替换预设的非本地设备采集的对象图像,可以有效避免不同设备间采集的图像的光学属性差异,进而提升对象识别准确率、通过率和应用的安全性。In the above embodiment, the object image collected by the local device is used to replace the preset object image collected by the non-local device, which can effectively avoid the difference in optical properties of the images collected by different devices, thereby improving the accuracy, pass rate and application of object recognition. security.
在一些实施方式中,上述基于第二对象图像更新注册图像,得到目标参考图像包括步骤S2032,其中:In some embodiments, the updating of the registered image based on the second object image to obtain the target reference image includes step S2032, wherein:
步骤S2032,将第二对象图像和注册图像作为目标参考图像。Step S2032, using the second object image and the registration image as target reference images.
上述实施方式中,在用于进行对象识别的参考图像中加入了本地设备采集的对象图像,可以提升对象识别准确率、通过率和应用的安全性。In the above implementation manners, the object image collected by the local device is added to the reference image for object recognition, which can improve the object recognition accuracy, pass rate, and application security.
在一些实施方式中,假设上述目标参考图像为从本地对象图像中选取的第一个与注册图像的相似度大于等于预设阈值,且图像质量分析结果满足预设质量条件的对象图像。所述步骤S203可以包括步骤S2041至步骤S2042,其中:In some implementations, it is assumed that the above target reference image is the first object image selected from the local object images whose similarity with the registration image is greater than or equal to a preset threshold and whose image quality analysis result satisfies a preset quality condition. The step S203 may include steps S2041 to S2042, wherein:
步骤S2041,在第二对象识别结果指示第二对象图像和注册图像间的相似度大于等于预设阈值的情况下,对第二对象图像进行图像质量分析,得到图像质量分析结果;Step S2041, when the second object recognition result indicates that the similarity between the second object image and the registered image is greater than or equal to a preset threshold, perform image quality analysis on the second object image to obtain an image quality analysis result;
步骤S2042,在图像质量分析结果满足预设质量条件的情况下,基于第二对象图像更新注册图像,得到目标参考图像;Step S2042, if the image quality analysis result satisfies the preset quality condition, update the registered image based on the second object image to obtain the target reference image;
其中,可以用于衡量图像质量的指标可以有一个或多个,可以结合实际应用预先设置。Among them, there may be one or more indicators that can be used to measure the image quality, and may be preset in combination with actual applications.
在一些实施方式中,假设以图像的清晰度作为衡量图像质量的指标,相应的,预设质量条件可以包括预设清晰度阈值,该预设清晰度阈值可以结合实际应用中对目标参考图像的清晰度要求进行设置。In some implementations, it is assumed that the definition of the image is used as an index to measure the image quality. Correspondingly, the preset quality condition may include a preset definition threshold, and the preset definition threshold may be combined with the target reference image in actual applications. Sharpness requires setting.
在一些实施方式中,上述对第二对象图像进行图像质量分析,得到图像质量分析结果可以包括:对第二对象图像进行清晰度识别,得到图像清晰度。其中,对图像进行清晰度识别可以包括但不限于结合拉普拉斯算法来实现。在一些实施方式中,在第二对象图像的图像清晰度大于预设清晰度阈值的情况下,可以确定图像质量分析结果满足预设质量条件。In some implementation manners, the aforementioned performing image quality analysis on the second object image to obtain an image quality analysis result may include: performing sharpness identification on the second object image to obtain image sharpness. Wherein, the definition recognition of the image may include but not limited to realize by combining the Laplacian algorithm. In some implementations, when the image sharpness of the second object image is greater than a preset sharpness threshold, it may be determined that the image quality analysis result satisfies a preset quality condition.
在一些实施方式中,假设以图像中对象数量作为衡量图像质量的指标,相应的,预设质量条件可以包括对象数量阈值,其中,针对某一目标对象进行识别的场景下,对象图像中仅包括该目标对象,越利于对象识别的准确性,在一些实施方式中,上述对象数量阈值可以为1。相应的,上述对第二对象图像进行图像质量分析,得到图像质量分析结果可以包括对第二对象图像进行对象数量识别,得到对象数量。在一些实施方式中,可以基于预先训练好的对象检测网络对第二对象图像进行对象检测,检测出第二对象图像中对象的数量。在一些实施方式中,在第二对象图像对应的对象数量为1(预设图像质量的指标)的情况下,可以确定图像质量分析结果满足预设质量条件。In some implementations, it is assumed that the number of objects in the image is used as an index to measure the image quality, and correspondingly, the preset quality condition may include a threshold of the number of objects, wherein, in a scene where a certain target object is recognized, the object image only includes The target object is more conducive to the accuracy of object recognition. In some implementations, the above object number threshold may be 1. Correspondingly, performing image quality analysis on the second object image to obtain an image quality analysis result may include performing object number recognition on the second object image to obtain the object number. In some implementations, object detection may be performed on the second object image based on a pre-trained object detection network to detect the number of objects in the second object image. In some implementations, when the number of objects corresponding to the second object image is 1 (a preset image quality index), it may be determined that the image quality analysis result satisfies the preset quality condition.
上述实施方式中,在本地设备采集的第二对象图像被识别为目标对象的图像的情况下,再结合第二对象图像的图像质量,在第二对象图像质量满足预设质量条件的情况下,基于第二对象图像来更新预设的非本地设备采集的对象图像,可以有效提升目标参考图像的质量,进而更好提升对象识别准确率、通过率和应用的安全性。In the above embodiment, when the second object image collected by the local device is recognized as the image of the target object, combined with the image quality of the second object image, if the quality of the second object image satisfies the preset quality condition, Updating the preset object image collected by the non-local device based on the second object image can effectively improve the quality of the target reference image, thereby better improving object recognition accuracy, pass rate, and application security.
在一些实施方式中,假设上述目标参考图像为从本地对象图像中选取的第一个与注册图像的相似度大于等于预设阈值,且本地对象图像采集时,目标对象相对于摄像装置的方位信息为至少一个指定方位信息的对象图像。上述步骤S203可以包括步骤S2051至步骤S2052,其中:In some implementations, it is assumed that the above-mentioned target reference image is the first one selected from the local object image and the similarity with the registered image is greater than or equal to a preset threshold, and when the local object image is collected, the orientation information of the target object relative to the camera device Specify orientation information for at least one object image. The above step S203 may include steps S2051 to S2052, wherein:
步骤S2051,在第二对象识别结果指示第二对象图像和注册图像间的相似度大于等于预设阈值的情况下,对第二对象图像进行对象方位识别,得到对象方位识别结果;Step S2051, when the second object recognition result indicates that the similarity between the second object image and the registered image is greater than or equal to a preset threshold, perform object orientation recognition on the second object image to obtain an object orientation recognition result;
步骤S2052,在对象方位识别结果满足至少一个预设方位条件的情况下,基于第二对象图像更新注册图像,得到目标参考图像。Step S2052, if the object orientation recognition result satisfies at least one preset orientation condition, update the registered image based on the second object image to obtain a target reference image.
其中,对象方位识别结果可以表征采集第二对象图像时,目标对象相对于摄像装置的方位信息。在一些实施方式中,至少一个预设方位条件可以是预先设置的目标参考图像被采集时,目标对象相对于摄像装置的至少一个方位信息。例如,假设某一预设方位条件为图像被采集时,目标对象相对于摄像装置的方位信息为正对(目标对象正对于摄像装置);相应的,上述对象方位识别结果指示采集第二对象图像时,目标对象相对于摄像装置的方位信息为正对的情况下,可以确定对象方位识别结果满足至少一个预设方位条件。Wherein, the object orientation recognition result may represent the orientation information of the target object relative to the camera device when the second object image is captured. In some implementations, the at least one preset orientation condition may be at least one orientation information of the target object relative to the camera device when the preset target reference image is captured. For example, assuming that a certain preset orientation condition is that when the image is captured, the orientation information of the target object relative to the camera device is directly opposite (the target object is directly facing the camera device); correspondingly, the above-mentioned object orientation recognition result indicates that the second object image is collected , when the orientation information of the target object relative to the camera device is directly opposite, it may be determined that the object orientation recognition result satisfies at least one preset orientation condition.
在一些实施方式中,可以结合预先训练好的对象方位识别网络对第二对象图像进行对象方位识别,得到对象方位识别结果。In some implementation manners, the object orientation recognition may be performed on the second object image in combination with a pre-trained object orientation recognition network to obtain an object orientation recognition result.
在一些实施方式中,可以选取多张本地设备采集的不同方位的对象图像作为目标参考图像。例如,以目标对象为人脸为例,假设可以将一张人脸相对于摄像装置朝左,一张人脸相对于摄像装置朝右,以及一张人脸正对摄像装置的人脸图像作为目标参考图像;相应的,在对象方位识别结果指示第二对象图像被采集时,目标对象相对于摄像装置的方位信息为人脸相对于摄像装置朝左、人脸相对于摄像装置朝右或人脸正对摄像装置的情 况下,可以基于第二对象图像更新注册图像,得到目标参考图像。In some implementation manners, multiple object images of different orientations collected by the local device may be selected as target reference images. For example, taking the target object as a human face as an example, it is assumed that a human face facing the left relative to the camera device, a face facing the right relative to the camera device, and a face image facing the camera device can be used as the target Reference image; correspondingly, when the object orientation recognition result indicates that the second object image is captured, the orientation information of the target object relative to the camera device is that the face is facing left relative to the camera device, the face is facing right relative to the camera device, or the face is facing right. In the case of a camera, the registered image may be updated based on the second object image to obtain a target reference image.
上述实施方式中,在本地设备采集的第二对象图像被识别为目标对象的图像的基础上,结合至少一个预设方位条件对应的目标对象相对于摄像装置的方位信息,来选取指定朝向采集的对象图像来更新注册图像,可以有效保证采集的对象图像的质量,进而更好提升对象识别准确率、通过率和应用的安全性。In the above embodiment, on the basis that the second object image collected by the local device is recognized as the image of the target object, the orientation information of the target object corresponding to at least one preset orientation condition relative to the camera device is combined to select the image collected in a specified orientation. The registration image can be updated by using the object image, which can effectively ensure the quality of the collected object image, and further improve the object recognition accuracy, pass rate and application security.
在一些实施方式中,假设上述目标参考图像为从本地对象图像中选取的第一个与注册图像的相似度大于等于预设阈值,且本地对象图像采集时的时间属性信息,与注册图像的采集时间属性信息相匹配的对象图像。上述步骤S203可以包括步骤S2061至步骤S2062,其中:In some implementations, it is assumed that the above-mentioned target reference image is the first one selected from the local object image, and the similarity with the registration image is greater than or equal to the preset threshold, and the time attribute information of the local object image is collected, and the collection of the registration image The temporal attribute information matches the object image. The above step S203 may include steps S2061 to S2062, wherein:
步骤S2061,在第二对象识别结果指示第二对象图像和注册图像间的相似度大于等于预设阈值的情况下,获取注册图像的采集时间属性信息;Step S2061, when the second object recognition result indicates that the similarity between the second object image and the registered image is greater than or equal to a preset threshold, acquire acquisition time attribute information of the registered image;
步骤S2062,在当前时间属性信息与采集时间属性信息相匹配的情况下,基于第二对象图像更新注册图像,得到目标参考图像。Step S2062, if the current time attribute information matches the acquisition time attribute information, update the registered image based on the second object image to obtain a target reference image.
其中,采集时间属性信息可以是能够表征采集注册图像的时间的信息。采集时间属性信息可以包括但不限于采集的季节、采集的时间段(比如一天中的上午9:00-11:00)等。Wherein, the acquisition time attribute information may be information capable of characterizing the time at which the registration image is acquired. The collection time attribute information may include but not limited to collection season, collection time period (such as 9:00-11:00 am in a day) and so on.
在一些实施方式中,为了更好保证本地设备采集的对象图像中用于作为识别目标对象的参考图像与注册图像间的相似程度,可以结合注册图像的采集时间属性信息。例如,初始参考对象图像的采集时间属性信息为夏季,若当前时间属性信息指示当前季节也是夏季,可以确定当前时间属性信息与注册图像的采集时间属性信息相匹配,进而执行基于第二对象图像更新注册图像,得到目标参考图像的操作。In some implementations, in order to better ensure the similarity between the reference image used to identify the target object and the registration image in the object image collected by the local device, the acquisition time attribute information of the registration image may be combined. For example, the acquisition time attribute information of the initial reference object image is summer, and if the current time attribute information indicates that the current season is also summer, it can be determined that the current time attribute information matches the acquisition time attribute information of the registered image, and then the update based on the second object image is performed. Register the image and get the operation of the target reference image.
上述实施方式中,结合注册图像的采集时间属性信息与当前时间属性信息间的匹配情况,来对本地设备采集的对象图像进行筛选,可以更好保证本地设备采集的对象图像中用于作为识别目标对象的参考图像与注册图像间的相似程度,进而更好提升对象识别准确率、通过率和应用的安全性。In the above embodiments, the object images collected by the local device are screened in combination with the matching between the collection time attribute information of the registered image and the current time attribute information, which can better ensure that the object images collected by the local device are used as identification targets. The similarity between the reference image of the object and the registration image can be used to improve the accuracy of object recognition, pass rate and application security.
在一些实施方式中,假设上述目标参考图像为从本地对象图像中选取的第一个与注册图像的相似度大于等于预设阈值,且本地对象图像采集时的时间,位于目标时间段的对象图像。上述步骤S203可以包括步骤S2071至步骤S2073,其中:In some implementations, it is assumed that the above-mentioned target reference image is the first one selected from the local object image whose similarity with the registration image is greater than or equal to the preset threshold, and the time when the local object image is collected, the object image located in the target time period . The above step S203 may include steps S2071 to S2073, wherein:
步骤S2071,在第二对象识别结果指示第二对象图像和注册图像间的相似度大于等于预设阈值的情况下,获取目标对象对应的历史操作触发时间,历史操作触发时间为基于目标对象对应的对象识别结果触发预设操作的触发时间;Step S2071, when the second object recognition result indicates that the similarity between the second object image and the registered image is greater than or equal to the preset threshold, obtain the historical operation trigger time corresponding to the target object, and the historical operation trigger time is based on the target object corresponding The trigger time of the preset operation triggered by the object recognition result;
步骤S2072,基于历史操作触发时间确定目标时间段,目标时间段为预设操作的执行频率大于等于预设频率的时间段;Step S2072, determine the target time period based on the historical operation trigger time, the target time period is the time period in which the execution frequency of the preset operation is greater than or equal to the preset frequency;
步骤S2073,在当前时间位于目标时间段的情况下,基于第二对象图像更新注册图像,得到目标参考图像。Step S2073, if the current time is within the target time period, update the registered image based on the second object image to obtain the target reference image.
其中,历史操作触发时间为基于目标对象对应的对象识别结果触发预 设操作的触发时间;上述目标时间段为预设操作的执行频率大于等于预设频率的时间段。在一些实施方式中,预设频率可以结合实际应用场景预先设置。该时间段可以为预设周期内的某个时间段,例如,该预设周期可以为每天的0点至24点;也可以为每周的周一0点至周日24点,具体的可以结合实际应用进行设置。Wherein, the historical operation trigger time is the trigger time when the preset operation is triggered based on the object recognition result corresponding to the target object; the above-mentioned target time period is the time period when the execution frequency of the preset operation is greater than or equal to the preset frequency. In some implementations, the preset frequency can be preset in combination with actual application scenarios. The time period can be a certain period of time in the preset cycle, for example, the preset cycle can be from 0:00 to 24:00 every day; it can also be from 0:00 on Monday to 24:00 on Sunday every week. Specifically, it can be combined actual application settings.
在实际应用中,例如基于人脸识别进行考勤打卡的应用场景中,用户触发录入考勤信息的操作往往位于一天中的固定时间段,假设结合历史操作触发时间,确定每天上午的7:30至9:00,以及每天下午的17:00至18:30为目标时间段,那么在每天上午的7:30至9:00,以及每天下午的17:00至18:30内,可以基于第二对象图像更新注册图像,得到目标参考图像。In practical applications, for example, in the application scenario of attendance check-in based on face recognition, the user triggers the operation of entering attendance information in a fixed time period of the day. Assuming that combined with the historical operation trigger time, it is determined every morning from 7:30 to 9 :00, and every afternoon from 17:00 to 18:30 is the target time period, then from 7:30 to 9:00 every morning, and every afternoon from 17:00 to 18:30, you can base on the second object The image is updated to register the image to obtain the target reference image.
上述实施方式中,结合对象图像的采集时间段是否位于目标时间段,可以便于按照用户触发预设操作的习惯,在触发预设操作的高峰时间段内,选取本地设备采集的目标对象的目标参考图像,进而有效减小后续目标参考图像与待识别的对象图像间因采集时间不同带来的差异,提升对象识别准确率、通过率和应用的安全性。In the above-mentioned embodiment, considering whether the collection time period of the object image is within the target time period, it is convenient to select the target reference of the target object collected by the local device during the peak time period when the preset operation is triggered according to the user’s habit of triggering the preset operation. image, thereby effectively reducing the difference between the subsequent target reference image and the object image to be recognized due to the different acquisition time, and improving the object recognition accuracy, pass rate and application security.
在一些实施方式中,假设上述目标参考图像可以为从本地对象图像中选取的与注册图像的相似度最高的对象图像,图4为本公开实施例提供的一种更新目标参考图像的流程示意图,如图4所示,上述方法还可以包括步骤S401至步骤S404,其中:In some implementations, it is assumed that the above target reference image may be the object image selected from the local object images with the highest similarity with the registered image. FIG. As shown in Figure 4, the above method may also include steps S401 to S404, wherein:
步骤S401:响应于第三对象识别指令,获取本地设备采集目标对象的第三对象图像和注册图像;Step S401: In response to the third object recognition instruction, acquire the third object image and the registration image of the target object collected by the local device;
步骤S402:基于注册图像对第三对象图像进行对象识别,得到第三对象识别结果;Step S402: performing object recognition on the third object image based on the registered image to obtain a third object recognition result;
步骤S403:比较第三对象识别结果和第二对象识别结果,得到比较结果;Step S403: Comparing the third object recognition result with the second object recognition result to obtain a comparison result;
步骤S404:在比较结果指示第三对象图像与注册图像间的相似度大于第二对象图像与注册图像间的相似度的情况下,基于第三对象图像更新目标参考图像。Step S404: When the comparison result indicates that the similarity between the third object image and the registered image is greater than the similarity between the second object image and the registered image, update the target reference image based on the third object image.
其中,上述第三对象识别指令可以为在第二对象识别指令之后触发的对象识别指令。对象识别结果可以为注册图像和第三对象图像间的相似度。Wherein, the above-mentioned third object recognition instruction may be an object recognition instruction triggered after the second object recognition instruction. The object recognition result may be a degree of similarity between the registration image and the third object image.
在一些实施方式中,为了更好提升作为识别目标对象的参考图像的质量,可以从本地设备采集的对象图像中选取与注册图像间的相似程度更高的对象图像不断更新目标参考图像。In some implementations, in order to better improve the quality of the reference image for identifying the target object, an object image with a higher degree of similarity to the registered image may be selected from the object images collected by the local device to continuously update the target reference image.
在实际应用中,第三对象识别指令被触发后,除了执行上述获取本地设备采集目标对象的第三对象图像和注册图像,至将基于第三对象图像更新目标参考图像的操作;也可以结合实际应用需求,基于目标参考图像对第三对象图像进行对象识别,并基于对象识别结果执行相应的操作,例如,在对象识别结果指示第三对象图像和目标参考图像间的相似度大于等于上述预设阈值的情况下,执行开启门禁、录入考勤信息等操作。In practical applications, after the third object recognition instruction is triggered, in addition to performing the above-mentioned acquisition of the third object image and registration image of the target object captured by the local device, the operation of updating the target reference image based on the third object image; it can also be combined with the actual Application requirements, perform object recognition on the third object image based on the target reference image, and perform corresponding operations based on the object recognition result, for example, when the object recognition result indicates that the similarity between the third object image and the target reference image is greater than or equal to the preset When the threshold is exceeded, perform operations such as opening access control and entering attendance information.
在一些实施方式中,上述基于注册图像对第三对象图像进行对象识别, 得到第三对象识别结果的具体细化,可以参见上述步骤S202的具体细化。In some implementation manners, the above-mentioned object recognition is performed on the third object image based on the registered image to obtain a specific refinement of the third object recognition result, and reference may be made to the specific refinement of the above step S202.
上述实施方式中,从本地设备采集的对象图像中选取与注册图像间的相似程度更高的对象图像不断更新目标参考图像,可以更好提升作为识别目标对象的参考图像的质量。In the above embodiments, the target reference image is continuously updated by selecting an object image with a higher degree of similarity with the registered image from the object images collected by the local device, which can better improve the quality of the reference image for identifying the target object.
在一些实施方式中,假设上述目标参考图像为从本地对象图像中选取的与注册图像的相似度和活体检测结果对应数值的加权平均之和最高的对象图像,图5为本公开实施例提供的一种预先得到目标参考图像的流程示意图,如图5所示,上述方法还可以包括步骤S501至步骤S504,其中:In some implementations, it is assumed that the above-mentioned target reference image is the object image selected from the local object image with the highest sum of the weighted average of the similarity with the registration image and the corresponding value of the living body detection result. A schematic flow chart of obtaining a target reference image in advance, as shown in FIG. 5 , the above method may further include steps S501 to S504, wherein:
步骤S501:获取预设时间段内的本地设备采集的目标对象的第一目标图像,以及第一目标图像与注册图像间的第四对象识别结果;Step S501: Obtain the first target image of the target object collected by the local device within a preset time period, and the fourth object recognition result between the first target image and the registered image;
步骤S502:对第一目标图像进行活体检测,得到活体检测结果;Step S502: Perform liveness detection on the first target image to obtain a liveness detection result;
步骤S503:基于第四对象识别结果和活体检测结果,从第一目标图像中筛选出第二目标图像;Step S503: Based on the fourth object recognition result and the living body detection result, filter out the second target image from the first target image;
步骤S504:基于第二目标图像更新注册图像,得到目标参考图像。Step S504: Update the registered image based on the second target image to obtain a target reference image.
其中,第一目标图像可以为预设时间段内的本地设备采集的目标对象的图像中,与初始参考图像间的匹配度大于等于预设阈值的对象图像。在一些实施方式中,预设时间段可以为预先设置的注册图像的更新周期。第四对象识别结果可以为注册图像和第一目标图像间的相似度。Wherein, the first target image may be an object image whose matching degree with the initial reference image is greater than or equal to a preset threshold among images of the target object collected by the local device within a preset time period. In some implementations, the preset time period may be a preset update period of the registered image. The fourth object recognition result may be the similarity between the registration image and the first target image.
在一些实施方式中,上述步骤S502可以包括:基于预先训练好的活体检测网络对第一目标图像进行活体检测,得到活体检测结果。In some implementations, the above step S502 may include: performing life detection on the first target image based on a pre-trained life detection network to obtain a life detection result.
其中,活体检测结果可以表征采集第一目标图像时是否有活体(例如真实的人)的信息。在实际应用中,活体检测结果可以是采集第一目标图像时有活体的概率。Wherein, the living body detection result may represent information about whether there is a living body (for example, a real person) when the first target image is captured. In practical applications, the living body detection result may be the probability that there is a living body when the first target image is collected.
在一些实施方式中,上述步骤S503可以包括:对第一目标图像中任一图像的对象识别结果所对应数值(相似度)和该图像的活体检测结果所对应数值(概率)进行加权平均或相加,选取加权平均后数值或相加后数值最高的图像作为上述第二目标图像,进而基于该第二目标图像更新注册图像,得到目标参考图像。其中,上述步骤S504的具体细化步骤可以参见上述步骤S203的具体细化。In some implementations, the above step S503 may include: performing a weighted average or correlation of the value (similarity) corresponding to the object recognition result of any image in the first target image and the value (probability) corresponding to the living body detection result of the image. Adding, selecting the image with the highest weighted average or added value as the second target image, and then updating the registered image based on the second target image to obtain a target reference image. Wherein, for the specific detailed steps of the above step S504, please refer to the detailed detailed steps of the above step S203.
此外,需要说明的是,第四对象识别结果和活体检测结果各自对应的权重可以结合实际应用需求进行设置。In addition, it should be noted that the respective weights of the fourth object recognition result and the living body detection result can be set according to actual application requirements.
在一些实施方式中,也可以将本地采集的对象图像中第一个,对象识别结果和活体检测结果所对应数值之和,或加权平均之后的数值大于等于预先设置的数值的对象图像,来更新注册图像,得到目标参考图像。In some implementations, the first of the locally collected object images, the sum of the values corresponding to the object recognition result and the living body detection result, or the object image whose weighted average value is greater than or equal to the preset value can also be updated. Register the image to get the target reference image.
上述实施方式中,结合对一段时间内本地设备采集的对象图像的对象识别结果和活体检测结果来选取目标参考图像,可以更好的保证采集到真实对象的图像,进而更好的保证图像质量。In the above embodiments, the target reference image is selected in combination with the object recognition results and living body detection results of the object images collected by the local device within a period of time, which can better ensure that images of real objects are collected, and thus better ensure image quality.
在一些实施方式中,上述方法还可以包括步骤S601至步骤S602:In some implementations, the above method may also include steps S601 to S602:
步骤S601,基于预设更新频率,获取当前更新周期内本地设备采集的目标对象的第三目标图像;Step S601, based on the preset update frequency, acquire the third target image of the target object collected by the local device in the current update period;
步骤S602,基于第三目标图像中满足预设条件的图像更新目标参考图像。Step S602, updating the target reference image based on the image satisfying the preset condition in the third target image.
其中,预设更新频率可以结合实际应用需求预设设置,预设更新频率可以为目标参考图像的更新频率。在一些实施方式中,第三目标图像可以是当前更新周期内本地设备采集的目标对象的图像。第三目标图像中满足预设条件的图像的具体细化可以参见上述确定目标参考图像时,满足预设条件的对象图像的具体细化。Wherein, the preset update frequency may be preset according to actual application requirements, and the preset update frequency may be the update frequency of the target reference image. In some implementations, the third target image may be an image of the target object collected by the local device in the current update period. For specific refinement of the images satisfying the preset conditions in the third target image, refer to the specific refinement of the target images satisfying the preset conditions when determining the target reference image above.
上述实施方式中,按照预设更新频率不断更新目标参考图像,可以更好的保证目标参考图像与目标对象间的相似程度,有效提升目标参考图像的图像质量。In the above embodiments, the target reference image is continuously updated according to the preset update frequency, which can better ensure the similarity between the target reference image and the target object, and effectively improve the image quality of the target reference image.
在一些实施方式中,上述步骤S602可以包括步骤S6021或步骤S6022,其中:In some embodiments, the above step S602 may include step S6021 or step S6022, wherein:
步骤S6021,利用第三目标图像中满足预设条件的对象图像替换目标参考图像;Step S6021, replacing the target reference image with the target image satisfying the preset condition in the third target image;
步骤S6022,将第三目标图像中满足预设条件的对象图像添加至目标参考图像中。Step S6022, adding object images satisfying preset conditions in the third target image to the target reference image.
在一些实施方式中,可以将当前更新周期内本地设备采集的目标对象的第三目标图像中满足预设条件,直接替换原来的目标参考图像,以实现对目标参考图像的更新。In some implementation manners, the third target image of the target object collected by the local device in the current update period can directly replace the original target reference image, so as to update the target reference image.
在一些实施方式中,可以将当前更新周期内本地设备采集的目标对象的第三目标图像中满足预设条件,添加至目标参考图像中,以实现对目标参考图像的更新;在一些实施方式中,也可以预先设置目标参考图像的图像数量上限,在目标参考图像的图像数量达到上述图像数量上限,可以停止将第三目标图像中满足预设条件的对象图像添加至目标参考图像中的操作。In some implementations, the third target image of the target object collected by the local device in the current update period meets the preset conditions and can be added to the target reference image to update the target reference image; in some implementations , the upper limit of the number of images of the target reference image can also be set in advance, and when the number of images of the target reference image reaches the above upper limit of the number of images, the operation of adding object images satisfying the preset conditions in the third target image to the target reference image can be stopped.
上述实施方式中,利用当前更新周期内本地设备采集的对象图像来更新目标参考图像的过程中,可以通过替换目标参考图像或将当前更新周期满足预设条件的对象图像添加至目标参考图像中的方式,来实现目标参考图像的更新,可以在有效提升目标参考图像质量的而同时,增加目标参考图像的更新方式的多样性。In the above embodiment, in the process of updating the target reference image by using the object image collected by the local device in the current update period, the target reference image can be replaced or the object image that meets the preset condition in the current update period can be added to the target reference image. The update method of the target reference image can effectively improve the quality of the target reference image and at the same time increase the diversity of update methods of the target reference image.
此外,需要说明的是,上述列举的预设条件是一种示例,在实际应用中,可以结合实际应用需求,设置更多的预设条件,或将不同预设条件的示例间任意至少两种示例组合成新的预设条件等。In addition, it should be noted that the preset conditions listed above are examples. In practical applications, more preset conditions can be set in combination with actual application requirements, or at least two examples of different preset conditions can be randomly selected. Examples are combined into new presets and more.
在一些实施方式中,在目标参考图像包括多个图像的情况下,上述方法还可以包括步骤S701至步骤S702,其中:In some implementations, when the target reference image includes multiple images, the above method may further include steps S701 to S702, wherein:
步骤S701,展示多个图像;Step S701, displaying multiple images;
步骤S702,响应于基于多个图像中至少一个图像触发确认指令,基于确认指令对应的至少一个图像更新目标参考图像。Step S702, in response to triggering the confirmation instruction based on at least one image in the plurality of images, updating the target reference image based on at least one image corresponding to the confirmation instruction.
在实际应用中,为了更好的保证目标参考图像的质量,可以将目标参考图像展示给用户,以便由用户进行目标参考图像的选取确认。In practical applications, in order to better ensure the quality of the target reference image, the target reference image may be displayed to the user so that the user can select and confirm the target reference image.
在一些实施方式中,在目标参考图像包括一个图像的情况下,也可以展现目标参考图像,以供用户进行确认,相应的,若基于展示的目标参考图像触发确认指令,可以将确认指令对应的图像作为目标参考图像;反之,可以重新结合预设条件获取目标参考图像。In some implementations, when the target reference image includes one image, the target reference image may also be presented for confirmation by the user. Correspondingly, if the confirmation instruction is triggered based on the displayed target reference image, the corresponding The image is used as the target reference image; otherwise, the target reference image can be obtained by recombining the preset conditions.
步骤S102:基于目标参考图像对第一对象图像进行对象识别,得到第一对象识别结果。Step S102: Perform object recognition on the first object image based on the target reference image to obtain a first object recognition result.
在一些实施方式中,第一对象识别结果可以为目标参考图像和第一对象图像间的相似度。In some implementations, the first object recognition result may be the similarity between the target reference image and the first object image.
目标参考图像可以包括一个或多个图像。在目标参考图像包括多个图像的情况下,上述步骤S102可以包括步骤S1021至步骤S1022,其中:A target reference image may include one or more images. In the case where the target reference image includes multiple images, the above step S102 may include steps S1021 to S1022, wherein:
步骤S1021,基于多个图像分别对第一对象图像分别进行对象识别,得到多个子对象识别结果;Step S1021, performing object recognition on the first object image based on the plurality of images, respectively, to obtain a plurality of sub-object recognition results;
步骤S1022,基于多个子对象识别结果生成第一对象识别结果。Step S1022, generating a first object recognition result based on the multiple sub-object recognition results.
在一些实施方式中,可以将多个子对象识别结果相加,得到上述第一对象识别结果;也可以预先设置好多个图像对应的权重信息,基于权重信息对多个子对象识别结果进行加权平均,得到上述第一对象识别结果。In some embodiments, multiple sub-object recognition results can be added to obtain the above-mentioned first object recognition result; weight information corresponding to multiple images can also be preset, and weighted average of multiple sub-object recognition results can be obtained based on the weight information. The above first object recognition result.
在一些实施方式中,在目标参考图像包括上述第二对象图像和注册图像的情况下,上述步骤S102可以包括步骤S1031至步骤S1033,其中:In some implementations, when the target reference image includes the above-mentioned second object image and the registration image, the above-mentioned step S102 may include steps S1031 to S1033, wherein:
步骤S1031,基于注册图像对第一对象图像进行对象识别,得到第一子对象识别结果;Step S1031, performing object recognition on the first object image based on the registered image to obtain a first sub-object recognition result;
步骤S1032,基于第二对象图像对第一对象图像进行对象识别,得到第二子对象识别结果;Step S1032, performing object recognition on the first object image based on the second object image to obtain a second sub-object recognition result;
步骤S1033,根据第一子对象识别结果和第二子对象识别结果,确定第一对象识别结果。Step S1033: Determine the first object recognition result according to the first sub-object recognition result and the second sub-object recognition result.
在一些实施方式中,步骤S1031和步骤S1032的具体细化可以参见上述步骤S202的具体细化。In some implementation manners, for details of step S1031 and step S1032, refer to the details of step S202 above.
在一些实施方式中,步骤S1033可以包括将第一子对象识别结果和第二子对象识别结果相加,得到上述第一对象识别结果;也可以预先设置的权重信息,基于权重信息对第一子对象识别结果和第二子对象识别结果进行加权平均,得到上述第一对象识别结果。In some implementations, step S1033 may include adding the first sub-object recognition result and the second sub-object recognition result to obtain the above-mentioned first sub-object recognition result; it may also be based on preset weight information, based on the weight information for the first sub-object The object recognition result and the second sub-object recognition result are weighted and averaged to obtain the above-mentioned first object recognition result.
上述实施方式中,在目标参考图像包括多个图像的情况下,基于多个目标参考图像对第一对象图像分别进行对象识别,可以更好的保证对象识别的准确性。In the above embodiments, in the case that the target reference image includes multiple images, object recognition is performed on the first object image based on the multiple target reference images, which can better ensure the accuracy of object recognition.
在一些实施方式中,在第一对象识别结果指示第一对象图像和目标参考图像间的相似度大于等于预设阈值的情况下,可以执行预设操作。其中,预设操作可以结合实际应用需求的不同而不同,例如,预设操作可以包括但不限于开启门禁、录入考勤信息、支付等操作。在一些实施方式中,在第一对象识别结果指示第一对象图像和目标参考图像间的相似度小于预设阈值的情况下,可以反馈预设提示信息,以便提示用户重新拍摄目标对象的图像。In some implementations, when the first object recognition result indicates that the similarity between the first object image and the target reference image is greater than or equal to a preset threshold, a preset operation may be performed. Wherein, the preset operation may be different according to different actual application requirements. For example, the preset operation may include but not limited to opening the access control, entering attendance information, payment and other operations. In some implementations, when the first object recognition result indicates that the similarity between the first object image and the target reference image is less than a preset threshold, preset prompt information may be fed back so as to prompt the user to retake the image of the target object.
由以上本公开实施例提供的技术方案可见,本公开中在本地设备采集的对象图像被识别为目标对象的图像的情况下,基于本地设备采集的对象图像来更新异地设备采集的注册图像,可以有效保证后续的对象识别通过率和应用的安全性。It can be seen from the above technical solutions provided by the embodiments of the present disclosure that in the present disclosure, when the object image collected by the local device is recognized as the image of the target object, updating the registered image collected by the remote device based on the object image collected by the local device can Effectively guarantee the subsequent object recognition pass rate and application security.
本领域技术人员可以理解,在具体实施方式的上述方法中,各步骤的撰写顺序并不意味着严格的执行顺序而对实施过程构成任何限定,各步骤的具体执行顺序应当以其功能和可能的内在逻辑确定。Those skilled in the art can understand that in the above method of specific implementation, the writing order of each step does not mean a strict execution order and constitutes any limitation on the implementation process. The specific execution order of each step should be based on its function and possible The inner logic is OK.
图6为本公开实施例提供的一种图像处理装置的组成结构示意图。参照图6,该装置包括:FIG. 6 is a schematic diagram of the composition and structure of an image processing device provided by an embodiment of the present disclosure. Referring to Figure 6, the device includes:
第一图像获取部分610,被配置为执行响应于第一对象识别指令,获取本地设备采集的目标对象的第一对象图像和目标参考图像,目标参考图像是基于本地对象图像对注册图像更新得到的,注册图像为异地设备采集的目标对象的图像,注册图像用于进行对象注册;The first image acquiring part 610 is configured to execute in response to the first object recognition instruction, acquire the first object image and the target reference image of the target object collected by the local device, and the target reference image is obtained by updating the registered image based on the local object image , the registered image is the image of the target object collected by the remote device, and the registered image is used for object registration;
第一对象识别部分620,被配置为执行基于目标参考图像对第一对象图像进行对象识别,得到第一对象识别结果。The first object recognition part 620 is configured to perform object recognition on the first object image based on the target reference image to obtain a first object recognition result.
在一些实施方式中,目标参考图像至少包括以下之一:In some embodiments, the target reference image includes at least one of the following:
从本地对象图像中选取的第一个与注册图像的相似度大于等于预设阈值的对象图像;The first object image selected from the local object image and the registration image is greater than or equal to the preset threshold;
从本地对象图像中选取的第一个与注册图像的相似度大于等于预设阈值,且图像质量分析结果满足预设质量条件的对象图像;The first object image selected from the local object image whose similarity with the registered image is greater than or equal to a preset threshold, and whose image quality analysis result satisfies the preset quality condition;
从本地对象图像中选取的第一个与注册图像的相似度大于等于预设阈值,且本地对象图像被采集时,目标对象相对于摄像装置的方位信息为至少一个指定方位信息的对象图像;The similarity between the first selected local object image and the registered image is greater than or equal to a preset threshold, and when the local object image is collected, the orientation information of the target object relative to the camera device is at least one object image with specified orientation information;
从本地对象图像中选取的第一个与注册图像的相似度大于等于预设阈值,且本地对象图像被采集时的时间属性信息,与注册图像的采集时间属性信息相匹配的对象图像;The first object image selected from the local object image whose similarity with the registration image is greater than or equal to a preset threshold, and whose time attribute information when the local object image is collected matches the acquisition time attribute information of the registration image;
从本地对象图像中选取的第一个与注册图像的相似度大于等于预设阈值,且本地对象图像被采集时的时间,位于目标时间段的对象图像,目标时间段为预设操作的执行频率大于等于预设频率的时间段;The first one selected from the local object image whose similarity with the registered image is greater than or equal to the preset threshold, and the time when the local object image is collected, the object image located in the target time period, and the target time period is the execution frequency of the preset operation The period of time greater than or equal to the preset frequency;
从本地对象图像中选取的与注册图像的相似度最高的对象图像;The object image with the highest similarity to the registered image is selected from the local object images;
从本地对象图像中选取的与注册图像的相似度和活体检测结果对应数值的加权平均之和最高的对象图像。Select the object image with the highest weighted average sum of the similarity with the registration image and the corresponding value of the living body detection result from the local object image.
在一些实施方式中,上述装置还包括:In some embodiments, the above-mentioned device also includes:
第二图像获取部分,被配置为执行响应于第二对象识别指令,获取本地设备采集的目标对象的第二对象图像和注册图像,第二对象识别指令为在第一对象识别指令之前触发的对象识别指令;The second image acquiring part is configured to acquire a second object image and a registered image of the target object captured by the local device in response to a second object recognition instruction, where the second object recognition instruction is an object triggered before the first object recognition instruction identification instructions;
第二对象识别部分,被配置为执行基于注册图像对第二对象图像进行对象识别,得到第二对象识别结果;The second object recognition part is configured to perform object recognition on the second object image based on the registered image to obtain a second object recognition result;
第一注册图像更新部分,被配置为执行在第二对象识别结果指示第二对象图像和注册图像间的相似度大于等于预设阈值的情况下,基于第二对 象图像更新注册图像,得到目标参考图像。The first registration image updating part is configured to execute updating the registration image based on the second object image to obtain the target reference when the second object recognition result indicates that the similarity between the second object image and the registration image is greater than or equal to a preset threshold. image.
在一些实施方式中,第二对象识别部分包括:In some embodiments, the second object recognition component includes:
光学属性差异识别部分,被配置为执行对注册图像和第二对象图像进行光学属性差异识别,得到光学属性差异信息;The optical attribute difference identification part is configured to perform optical attribute difference identification on the registration image and the second object image, and obtain optical attribute difference information;
光学属性校正部分,被配置为执行基于光学属性差异信息对注册图像进行光学属性校正,得到校正后的图像;The optical attribute correction part is configured to perform optical attribute correction on the registered image based on the optical attribute difference information to obtain a corrected image;
对象识别部分,被配置为执行基于校正后的图像对第二对象图像进行对象识别,得到第二对象识别结果。The object recognition part is configured to perform object recognition on the second object image based on the corrected image to obtain a second object recognition result.
在一些实施方式中,第一注册图像更新部分包括:In some embodiments, the first registration image update section includes:
第一注册图像更新子部分,被配置为执行利用第二对象图像替换注册图像,得到目标参考图像;The first registered image updating subpart is configured to replace the registered image with the second object image to obtain the target reference image;
或,or,
第二注册图像更新子部分,被配置为执行将第二对象图像和注册图像作为目标参考图像。The second registered image updating subsection is configured to perform using the second object image and the registered image as target reference images.
在一些实施方式中,第一注册图像更新部分包括:In some embodiments, the first registration image update section includes:
图像质量分析部分,被配置为执行在第二对象识别结果指示第二对象图像和注册图像间的相似度大于等于预设阈值的情况下,对第二对象图像进行图像质量分析,得到图像质量分析结果;The image quality analysis part is configured to perform image quality analysis on the second object image when the second object recognition result indicates that the similarity between the second object image and the registration image is greater than or equal to a preset threshold value, to obtain an image quality analysis result;
第三注册图像更新子部分,被配置为执行在图像质量分析结果满足预设质量条件的情况下,基于第二对象图像更新注册图像,得到目标参考图像;The third registered image updating subpart is configured to update the registered image based on the second object image to obtain the target reference image when the image quality analysis result meets the preset quality condition;
或,or,
对象方位识别部分,被配置为执行在第二对象识别结果指示第二对象图像和注册图像间的相似度大于等于预设阈值的情况下,对第二对象图像进行对象方位识别,得到对象方位识别结果;The object orientation recognition part is configured to perform object orientation recognition on the second object image when the second object recognition result indicates that the similarity between the second object image and the registered image is greater than or equal to a preset threshold, to obtain the object orientation recognition result;
第四注册图像更新子部分,被配置为执行在对象方位识别结果满足至少一个预设方位条件的情况下,基于第二对象图像更新注册图像,得到目标参考图像;The fourth registered image updating subsection is configured to update the registered image based on the second object image to obtain a target reference image when the object orientation recognition result meets at least one preset orientation condition;
或,or,
采集时间属性获取部分,被配置为执行在第二对象识别结果指示第二对象图像和注册图像间的相似度大于等于预设阈值的情况下,获取注册图像的采集时间属性信息;The acquisition time attribute acquisition part is configured to acquire the acquisition time attribute information of the registration image when the second object recognition result indicates that the similarity between the second object image and the registration image is greater than or equal to a preset threshold;
第五注册图像更新子部分,被配置为执行在当前时间属性信息与采集时间属性信息相匹配的情况下,基于第二对象图像更新注册图像,得到目标参考图像。The fifth registration image updating subpart is configured to update the registration image based on the second object image to obtain a target reference image when the current time attribute information matches the acquisition time attribute information.
或,or,
历史操作触发时间获取部分,被配置为执行在第二对象识别结果指示第二对象图像和注册图像间的相似度大于等于预设阈值的情况下,获取目标对象对应的历史操作触发时间,历史操作触发时间为基于目标对象对应的对象识别结果触发预设操作的触发时间;The historical operation trigger time acquisition part is configured to acquire the historical operation trigger time corresponding to the target object when the second object recognition result indicates that the similarity between the second object image and the registered image is greater than or equal to a preset threshold, and the historical operation trigger time The trigger time is the trigger time when the preset operation is triggered based on the object recognition result corresponding to the target object;
目标时间段确定部分,被配置为执行基于历史操作触发时间确定目标时间段,目标时间段为预设操作的执行频率大于等于预设频率的时间段;The target time period determining part is configured to determine the target time period based on the historical operation trigger time, and the target time period is a time period in which the execution frequency of the preset operation is greater than or equal to the preset frequency;
第六注册图像更新子部分,被配置为执行在当前时间位于目标时间段的情况下,基于第二对象图像更新注册图像,得到目标参考图像。The sixth registered image updating subpart is configured to update the registered image based on the second object image to obtain the target reference image when the current time is within the target time period.
在一些实施方式中,上述装置还包括:第三图像获取部分,被配置为执行响应于第三对象识别指令,获取本地设备采集目标对象的第三对象图像和注册图像;第三对象识别部分,被配置为执行基于注册图像对第三对象图像进行对象识别,得到第三对象识别结果;对象识别结果比较部分,被配置为执行比较第三对象识别结果和第二对象识别结果,得到比较结果;第一目标参考图像更新部分,被配置为执行在比较结果指示第三对象图像与注册图像间的相似度大于第二对象图像与注册图像间的相似度的情况下,基于第三对象图像更新目标参考图像。In some implementations, the above apparatus further includes: a third image acquisition part configured to acquire a third object image and a registered image of the target object captured by the local device in response to the third object recognition instruction; the third object recognition part, configured to perform object recognition on the third object image based on the registered image to obtain a third object recognition result; the object recognition result comparison part is configured to perform a comparison between the third object recognition result and the second object recognition result to obtain a comparison result; The first target reference image updating section configured to perform updating the target based on the third target image in a case where the comparison result indicates that the similarity between the third target image and the registered image is greater than the similarity between the second target image and the registered image. Reference image.
在一些实施方式中,上述装置还包括:In some embodiments, the above-mentioned device also includes:
数据获取部分,被配置为执行获取预设时间段内的本地设备采集的目标对象的第一目标图像,以及第一目标图像与目标对象的注册图像间的第四对象识别结果;活体检测部分,被配置为执行对第一目标图像进行活体检测,得到活体检测结果;目标图像筛选部分,被配置为执基于第四对象识别结果和活体检测结果,从第一目标图像中筛选出第二目标图像;第二注册图像更新部分,被配置为执基于第二目标图像更新注册图像,得到目标参考图像。The data acquisition part is configured to execute the acquisition of the first target image of the target object collected by the local device within a preset time period, and the fourth object recognition result between the first target image and the registration image of the target object; the living body detection part, It is configured to perform liveness detection on the first target image to obtain a liveness detection result; the target image screening part is configured to perform screening of the second target image from the first target image based on the fourth object recognition result and the liveness detection result ; The second registered image updating part is configured to update the registered image based on the second target image to obtain a target reference image.
关于上述实施例中的装置,其中各个部分执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。With regard to the apparatus in the above embodiments, the specific manner in which each part executes operations has been described in detail in the embodiments related to the method, and will not be described in detail here.
在本公开实施例以及其他的实施例中,“部分”可以是部分电路、部分处理器、部分程序或软件等等,当然也可以是单元,还可以是模块也可以是非模块化的。In the embodiments of the present disclosure and other embodiments, a "part" may be a part of a circuit, a part of a processor, a part of a program or software, etc., of course it may also be a unit, a module or a non-modular one.
图7为本公开实施例提供的一种电子设备700的硬件结构示意图,该电子设备700可以是终端,其内部结构图可以如图7所示。该电子设备700包括通过系统总线710连接的处理器711、存储器、网络接口713、显示屏714和输入装置715。其中,该电子设备的处理器711用于提供计算和控制能力。该电子设备的存储器可以包括但不限于非易失性存储介质7121、内存储器7122等。该非易失性存储介质存储有操作系统716和计算机程序717。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该电子设备的网络接口713用于与外部的终端通过网络连接通信。该计算机程序被处理器711执行时以实现上述图像处理的方法。该电子设备的显示屏714可以包括但不限于液晶显示屏或者电子墨水显示屏等,该电子设备的输入装置715可以是显示屏上覆盖的触摸层,也可以是电子设备外壳上设置的按键、轨迹球或触控板,还可以是外接的键盘、触控板或鼠标等。FIG. 7 is a schematic diagram of a hardware structure of an electronic device 700 provided by an embodiment of the present disclosure. The electronic device 700 may be a terminal, and its internal structure may be as shown in FIG. 7 . The electronic device 700 includes a processor 711 connected through a system bus 710 , a memory, a network interface 713 , a display screen 714 and an input device 715 . Wherein, the processor 711 of the electronic device is used to provide calculation and control capabilities. The memory of the electronic device may include, but not limited to, a non-volatile storage medium 7121, an internal memory 7122, and the like. The non-volatile storage medium stores an operating system 716 and a computer program 717 . The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The network interface 713 of the electronic device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor 711, the above image processing method can be realized. The display screen 714 of the electronic device may include but not limited to a liquid crystal display screen or an electronic ink display screen, etc., and the input device 715 of the electronic device may be a touch layer covered on the display screen, or a key set on the casing of the electronic device, A trackball or a touchpad, or an external keyboard, touchpad, or mouse.
本领域技术人员可以理解,图7中示出的结构,是与本公开方案相关的部分结构的框图,并不构成对本公开方案所应用于其上的电子设备的限定,具体的电子设备可以包括比图中所示更多或更少的部件,或者组合某些部 件,或者具有不同的部件布置。Those skilled in the art can understand that the structure shown in FIG. 7 is a block diagram of a partial structure related to the disclosed solution, and does not constitute a limitation on the electronic equipment to which the disclosed solution is applied. The specific electronic equipment may include There may be more or fewer components than shown in the figures, or certain components may be combined, or have different component arrangements.
本公开实施例还提供了一种电子设备,包括:处理器;用于存储该处理器可执行指令的存储器;其中,该处理器被配置为执行该指令,以实现本公开实施例中的图像处理方法。An embodiment of the present disclosure also provides an electronic device, including: a processor; a memory for storing an instruction executable by the processor; wherein the processor is configured to execute the instruction to realize the image in the embodiment of the present disclosure Approach.
本公开实施例还提供了一种存储介质,当该存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行本公开实施例中的图像处理方法。The embodiment of the present disclosure also provides a storage medium, and when the instructions in the storage medium are executed by the processor of the electronic device, the electronic device can execute the image processing method in the embodiment of the present disclosure.
本公开实施例还提供了一种计算机程序产品,该计算机程序产品包括计算机程序或指令,在该计算机程序或指令在电子设备上运行时,使得电子设备执行本公开实施例中的图像处理方法。The embodiment of the present disclosure also provides a computer program product, the computer program product includes a computer program or an instruction, and when the computer program or instruction is run on the electronic device, the electronic device executes the image processing method in the embodiment of the present disclosure.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,该计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可以包括上述各方法的实施例的流程。其中,本公开所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(Read Only Memory,ROM)、可编程ROM(Programmable Read Only Memory,PROM)、电可编程ROM(Erasable Programmable Read Only Memory,EPROM)、电可擦除可编程ROM(Electrically Erasable Programmable Read Only Memory,EEPROM)或闪存。易失性存储器可包括随机存取存储器(Random Access Memory,RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(Static Random Access Memory,SRAM)、动态RAM(Dynamic Random Access Memory,DRAM)、同步DRAM(Synchronous Dynamic Random Access Memory,SDRAM)、双数据率SDRAM(Double Data Rate Synchronous Dynamic Random Access Memory,DDRSDRAM)、增强型SDRAM(Enhanced Synchronous Dynamic Random Access Memory,ESDRAM)、同步链路DRAM(Synchlink Dynamic Random Access Memory,SLDRAM)、存储器总线直接RAM(Rambus Dynamic Random Access Memory,RDRAM)、以及直接存储器总线动态RAM(Direct Rambus Dynamic Random Access Memory,DRDRAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be realized by instructing related hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium , when the computer program is executed, it may include the procedures of the embodiments of the above-mentioned methods. Wherein, any reference to memory, storage, database or other media used in various embodiments provided by the present disclosure may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (Read Only Memory, ROM), programmable ROM (Programmable Read Only Memory, PROM), electrically programmable ROM (Erasable Programmable Read Only Memory, EPROM), electrically erasable programmable ROM (Electrically Erasable Programmable Read Only Memory, EEPROM) or flash memory. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as Static Random Access Memory (SRAM), Dynamic RAM (Dynamic Random Access Memory, DRAM), Synchronous DRAM (Synchronous Dynamic Random Access Memory, SDRAM), dual Data rate SDRAM (Double Data Rate Synchronous Dynamic Random Access Memory, DDRSDRAM), enhanced SDRAM (Enhanced Synchronous Dynamic Random Access Memory, ESDRAM), synchronous link DRAM (Synchlink Dynamic Random Access Memory, SLDRAM), memory bus direct RAM (Rambus Dynamic Random Access Memory, RDRAM), and direct memory bus dynamic RAM (Direct Rambus Dynamic Random Access Memory, DRDRAM), etc.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本公开旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由权利要求指出。Other embodiments of the present disclosure will be readily apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. The present disclosure is intended to cover any modification, use or adaptation of the present disclosure. These modifications, uses or adaptations follow the general principles of the present disclosure and include common knowledge or conventional technical means in the technical field not disclosed in the present disclosure. . The specification and examples are to be considered exemplary only, with the true scope and spirit of the disclosure indicated by the appended claims.
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It should be understood that the present disclosure is not limited to the precise constructions which have been described above and shown in the drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
工业实用性Industrial Applicability
本公开实施例提供一种图像处理方法及装置、电子设备、存储介质和计算机程序产品,该方法包括:响应于第一对象识别指令,获取本地设备采集的目标对象的第一对象图像和目标参考图像,目标参考图像是基于本地对象图像对注册图像更新得到的,注册图像为异地设备采集的目标对象的图像,注册图像用于进行对象注册;基于目标参考图像对第一对象图像进行对象识别,得到第一对象识别结果。上述方案可以提升对象识别准确率、通过率和应用的安全性。Embodiments of the present disclosure provide an image processing method and device, electronic equipment, a storage medium, and a computer program product. The method includes: in response to a first object recognition instruction, acquiring a first object image and a target reference of a target object collected by a local device image, the target reference image is obtained by updating the registered image based on the local object image, the registered image is the image of the target object collected by the remote device, and the registered image is used for object registration; the object recognition is performed on the first object image based on the target reference image, A first object recognition result is obtained. The above solution can improve the accuracy rate of object recognition, the pass rate and the security of the application.

Claims (19)

  1. 一种图像处理方法,包括:An image processing method, comprising:
    响应于第一对象识别指令,获取本地设备采集的目标对象的第一对象图像和目标参考图像,所述目标参考图像是基于本地对象图像对注册图像更新得到的,所述注册图像为异地设备采集的所述目标对象的图像,所述注册图像用于进行对象注册;In response to the first object recognition instruction, acquire the first object image and the target reference image of the target object collected by the local device, the target reference image is obtained by updating the registered image based on the local object image, and the registered image is collected by the remote device an image of the target object, the registration image is used for object registration;
    基于所述目标参考图像对所述第一对象图像进行对象识别,得到第一对象识别结果。Perform object recognition on the first object image based on the target reference image to obtain a first object recognition result.
  2. 根据权利要求1所述的图像处理方法,其中,所述目标参考图像至少包括以下之一:The image processing method according to claim 1, wherein the target reference image comprises at least one of the following:
    从所述本地对象图像中选取的第一个与所述注册图像的相似度大于等于预设阈值的对象图像;The first object image selected from the local object images whose similarity with the registration image is greater than or equal to a preset threshold;
    从所述本地对象图像中选取的第一个与所述注册图像的相似度大于等于预设阈值,且图像质量分析结果满足预设质量条件的对象图像;Selecting the first object image from the local object image whose similarity with the registered image is greater than or equal to a preset threshold and whose image quality analysis result meets a preset quality condition;
    从所述本地对象图像中选取的第一个与所述注册图像的相似度大于等于预设阈值,且所述本地对象图像被采集时,所述目标对象相对于摄像装置的方位信息为至少一个指定方位信息的对象图像;The similarity between the first one selected from the local object image and the registration image is greater than or equal to a preset threshold, and when the local object image is collected, the orientation information of the target object relative to the camera device is at least one An object image specifying orientation information;
    从所述本地对象图像中选取的第一个与所述注册图像的相似度大于等于预设阈值,且所述本地对象图像被采集时的时间属性信息,与所述注册图像的采集时间属性信息相匹配的对象图像;The similarity between the first one selected from the local object image and the registration image is greater than or equal to a preset threshold, and the time attribute information when the local object image is collected is the same as the collection time attribute information of the registration image matching object image;
    从所述本地对象图像中选取的第一个与所述注册图像的相似度大于等于预设阈值,且所述本地对象图像被采集时的时间,位于目标时间段的对象图像,所述目标时间段为预设操作的执行频率大于等于预设频率的时间段;The similarity between the first one selected from the local object image and the registration image is greater than or equal to a preset threshold, and the time when the local object image is collected, the object image located in the target time period, the target time The period is the time period during which the execution frequency of the preset operation is greater than or equal to the preset frequency;
    从所述本地对象图像中选取的与所述注册图像的相似度最高的对象图像;An object image with the highest similarity to the registered image selected from the local object images;
    从所述本地对象图像中选取的与所述注册图像的相似度和活体检测结果对应数值的加权平均之和最高的对象图像。An object image with the highest weighted average sum of the similarity with the registration image and the corresponding value of the living body detection result is selected from the local object image.
  3. 根据权利要求1或2所述的图像处理方法,其中,所述方法还包括:The image processing method according to claim 1 or 2, wherein the method further comprises:
    响应于第二对象识别指令,获取所述本地设备采集的所述目标对象的第二对象图像和所述注册图像,所述第二对象识别指令为在所述第一对象识别指令之前触发的对象识别指令;Acquire a second object image of the target object collected by the local device and the registration image in response to a second object recognition instruction, where the second object recognition instruction is an object triggered before the first object recognition instruction identify instructions;
    基于所述注册图像对所述第二对象图像进行对象识别,得到第二对象识别结果;performing object recognition on the second object image based on the registered image to obtain a second object recognition result;
    在所述第二对象识别结果指示所述第二对象图像和所述注册图像间的相似度大于等于预设阈值的情况下,基于所述第二对象图像更新所述注册图像,得到所述目标参考图像。When the second object recognition result indicates that the similarity between the second object image and the registered image is greater than or equal to a preset threshold, update the registered image based on the second object image to obtain the target Reference image.
  4. 根据权利要求3所述的图像处理方法,其中,所述基于所述注册图像对所述第二对象图像进行对象识别,得到第二对象识别结果,包括:The image processing method according to claim 3, wherein performing object recognition on the second object image based on the registered image to obtain a second object recognition result comprises:
    对所述注册图像和所述第二对象图像进行光学属性差异识别,得到光学属性差异信息;Performing optical attribute difference identification on the registration image and the second object image to obtain optical attribute difference information;
    基于所述光学属性差异信息对所述注册图像进行光学属性校正,得到校正后的图像;performing optical property correction on the registered image based on the optical property difference information to obtain a corrected image;
    基于所述校正后的图像对所述第二对象图像进行对象识别,得到所述第二对象识别结果。Perform object recognition on the second object image based on the corrected image to obtain the second object recognition result.
  5. 根据权利要求3所述的图像处理方法,其中,所述基于所述第二对象图像更新所述注册图像,得到所述目标参考图像,包括:The image processing method according to claim 3, wherein said updating said registration image based on said second object image to obtain said target reference image comprises:
    利用所述第二对象图像替换所述注册图像,得到所述目标参考图像;replacing the registration image with the second object image to obtain the target reference image;
    或,or,
    将所述第二对象图像和所述注册图像作为所述目标参考图像。The second object image and the registration image are used as the target reference image.
  6. 根据权利要求3所述的图像处理方法,其中,所述在所述第二对象识别结果指示所述第二对象图像和所述注册图像间的相似度大于等于预设阈值的情况下,基于所述第二对象图像更新所述注册图像,得到所述目标参考图像,包括:The image processing method according to claim 3, wherein, when the second object recognition result indicates that the similarity between the second object image and the registered image is greater than or equal to a preset threshold, based on the Updating the registration image with the second object image to obtain the target reference image, including:
    在所述第二对象识别结果指示所述第二对象图像和所述注册图像间的相似度大于等于预设阈值的情况下,对所述第二对象图像进行图像质量分析,得到图像质量分析结果;When the second object recognition result indicates that the similarity between the second object image and the registration image is greater than or equal to a preset threshold, perform image quality analysis on the second object image to obtain an image quality analysis result ;
    在所述图像质量分析结果满足预设质量条件的情况下,基于所述第二对象图像更新所述注册图像,得到所述目标参考图像;When the image quality analysis result meets a preset quality condition, updating the registration image based on the second object image to obtain the target reference image;
    或,or,
    在所述第二对象识别结果指示所述第二对象图像和所述注册图像间的相似度大于等于预设阈值的情况下,对所述第二对象图像进行对象方位识别,得到对象方位识别结果;When the second object recognition result indicates that the similarity between the second object image and the registration image is greater than or equal to a preset threshold, perform object orientation recognition on the second object image to obtain an object orientation recognition result ;
    在所述对象方位识别结果满足至少一个预设方位条件的情况下,基于所述第二对象图像更新所述注册图像,得到所述目标参考图像;In a case where the object orientation recognition result satisfies at least one preset orientation condition, updating the registration image based on the second object image to obtain the target reference image;
    或,or,
    在所述第二对象识别结果指示所述第二对象图像和所述注册图像间的相似度大于等于预设阈值的情况下,获取所述注册图像的采集时间属性信息;If the second object recognition result indicates that the similarity between the second object image and the registration image is greater than or equal to a preset threshold, acquiring acquisition time attribute information of the registration image;
    在当前时间属性信息与所述采集时间属性信息相匹配的情况下,基于所述第二对象图像更新所述注册图像,得到所述目标参考图像;In the case that the current time attribute information matches the collection time attribute information, updating the registration image based on the second object image to obtain the target reference image;
    或,or,
    在所述第二对象识别结果指示所述第二对象图像和所述注册图像间的相似度大于等于预设阈值的情况下,获取所述目标对象对应的历史操作触发时间,所述历史操作触发时间为基于所述目标对象对应的对象识别结果触发所述预设操作的触发时间;When the second object recognition result indicates that the similarity between the second object image and the registration image is greater than or equal to a preset threshold, acquire the historical operation trigger time corresponding to the target object, and the historical operation trigger The time is a trigger time for triggering the preset operation based on the object recognition result corresponding to the target object;
    基于所述历史操作触发时间确定目标时间段,所述目标时间段为所述预设操作的执行频率大于等于预设频率的时间段;determining a target time period based on the historical operation trigger time, where the target time period is a time period in which the execution frequency of the preset operation is greater than or equal to a preset frequency;
    在当前时间位于目标时间段的情况下,基于所述第二对象图像更新所述 注册图像,得到所述目标参考图像。When the current time is within the target time period, the registration image is updated based on the second object image to obtain the target reference image.
  7. 根据权利要求3所述的图像处理方法,其中,所述方法还包括:The image processing method according to claim 3, wherein said method further comprises:
    响应于第三对象识别指令,获取所述本地设备采集所述目标对象的第三对象图像和所述注册图像;In response to a third object recognition instruction, acquire a third object image and the registration image of the target object captured by the local device;
    基于所述注册图像对所述第三对象图像进行对象识别,得到第三对象识别结果;performing object recognition on the third object image based on the registered image to obtain a third object recognition result;
    比较所述第三对象识别结果和所述第二对象识别结果,得到比较结果;comparing the third object recognition result with the second object recognition result to obtain a comparison result;
    在所述比较结果指示所述第三对象图像与所述注册图像间的相似度大于所述第二对象图像与所述注册图像间的相似度的情况下,基于所述第三对象图像更新所述目标参考图像。In a case where the comparison result indicates that the similarity between the third object image and the registration image is greater than the similarity between the second object image and the registration image, updating the third object image based on the third object image the target reference image.
  8. 根据权利要求1或2所述的图像处理方法,其中,所述方法还包括:The image processing method according to claim 1 or 2, wherein the method further comprises:
    获取预设时间段内的所述本地设备采集的所述目标对象的第一目标图像,以及所述第一目标图像与所述注册图像间的第四对象识别结果;Acquiring a first target image of the target object captured by the local device within a preset time period, and a fourth object recognition result between the first target image and the registration image;
    对所述第一目标图像进行活体检测,得到活体检测结果;performing a living body detection on the first target image to obtain a living body detection result;
    基于所述第四对象识别结果和所述活体检测结果,从所述第一目标图像中筛选出第二目标图像;filtering out a second target image from the first target image based on the fourth object recognition result and the living body detection result;
    基于所述第二目标图像更新所述注册图像,得到所述目标参考图像。The registration image is updated based on the second target image to obtain the target reference image.
  9. 一种图像处理装置,包括:An image processing device, comprising:
    第一图像获取部分,被配置为执行响应于第一对象识别指令,获取本地设备采集的目标对象的第一对象图像和目标参考图像,所述目标参考图像是基于本地对象图像对注册图像更新得到的,所述注册图像为异地设备采集的所述目标对象的图像,所述注册图像用于进行对象注册;The first image acquisition part is configured to execute in response to the first object recognition instruction, acquire the first object image and the target reference image of the target object captured by the local device, and the target reference image is obtained by updating the registration image based on the local object image Wherein, the registration image is an image of the target object collected by a remote device, and the registration image is used for object registration;
    第一对象识别部分,被配置为执行基于所述目标参考图像对所述第一对象图像进行对象识别,得到第一对象识别结果。The first object recognition part is configured to perform object recognition on the first object image based on the target reference image to obtain a first object recognition result.
  10. 根据权利要求9所述的图像处理装置,其中,所述目标参考图像至少包括以下之一:The image processing device according to claim 9, wherein the target reference image comprises at least one of the following:
    从所述本地对象图像中选取的第一个与所述注册图像的相似度大于等于预设阈值的对象图像;The first object image selected from the local object images whose similarity with the registration image is greater than or equal to a preset threshold;
    从所述本地对象图像中选取的第一个与所述注册图像的相似度大于等于预设阈值,且图像质量分析结果满足预设质量条件的对象图像;Selecting the first object image from the local object image whose similarity with the registered image is greater than or equal to a preset threshold and whose image quality analysis result meets a preset quality condition;
    从所述本地对象图像中选取的第一个与所述注册图像的相似度大于等于预设阈值,且所述本地对象图像被采集时,所述目标对象相对于摄像装置的方位信息为至少一个指定方位信息的对象图像;The similarity between the first one selected from the local object image and the registration image is greater than or equal to a preset threshold, and when the local object image is collected, the orientation information of the target object relative to the camera device is at least one An object image specifying orientation information;
    从所述本地对象图像中选取的第一个与所述注册图像的相似度大于等于预设阈值,且所述本地对象图像被采集时的时间属性信息,与所述注册图像的采集时间属性信息相匹配的对象图像;The similarity between the first one selected from the local object image and the registration image is greater than or equal to a preset threshold, and the time attribute information when the local object image is collected is the same as the collection time attribute information of the registration image matching object image;
    从所述本地对象图像中选取的第一个与所述注册图像的相似度大于等于预设阈值,且所述本地对象图像被采集时的时间,位于目标时间段的对象图像,所述目标时间段为预设操作的执行频率大于等于预设频率的时间段;The similarity between the first one selected from the local object image and the registration image is greater than or equal to a preset threshold, and the time when the local object image is collected, the object image located in the target time period, the target time The period is the time period during which the execution frequency of the preset operation is greater than or equal to the preset frequency;
    从所述本地对象图像中选取的与所述注册图像的相似度最高的对象图像;An object image with the highest similarity to the registered image selected from the local object images;
    从所述本地对象图像中选取的与所述注册图像的相似度和活体检测结果对应数值的加权平均之和最高的对象图像。An object image with the highest weighted average sum of the similarity with the registration image and the corresponding value of the living body detection result is selected from the local object image.
  11. 根据权利要求9或10所述的图像处理装置,其中,所述装置还包括:The image processing device according to claim 9 or 10, wherein the device further comprises:
    第二图像获取部分,被配置为执行响应于第二对象识别指令,获取所述本地设备采集的所述目标对象的第二对象图像和所述注册图像,所述第二对象识别指令为在所述第一对象识别指令之前触发的对象识别指令;The second image acquisition part is configured to acquire the second object image of the target object captured by the local device and the registration image in response to a second object recognition instruction, the second object recognition instruction is in the an object recognition command triggered before the first object recognition command;
    第二对象识别部分,被配置为执行基于所述注册图像对所述第二对象图像进行对象识别,得到第二对象识别结果;The second object recognition part is configured to perform object recognition on the second object image based on the registration image to obtain a second object recognition result;
    第一注册图像更新部分,被配置为执行在所述第二对象识别结果指示所述第二对象图像和所述注册图像间的相似度大于等于预设阈值的情况下,基于所述第二对象图像更新所述注册图像,得到所述目标参考图像。The first registration image updating part is configured to perform, in the case that the second object recognition result indicates that the similarity between the second object image and the registration image is greater than or equal to a preset threshold, based on the second object and image updating the registered image to obtain the target reference image.
  12. 根据权利要求11所述的图像处理装置,其中,所述第二对象识别部分,还包括:The image processing apparatus according to claim 11, wherein the second object recognition part further comprises:
    光学属性差异识别部分,被配置为执行对所述注册图像和所述第二对象图像进行光学属性差异识别,得到光学属性差异信息;The optical attribute difference identification part is configured to perform optical attribute difference identification on the registration image and the second object image, and obtain optical attribute difference information;
    光学属性校正部分,被配置为执行基于所述光学属性差异信息对所述注册图像进行光学属性校正,得到校正后的图像;The optical property correction part is configured to perform optical property correction on the registration image based on the optical property difference information, to obtain a corrected image;
    对象识别部分,被配置为执行基于所述校正后的图像对所述第二对象图像进行对象识别,得到所述第二对象识别结果。The object recognition part is configured to perform object recognition on the second object image based on the corrected image to obtain the second object recognition result.
  13. 根据权利要求11所述的图像处理装置,其中,所述第一注册图像更新部分,还包括:The image processing apparatus according to claim 11, wherein said first registered image updating part further comprises:
    第一注册图像更新子部分,被配置为执行利用所述第二对象图像替换所述注册图像,得到所述目标参考图像;The first registration image updating subpart is configured to replace the registration image with the second object image to obtain the target reference image;
    或,or,
    第二注册图像更新子部分,被配置为执行将所述第二对象图像和所述注册图像作为所述目标参考图像。The second registered image updating subsection is configured to perform using the second object image and the registered image as the target reference image.
  14. 根据权利要求11所述的图像处理装置,其中,所述第一注册图像更新部分,还包括:The image processing apparatus according to claim 11, wherein said first registered image updating part further comprises:
    图像质量分析部分,被配置为执行在所述第二对象识别结果指示所述第二对象图像和所述注册图像间的相似度大于等于预设阈值的情况下,对所述第二对象图像进行图像质量分析,得到图像质量分析结果;The image quality analysis part is configured to perform, in the case that the second object recognition result indicates that the similarity between the second object image and the registration image is greater than or equal to a preset threshold, perform Image quality analysis to obtain image quality analysis results;
    第三注册图像更新子部分,被配置为执行在所述图像质量分析结果满足预设质量条件的情况下,基于所述第二对象图像更新所述注册图像,得到所述目标参考图像;The third registration image updating subsection is configured to update the registration image based on the second object image to obtain the target reference image when the image quality analysis result satisfies a preset quality condition;
    或,or,
    对象方位识别部分,被配置为执行在所述第二对象识别结果指示所述第二对象图像和所述注册图像间的相似度大于等于预设阈值的情况下,对所述 第二对象图像进行对象方位识别,得到对象方位识别结果;The object orientation recognition part is configured to perform, in the case that the second object recognition result indicates that the similarity between the second object image and the registration image is greater than or equal to a preset threshold, perform Object orientation recognition, get the object orientation recognition result;
    第四注册图像更新子部分,被配置为执行在所述对象方位识别结果满足至少一个预设方位条件的情况下,基于所述第二对象图像更新所述注册图像,得到所述目标参考图像;The fourth registration image updating subsection is configured to perform updating the registration image based on the second object image to obtain the target reference image when the object orientation recognition result satisfies at least one preset orientation condition;
    或,or,
    采集时间属性获取部分,被配置为执行在所述第二对象识别结果指示所述第二对象图像和所述注册图像间的相似度大于等于预设阈值的情况下,获取所述注册图像的采集时间属性信息;An acquisition time attribute acquisition section configured to perform acquisition of the registration image when the second object recognition result indicates that the similarity between the second object image and the registration image is greater than or equal to a preset threshold Time attribute information;
    第五注册图像更新子部分,被配置为执行在当前时间属性信息与所述采集时间属性信息相匹配的情况下,基于所述第二对象图像更新所述注册图像,得到所述目标参考图像;The fifth registration image updating subpart is configured to update the registration image based on the second object image to obtain the target reference image when the current time attribute information matches the collection time attribute information;
    或,or,
    历史操作触发时间获取部分,被配置为执行在所述第二对象识别结果指示所述第二对象图像和所述注册图像间的相似度大于等于预设阈值的情况下,获取所述目标对象对应的历史操作触发时间,所述历史操作触发时间为基于所述目标对象对应的对象识别结果触发所述预设操作的触发时间;The historical operation trigger time acquiring part is configured to acquire the target object corresponding The historical operation trigger time, the historical operation trigger time is the trigger time for triggering the preset operation based on the object recognition result corresponding to the target object;
    目标时间段确定部分,被配置为执行基于所述历史操作触发时间确定目标时间段,所述目标时间段为所述预设操作的执行频率大于等于预设频率的时间段;The target time period determining part is configured to determine a target time period based on the historical operation trigger time, the target time period being a time period in which the execution frequency of the preset operation is greater than or equal to a preset frequency;
    第六注册图像更新子部分,被配置为执行在当前时间位于目标时间段的情况下,基于所述第二对象图像更新所述注册图像,得到所述目标参考图像。The sixth registration image updating subpart is configured to update the registration image based on the second object image to obtain the target reference image when the current time is within the target time period.
  15. 根据权利要求11所述的图像处理装置,其中,所述装置还包括:The image processing device according to claim 11, wherein the device further comprises:
    第三图像获取部分,被配置为执行响应于第三对象识别指令,获取所述本地设备采集所述目标对象的第三对象图像和所述注册图像;The third image acquisition part is configured to execute in response to a third object recognition instruction, acquire a third object image and the registration image of the target object captured by the local device;
    第三对象识别部分,被配置为执行基于所述注册图像对所述第三对象图像进行对象识别,得到第三对象识别结果;The third object recognition part is configured to perform object recognition on the third object image based on the registered image to obtain a third object recognition result;
    对象识别结果比较部分,被配置为执行比较所述第三对象识别结果和所述第二对象识别结果,得到比较结果;The object recognition result comparison part is configured to compare the third object recognition result with the second object recognition result to obtain a comparison result;
    第一目标参考图像更新部分,被配置为执行在所述比较结果指示所述第三对象图像与所述注册图像间的相似度大于所述第二对象图像与所述注册图像间的相似度的情况下,基于所述第三对象图像更新所述目标参考图像。A first target reference image updating section configured to perform a process in which the comparison result indicates that the degree of similarity between the third object image and the registration image is greater than the degree of similarity between the second object image and the registration image. In some cases, the target reference image is updated based on the third object image.
  16. 根据权利要求9或10所述的图像处理装置,其中,所述装置还包括:The image processing device according to claim 9 or 10, wherein the device further comprises:
    数据获取部分,被配置为执行获取预设时间段内的所述本地设备采集的所述目标对象的第一目标图像,以及所述第一目标图像与所述注册图像间的第四对象识别结果;A data acquisition part configured to acquire the first target image of the target object collected by the local device within a preset time period, and a fourth object recognition result between the first target image and the registration image ;
    活体检测部分,被配置为执行对所述第一目标图像进行活体检测,得到活体检测结果;The live body detection part is configured to perform live body detection on the first target image to obtain a live body detection result;
    目标图像筛选部分,被配置为执行基于所述第四对象识别结果和所述活体检测结果,从所述第一目标图像中筛选出第二目标图像;a target image screening part configured to perform screening of a second target image from the first target image based on the fourth object recognition result and the living body detection result;
    第二注册图像更新部分,被配置为执行基于所述第二目标图像更新所述注册图像,得到所述目标参考图像。The second registered image updating part is configured to update the registered image based on the second target image to obtain the target reference image.
  17. 一种电子设备,包括:An electronic device comprising:
    处理器;processor;
    用于存储所述处理器可执行指令的存储器;memory for storing said processor-executable instructions;
    其中,所述处理器被配置为执行所述指令,以实现权利要求1至8中任一项所述的图像处理方法。Wherein, the processor is configured to execute the instructions, so as to realize the image processing method according to any one of claims 1-8.
  18. 一种计算机可读存储介质,当所述存储介质中的指令由电子设备的处理器执行时,使得图像处理设备能够执行权利要求1至8中任一项所述的图像处理方法。A computer-readable storage medium, when the instructions in the storage medium are executed by the processor of the electronic device, the image processing device can execute the image processing method according to any one of claims 1 to 8.
  19. 一种计算机程序产品,所述计算机程序产品包括计算机程序或指令,在所述计算机程序或指令在电子设备上运行的情况下,使得所述电子设备执行权利要求1至8中任意一项所述的方法。A computer program product, the computer program product comprising a computer program or an instruction, when the computer program or instruction is run on an electronic device, the electronic device is made to execute any one of claims 1 to 8. Methods.
PCT/CN2022/079013 2021-07-16 2022-03-03 Image processing method and apparatus, and electronic device, storage medium and computer program product WO2023284307A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110805912.6A CN113569676A (en) 2021-07-16 2021-07-16 Image processing method, image processing device, electronic equipment and storage medium
CN202110805912.6 2021-07-16

Publications (1)

Publication Number Publication Date
WO2023284307A1 true WO2023284307A1 (en) 2023-01-19

Family

ID=78165146

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/079013 WO2023284307A1 (en) 2021-07-16 2022-03-03 Image processing method and apparatus, and electronic device, storage medium and computer program product

Country Status (2)

Country Link
CN (1) CN113569676A (en)
WO (1) WO2023284307A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113569676A (en) * 2021-07-16 2021-10-29 北京市商汤科技开发有限公司 Image processing method, image processing device, electronic equipment and storage medium
CN117576490B (en) * 2024-01-16 2024-04-05 口碑(上海)信息技术有限公司 Kitchen environment detection method and device, storage medium and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140301599A1 (en) * 2013-04-04 2014-10-09 Suprema Inc. Method for face recognition
US8886953B1 (en) * 2012-09-14 2014-11-11 Google Inc. Image processing
CN106980838A (en) * 2017-03-29 2017-07-25 中控智慧科技股份有限公司 A kind of personal identification method and system
CN108446387A (en) * 2018-03-22 2018-08-24 百度在线网络技术(北京)有限公司 Method and apparatus for updating face registration library
CN112613461A (en) * 2020-12-14 2021-04-06 南京理工大学 Intelligent gate communication and attendance checking method and system combining face recognition
CN112818909A (en) * 2021-02-22 2021-05-18 Oppo广东移动通信有限公司 Image updating method and device, electronic equipment and computer readable medium
CN113569676A (en) * 2021-07-16 2021-10-29 北京市商汤科技开发有限公司 Image processing method, image processing device, electronic equipment and storage medium

Family Cites Families (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7982774B2 (en) * 2004-09-13 2011-07-19 Sony Corporation Image processing apparatus and image processing method
US8248509B2 (en) * 2008-08-01 2012-08-21 Canon Kabushiki Kaisha Information registration system, information registration method, registration apparatus, and image pickup apparatus
JP5554987B2 (en) * 2009-12-28 2014-07-23 キヤノン株式会社 Object identification device and control method thereof
CN101980242B (en) * 2010-09-30 2014-04-09 徐勇 Human face discrimination method and system and public safety system
JP2013077068A (en) * 2011-09-29 2013-04-25 Sogo Keibi Hosho Co Ltd Face authentication database management method, face authentication database management device, and face authentication database management program
WO2014094284A1 (en) * 2012-12-20 2014-06-26 Thomson Licensing Learning an adaptive threshold and correcting tracking error for face registration
CN105550671A (en) * 2016-01-28 2016-05-04 北京麦芯科技有限公司 Face recognition method and device
CN106022290B (en) * 2016-05-30 2018-03-27 广东欧珀移动通信有限公司 A kind of fingerprint template update method and terminal device
CN107066983B (en) * 2017-04-20 2022-08-09 腾讯科技(上海)有限公司 Identity verification method and device
CN109658572B (en) * 2018-12-21 2020-09-15 上海商汤智能科技有限公司 Image processing method and device, electronic equipment and storage medium
CN110223421B (en) * 2019-05-09 2020-07-21 重庆特斯联智慧科技股份有限公司 Access control method and system adaptive to dynamic change of human face
CN112115747A (en) * 2019-06-21 2020-12-22 阿里巴巴集团控股有限公司 Living body detection and data processing method, device, system and storage medium
CN110287672A (en) * 2019-06-27 2019-09-27 深圳市商汤科技有限公司 Verification method and device, electronic equipment and storage medium
CN110363150A (en) * 2019-07-16 2019-10-22 深圳市商汤科技有限公司 Data-updating method and device, electronic equipment and storage medium
CN110688901A (en) * 2019-08-26 2020-01-14 苏宁云计算有限公司 Face recognition method and device
CN110532957B (en) * 2019-08-30 2021-05-07 北京市商汤科技开发有限公司 Face recognition method and device, electronic equipment and storage medium
CN110458154B (en) * 2019-09-12 2021-08-31 腾讯科技(深圳)有限公司 Face recognition method, face recognition device and computer-readable storage medium
CN111625687B (en) * 2020-07-30 2020-12-08 南京讯思雅信息科技有限公司 Method and system for quickly searching people in media asset video library through human faces

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8886953B1 (en) * 2012-09-14 2014-11-11 Google Inc. Image processing
US20140301599A1 (en) * 2013-04-04 2014-10-09 Suprema Inc. Method for face recognition
CN106980838A (en) * 2017-03-29 2017-07-25 中控智慧科技股份有限公司 A kind of personal identification method and system
CN108446387A (en) * 2018-03-22 2018-08-24 百度在线网络技术(北京)有限公司 Method and apparatus for updating face registration library
CN112613461A (en) * 2020-12-14 2021-04-06 南京理工大学 Intelligent gate communication and attendance checking method and system combining face recognition
CN112818909A (en) * 2021-02-22 2021-05-18 Oppo广东移动通信有限公司 Image updating method and device, electronic equipment and computer readable medium
CN113569676A (en) * 2021-07-16 2021-10-29 北京市商汤科技开发有限公司 Image processing method, image processing device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN113569676A (en) 2021-10-29

Similar Documents

Publication Publication Date Title
CN107480246B (en) Method and device for identifying associated personnel
WO2023284307A1 (en) Image processing method and apparatus, and electronic device, storage medium and computer program product
US9639769B2 (en) Liveness detection
US11625949B2 (en) Face authentication apparatus
WO2021139146A1 (en) Information recommendation method, device, computer-readable storage medium, and apparatus
WO2019019255A1 (en) Apparatus and method for establishing prediction model, program for establishing prediction model, and computer-readable storage medium
US20130329059A1 (en) Person detection system
US20200012887A1 (en) Attribute recognition apparatus and method, and storage medium
CN109858405A (en) Satisfaction evaluation method, apparatus, equipment and storage medium based on micro- expression
JP7238902B2 (en) Information processing device, information processing method, and program
KR20180085505A (en) System for learning based real time guidance through face recognition and the method thereof
WO2019223339A1 (en) Method, device and apparatus for facial matching, and storage medium
WO2022033068A1 (en) Image management method and apparatus, and terminal device and system
JP2022003526A (en) Information processor, detection system, method for processing information, and program
US11620728B2 (en) Information processing device, information processing system, information processing method, and program
CN107209562B (en) Information processing system, information processing apparatus, control method, and storage medium
JP7435837B2 (en) Information processing system, information processing device, information processing method, and program
WO2019170038A1 (en) Target screen determining method and device, and storage medium
CN113038257B (en) Volume adjusting method and device, smart television and computer readable storage medium
CN112884040B (en) Training sample data optimization method, system, storage medium and electronic equipment
JP2018169872A (en) Face authentication system, face authentication method, and face authentication program
JP4408355B2 (en) Image processing apparatus and image processing program
JP6420162B2 (en) Image search device, image search method, and image search program
WO2022079841A1 (en) Group specifying device, group specifying method, and computer-readable recording medium
CN116563933A (en) User state identification method, device, computer equipment and storage medium

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE