[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN110210333A - A kind of focusing iris image acquiring method and device automatically - Google Patents

A kind of focusing iris image acquiring method and device automatically Download PDF

Info

Publication number
CN110210333A
CN110210333A CN201910405197.XA CN201910405197A CN110210333A CN 110210333 A CN110210333 A CN 110210333A CN 201910405197 A CN201910405197 A CN 201910405197A CN 110210333 A CN110210333 A CN 110210333A
Authority
CN
China
Prior art keywords
human eye
camera
facial image
angle
carrier
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910405197.XA
Other languages
Chinese (zh)
Inventor
王艳艳
陈勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Foshan University
Original Assignee
Foshan University
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 Foshan University filed Critical Foshan University
Priority to CN201910405197.XA priority Critical patent/CN110210333A/en
Publication of CN110210333A publication Critical patent/CN110210333A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/10Image acquisition
    • G06V10/12Details of acquisition arrangements; Constructional details thereof
    • G06V10/14Optical characteristics of the device performing the acquisition or on the illumination arrangements
    • G06V10/147Details of sensors, e.g. sensor lenses
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/22Image preprocessing by selection of a specific region containing or referencing a pattern; Locating or processing of specific regions to guide the detection or recognition
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/18Eye characteristics, e.g. of the iris
    • G06V40/19Sensors therefor

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Vascular Medicine (AREA)
  • Ophthalmology & Optometry (AREA)
  • Human Computer Interaction (AREA)
  • Studio Devices (AREA)

Abstract

本发明涉及图像采集技术领域,具体涉及一种自动聚焦式虹膜图像采集方法及装置,应用于控制器,控制器与电机和摄像头均电连接,摄像头设置于载体上,电机用于驱动载体移动,所述方法包括:获取摄像头采集的第一人脸图像,将摄像头拍摄第一人脸图像时摄像头主光轴与水平面之间的夹角作为第一角度,对第一人脸图像进行处理,得到第一人脸图像的第一人眼位置,依据第一角度、第一人眼位置以及第一预设位置,计算第一偏转角度,控制所述载体带动摄像头转动第一偏转角度,最终控制所述摄像头拍摄得到虹膜图像,本发明采用一个摄像头即可在拍摄位置准确地对虹膜进行拍摄,提高了虹膜图像采集的便利性和性价比。

The invention relates to the technical field of image acquisition, in particular to an automatic focusing type iris image acquisition method and device, which is applied to a controller. The controller is electrically connected to a motor and a camera, the camera is arranged on a carrier, and the motor is used to drive the carrier to move, The method includes: acquiring a first face image collected by a camera, using an angle between a main optical axis of the camera and a horizontal plane when the camera captures the first face image as a first angle, and processing the first face image to obtain The first human eye position of the first face image, according to the first angle, the first human eye position and the first preset position, calculate the first deflection angle, control the carrier to drive the camera to rotate the first deflection angle, and finally control the The iris image is obtained by shooting with the camera, and the present invention can accurately shoot the iris at the shooting position by using one camera, which improves the convenience and cost performance of iris image collection.

Description

一种自动聚焦式虹膜图像采集方法及装置An auto-focusing iris image acquisition method and device

技术领域technical field

本发明涉及图像采集技术领域,具体涉及一种自动聚焦式虹膜图像采集方法及装置。The present invention relates to the technical field of image acquisition, in particular to an automatic focusing type iris image acquisition method and device.

背景技术Background technique

虹膜识别主要包括图像采集、图像预处理、虹膜分割、虹膜特征提取、特征分类五个关键步骤,第一步中采集的虹膜图像的清晰度将直接影响虹膜识别的精度与识别速度。因此,在一定时间内快速采集清晰度足够的虹膜图像将变得至关重要,现有技术中,通常采用两个或多个定焦摄像头进行虹膜图像采集,然而,这种方式不仅操作麻烦,不够便利,还增加硬件成本,性价比不高。Iris recognition mainly includes five key steps: image acquisition, image preprocessing, iris segmentation, iris feature extraction, and feature classification. The clarity of the iris image collected in the first step will directly affect the accuracy and speed of iris recognition. Therefore, it is very important to quickly acquire an iris image with sufficient sharpness within a certain period of time. In the prior art, two or more fixed-focus cameras are usually used for iris image acquisition. However, this method is not only troublesome to operate, but also It is not convenient enough, but also increases the cost of hardware, and the cost performance is not high.

发明内容SUMMARY OF THE INVENTION

本发明的目的在于提供一种自动聚焦式虹膜图像采集方法及装置,旨在提高虹膜图像采集的便利性和性价比。The purpose of the present invention is to provide an auto-focusing iris image acquisition method and device, which aims to improve the convenience and cost-effectiveness of iris image acquisition.

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

一种自动聚焦式虹膜图像采集方法,应用于控制器,所述控制器与电机和摄像头均电连接,所述摄像头设置于载体上,所述电机用于驱动所述载体移动,所述方法包括:An auto-focusing iris image acquisition method is applied to a controller, wherein the controller is electrically connected to a motor and a camera, the camera is arranged on a carrier, and the motor is used to drive the carrier to move, and the method includes the following steps: :

获取所述摄像头采集的第一人脸图像,将摄像头拍摄第一人脸图像时摄像头主光轴与水平面之间的夹角作为第一角度;acquiring the first face image collected by the camera, and taking the angle between the main optical axis of the camera and the horizontal plane when the camera shoots the first face image as the first angle;

对所述第一人脸图像进行处理,得到所述第一人脸图像的第一人眼位置;processing the first face image to obtain the first eye position of the first face image;

依据所述第一角度、第一人眼位置以及第一预设位置,计算第一偏转角度;calculating a first deflection angle according to the first angle, the first human eye position and the first preset position;

控制所述载体带动摄像头转动第一偏转角度;controlling the carrier to drive the camera to rotate the first deflection angle;

控制所述摄像头拍摄,得到虹膜图像。Control the camera to shoot to obtain an iris image.

进一步,所述载体还相对设置有背板,所述背板上设有标识人脸位置的定位框,在获取所述摄像头采集的第一人脸图像之前,所述方法还包括:Further, the carrier is also relatively provided with a backplane, and the backplane is provided with a positioning frame for identifying the position of the human face. Before acquiring the first human face image collected by the camera, the method further includes:

控制所述电机驱动所述载体朝向所述背板方向移动;controlling the motor to drive the carrier to move toward the backplane;

控制所述摄像头朝向所述背板方向。Control the camera to face the direction of the backplane.

具体地,所述对所述第一人脸图像进行处理,得到所述第一人脸图像的第一人眼位置的步骤,包括:Specifically, the step of processing the first face image to obtain the first eye position of the first face image includes:

将第一人脸图像进行缩小处理;reduce the first face image;

对所述第一人脸图像进行目标检测,得到所述第一人脸图像中的第一人眼区域;performing target detection on the first face image to obtain the first eye region in the first face image;

获得所述第一人眼区域的第一中心坐标,并将所述第一中心坐标作为第一人眼位置。The first center coordinates of the first human eye region are obtained, and the first center coordinates are used as the first human eye position.

具体地,所述获得所述第一人眼区域的第一中心坐标的步骤,包括:Specifically, the step of obtaining the first center coordinates of the first human eye region includes:

获取所述第一人眼区域对应的所有的第一人眼坐标,其中,所述第一人眼坐标为所述第一人眼区域在所述第一人脸图像中的坐标;对所有的第一人眼坐标求均值,得到第一中心坐标。Acquire all the first human eye coordinates corresponding to the first human eye region, wherein the first human eye coordinates are the coordinates of the first human eye region in the first human face image; for all the first human eye coordinates The first human eye coordinates are averaged to obtain the first center coordinates.

具体地,所述第一偏转角度通过如下表达式计算得出:Specifically, the first deflection angle is calculated by the following expression:

θ=(y1-y0)α,其中,θ为第一偏转角度,y1为第一人眼位置在所述第一人脸图像中的纵坐标,y0为第一预设位置在所述第一人脸图像中的纵坐标,α为第一角度。θ=(y 1 -y 0 )α, where θ is the first deflection angle, y 1 is the ordinate of the first human eye position in the first face image, and y 0 is the first preset position at The ordinate in the first face image, α is the first angle.

一种自动聚焦式虹膜图像采集装置,应用于控制器,所述控制器与电机和摄像头均电连接,所述摄像头设置于载体上,所述电机用于驱动所述载体移动,所述装置包括:An auto-focusing iris image acquisition device is applied to a controller, the controller is electrically connected with a motor and a camera, the camera is arranged on a carrier, and the motor is used to drive the carrier to move, and the device includes :

获取模块,用于获取所述摄像头采集的第一人脸图像,将摄像头拍摄第一人脸图像时摄像头主光轴与水平面之间的夹角作为第一角度;an acquisition module, configured to acquire the first face image collected by the camera, and take the angle between the main optical axis of the camera and the horizontal plane when the camera shoots the first face image as the first angle;

处理模块,用于对所述第一人脸图像进行处理,得到所述第一人脸图像的第一人眼位置;依据所述第一角度、第一人眼位置以及第一预设位置,计算第一偏转角度;控制所述载体带动摄像头转动第一偏转角度;a processing module, configured to process the first human face image to obtain the first human eye position of the first human face image; according to the first angle, the first human eye position and the first preset position, calculating the first deflection angle; controlling the carrier to drive the camera to rotate the first deflection angle;

拍摄模块,用于控制所述摄像头拍摄,得到虹膜图像。The shooting module is used to control the camera to shoot to obtain an iris image.

进一步,所述载体还相对设置有背板,所述背板上设有标识人脸位置的定位框,在获取所述摄像头采集的第一人脸图像之前,所述处理模块还用于:Further, the carrier is also relatively provided with a backplane, and the backplane is provided with a positioning frame for identifying the position of the human face. Before acquiring the first human face image collected by the camera, the processing module is further used for:

控制所述电机驱动所述载体朝向所述背板方向移动;controlling the motor to drive the carrier to move toward the backplane;

控制所述摄像头朝向所述背板方向。Control the camera to face the direction of the backplane.

具体地,所述处理模块还具体用于:Specifically, the processing module is also specifically used for:

将第一人脸图像进行缩小处理;reduce the first face image;

对所述第一人脸图像进行目标检测,得到所述第一人脸图像中的第一人眼区域;performing target detection on the first face image to obtain the first eye region in the first face image;

获得所述第一人眼区域的第一中心坐标,并将所述第一中心坐标作为第一人眼位置。The first center coordinates of the first human eye region are obtained, and the first center coordinates are used as the first human eye position.

具体地,所述处理模块还具体用于:Specifically, the processing module is also specifically used for:

获取所述第一人眼区域对应的所有的第一人眼坐标,其中,所述第一人眼坐标为所述第一人眼区域在所述第一人脸图像中的坐标;对所有的第一人眼坐标求均值,得到第一中心坐标。Acquire all the first human eye coordinates corresponding to the first human eye region, wherein the first human eye coordinates are the coordinates of the first human eye region in the first human face image; for all the first human eye coordinates The first human eye coordinates are averaged to obtain the first center coordinates.

具体地,所述处理模块还具体用于:Specifically, the processing module is also specifically used for:

通过如下表达式计算得出所述第一偏转角度:The first deflection angle is calculated by the following expression:

θ=(y1-y0)α,其中,θ为第一偏转角度,y1为第一人眼位置在所述第一人脸图像中的纵坐标,y0为第一预设位置在所述第一人脸图像中的纵坐标,α为第一角度。θ=(y 1 -y 0 )α, where θ is the first deflection angle, y 1 is the ordinate of the first human eye position in the first face image, and y 0 is the first preset position at The ordinate in the first face image, α is the first angle.

本发明的有益效果是:本发明公开一种自动聚焦式虹膜图像采集方法及装置,应用于控制器,所述控制器与电机和摄像头均电连接,所述摄像头设置于载体上,所述电机用于驱动所述载体移动,通过获取所述摄像头采集的第一人脸图像,将摄像头拍摄第一人脸图像时摄像头主光轴与水平面之间的夹角作为第一角度;对所述第一人脸图像进行处理,得到所述第一人脸图像的第一人眼位置;依据所述第一角度、第一人眼位置以及第一预设位置,计算第一偏转角度;控制所述载体带动摄像头转动第一偏转角度;控制所述摄像头拍摄,得到虹膜图像,本发明采用一个摄像头即可在拍摄位置准确地对虹膜进行拍摄,提高了虹膜图像采集的便利性和性价比。The beneficial effects of the present invention are as follows: the present invention discloses an auto-focusing iris image acquisition method and device, which is applied to a controller, wherein the controller is electrically connected to a motor and a camera, the camera is arranged on a carrier, and the motor For driving the carrier to move, by acquiring the first face image collected by the camera, the angle between the main optical axis of the camera and the horizontal plane when the camera shoots the first face image is taken as the first angle; processing a face image to obtain a first eye position of the first face image; calculating a first deflection angle according to the first angle, the first eye position and the first preset position; controlling the The carrier drives the camera to rotate the first deflection angle; controls the camera to shoot to obtain the iris image, the invention can accurately shoot the iris at the shooting position by using one camera, which improves the convenience and cost performance of iris image collection.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the accompanying drawings required in the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some of the present invention. In the embodiments, for those of ordinary skill in the art, other drawings can also be obtained according to these drawings without creative labor.

图1是本发明实施例控制器的连接关系示意图;1 is a schematic diagram of a connection relationship of a controller according to an embodiment of the present invention;

图2是本发明实施例提供的摄像头、载体和背板的结构示意图;2 is a schematic structural diagram of a camera, a carrier, and a backplane provided by an embodiment of the present invention;

图3是本发明实施例一种自动聚焦式虹膜图像采集方法的流程示意图;3 is a schematic flowchart of an auto-focusing iris image acquisition method according to an embodiment of the present invention;

图4是图3示出的步骤S100之前的步骤流程图;Fig. 4 is a flow chart of steps before step S100 shown in Fig. 3;

图5是图3示出的步骤S200的子步骤流程图;Fig. 5 is the sub-step flow chart of step S200 shown in Fig. 3;

图6是本发明实施例一种自动聚焦式虹膜图像采集装置的结构示意图。FIG. 6 is a schematic structural diagram of an auto-focusing iris image acquisition device according to an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合附图对本发明的技术方案进行清楚、完整的描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所以其他实施例,都属于本发明的保护范围。The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present invention.

虹膜识别主要包括图像采集、图像预处理、虹膜分割、虹膜特征提取、特征分类五个关键步骤,第一步中采集的虹膜图像的清晰度将直接影响虹膜识别的精度与识别速度。因此,在一定时间内快速采集清晰度足够的虹膜图像将变得至关重要。Iris recognition mainly includes five key steps: image acquisition, image preprocessing, iris segmentation, iris feature extraction, and feature classification. The clarity of the iris image collected in the first step will directly affect the accuracy and speed of iris recognition. Therefore, it is very important to quickly acquire iris images with sufficient sharpness within a certain period of time.

当用户距离镜头太近或者太远时,虹膜相机采集得到的虹膜图像会变得模糊,不能满足后续的虹膜图像编码要求,为此,用户需要向前或向后移动调整距离使得采集的虹膜图像满足系统编码要求。为了使虹膜识别系统使用更方便、更人性化、更智能,现有的虹膜识别系统会搭配距离传感器,通过与用户进行交互(界面显示、语音提示)提示用户向前、向后移动,或者在一定的距离范围内,使得虹膜相机的镜头具有自动变焦的功能。当用户距离镜头较近时,变焦使镜头焦距变短,放大倍数变小,而当用户距离镜头较远时,则使镜头焦距变长,放大倍率变大,从而保持采集的虹膜图像达到一定的图像清晰度,满足虹膜识别系统的编码要求。When the user is too close or too far from the lens, the iris image captured by the iris camera will become blurred, which cannot meet the subsequent iris image coding requirements. For this reason, the user needs to move forward or backward to adjust the distance so that the captured iris image Meet system coding requirements. In order to make the iris recognition system more convenient, user-friendly and intelligent, the existing iris recognition system will be equipped with a distance sensor to prompt the user to move forward, backward, or in the Within a certain distance range, the lens of the iris camera has the function of automatic zoom. When the user is closer to the lens, the zoom makes the focal length of the lens shorter and the magnification smaller, and when the user is farther away from the lens, the focal length of the lens becomes longer and the magnification becomes larger, so as to keep the collected iris image to a certain level The image clarity meets the coding requirements of the iris recognition system.

不过,现有的上述技术都需要用户的眼睛和识别装置上的虹膜相机基本保持在同一高度。而当用户处在较高位置或者较低位置时,用户需要根据识别装置的高度自行调整自己的位置,比如垫脚或者下蹲等,在实际的应用中还是比较不方便,有一定的局限性。However, the existing technologies above all require the user's eyes and the iris camera on the identification device to be kept at substantially the same height. However, when the user is in a higher position or a lower position, the user needs to adjust his own position according to the height of the recognition device, such as stepping on feet or squatting, etc., which is inconvenient in practical applications and has certain limitations.

针对上述问题,提供一种自动聚焦式虹膜图像采集方法及装置,通过调节摄像头3移动位置不仅准确定位虹膜位置,提高虹膜图像采集的便利性;采用一个摄像头3即可在拍摄位置准确地对虹膜进行拍摄,提高虹膜图像采集的性价比。In view of the above problems, an auto-focusing iris image acquisition method and device are provided, which can not only accurately locate the iris position by adjusting the moving position of the camera 3, but also improve the convenience of iris image acquisition; Shooting to improve the cost-effectiveness of iris image acquisition.

结合参阅图1和图2,本实施例提供的一种自动聚焦式虹膜图像采集方法,应用于控制器1,所述控制器1与电机2和摄像头3均电连接,所述摄像头3设置于载体4上,所述电机2用于驱动所述载体4移动。Referring to FIG. 1 and FIG. 2 in combination, an auto-focusing iris image acquisition method provided in this embodiment is applied to a controller 1, and the controller 1 is electrically connected to the motor 2 and the camera 3, and the camera 3 is arranged on the On the carrier 4 , the motor 2 is used to drive the carrier 4 to move.

控制器1可以是一种集成电路芯片,具有信号处理能力,控制器1可以是通用处理器,包括中央处理器、网络处理器等,还可以是数字信号处理器、专用集成电路、现场可编程门阵列或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。The controller 1 can be an integrated circuit chip with signal processing capability, the controller 1 can be a general-purpose processor, including a central processing unit, a network processor, etc., or a digital signal processor, an application-specific integrated circuit, a field programmable Gate arrays or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

摄像头3与控制器1电连接,用于在控制器1的控制下,对用户的脸部进行拍摄,采集人脸图像并将人脸图像传输至控制器1,以及在控制器1的控制下,对用户的眼部进行拍摄,采集虹膜图像并将虹膜图像传输至控制器1。摄像头3可以是,但不限于虹膜相机。The camera 3 is electrically connected to the controller 1, and is used for photographing the user's face under the control of the controller 1, collecting a face image and transmitting the face image to the controller 1, and under the control of the controller 1 , the user's eye is photographed, an iris image is collected, and the iris image is transmitted to the controller 1 . The camera 3 can be, but is not limited to, an iris camera.

电机2与控制器1电连接,用于在控制器1的控制下运动,从而驱动所述载体4移动,载体4上设置的摄像头3也随之移动。载体4可以是,但不限于云台、吊舱等可以进行转动的结构,在此不作限定。The motor 2 is electrically connected to the controller 1 and is used to move under the control of the controller 1, thereby driving the carrier 4 to move, and the camera 3 provided on the carrier 4 also moves accordingly. The carrier 4 may be, but is not limited to, a rotatable structure such as a pan/tilt, a pod, etc., which is not limited here.

本实施例中的电机2可以驱动所述载体4在上下、左右、前后三个方向移动,采用的电机2也可以控制所述载体4转动以带动所述摄像头3转动。电机2可以是,但不限于齿轮转动式电机。The motor 2 in this embodiment can drive the carrier 4 to move in three directions, up and down, left and right, and front and rear. The motor 2 used can also control the rotation of the carrier 4 to drive the camera 3 to rotate. The motor 2 may be, but is not limited to, a geared motor.

基于上述的控制器1,下面给出一种自动聚焦式虹膜图像采集方法可能的实现方式,该方法的执行主体可以为上述控制器1,请参阅图3,图3示出了本发明实施例提供的一种自动聚焦式虹膜图像采集方法的流程图。Based on the above-mentioned controller 1, a possible implementation manner of an auto-focusing iris image acquisition method is given below. The execution subject of the method may be the above-mentioned controller 1. Please refer to FIG. 3, which shows an embodiment of the present invention. Provided is a flow chart of an auto-focusing iris image acquisition method.

所述方法包括以下步骤:The method includes the following steps:

步骤S100、获取所述摄像头3采集的第一人脸图像,将摄像头3拍摄第一人脸图像时摄像头3主光轴与水平面之间的夹角作为第一角度。Step S100: Obtain the first face image collected by the camera 3, and take the angle between the main optical axis of the camera 3 and the horizontal plane when the camera 3 shoots the first face image as the first angle.

在本实施例中,第一人脸图像可以是摄像头3拍摄的包括人脸的图像。获取摄像头3采集的第一人脸图像的步骤,可以理解为,控制器1发送控制指令至摄像头3,以控制摄像头3拍摄人脸,得到第一人脸头像,然后将第一人脸图像发送至控制器1。In this embodiment, the first human face image may be an image including a human face captured by the camera 3 . The step of acquiring the first face image collected by the camera 3 can be understood as: the controller 1 sends a control instruction to the camera 3 to control the camera 3 to capture the face, obtain the first face avatar, and then send the first face image. to controller 1.

在一个实施例中,所述摄像头3拍摄第一人脸图像时的角度可以是以水平面为基准,将摄像头3拍摄第一人脸图像时摄像头3主光轴与水平面之间的夹角作为第一角度。In one embodiment, the angle at which the camera 3 shoots the first face image may be based on the horizontal plane, and the angle between the main optical axis of the camera 3 and the horizontal plane when the camera 3 shoots the first face image is taken as the first an angle.

作为本实施例的进一步改进,所述载体4还相对设置有背板5,所述背板5上设有标识人脸位置的定位框,参考图4,在步骤S100之前,所述方法还包括:As a further improvement of this embodiment, the carrier 4 is also provided with a back plate 5 oppositely, and the back plate 5 is provided with a positioning frame for identifying the position of the face. Referring to FIG. 4 , before step S100, the method further includes: :

步骤S110、控制所述电机2驱动所述载体4朝向所述背板5方向移动。Step S110 , controlling the motor 2 to drive the carrier 4 to move toward the backplane 5 .

步骤S120、控制所述摄像头3朝向所述背板5方向。Step S120 , controlling the camera 3 to face the direction of the backplane 5 .

本实施例通过控制所述电机2驱动所述载体4转动,从而控制所述摄像头3朝向所述背板5方向。In this embodiment, by controlling the motor 2 to drive the carrier 4 to rotate, the camera 3 is controlled to face the direction of the backplane 5 .

先初步调整摄像头3位置再拍摄,保证了人眼在摄像头3的较佳的拍摄范围内,可以得到高清晰度的虹膜图像。The position of the camera 3 is preliminarily adjusted before shooting, which ensures that the human eye is within the preferred shooting range of the camera 3 and a high-definition iris image can be obtained.

步骤S200、对所述第一人脸图像进行处理,得到所述第一人脸图像的第一人眼位置。Step S200: Process the first human face image to obtain a first eye position of the first human face image.

在本发明实施例中,第一人眼位置可以是第一人脸图像中表征人眼的位置坐标,具体地,可以是人眼区域对应的所有坐标的平均坐标,还可以是两个眼睛位置坐标的均值坐标。对第一人脸图像进行处理,得到第一人脸图像的第一人眼位置的步骤,可以理解为,将第一人脸图像输入预设模型中进行人脸检测和特征点匹配,得到两眼的位置坐标,将两眼的位置坐标相加,然后再除以2,得到第一人眼位置。预设模型包括人脸检测模型和特征点匹配模型,其中,人脸检测模型可以是非深度学习算法训练得到的模型(例如,滑动窗口、人工特征及分类器),也可以是基于深度学习训练得到的模型(几个卷积神经网络级联回归),特征点匹配模型可以是基于点分布模型算法训练得到的模型(平均脸模型及特征点描述向量),也可以是基于深度学习训练得到的模型(由粗到精的几个卷积神经网络级联)。In this embodiment of the present invention, the first human eye position may be the position coordinates representing the human eyes in the first face image, specifically, the average coordinates of all coordinates corresponding to the human eye region, or the positions of two eyes The mean coordinate of the coordinates. The step of processing the first face image to obtain the position of the first human eye of the first face image can be understood as inputting the first face image into a preset model to perform face detection and feature point matching, and obtain two The position coordinates of the eyes, add the position coordinates of the two eyes, and then divide by 2 to get the first human eye position. The preset model includes a face detection model and a feature point matching model, where the face detection model can be a model obtained by training a non-deep learning algorithm (for example, a sliding window, artificial features and a classifier), or it can be obtained based on deep learning training. The model (several convolutional neural network cascade regression), the feature point matching model can be a model (average face model and feature point description vector) trained based on the point distribution model algorithm, or a model based on deep learning training (Several convolutional neural networks cascade from coarse to fine).

在本发明实施例中,位置坐标的确定可以为以下方式:In this embodiment of the present invention, the location coordinates may be determined in the following manner:

以图像的左下角为原点,以图像宽度方向为横坐标,以图像长度方向为纵坐标,在图像上建立平面坐标系;设图像上任一点的横坐标和纵坐标的取值范围均为[0,1],则图像上任一点的横坐标值为该点到纵坐标的垂直距离与图像宽度的比值,图像上任一点的纵坐标值为该点到横坐标的垂直距离与图像长度的比值。Taking the lower left corner of the image as the origin, the width direction of the image as the abscissa, and the length direction of the image as the ordinate, establish a plane coordinate system on the image; set the value range of the abscissa and ordinate of any point on the image to be [0 ,1], the abscissa value of any point on the image is the ratio of the vertical distance from the point to the ordinate to the width of the image, and the ordinate value of any point on the image is the ratio of the vertical distance from the point to the abscissa to the length of the image.

参考图5,步骤S200还可以包括以下子步骤:Referring to FIG. 5, step S200 may further include the following sub-steps:

步骤S210、将第一人脸图像进行缩小处理。Step S210, reducing the first face image.

在本发明实施例中,将第一人脸图像进行缩小处理的步骤,可以理解为,采用邻近插值方法或者双线性插值将第一人脸图像进行缩小处理,以减少后续的图像数据处理量。In the embodiment of the present invention, the step of reducing the first face image can be understood as using the proximity interpolation method or bilinear interpolation to reduce the first face image, so as to reduce the amount of subsequent image data processing .

作为一种实施方式,将第一人脸图像中的人脸所占比例较大时,对第一人脸图像进行缩小处理。可以在设定两个固定的位置坐标对第一人脸图像进行检测,若第一人脸图像在两个固定的位置坐标的第一人脸图像中对应的像素值在一个预设像素值范围内,则认为第一人脸图像中的人脸所占比例较大。预设像素值范围可以是用户自定义用以判定人脸区域的像素值。具体地,可以对两个固定的位置坐标可以分别靠近第一人脸图像中的对角(例如,左上和右下,或者左下和右上)。As an implementation manner, when the proportion of the human face in the first human face image is relatively large, the first human face image is subjected to reduction processing. The first face image can be detected by setting two fixed position coordinates, if the corresponding pixel values of the first face image in the first face image of the two fixed position coordinates are within a preset pixel value range within, it is considered that the proportion of the face in the first face image is larger. The preset pixel value range may be a user-defined pixel value for determining the face area. Specifically, the two fixed position coordinates can be respectively close to the opposite corners in the first face image (for example, upper left and lower right, or lower left and upper right).

步骤S220、对所述第一人脸图像进行目标检测,得到所述第一人脸图像中的第一人眼区域。Step S220: Perform target detection on the first human face image to obtain a first human eye region in the first human face image.

在本发明实施例中,第一人眼区域可以是人眼在第一人眼图像中对应的区域。对所述第一人脸图像进行目标检测,得到所述第一人脸图像中的第一人眼区域的步骤,可以为采用基于SSD(Single-Shot-Multi-Box-Detector)的目标检测算法对第一人脸图像进行区域检测,得到第一人眼区域,第一人眼区域为矩形。In this embodiment of the present invention, the first human eye region may be a region corresponding to the human eye in the first human eye image. The step of performing target detection on the first face image to obtain the first eye region in the first face image may be a target detection algorithm based on SSD (Single-Shot-Multi-Box-Detector). Region detection is performed on the first face image to obtain a first human eye region, and the first human eye region is a rectangle.

在本发明的其它实施例中,还可以采集基于YOLO(You-Only-Look-Once)的目标检测算法第一人脸图像进行区域检测,得到第一人眼区域。In other embodiments of the present invention, a first face image based on a target detection algorithm based on YOLO (You-Only-Look-Once) may also be collected for region detection to obtain a first eye region.

步骤S230、获得所述第一人眼区域的第一中心坐标,并将所述第一中心坐标作为第一人眼位置。Step S230: Obtain the first center coordinates of the first human eye region, and use the first center coordinates as the first human eye position.

在本发明实施例中,第一中心坐标可以是第一人眼区域在第一人脸图像中对应的所有坐标的平均坐标。获得所述第一人眼区域的第一中心坐标,并将所述第一中心坐标作为第一人眼位置的步骤,可以理解为,首先,获取第一人眼区域对应的所有的第一人眼坐标,其中,第一人眼坐标为第一人眼区域在第一人脸图像中的坐标;然后,对所有的第一人眼坐标求均值,得到第一中心坐标,即第一人眼位置。例如,获取的第一人眼区域在第一人脸图像中的对应的所有坐标分别为(0.54,0.65),(0.55,0.63)和(0.5,0.68),那么将第一中心坐标作为第一人眼位置,那么第一人眼位置为(0.53,0.65)。In this embodiment of the present invention, the first center coordinate may be an average coordinate of all the coordinates corresponding to the first human eye region in the first human face image. The step of obtaining the first center coordinates of the first human eye region and using the first center coordinates as the first human eye position can be understood as: first, acquiring all the first human eyes corresponding to the first human eye region Eye coordinates, where the first human eye coordinates are the coordinates of the first human eye region in the first human face image; then, average all the first human eye coordinates to obtain the first center coordinates, that is, the first human eye Location. For example, if all the obtained coordinates of the first eye region in the first face image are (0.54, 0.65), (0.55, 0.63) and (0.5, 0.68) respectively, then the first center coordinate is taken as the first Human eye position, then the first human eye position is (0.53, 0.65).

步骤S300、依据所述第一角度、第一人眼位置以及第一预设位置,计算第一偏转角度。Step S300: Calculate a first deflection angle according to the first angle, the first human eye position and the first preset position.

在本发明实施例中,第一预设位置为第一摄像头3拍摄的所有图像中的预设位置,例如,第一预设位置为图像宽度1/3,图像高度2/3的位置处,则第一预设位置在所述第一人脸图像中的横坐标为1/3,第一预设位置在所述第一人脸图像中的纵坐标为2/3。当第一人眼位置等于第一预设位置时,则可以认为第一人眼位置处于第一预设位置,无需调节摄像头3,可以直接拍摄到人眼的虹膜,得到虹膜图像;当第一人眼位置在所述第一人脸图像中的纵坐标大于第一预设位置在所述第一人脸图像中的纵坐标时,则可以认为第一人眼位置高于第一预设位置,调节摄像头3向上偏转;当第一人眼位置在所述第一人脸图像中的纵坐标小于第一预设位置在所述第一人脸图像中的纵坐标时,则可以认为第一人眼位置低于第一预设位置,调节摄像头3向下偏转。第一偏转角度可以是载体4需要转动的角度,以使摄像头3能够拍摄到人眼的虹膜。In this embodiment of the present invention, the first preset position is a preset position in all images captured by the first camera 3. For example, the first preset position is a position where the width of the image is 1/3 and the height of the image is 2/3. Then, the abscissa of the first preset position in the first face image is 1/3, and the ordinate of the first preset position in the first face image is 2/3. When the position of the first human eye is equal to the first preset position, it can be considered that the position of the first human eye is at the first preset position, and the iris of the human eye can be directly photographed without adjusting the camera 3 to obtain an iris image; When the ordinate of the position of the human eye in the first face image is greater than the ordinate of the first preset position in the first face image, it can be considered that the position of the first human eye is higher than the first preset position , adjust the camera 3 to deflect upward; when the ordinate of the first human eye position in the first face image is smaller than the ordinate of the first preset position in the first face image, it can be considered that the first When the position of the human eye is lower than the first preset position, the camera 3 is adjusted to deflect downward. The first deflection angle may be the angle at which the carrier 4 needs to be rotated, so that the camera 3 can capture the iris of the human eye.

依据第一角度、第一人眼位置以及第一预设位置,计算第一偏转角度的步骤,可以理解为,控制器1内预先获取并存储第一角度,再根据第一角度、第一人眼位置以及第一预设位置计算第一偏转角度。具体地,设第一人眼位置为φ1(x1,y1),第一预设位置为φ0(x0,y0),则第一偏转角度计算公式如下:The step of calculating the first deflection angle according to the first angle, the first human eye position and the first preset position can be understood as: the controller 1 pre-acquires and stores the first angle, and then according to the first angle, the first person The eye position and the first preset position calculate the first deflection angle. Specifically, assuming that the first human eye position is φ 1 (x 1 , y 1 ), and the first preset position is φ 0 (x 0 , y 0 ), the first deflection angle calculation formula is as follows:

θ=(y1-y0)α,其中,θ为第一偏转角度,α为第一角度。当θ<0时,则为载体4向上偏转|θ|,当θ>0时,则为载体4向下偏转|θ|。例如,当第一人眼位置为(0.53,0.65),第一预设位置在所述第一人脸图像中的纵坐标为0.67,第一角度为10度时,第一偏转角度=(0.65-0.67)*10度=-0.2度,则为载体4向上偏转0.2度。θ=(y 1 -y 0 )α, where θ is the first deflection angle, and α is the first angle. When θ<0, the carrier 4 is deflected upward by |θ|, and when θ>0, the carrier 4 is deflected downward by |θ|. For example, when the position of the first human eye is (0.53, 0.65), the ordinate of the first preset position in the first face image is 0.67, and the first angle is 10 degrees, the first deflection angle=(0.65 -0.67)*10 degrees=-0.2 degrees, then the carrier 4 is deflected upward by 0.2 degrees.

步骤S400、控制所述载体4带动摄像头3转动第一偏转角度。Step S400, controlling the carrier 4 to drive the camera 3 to rotate by a first deflection angle.

载体4转动第一偏转角度以带动所述摄像头3转动至所述第一人眼位置对应的拍摄位置。The carrier 4 is rotated by a first deflection angle to drive the camera 3 to rotate to a shooting position corresponding to the position of the first human eye.

在本发明实施例中,控制器1控制载体4转动第一偏转角度,摄像头3设置于载体4上,按照上述的推理,摄像头3就能转动到第一人眼位置对应的拍摄位置。In the embodiment of the present invention, the controller 1 controls the carrier 4 to rotate by the first deflection angle, and the camera 3 is arranged on the carrier 4. According to the above reasoning, the camera 3 can be rotated to the shooting position corresponding to the first human eye position.

步骤S500、控制所述摄像头3拍摄,得到虹膜图像。Step S500 , controlling the camera 3 to shoot to obtain an iris image.

在本发明实施例中,将载体4进行第一偏转角度的微调以带动摄像头3转动至第一人眼位置对应的拍摄位置之后,控制摄像头3在拍摄位置进行拍摄,具体地,控制器1发送控制指令至摄像头3,控制摄像头3在拍摄位置对人眼进行拍摄,得到虹膜图像。In the embodiment of the present invention, after fine-tuning the first deflection angle of the carrier 4 to drive the camera 3 to rotate to the shooting position corresponding to the first human eye position, the camera 3 is controlled to shoot at the shooting position. Specifically, the controller 1 sends a The control command is sent to the camera 3, and the camera 3 is controlled to shoot the human eye at the shooting position to obtain the iris image.

与现有技术相比,本发明实施例具有以下优势:Compared with the prior art, the embodiment of the present invention has the following advantages:

采用一个摄像头3即可在拍摄位置准确地对虹膜进行拍摄,提高了虹膜图像采集的便利性和性价比。The iris can be accurately photographed at the photographing position by using one camera 3, which improves the convenience and cost-effectiveness of iris image acquisition.

下面给出一种自动聚焦式虹膜图像采集装置的可能的实现方式,该自动聚焦式虹膜图像采集装置可以采用上述实施例中的控制器1及与其电连接的结构或者部件实现。请参阅图6,图6示出了本发明实施例提供的自动聚焦式虹膜图像采集装置的方框示意图。虹膜图像采集装置包括获取模块100、处理模块200和拍摄模块300。A possible implementation manner of an auto-focusing iris image acquisition device is given below. The auto-focusing iris image acquisition device can be implemented by using the controller 1 in the above embodiment and the structures or components electrically connected to it. Referring to FIG. 6 , FIG. 6 shows a schematic block diagram of an auto-focusing iris image acquisition device provided by an embodiment of the present invention. The iris image acquisition device includes an acquisition module 100 , a processing module 200 and a photographing module 300 .

获取模块100,用于获取所述摄像头3采集的第一人脸图像,将摄像头3拍摄第一人脸图像时摄像头3主光轴与水平面之间的夹角作为第一角度;The acquisition module 100 is configured to acquire the first face image collected by the camera 3, and the angle between the main optical axis of the camera 3 and the horizontal plane when the camera 3 shoots the first face image is taken as the first angle;

处理模块200,用于对所述第一人脸图像进行处理,得到所述第一人脸图像的第一人眼位置;依据所述第一角度、第一人眼位置以及第一预设位置,计算第一偏转角度;控制所述载体4带动摄像头3转动第一偏转角度;The processing module 200 is configured to process the first human face image to obtain the first human eye position of the first human face image; according to the first angle, the first human eye position and the first preset position , calculate the first deflection angle; control the carrier 4 to drive the camera 3 to rotate the first deflection angle;

拍摄模块300,用于控制所述摄像头3拍摄,得到虹膜图像。The photographing module 300 is configured to control the camera 3 to photograph to obtain an iris image.

在本发明实施例中,所述载体4还相对设置有背板5,所述背板5上设有标识人脸位置的定位框,在获取所述摄像头3采集的第一人脸图像之前,所述处理模块200还用于:In the embodiment of the present invention, the carrier 4 is further provided with a backplane 5 oppositely, and the backplane 5 is provided with a positioning frame for identifying the position of the face. Before acquiring the first face image collected by the camera 3, The processing module 200 is also used for:

控制所述电机2驱动所述载体4朝向所述背板5方向移动;Controlling the motor 2 to drive the carrier 4 to move toward the backplane 5;

控制所述摄像头3朝向所述背板5方向。Control the camera 3 to face the direction of the backplane 5 .

具体地,所述处理模块200还具体用于:Specifically, the processing module 200 is also specifically used for:

将第一人脸图像进行缩小处理;reduce the first face image;

对所述第一人脸图像进行目标检测,得到所述第一人脸图像中的第一人眼区域;performing target detection on the first face image to obtain the first eye region in the first face image;

获得所述第一人眼区域的第一中心坐标,并将所述第一中心坐标作为第一人眼位置。The first center coordinates of the first human eye region are obtained, and the first center coordinates are used as the first human eye position.

具体地,所述处理模块200还具体用于:Specifically, the processing module 200 is also specifically used for:

获取所述第一人眼区域对应的所有的第一人眼坐标,其中,所述第一人眼坐标为所述第一人眼区域在所述第一人脸图像中的坐标;对所有的第一人眼坐标求均值,得到第一中心坐标。Acquire all the first human eye coordinates corresponding to the first human eye region, wherein the first human eye coordinates are the coordinates of the first human eye region in the first human face image; for all the first human eye coordinates The first human eye coordinates are averaged to obtain the first center coordinates.

具体地,所述处理模块200还具体用于:Specifically, the processing module 200 is also specifically used for:

通过如下表达式计算得出所述第一偏转角度:The first deflection angle is calculated by the following expression:

θ=(y1-y0)α,其中,θ为第一偏转角度,y1为第一人眼位置在所述第一人脸图像中的纵坐标,y0为第一预设位置在所述第一人脸图像中的纵坐标,α为第一角度。θ=(y 1 -y 0 )α, where θ is the first deflection angle, y 1 is the ordinate of the first human eye position in the first face image, and y 0 is the first preset position at The ordinate in the first face image, α is the first angle.

在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,也可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,附图中的流程图和框图显示了根据本发明的多个实施例的装置、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或代码的一部分,所述模块、程序段或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现方式中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may also be implemented in other manners. The apparatus embodiments described above are merely illustrative, for example, the flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality and possible implementations of apparatuses, methods and computer program products according to various embodiments of the present invention. operate. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more functions for implementing the specified logical function(s) executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented in dedicated hardware-based systems that perform the specified functions or actions , or can be implemented in a combination of dedicated hardware and computer instructions.

另外,在本发明各个实施例中的各功能模块可以集成在一起形成一个独立的部分,也可以是各个模块单独存在,也可以两个或两个以上模块集成形成一个独立的部分。In addition, each functional module in each embodiment of the present invention may be integrated to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.

所述功能如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only-Memory)、随机存取存储器(RAM,Random-Access-Memory)、磁碟或者光盘等各种可以存储程序代码的介质。需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention can be embodied in the form of a software product in essence, or the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only-Memory), random access memory (RAM, Random-Access-Memory), magnetic disk or optical disk and other various programs that can store programs medium of code. It should be noted that, in this document, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any relationship between these entities or operations. any such actual relationship or sequence exists. Moreover, the terms "comprising", "comprising" or any other variation thereof are intended to encompass a non-exclusive inclusion such that a process, method, article or device that includes a list of elements includes not only those elements, but also includes not explicitly listed or other elements inherent to such a process, method, article or apparatus. Without further limitation, an element defined by the phrase "comprises" does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.

上文所列出的一系列的详细说明仅仅是针对本发明的可行性实施方式的具体说明,它们并非用以限制本发明的保护范围,凡未脱离本发明技艺精神所作的等效实施方式或变更均应包含在本发明的保护范围之内。The series of detailed descriptions listed above are only specific descriptions for the feasible embodiments of the present invention, and they are not used to limit the protection scope of the present invention. Changes should all be included within the protection scope of the present invention.

Claims (10)

1. a kind of automatic focusing iris image acquiring method, which is characterized in that be applied to controller, the controller and motor It is electrically connected with camera, the camera is set on carrier, and the motor is for driving the carrier mobile, the method Include:
The first facial image for obtaining camera acquisition, when camera is shot the first facial image camera primary optical axis with Angle between horizontal plane is as first angle;
First facial image is handled, the first position of human eye of first facial image is obtained;
According to the first angle, the first position of human eye and the first predeterminated position, the first deflection angle is calculated;
Controlling the carrier drives camera to rotate the first deflection angle;
The camera shooting is controlled, iris image is obtained.
2. a kind of automatic focusing iris image acquiring method according to claim 1, which is characterized in that the carrier is also It is relatively set with backboard, the backboard is equipped with the posting of mark face location, is obtaining the first of the camera acquisition Before facial image, the method also includes:
It is mobile towards the backboard direction to control carrier described in the motor driven;
The camera is controlled towards the backboard direction.
3. a kind of automatic focusing iris image acquiring method according to claim 1, which is characterized in that described to described The step of first facial image is handled, and the first position of human eye of first facial image is obtained, comprising:
First facial image is subjected to diminution processing;
Target detection is carried out to first facial image, obtains the first human eye area in first facial image;
The first centre coordinate of first human eye area is obtained, and using first centre coordinate as the first position of human eye.
4. a kind of automatic focusing iris image acquiring method according to claim 3, which is characterized in that the acquisition institute The step of stating the first centre coordinate of the first human eye area, comprising:
Obtain corresponding the first all human eye coordinates of first human eye area, wherein first human eye coordinates are described Coordinate of first human eye area in first facial image;It averages, is obtained in first to the first all human eye coordinates Heart coordinate.
5. a kind of automatic focusing iris image acquiring method according to claim 1, which is characterized in that described first partially Gyration is calculated by following expression:
θ=(y1-y0) α, wherein θ is the first deflection angle, y1It is the first position of human eye vertical in first facial image Coordinate, y0For ordinate of first predeterminated position in first facial image, α is first angle.
6. a kind of automatic focusing iris image acquiring device, which is characterized in that be applied to controller, the controller and motor It is electrically connected with camera, the camera is set on carrier, and the motor is for driving the carrier mobile, described device Include:
Module is obtained, for obtaining the first facial image of the camera acquisition, when camera is shot the first facial image Angle between camera primary optical axis and horizontal plane is as first angle;
Processing module obtains the first human eye position of first facial image for handling first facial image It sets;According to the first angle, the first position of human eye and the first predeterminated position, the first deflection angle is calculated;Control the load Body drives camera to rotate the first deflection angle;
Shooting module obtains iris image for controlling the camera shooting.
7. a kind of automatic focusing iris image acquiring device according to claim 6, which is characterized in that the carrier is also It is relatively set with backboard, the backboard is equipped with the posting of mark face location, is obtaining the first of the camera acquisition Before facial image, the processing module is also used to:
It is mobile towards the backboard direction to control carrier described in the motor driven;
The camera is controlled towards the backboard direction.
8. a kind of automatic focusing iris image acquiring device according to claim 6, which is characterized in that the processing mould Block also particularly useful for:
First facial image is subjected to diminution processing;
Target detection is carried out to first facial image, obtains the first human eye area in first facial image;
The first centre coordinate of first human eye area is obtained, and using first centre coordinate as the first position of human eye.
9. a kind of automatic focusing iris image acquiring device according to claim 8, which is characterized in that the processing mould Block also particularly useful for:
Obtain corresponding the first all human eye coordinates of first human eye area, wherein first human eye coordinates are described Coordinate of first human eye area in first facial image;It averages, is obtained in first to the first all human eye coordinates Heart coordinate.
10. a kind of automatic focusing iris image acquiring device according to claim 6, which is characterized in that the processing Module also particularly useful for:
First deflection angle is calculated by following expression:
θ=(y1-y0) α, wherein θ is the first deflection angle, y1It is the first position of human eye vertical in first facial image Coordinate, y0For ordinate of first predeterminated position in first facial image, α is first angle.
CN201910405197.XA 2019-05-16 2019-05-16 A kind of focusing iris image acquiring method and device automatically Pending CN110210333A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910405197.XA CN110210333A (en) 2019-05-16 2019-05-16 A kind of focusing iris image acquiring method and device automatically

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910405197.XA CN110210333A (en) 2019-05-16 2019-05-16 A kind of focusing iris image acquiring method and device automatically

Publications (1)

Publication Number Publication Date
CN110210333A true CN110210333A (en) 2019-09-06

Family

ID=67787337

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910405197.XA Pending CN110210333A (en) 2019-05-16 2019-05-16 A kind of focusing iris image acquiring method and device automatically

Country Status (1)

Country Link
CN (1) CN110210333A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110781787A (en) * 2019-10-18 2020-02-11 武汉虹识技术有限公司 Iris recognition device and method capable of automatically adjusting angle
CN111428654A (en) * 2020-03-27 2020-07-17 北京万里红科技股份有限公司 Iris identification method, device and storage medium
CN112272267A (en) * 2020-10-22 2021-01-26 Oppo广东移动通信有限公司 Shooting control method, shooting control device and electronic equipment
CN112764523A (en) * 2019-10-21 2021-05-07 北京眼神科技有限公司 Man-machine interaction method and device based on iris recognition and electronic equipment
CN113283271A (en) * 2020-02-20 2021-08-20 深圳爱酷智能科技有限公司 Iris automatic capturing method, iris automatic capturing device, computer readable storage medium and computer readable storage equipment
CN113780034A (en) * 2020-06-09 2021-12-10 上海聚虹光电科技有限公司 Eye focus tracking method based on iris recognition
CN115567664A (en) * 2022-10-13 2023-01-03 长沙观谱红外科技有限公司 Infrared imaging robot

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007189717A (en) * 2007-02-13 2007-07-26 Konica Minolta Holdings Inc Photographing apparatus, and photographing method
US20090091633A1 (en) * 2007-10-05 2009-04-09 Masaya Tamaru Image-taking method and apparatus
CN102708357A (en) * 2012-04-12 2012-10-03 北京释码大华科技有限公司 Single-image sensor based double-eye iris recognition equipment
CN102855476A (en) * 2011-06-27 2013-01-02 王晓鹏 Self-adaptive binocular iris synchronous collection system of single image sensor
CN107767325A (en) * 2017-09-12 2018-03-06 深圳市朗形网络科技有限公司 Method for processing video frequency and device
CN109376729A (en) * 2018-12-28 2019-02-22 武汉虹识技术有限公司 Iris image acquiring method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007189717A (en) * 2007-02-13 2007-07-26 Konica Minolta Holdings Inc Photographing apparatus, and photographing method
US20090091633A1 (en) * 2007-10-05 2009-04-09 Masaya Tamaru Image-taking method and apparatus
CN102855476A (en) * 2011-06-27 2013-01-02 王晓鹏 Self-adaptive binocular iris synchronous collection system of single image sensor
CN102708357A (en) * 2012-04-12 2012-10-03 北京释码大华科技有限公司 Single-image sensor based double-eye iris recognition equipment
CN107767325A (en) * 2017-09-12 2018-03-06 深圳市朗形网络科技有限公司 Method for processing video frequency and device
CN109376729A (en) * 2018-12-28 2019-02-22 武汉虹识技术有限公司 Iris image acquiring method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陶磊 等: "自动调焦虹膜图像采集系统设计", 《生命科学仪器》 *

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110781787A (en) * 2019-10-18 2020-02-11 武汉虹识技术有限公司 Iris recognition device and method capable of automatically adjusting angle
CN112764523A (en) * 2019-10-21 2021-05-07 北京眼神科技有限公司 Man-machine interaction method and device based on iris recognition and electronic equipment
CN112764523B (en) * 2019-10-21 2022-11-18 北京眼神科技有限公司 Man-machine interaction method and device based on iris recognition and electronic equipment
CN113283271A (en) * 2020-02-20 2021-08-20 深圳爱酷智能科技有限公司 Iris automatic capturing method, iris automatic capturing device, computer readable storage medium and computer readable storage equipment
WO2021164678A1 (en) * 2020-02-20 2021-08-26 深圳爱酷智能科技有限公司 Automatic iris capturing method and apparatus, computer-readable storage medium, and computer device
US20230080861A1 (en) * 2020-02-20 2023-03-16 Eyecool Shenzhen Technology Co., Ltd. Automatic Iris Capturing Method And Apparatus, Computer-Readable Storage Medium, And Computer Device
EP4095744A4 (en) * 2020-02-20 2024-02-21 Eyecool Shenzen Technology Co., Ltd. Automatic iris capturing method and apparatus, computer-readable storage medium, and computer device
CN111428654A (en) * 2020-03-27 2020-07-17 北京万里红科技股份有限公司 Iris identification method, device and storage medium
CN111428654B (en) * 2020-03-27 2023-11-28 北京万里红科技有限公司 Iris recognition method, iris recognition device and storage medium
CN113780034A (en) * 2020-06-09 2021-12-10 上海聚虹光电科技有限公司 Eye focus tracking method based on iris recognition
CN112272267A (en) * 2020-10-22 2021-01-26 Oppo广东移动通信有限公司 Shooting control method, shooting control device and electronic equipment
CN115567664A (en) * 2022-10-13 2023-01-03 长沙观谱红外科技有限公司 Infrared imaging robot

Similar Documents

Publication Publication Date Title
CN110210333A (en) A kind of focusing iris image acquiring method and device automatically
CN109376729B (en) Iris image acquisition method and device
CN110691193B (en) Camera switching method and device, storage medium and electronic equipment
WO2018201809A1 (en) Double cameras-based image processing device and method
CN103905733B (en) A kind of method and system of monocular cam to real time face tracking
WO2018228410A1 (en) Target object capturing method and device, and video monitoring device
CN109981972B (en) Target tracking method of robot, robot and storage medium
US8797381B2 (en) Image processing apparatus and image processing method
WO2021057652A1 (en) Focusing method and apparatus, electronic device, and computer readable storage medium
CN108076278B (en) A kind of automatic focusing method, device and electronic equipment
CN104125405B (en) Interesting image regions extracting method based on eyeball tracking and autofocus system
US20150103184A1 (en) Method and system for visual tracking of a subject for automatic metering using a mobile device
CN105657238B (en) Tracking focus method and device
WO2019061079A1 (en) Focusing processing method and device
CN105898136A (en) Camera angle adjustment method, system and television
CN104935698B (en) A kind of image pickup method of intelligent terminal, filming apparatus and smart phone
CN103297696A (en) Photographing method, photographing device and photographing terminal
CN109905604A (en) Focusing method, device, capture apparatus and aircraft
CN106031148B (en) Imaging device, method of auto-focusing in an imaging device and corresponding computer program
WO2020029596A1 (en) Lens control method and device and terminal
CN110650288B (en) Focus control method and apparatus, electronic device, computer-readable storage medium
CN112836656A (en) Device control method, device and image acquisition system
WO2017101292A1 (en) Autofocusing method, device and system
WO2022021093A1 (en) Photographing method, photographing apparatus, and storage medium
CN107992832A (en) A kind of face tracking System and method for

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190906