WO2021012370A1 - Pupil radius detection method and apparatus, computer device and storage medium - Google Patents

Pupil radius detection method and apparatus, computer device and storage medium Download PDF

Info

Publication number
WO2021012370A1
WO2021012370A1 PCT/CN2019/106604 CN2019106604W WO2021012370A1 WO 2021012370 A1 WO2021012370 A1 WO 2021012370A1 CN 2019106604 W CN2019106604 W CN 2019106604W WO 2021012370 A1 WO2021012370 A1 WO 2021012370A1
Authority
WO
WIPO (PCT)
Prior art keywords
circle
pupil
image
pixels
pixel
Prior art date
Application number
PCT/CN2019/106604
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 深圳壹账通智能科技有限公司
Priority to SG11202004539QA priority Critical patent/SG11202004539QA/en
Publication of WO2021012370A1 publication Critical patent/WO2021012370A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • 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

Definitions

  • This application relates to a method, device, computer equipment and storage medium for detecting pupil radius.
  • Pupil radius detection plays an important role in the gaze tracking system.
  • the traditional pupil radius detection method considers the geometric characteristics of the pupil, regards the pupil as a circle or an ellipse, and performs fitting by the least square method.
  • the inventor realizes that this leads to low accuracy of the obtained pupil radius.
  • a method, device, computer device, and storage medium for detecting pupil radius are provided.
  • a method for detecting pupil radius includes:
  • the distance between the center and the center of each circle is obtained, the center of the circle closest to the center is selected, the smallest enclosing circle corresponding to the nearest circle center is taken as the target circle, and the radius of the target circle is taken as the pupil radius.
  • a detection device for pupil radius includes:
  • An image extraction module for acquiring a pupil radius to-be-measured image, and extracting an image of a region of interest in the pupil-radius-to-be-measured image;
  • a pupil image acquisition module configured to perform pixel processing on the image of the region of interest to obtain an image of the pupil region
  • a pupil contour acquisition module configured to extract multiple pupil contours from the pupil area image through a boundary tracking algorithm
  • a center circle acquisition module configured to acquire the center of the region of interest image, the smallest enclosing circle set of the multiple pupil contours, and the center of each smallest enclosing circle in the smallest enclosing circle set;
  • the pupil radius acquiring module is used to acquire the distance between the center and the center of each circle, select the center of the circle closest to the center, and use the smallest enclosing circle corresponding to the nearest center as the target circle, and use the radius of the target circle as Pupil radius.
  • a computer device including a memory and one or more processors, the memory stores computer readable instructions, when the computer readable instructions are executed by the processor, the one or more processors execute The following steps:
  • the distance between the center and the center of each circle is obtained, the center of the circle closest to the center is selected, the smallest enclosing circle corresponding to the nearest circle center is taken as the target circle, and the radius of the target circle is taken as the pupil radius.
  • One or more non-volatile computer-readable storage media storing computer-readable instructions.
  • the one or more processors execute the following steps:
  • the distance between the center and the center of each circle is obtained, the center of the circle closest to the center is selected, the smallest enclosing circle corresponding to the nearest circle center is taken as the target circle, and the radius of the target circle is taken as the pupil radius.
  • Fig. 1 is an application scene diagram of a pupil radius detection method according to one or more embodiments.
  • Fig. 2 is a schematic flowchart of a method for detecting pupil radius according to one or more embodiments.
  • Fig. 3 is a schematic flowchart of the steps of obtaining the minimum enclosing circle set according to one or more embodiments.
  • Fig. 4 is a schematic flowchart of the steps of obtaining the smallest enclosing circle according to one or more embodiments.
  • Fig. 5 is a block diagram of an apparatus for detecting pupil radius according to one or more embodiments.
  • Figure 6 is a block diagram of a computer device according to one or more embodiments.
  • the pupil radius detection method provided in this application can be applied to the application environment as shown in FIG. 1.
  • the target object wears an HMD102 (Head-mounted Display) with eye tracking function.
  • the eye tracking HMD102 has a built-in eye tracking camera to adjust the wearing position.
  • the eye tracking camera collects the pupil radius to-be-measured image of the target object, and transmits the pupil-radius-to-be-measured image to the control terminal 104 in real time.
  • the control terminal 104 analyzes and processes the pupil radius to-be-measured image, extracts the image of the area of interest from the pupil-radius image to be measured, and then performs pixel processing on the image of interest to obtain the pupil area image, which is extracted from the pupil area image by the boundary tracking algorithm For multiple pupil contours, the center of the minimum enclosing circle of the multiple pupil contours and the distance between the center of the region of interest image and the center of each circle are obtained, and the radius of the minimum enclosing circle corresponding to the center of the center with the closest distance is taken as the pupil radius.
  • the control terminal 104 may be, but is not limited to, various personal computers, notebook computers, smart phones, and tablet computers.
  • a method for detecting pupil radius is provided. Taking the method applied to the control terminal in FIG. 1 as an example for description, the method includes the following steps:
  • Step 202 Obtain a pupil radius to-be-measured image, and extract a region of interest image in the pupil-radius-to-be-measured image.
  • the pupil radius to be measured image is collected by the eye tracking camera and sent to the control terminal.
  • the eye tracking camera is an IR-sensitive camera with IR (Infrared Radiation) bandpass filtering function.
  • the camera only allows infrared light to enter the camera and provides infrared illumination.
  • Infrared lighting devices are usually infrared light-emitting diodes, which are used to illuminate the area around the eyes.
  • the pupil is generally located in the central area of the eye image, therefore, the area of interest is specifically an image corresponding to the central area of the eye image output by the eye tracking camera.
  • Step 204 Perform pixel processing on the image of the region of interest to obtain an image of the pupil region.
  • the area of the pupil position is most likely to be the darkest area, and the image corresponding to the darkest area is not convenient for subsequent processing. Therefore, the darkest area is converted into the brightest area through bitwise non-processing, and the brightest area is easier to perform subsequent processing than the darkest area.
  • Performing pixel processing on the image of the region of interest to obtain the image of the pupil region includes: obtaining the pixel values of the image of the region of interest, performing bitwise non-processing on each pixel value, and obtaining the pixel values of the processed image of the region of interest; Among the pixel values of the processed image of the region of interest, the pixel values lower than the preset threshold are set to zero to obtain the pupil region image.
  • the pupil region and the non-pupil region are divided.
  • Step 206 Extract multiple pupil contours from the pupil area image through the boundary tracking algorithm.
  • boundary tracking extracts a series of coordinate points or chain codes of the boundary contour.
  • the boundary refers to the boundary between a 1-pixel connected domain and a 0-pixel connected domain.
  • the information that needs to be extracted is the enclosing relationship between the outer boundary and the hole boundary.
  • the boundary tracking algorithm can distinguish the enclosing relationship between binary image boundaries.
  • the outer boundary and the hole boundary have a one-to-one correspondence with the connected domain with a pixel value of 1 and the hole with a pixel value of 0, respectively.
  • the boundary tracking algorithm can also only track the outermost contour, that is, there is no hole boundary surrounding it outside the outer boundary, which can be used for area counting and topology analysis of binary images.
  • Step 208 Obtain the center of the image of the region of interest, the smallest enclosing circle set of multiple pupil contours, and the center of each smallest enclosing circle in the smallest enclosing circle set.
  • the region of interest may specifically be the central region of the eye image.
  • the center of the image of the region of interest is the geometric center of the geometric region.
  • Obtaining the center and radius of the smallest enclosing circle including: obtaining four pixels to determine the smallest enclosing circle, choosing two from the four pixels at will to obtain two sets of different pixel combinations, through two sets of different pixel combinations , Get two straight lines; get the vertical averages of the two straight lines respectively, get the center of the smallest enclosing circle by getting the intersection of the two vertical averages; get the smallest by getting the distance between the center of the circle and any point of the four pixels The radius of the enclosing circle.
  • Step 210 Obtain the distance between the center and the center of each circle, filter the center of the circle closest to the center, use the smallest enclosing circle corresponding to the nearest circle center as the target circle, and use the radius of the target circle as the pupil radius.
  • the distance between the center and the center of the circle can be obtained by obtaining the pixel points corresponding to the center and the center of the circle, and then by the distance formula between the two points.
  • the pupil radius detection method mentioned above extracts the image of the area of interest from the image to be measured with the pupil radius, and then performs pixel processing on the image of interest to obtain the pupil area image, and extracts multiple pupil contours from the pupil area image through the boundary tracking algorithm to obtain multiple The center of the smallest enclosing circle of the pupil contour, and the distance between the center of the image of the region of interest and the center of each circle, the radius of the smallest enclosing circle corresponding to the center of the center is the pupil radius, and the center of the circle is the closest to the center of the region of interest.
  • the way the smallest enclosing circle locates the pupil the obtained pupil positioning is more accurate, and the accuracy of the obtained pupil radius can be improved.
  • the method further includes: obtaining the pixel point set of each pupil contour in the multiple pupil contours; The angles are sorted from small to large, and the pixels with the same polar angle are sorted according to the distance from the bottom left pixel in the pixel point set from small to large; the sorted pixels are stored through the structure array, and the sorted pixels are traversed , Remove the non-vertex pixels to obtain the vertex pixel point set; judge the corner of each vertex pixel in the vertex pixel point set, remove the vertex pixels that are not cornered in the preset direction, and obtain the convex hull processed pupil contour ; Obtaining the minimum enclosing circle set of multiple pupil contours includes: obtaining the minimum enclosing circle set of the pupil contour after convex hull processing.
  • obtaining the minimum enclosing circle set of multiple pupil contours includes: step 302, obtaining the minimum enclosing circle and the radius of the minimum enclosing circle respectively corresponding to the multiple pupil contours; step 304, The smallest enclosing circle whose radius is greater than the preset value in the smallest enclosing circle is removed, and the smallest enclosing circle set of the pupil contour is obtained.
  • the preset value range can be calculated by the resolution of the image, by detecting several possible circles, for example, the iris or the shell of the eye tracking device against the face.
  • obtaining the minimum enclosing circle corresponding to multiple pupil contours respectively includes: step 402, obtaining the leftmost, rightmost, and uppermost sides of each pupil contour in the multiple pupil contours respectively And the four pixels at the bottom, obtain the smallest circle surrounding the four pixels according to the four pixels; step 404, traverse all the pixels of the pupil contour, when there is no pixel located outside the boundary of the smallest circle When the pixel points of, the smallest circle is the smallest enclosing circle of the pupil contour.
  • the method for detecting the pupil radius further includes: when there are pixel points outside the boundary of the smallest circle among all the pixels, obtaining the smallest enclosing circle whose smallest circle is not the pupil contour; from outside the boundary of the smallest circle Among the pixels in, filter the pixels farthest from the center of the smallest circle, and arrange and combine the filtered pixels with any three of the leftmost, rightmost, uppermost and lowermost four pixels; obtain the permutation and combination For the last four pixels, the candidate minimum circle surrounding the four pixels is obtained according to the four pixels after permutation and combination; when the pixels that are not selected in the permutation and combination are not outside the boundary of the candidate minimum circle, traverse the pupil contour For other pixels, when there is no pixel located outside the boundary of the candidate minimum circle among other pixels, the candidate minimum circle is obtained as the minimum enclosing circle of the pupil contour.
  • the minimum enclosing circle of the pupil contour can be obtained by the following steps: (1) Traverse all the pixels of the pupil contour, find the four pixels on the leftmost, rightmost, uppermost, and lowermost sides, and find the leftmost and rightmost enclosing pixels , The smallest circle of the four pixels at the top and bottom, including the center and radius of the smallest circle. (2) Then traverse all the pixels of the pupil contour to determine whether there are some pixels outside the boundary of the minimum circle. If there are no pixels outside the boundary of the smallest circle, then the smallest circle is the smallest enclosing circle of the pupil contour. If there are some points outside the boundary of the smallest circle, then the smallest circle is not the smallest enclosing circle of the pupil contour.
  • the pixel point farthest from the center of the minimum circle among the points outside the boundary of the minimum circle is selected, and the pixel point farthest from the center of the minimum circle is selected.
  • the smallest circle 1 is not the smallest enclosing circle of the pupil contour
  • the point that is farthest from the center of the smallest circle 1 among the points outside the boundary of the smallest circle 1 is selected, and the point farthest from the center of the smallest circle 1 is Determine any three points among the four points of the minimum circle 1, and repeat steps (3) and (4) until all points of the pupil contour are traversed, and there are no points outside the boundary of the obtained minimum circle.
  • the minimum circle obtained is the minimum enclosing circle of the pupil contour.
  • the control terminal can pre-store the historical pupil radius data of the face-to-face subject when answering a specific question, for example, use the average value of the historical pupil radius data as the face-to-face subject Reference value of pupil radius.
  • the interview subject wears an HMD with eye tracking function.
  • the eye tracking HMD has a built-in eye tracking camera. At the beginning of the interview, the eye tracking camera collects the real-time pupil radius of the interview subject to be measured And transmit the real-time pupil radius to-be-measured image to the control terminal in real time.
  • the control terminal analyzes and processes the real-time pupil radius to-be-measured image, extracts the image of the area of interest from the real-time pupil-radius image to be measured, and then performs pixel processing on the image of interest to obtain the pupil area image, which is obtained from the pupil area image through the boundary tracking algorithm Extract multiple pupil contours, obtain the center of the minimum enclosing circle of multiple pupil contours, and the distance between the center of the region of interest image and the center of each circle, and use the radius of the smallest enclosing circle corresponding to the center of the center with the closest distance as the real-time pupil radius.
  • the real-time pupil radius is compared with the benchmark value of the pupil radius of the face-to-face interview subject, and the lie detection result of the face-to-face subject when answering questions is obtained. For example, when the real-time pupil radius when answering a specific question is greater than the corresponding pupil radius reference value, it is determined that the interview subject is lying when answering the question.
  • a device for detecting pupil radius including: an image extraction module 502, a pupil image acquisition module 504, a pupil contour acquisition module 506, a central circle acquisition module 508, and a pupil radius Obtain the module 510.
  • the image extraction module is used to obtain the pupil radius to be measured, and extract the image of the region of interest in the pupil radius to be measured;
  • the pupil image acquisition module is used to perform pixel processing on the image of the region of interest to obtain the pupil area image;
  • the pupil contour acquisition module It is used to extract multiple pupil contours from the pupil area image through the boundary tracking algorithm;
  • the center circle center acquisition module is used to obtain the center of the region of interest image, the minimum enclosing circle set of multiple pupil contours, and each minimum encircle in the minimum enclosing circle set The center of the circle;
  • the pupil radius obtaining module is used to obtain the distance between the center and the center of each circle, filter the center of the circle closest to the center, and use the smallest enclosing circle corresponding to the nearest circle center as the target circle, and the radius of the target circle as the pupil radius.
  • the pupil image acquisition module is also used to acquire the pixel values of the image of the region of interest, perform bitwise non-processing on the pixel values, and acquire the pixel values of the processed image of the region of interest; Among the pixel values of the image of the region of interest, the pixel values lower than the preset threshold are set to zero to obtain an image of the pupil area.
  • the pupil image acquisition module further includes a convex hull processing module for acquiring the pixel point set of each pupil contour in the plurality of pupil contours; the pixel points in the pixel point set are from small to large according to the polar angle.
  • Sort sort the pixels with the same polar angle according to the distance from the bottom leftmost pixel in the pixel point set from small to large; store the sorted pixels through the structure array, traverse the sorted pixels, and go Except for the pixels of the vertex, the vertex pixel point set is obtained; the corner of each vertex pixel in the vertex pixel point set is judged, and the vertex pixels that are not cornered in the preset direction are removed to obtain the convex hull processed pupil contour;
  • the circle center acquisition module is used to acquire the minimum enclosing circle set of the pupil contour after convex hull processing.
  • the central circle acquisition module is also used to acquire the minimum enclosing circle and the radius of the minimum enclosing circle respectively corresponding to multiple pupil contours; remove the smallest enclosing circle whose radius is greater than the preset value in the minimum enclosing circle to obtain the pupil contour The smallest enclosing circle set.
  • the center circle acquisition module is also used to separately acquire the leftmost, rightmost, uppermost, and lowermost four pixels of each pupil contour in the plurality of pupil contours, and obtain the encircling according to the four pixels.
  • the smallest circle of the four pixels traverse all the pixels of the pupil contour, and when there is no pixel outside the boundary of the smallest circle among all the pixels, the smallest circle is the smallest enclosing circle of the pupil contour.
  • the central circle acquisition module is also used to obtain the smallest enclosing circle whose smallest circle is not the pupil contour when there are pixels outside the boundary of the smallest circle among all the pixels; Among the pixels, filter the pixels farthest from the center of the smallest circle, and arrange and combine the filtered pixels with any three of the leftmost, rightmost, uppermost and lowermost four pixels; after obtaining the permutation and combination According to the four pixel points after permutation and combination, the candidate minimum circle surrounding the four pixels is obtained; when the pixel points not selected in the permutation and combination are not outside the boundary of the candidate minimum circle, traverse other pupil contours For pixel points, when there is no pixel point outside the boundary of the candidate minimum circle among other pixels, the candidate minimum circle is obtained as the minimum enclosing circle of the pupil contour.
  • the detection device for pupil radius further includes a center radius module, which is used to obtain four pixels that determine the minimum enclosing circle, and select two of the four pixels at will to obtain two sets of different pixel point combinations , Through the combination of two sets of different pixels, two straight lines are obtained; the vertical average line of the two straight lines is obtained separately, and the center of the smallest enclosing circle is obtained by obtaining the intersection of the two vertical average lines; by obtaining the center and four The distance of any point in the pixel is the radius of the smallest enclosing circle.
  • each module in the above-mentioned pupil radius detection device can be implemented in whole or in part by software, hardware, and a combination thereof.
  • the foregoing modules may be embedded in the form of hardware or independent of the processor in the computer device, or may be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the foregoing modules.
  • a computer device is provided.
  • the computer device may be a server, and its internal structure diagram may be as shown in FIG. 6.
  • the computer equipment includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide calculation and control capabilities.
  • the memory of the computer device includes a non-volatile storage medium and an internal memory.
  • the non-volatile storage medium stores an operating system, computer readable instructions, and a database.
  • the internal memory provides an environment for the operation of the operating system and computer-readable instructions in the non-volatile storage medium.
  • the database of the computer equipment is used to store data such as the center of the smallest enclosing circle and the radius of the smallest enclosing circle.
  • the network interface of the computer device is used to communicate with an external terminal through a network connection.
  • the computer readable instructions are executed by the processor to realize a pupil radius detection method.
  • FIG. 6 is only a block diagram of part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied.
  • the specific computer device may Including more or fewer parts than shown in the figure, or combining some parts, or having a different arrangement of parts.
  • a computer device including a memory and one or more processors, in which computer-readable instructions are stored, and when the computer-readable instructions are executed by the processor, the steps of the pupil radius detection method provided in any embodiment of the present application are implemented .
  • One or more non-volatile computer-readable storage media storing computer-readable instructions.
  • the one or more processors implement any one of the embodiments of the present application. Provide the steps of the pupil radius detection method.
  • Non-volatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • ROM read only memory
  • PROM programmable ROM
  • EPROM electrically programmable ROM
  • EEPROM electrically erasable programmable ROM
  • Volatile memory may include random access memory (RAM) or external cache memory.
  • RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Channel (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Geometry (AREA)
  • General Health & Medical Sciences (AREA)
  • Ophthalmology & Optometry (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Image Analysis (AREA)
  • Eye Examination Apparatus (AREA)

Abstract

A pupil radius detection method, comprising: obtaining an image to be measured of the pupil radius, and extracting a region-of-interest image in said image of the pupil radius (S202); performing pixel processing on the region-of-interest image to obtain a pupil region image (S204); extracting a plurality of pupil contours from the pupil region image by means of a boundary tracking algorithm (S206); obtaining the center of the region-of-interest image, a minimum bounding circle set of the plurality of pupil contours and the circle center of each minimum bounding circle in the minimum bounding circle set (S208); and obtaining the distance between the center and each circle center, screening the circle center closest to the center, taking the minimum surrounding circle corresponding to the closest circle center as a target circle, and taking the radius of the target circle as the pupil radius (S210).

Description

瞳孔半径的检测方法、装置、计算机设备和存储介质Method, device, computer equipment and storage medium for detecting pupil radius
相关申请的交叉引用Cross references to related applications
本申请要求于2019年7月25日提交中国专利局,申请号为2019106767537,申请名称为“瞳孔半径的检测方法、装置、计算机设备和存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on July 25, 2019, the application number is 2019106767537, and the application title is "Pupillary Radius Detection Method, Device, Computer Equipment, and Storage Medium". The reference is incorporated in this application.
技术领域Technical field
本申请涉及一种瞳孔半径的检测方法、装置、计算机设备和存储介质。This application relates to a method, device, computer equipment and storage medium for detecting pupil radius.
背景技术Background technique
随着科学技术的发展,视线追踪越来越广泛地应用于医疗、人机交互、航空军事、面审等领域。以贷款审核面审为例,在这个阶段,在沟通过程中可以通过视线追踪自动获取接受面审的对象的反应,从而辅助对其整体资质做出判断。With the development of science and technology, gaze tracking has become more and more widely used in medical, human-computer interaction, aviation and military, face-to-face audits and other fields. Take the loan review face-to-face review as an example. At this stage, in the communication process, the response of the subject under the face-to-face review can be automatically obtained through line-of-sight tracking, thereby assisting in making judgments on their overall qualifications.
瞳孔半径检测作为视线追踪技术的重要部分,对视线追踪系统的作用十分重要。传统的瞳孔半径检测方法,考虑瞳孔的几何特性,将瞳孔看成一个圆或椭圆,通过最小二乘法进行拟合,然而,发明人意识到,这样导致获取到的瞳孔半径的精确度低。Pupil radius detection, as an important part of the gaze tracking technology, plays an important role in the gaze tracking system. The traditional pupil radius detection method considers the geometric characteristics of the pupil, regards the pupil as a circle or an ellipse, and performs fitting by the least square method. However, the inventor realizes that this leads to low accuracy of the obtained pupil radius.
发明内容Summary of the invention
根据本申请公开的各种实施例,提供一种瞳孔半径的检测方法、装置、计算机设备和存储介质。According to various embodiments disclosed in the present application, a method, device, computer device, and storage medium for detecting pupil radius are provided.
一种瞳孔半径的检测方法包括:A method for detecting pupil radius includes:
获取瞳孔半径待测图像,提取所述瞳孔半径待测图像中的感兴趣区域图像;Acquiring a pupil radius to-be-measured image, and extracting a region of interest image in the pupil-radius-to-be-measured image;
对所述感兴趣区域图像进行像素处理,得到瞳孔区域图像;Performing pixel processing on the image of the region of interest to obtain an image of the pupil region;
通过边界跟踪算法从所述瞳孔区域图像中提取多个瞳孔轮廓;Extracting multiple pupil contours from the pupil area image through a boundary tracking algorithm;
获取所述感兴趣区域图像的中心、所述多个瞳孔轮廓的最小包围圆集合以及所述最小包围圆集合中各个最小包围圆的圆心;及Acquiring the center of the region of interest image, the smallest enclosing circle set of the multiple pupil contours, and the center of each smallest enclosing circle in the smallest enclosing circle set; and
获取所述中心与各圆心的距离,筛选与所述中心距离最近的圆心,将所述最近的圆心对应的最小包围圆作为目标圆,以所述目标圆的半径作为瞳孔半径。The distance between the center and the center of each circle is obtained, the center of the circle closest to the center is selected, the smallest enclosing circle corresponding to the nearest circle center is taken as the target circle, and the radius of the target circle is taken as the pupil radius.
一种瞳孔半径的检测装置包括:A detection device for pupil radius includes:
图像提取模块,用于获取瞳孔半径待测图像,提取所述瞳孔半径待测图像中的感兴趣区域图像;An image extraction module for acquiring a pupil radius to-be-measured image, and extracting an image of a region of interest in the pupil-radius-to-be-measured image;
瞳孔图像获取模块,用于对所述感兴趣区域图像进行像素处理,得到瞳孔区域图像;A pupil image acquisition module, configured to perform pixel processing on the image of the region of interest to obtain an image of the pupil region;
瞳孔轮廓获取模块,用于通过边界跟踪算法从所述瞳孔区域图像中提取多个瞳孔轮廓;A pupil contour acquisition module, configured to extract multiple pupil contours from the pupil area image through a boundary tracking algorithm;
中心圆心获取模块,用于获取所述感兴趣区域图像的中心、所述多个瞳孔轮廓的最小包围圆集合以及所述最小包围圆集合中各个最小包围圆的圆心;及A center circle acquisition module, configured to acquire the center of the region of interest image, the smallest enclosing circle set of the multiple pupil contours, and the center of each smallest enclosing circle in the smallest enclosing circle set; and
瞳孔半径获取模块,用于获取所述中心与各圆心的距离,筛选与所述中心距离最近的圆心,将所述最近的圆心对应的最小包围圆作为目标圆,以所述目标圆的半径作为瞳孔半径。The pupil radius acquiring module is used to acquire the distance between the center and the center of each circle, select the center of the circle closest to the center, and use the smallest enclosing circle corresponding to the nearest center as the target circle, and use the radius of the target circle as Pupil radius.
一种计算机设备,包括存储器和一个或多个处理器,所述存储器中储存有计算机可读指令,所述计算机可读指令被所述处理器执行时,使得所述一个或多个处理器执行以下步骤:A computer device, including a memory and one or more processors, the memory stores computer readable instructions, when the computer readable instructions are executed by the processor, the one or more processors execute The following steps:
获取瞳孔半径待测图像,提取所述瞳孔半径待测图像中的感兴趣区域图像;Acquiring a pupil radius to-be-measured image, and extracting a region of interest image in the pupil-radius-to-be-measured image;
对所述感兴趣区域图像进行像素处理,得到瞳孔区域图像;Performing pixel processing on the image of the region of interest to obtain an image of the pupil region;
通过边界跟踪算法从所述瞳孔区域图像中提取多个瞳孔轮廓;Extracting multiple pupil contours from the pupil area image through a boundary tracking algorithm;
获取所述感兴趣区域图像的中心、所述多个瞳孔轮廓的最小包围圆集合以及所述最小包围圆集合中各个最小包围圆的圆心;及Acquiring the center of the region of interest image, the smallest enclosing circle set of the multiple pupil contours, and the center of each smallest enclosing circle in the smallest enclosing circle set; and
获取所述中心与各圆心的距离,筛选与所述中心距离最近的圆心,将所述最近的圆心对应的最小包围圆作为目标圆,以所述目标圆的半径作为瞳孔半径。The distance between the center and the center of each circle is obtained, the center of the circle closest to the center is selected, the smallest enclosing circle corresponding to the nearest circle center is taken as the target circle, and the radius of the target circle is taken as the pupil radius.
一个或多个存储有计算机可读指令的非易失性计算机可读存储介质,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行以下步骤:One or more non-volatile computer-readable storage media storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the following steps:
获取瞳孔半径待测图像,提取所述瞳孔半径待测图像中的感兴趣区域图像;Acquiring a pupil radius to-be-measured image, and extracting a region of interest image in the pupil-radius-to-be-measured image;
对所述感兴趣区域图像进行像素处理,得到瞳孔区域图像;Performing pixel processing on the image of the region of interest to obtain an image of the pupil region;
通过边界跟踪算法从所述瞳孔区域图像中提取多个瞳孔轮廓;Extracting multiple pupil contours from the pupil area image through a boundary tracking algorithm;
获取所述感兴趣区域图像的中心、所述多个瞳孔轮廓的最小包围圆集合以及所述最小包围圆集合中各个最小包围圆的圆心;及Acquiring the center of the region of interest image, the smallest enclosing circle set of the multiple pupil contours, and the center of each smallest enclosing circle in the smallest enclosing circle set; and
获取所述中心与各圆心的距离,筛选与所述中心距离最近的圆心,将所述最近的圆心对应的最小包围圆作为目标圆,以所述目标圆的半径作为瞳孔半径。The distance between the center and the center of each circle is obtained, the center of the circle closest to the center is selected, the smallest enclosing circle corresponding to the nearest circle center is taken as the target circle, and the radius of the target circle is taken as the pupil radius.
本申请的一个或多个实施例的细节在下面的附图和描述中提出。本申请的其它特征和优点将从说明书、附图以及权利要求书变得明显。The details of one or more embodiments of the application are set forth in the following drawings and description. Other features and advantages of this application will become apparent from the description, drawings and claims.
附图说明Description of the drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。In order to more clearly describe the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings needed in the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work.
图1为根据一个或多个实施例中瞳孔半径的检测方法的应用场景图。Fig. 1 is an application scene diagram of a pupil radius detection method according to one or more embodiments.
图2为根据一个或多个实施例中瞳孔半径的检测方法的流程示意图。Fig. 2 is a schematic flowchart of a method for detecting pupil radius according to one or more embodiments.
图3为根据一个或多个实施例中最小包围圆集合获取步骤的流程示意图。Fig. 3 is a schematic flowchart of the steps of obtaining the minimum enclosing circle set according to one or more embodiments.
图4为根据一个或多个实施例中最小包围圆获取步骤的流程示意图。Fig. 4 is a schematic flowchart of the steps of obtaining the smallest enclosing circle according to one or more embodiments.
图5为根据一个或多个实施例中瞳孔半径的检测装置的框图。Fig. 5 is a block diagram of an apparatus for detecting pupil radius according to one or more embodiments.
图6为根据一个或多个实施例中计算机设备的框图。Figure 6 is a block diagram of a computer device according to one or more embodiments.
具体实施方式Detailed ways
为了使本申请的技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the technical solutions and advantages of the present application clearer, the following further describes the present application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the application, and not used to limit the application.
本申请提供的瞳孔半径的检测方法,可以应用于如图1所示的应用环境中。目标对象佩戴具有眼动追踪功能的HMD102(Head-mounted displays,头戴式显示器),眼动追踪HMD102拥有内置眼动追踪相机,调整好佩戴位置。在开始时眼动追踪相机采集目标对象的瞳孔半径待测图像,并将瞳孔半径待测图像实时传输至控制终端104。控制终端104通过对瞳孔半径待测图像进行分析处理,从瞳孔半径待测图像中提取感兴趣区域图像,再对感兴趣图像进行像素处理,得到瞳孔区域图像,通过边界跟踪算法从瞳孔区域图像提取多个瞳孔轮廓,获取多个瞳孔轮廓的最小包围圆的圆心,以及感兴趣区域图像中心与各圆心的距离,将与中心距离最近的圆心对应的最小包围圆的半径作为瞳孔半径。控制终端104可以但不限于是各种个人计算机、笔记本电脑、智能手机和平板电脑。The pupil radius detection method provided in this application can be applied to the application environment as shown in FIG. 1. The target object wears an HMD102 (Head-mounted Display) with eye tracking function. The eye tracking HMD102 has a built-in eye tracking camera to adjust the wearing position. At the beginning, the eye tracking camera collects the pupil radius to-be-measured image of the target object, and transmits the pupil-radius-to-be-measured image to the control terminal 104 in real time. The control terminal 104 analyzes and processes the pupil radius to-be-measured image, extracts the image of the area of interest from the pupil-radius image to be measured, and then performs pixel processing on the image of interest to obtain the pupil area image, which is extracted from the pupil area image by the boundary tracking algorithm For multiple pupil contours, the center of the minimum enclosing circle of the multiple pupil contours and the distance between the center of the region of interest image and the center of each circle are obtained, and the radius of the minimum enclosing circle corresponding to the center of the center with the closest distance is taken as the pupil radius. The control terminal 104 may be, but is not limited to, various personal computers, notebook computers, smart phones, and tablet computers.
在其中一个实施例中,如图2所示,提供了一种瞳孔半径的检测方法,以该方法应用于图1中的控制终端为例进行说明,包括以下步骤:In one of the embodiments, as shown in FIG. 2, a method for detecting pupil radius is provided. Taking the method applied to the control terminal in FIG. 1 as an example for description, the method includes the following steps:
步骤202,获取瞳孔半径待测图像,提取瞳孔半径待测图像中的感兴趣区域图像。Step 202: Obtain a pupil radius to-be-measured image, and extract a region of interest image in the pupil-radius-to-be-measured image.
瞳孔半径待测图像由眼动追踪相机采集,并发送至控制终端。眼动追踪相机是具有IR(Infrared Radiation,红外线)带通滤波功能的IR敏感相机, 该相机只允许红外光进入相机,并提供红外照明。红外照明装置通常是红外发光二极管,用于照亮眼睛周围的区域。瞳孔一般位于眼睛图像的中心区域,因此,感兴趣区域具体来说是眼动追踪相机输出的眼睛图像的中心区域对应的图像。The pupil radius to be measured image is collected by the eye tracking camera and sent to the control terminal. The eye tracking camera is an IR-sensitive camera with IR (Infrared Radiation) bandpass filtering function. The camera only allows infrared light to enter the camera and provides infrared illumination. Infrared lighting devices are usually infrared light-emitting diodes, which are used to illuminate the area around the eyes. The pupil is generally located in the central area of the eye image, therefore, the area of interest is specifically an image corresponding to the central area of the eye image output by the eye tracking camera.
步骤204,对感兴趣区域图像进行像素处理,得到瞳孔区域图像。Step 204: Perform pixel processing on the image of the region of interest to obtain an image of the pupil region.
由于通过IR照明和IR带通滤波器捕获的图像中,瞳孔位置的区域最可能是最暗的区域,而最暗的区域对应的图像不便于后续处理。所以通过按位非处理将最暗的区域转化成最亮的区域,最亮的区域相对于最暗的区域来说,更容易进行后续处理。In the image captured by IR illumination and IR bandpass filter, the area of the pupil position is most likely to be the darkest area, and the image corresponding to the darkest area is not convenient for subsequent processing. Therefore, the darkest area is converted into the brightest area through bitwise non-processing, and the brightest area is easier to perform subsequent processing than the darkest area.
对感兴趣区域图像进行像素处理,得到瞳孔区域图像,包括:获取感兴趣区域图像的各像素值,对各像素值进行按位非处理,获取处理后的感兴趣区域图像的各像素值;将处理后的感兴趣区域图像的各像素值中低于预设阈值的像素值置零,得到瞳孔区域图像。通过将处理后的感兴趣区域图像的像素值与预设阈值进行比较,划分瞳孔区域和非瞳孔区域。当某区域图像对应的像素值低于预设阈值时,说明该区域为非瞳孔区域。将感兴趣区域中的非瞳孔区域对应的像素值置零,可实现将非瞳孔区域从感兴趣区域中去除,使得感兴趣区域只剩下瞳孔区域。Performing pixel processing on the image of the region of interest to obtain the image of the pupil region includes: obtaining the pixel values of the image of the region of interest, performing bitwise non-processing on each pixel value, and obtaining the pixel values of the processed image of the region of interest; Among the pixel values of the processed image of the region of interest, the pixel values lower than the preset threshold are set to zero to obtain the pupil region image. By comparing the pixel value of the processed image of the region of interest with a preset threshold, the pupil region and the non-pupil region are divided. When the pixel value corresponding to a certain area image is lower than the preset threshold, it means that the area is a non-pupil area. Setting the pixel value corresponding to the non-pupil region in the region of interest to zero can remove the non-pupil region from the region of interest so that only the pupil region remains in the region of interest.
步骤206,通过边界跟踪算法从瞳孔区域图像中提取多个瞳孔轮廓。Step 206: Extract multiple pupil contours from the pupil area image through the boundary tracking algorithm.
在数字化二值图像处理中,边界跟踪提取边界轮廓一系列坐标点或者链码,该边界是指一个1像素连通域和一个0像素连通域之间的边界。比如,要将一幅二值图像转换成边界描述,所需提取的信息是外层边界和孔洞边界两种边界的包围关系。外层边界和1-连通域之间、孔洞边界和0-连通域之间存在一对一的对应关系,由此可以确定给定二值图像的拓扑结构。In digital binary image processing, boundary tracking extracts a series of coordinate points or chain codes of the boundary contour. The boundary refers to the boundary between a 1-pixel connected domain and a 0-pixel connected domain. For example, to convert a binary image into a boundary description, the information that needs to be extracted is the enclosing relationship between the outer boundary and the hole boundary. There is a one-to-one correspondence between the outer boundary and the 1-connected domain, and between the hole boundary and the 0-connected domain, so that the topology of a given binary image can be determined.
边界跟踪算法可以区分二值图像边界之间的包围关系,外边界和孔边界分别与像素值为1的连通域和像素值为0的孔洞存在一对一的对应关系。通过二值图像的表示方法,提取出一些特征而无需重建图像。边界跟踪算法也可以只跟踪最外层轮廓,即该外边界之外无包围它的孔边界,可用于二值图 像的区域计数以及拓扑结构分析。The boundary tracking algorithm can distinguish the enclosing relationship between binary image boundaries. The outer boundary and the hole boundary have a one-to-one correspondence with the connected domain with a pixel value of 1 and the hole with a pixel value of 0, respectively. Through the binary image representation method, some features can be extracted without reconstructing the image. The boundary tracking algorithm can also only track the outermost contour, that is, there is no hole boundary surrounding it outside the outer boundary, which can be used for area counting and topology analysis of binary images.
步骤208,获取感兴趣区域图像的中心、多个瞳孔轮廓的最小包围圆集合以及最小包围圆集合中各个最小包围圆的圆心。Step 208: Obtain the center of the image of the region of interest, the smallest enclosing circle set of multiple pupil contours, and the center of each smallest enclosing circle in the smallest enclosing circle set.
感兴趣区域具体可以是眼睛图像的中心区域,当中心区域为几何区域时,感兴趣区域图像的中心即为几何区域的几何中心。获取最小包围圆的圆心和半径,包括:获取确定最小包围圆的四个像素点,从四个像素点中任意选取两个,得到两组不同的像素点组合,通过两组不同的像素点组合,得到两条直线;分别求取两条直线的垂直平均线,通过求取两条垂直平均线的交点得到最小包围圆的圆心;通过求取圆心和四个像素点中任意一点的距离得到最小包围圆的半径。The region of interest may specifically be the central region of the eye image. When the central region is a geometric region, the center of the image of the region of interest is the geometric center of the geometric region. Obtaining the center and radius of the smallest enclosing circle, including: obtaining four pixels to determine the smallest enclosing circle, choosing two from the four pixels at will to obtain two sets of different pixel combinations, through two sets of different pixel combinations , Get two straight lines; get the vertical averages of the two straight lines respectively, get the center of the smallest enclosing circle by getting the intersection of the two vertical averages; get the smallest by getting the distance between the center of the circle and any point of the four pixels The radius of the enclosing circle.
步骤210,获取中心与各圆心的距离,筛选与中心距离最近的圆心,将最近的圆心对应的最小包围圆作为目标圆,以目标圆的半径作为瞳孔半径。Step 210: Obtain the distance between the center and the center of each circle, filter the center of the circle closest to the center, use the smallest enclosing circle corresponding to the nearest circle center as the target circle, and use the radius of the target circle as the pupil radius.
中心与圆心之间的距离可以通过获取中心与圆心对应的像素点,再通过两点之间的距离公式得到。The distance between the center and the center of the circle can be obtained by obtaining the pixel points corresponding to the center and the center of the circle, and then by the distance formula between the two points.
上述瞳孔半径的检测方法,通过从瞳孔半径待测图像提取感兴趣区域图像,再对感兴趣图像进行像素处理,得到瞳孔区域图像,通过边界跟踪算法从瞳孔区域图像提取多个瞳孔轮廓,获取多个瞳孔轮廓的最小包围圆的圆心,以及感兴趣区域图像中心与各圆心的距离,将与中心距离最近的圆心对应的最小包围圆的半径作为瞳孔半径,通过圆心离感兴趣区域图像中心最近的最小包围圆对瞳孔定位的方式,得到的瞳孔定位更准确,可以提高获取到的瞳孔半径的精确度。The pupil radius detection method mentioned above extracts the image of the area of interest from the image to be measured with the pupil radius, and then performs pixel processing on the image of interest to obtain the pupil area image, and extracts multiple pupil contours from the pupil area image through the boundary tracking algorithm to obtain multiple The center of the smallest enclosing circle of the pupil contour, and the distance between the center of the image of the region of interest and the center of each circle, the radius of the smallest enclosing circle corresponding to the center of the center is the pupil radius, and the center of the circle is the closest to the center of the region of interest. The way the smallest enclosing circle locates the pupil, the obtained pupil positioning is more accurate, and the accuracy of the obtained pupil radius can be improved.
在其中一个实施例中,通过边界跟踪算法从瞳孔区域图像提取多个瞳孔轮廓之后,还包括:获取多个瞳孔轮廓中每个瞳孔轮廓的像素点集合;对像素点集合中的像素点按照极角从小到大进行排序,对极角相同的像素点按照到像素点集合中最左下方像素点的距离从小到大进行排序;通过结构体数组储存排序后的像素点,遍历排序后的像素点,去除非顶点的像素点,得到顶点像素点集合;对顶点像素点集合中的每个顶点像素点进行转角判断,去除 没有按照预设方向转角的顶点像素点,得到凸包处理后的瞳孔轮廓;获取多个瞳孔轮廓的最小包围圆集合,包括:获取凸包处理后的瞳孔轮廓的最小包围圆集合。找到组成瞳孔轮廓的像素点中处于最左下方的像素点,对组成瞳孔轮廓的像素点进行排序。按照极角从小到大排序,极角相同的像素点按照到最左下方的像素点的距离从小到大排序。通过结构体数组储存凸包最外围的像素点,通过while循环将其中不是凸包顶点的像素点移除出去,因为当逆时针遍历凸包时,应该在每个顶点向左转。因此可以在while循环发现在某一个顶点处没有向左转时,就把该顶点移除出去,其中转角方向可以根据叉积判断向左还是向右。凸包处理有助于消除图像中由于红外发光二极管反射引起的失真。In one of the embodiments, after extracting the multiple pupil contours from the pupil area image by the boundary tracking algorithm, the method further includes: obtaining the pixel point set of each pupil contour in the multiple pupil contours; The angles are sorted from small to large, and the pixels with the same polar angle are sorted according to the distance from the bottom left pixel in the pixel point set from small to large; the sorted pixels are stored through the structure array, and the sorted pixels are traversed , Remove the non-vertex pixels to obtain the vertex pixel point set; judge the corner of each vertex pixel in the vertex pixel point set, remove the vertex pixels that are not cornered in the preset direction, and obtain the convex hull processed pupil contour ; Obtaining the minimum enclosing circle set of multiple pupil contours includes: obtaining the minimum enclosing circle set of the pupil contour after convex hull processing. Find the pixel at the bottom left among the pixels that make up the pupil outline, and sort the pixels that make up the pupil outline. Sort the polar angles from small to large, and the pixels with the same polar angle are sorted from small to large according to the distance to the bottom left pixel. The outermost pixels of the convex hull are stored in the structure array, and the pixels that are not the vertices of the convex hull are removed through the while loop, because when the convex hull is traversed counterclockwise, each vertex should be turned to the left. Therefore, it can be found in the while loop that when a vertex is not turned to the left, the vertex is removed. The direction of the turning angle can be judged to the left or right according to the cross product. Convex hull processing helps to eliminate the distortion caused by the reflection of infrared LEDs in the image.
在其中一个实施例中,如图3所示,获取多个瞳孔轮廓的最小包围圆集合,包括:步骤302,获取多个瞳孔轮廓分别对应的最小包围圆以及最小包围圆的半径;步骤304,去除最小包围圆中半径大于预设值的最小包围圆,得到瞳孔轮廓的最小包围圆集合。通过排除半径超过预设值的最小包围圆可以减少半径太大而不属于瞳孔的这种可能性。可以通过图像的分辨率来计算该预设值范围,可以通过检测几个可能的圆,例如,虹膜或眼动追踪设备靠在脸上的外壳。In one of the embodiments, as shown in FIG. 3, obtaining the minimum enclosing circle set of multiple pupil contours includes: step 302, obtaining the minimum enclosing circle and the radius of the minimum enclosing circle respectively corresponding to the multiple pupil contours; step 304, The smallest enclosing circle whose radius is greater than the preset value in the smallest enclosing circle is removed, and the smallest enclosing circle set of the pupil contour is obtained. By excluding the smallest enclosing circle whose radius exceeds the preset value, the possibility that the radius is too large to belong to the pupil can be reduced. The preset value range can be calculated by the resolution of the image, by detecting several possible circles, for example, the iris or the shell of the eye tracking device against the face.
在其中一个实施例中,如图4所示,获取多个瞳孔轮廓分别对应的最小包围圆,包括:步骤402,分别获取多个瞳孔轮廓中每个瞳孔轮廓的最左边、最右边、最上边和最下边的四个像素点,根据四个像素点得到包围所述四个像素点的最小圆;步骤404,遍历瞳孔轮廓的所有像素点,当所有像素点中不存在位于最小圆的边界外的像素点时,得到最小圆为瞳孔轮廓的最小包围圆。In one of the embodiments, as shown in FIG. 4, obtaining the minimum enclosing circle corresponding to multiple pupil contours respectively includes: step 402, obtaining the leftmost, rightmost, and uppermost sides of each pupil contour in the multiple pupil contours respectively And the four pixels at the bottom, obtain the smallest circle surrounding the four pixels according to the four pixels; step 404, traverse all the pixels of the pupil contour, when there is no pixel located outside the boundary of the smallest circle When the pixel points of, the smallest circle is the smallest enclosing circle of the pupil contour.
在其中一个实施例中,瞳孔半径的检测方法还包括:当所有像素点中存在位于最小圆的边界外的像素点,得到最小圆不为瞳孔轮廓的最小包围圆;从位于最小圆的边界外的像素点中,筛选距离最小圆的圆心最远的像素点,将筛选的像素点与最左边、最右边、最上边和最下边四个像素点中的任意三 个进行排列组合;获取排列组合后的四个像素点,根据排列组合后的四个像素点得到包围四个像素点的候选最小圆;当未被选入排列组合的像素点不在候选最小圆的边界外时,遍历瞳孔轮廓的其它像素点,当其它像素点中不存在位于候选最小圆的边界外的像素点时,得到候选最小圆为瞳孔轮廓的最小包围圆。In one of the embodiments, the method for detecting the pupil radius further includes: when there are pixel points outside the boundary of the smallest circle among all the pixels, obtaining the smallest enclosing circle whose smallest circle is not the pupil contour; from outside the boundary of the smallest circle Among the pixels in, filter the pixels farthest from the center of the smallest circle, and arrange and combine the filtered pixels with any three of the leftmost, rightmost, uppermost and lowermost four pixels; obtain the permutation and combination For the last four pixels, the candidate minimum circle surrounding the four pixels is obtained according to the four pixels after permutation and combination; when the pixels that are not selected in the permutation and combination are not outside the boundary of the candidate minimum circle, traverse the pupil contour For other pixels, when there is no pixel located outside the boundary of the candidate minimum circle among other pixels, the candidate minimum circle is obtained as the minimum enclosing circle of the pupil contour.
可以通过以下步骤来获取瞳孔轮廓的最小包围圆:(1)遍历瞳孔轮廓的所有像素点,找到最左边、最右边、最上边、最下边的四个像素点,求出包围最左边、最右边、最上边、最下边的四个像素点的最小圆,具体包括最小圆的圆心和半径。(2)然后遍历瞳孔轮廓的所有像素点,判断是否存在某些像素点在最小圆的边界外。如果不存在某些像素点在最小圆的边界外,那么该最小圆即为瞳孔轮廓的最小包围圆。如果存在某些点在最小圆的边界外,那么该最小圆不是瞳孔轮廓的最小包围圆。(3)当求出的最小圆不是瞳孔轮廓的最小包围圆时,筛选出在最小圆边界外的点中距离最小圆的圆心最远的像素点,将该距离最小圆圆心最远的像素点与之前找到的瞳孔轮廓的最左边、最右边、最上边、最下边的四个点中任意三个点进行排列组合,根据重新排列组合后的四个点确定包围上述四个点的最小圆,即得到包围最远点、最左边点、最右边点、最上边点的最小圆1,包围最远点、最左边点、最右边点、最下边点的最小圆2,包围最远点、最左边点、最上边点、最上边点的最小圆3,包围最远点、最右边点、最上边点、最下边点的最小圆4。(4)当最下边点不在最小圆1的边界外时,遍历瞳孔轮廓的所有点,判断是否存在某些点在最小圆1的边界外。如果不存在某些点在最小圆1的边界外,那么该最小圆1即为瞳孔轮廓的最小包围圆。如果存在某些点在最小圆的边界外,那么该最小圆1不是候选瞳孔轮廓的最小包围圆。(5)当最小圆1不是瞳孔轮廓的最小包围圆时,筛选出在最小圆1边界外的点中距离最小圆1的圆心最远的点,将该距离最小圆1圆心最远的点与确定最小圆1的四个点中任意三个点进行排列组合,重复步骤(3)和(4),直至遍历瞳孔轮廓的所有点,不存在某些点在求出的最小圆的边界外,求出的最小圆为瞳孔轮廓的最小包围 圆。The minimum enclosing circle of the pupil contour can be obtained by the following steps: (1) Traverse all the pixels of the pupil contour, find the four pixels on the leftmost, rightmost, uppermost, and lowermost sides, and find the leftmost and rightmost enclosing pixels , The smallest circle of the four pixels at the top and bottom, including the center and radius of the smallest circle. (2) Then traverse all the pixels of the pupil contour to determine whether there are some pixels outside the boundary of the minimum circle. If there are no pixels outside the boundary of the smallest circle, then the smallest circle is the smallest enclosing circle of the pupil contour. If there are some points outside the boundary of the smallest circle, then the smallest circle is not the smallest enclosing circle of the pupil contour. (3) When the minimum circle obtained is not the minimum enclosing circle of the pupil contour, the pixel point farthest from the center of the minimum circle among the points outside the boundary of the minimum circle is selected, and the pixel point farthest from the center of the minimum circle is selected. Arrange and combine any three points among the four points on the leftmost, right, top, and bottom of the pupil contour found before, and determine the smallest circle surrounding the four points according to the four points after rearrangement and combination. That is, the smallest circle 1 surrounding the farthest point, the leftmost point, the rightmost point, and the uppermost point is obtained, the smallest circle 2 surrounding the farthest point, the leftmost point, the rightmost point, and the lowermost point is obtained. The smallest circle 3 for the left point, the uppermost point, and the uppermost point, and the smallest circle 4 surrounding the farthest point, the rightmost point, the uppermost point, and the lowermost point. (4) When the lowest point is not outside the boundary of the minimum circle 1, traverse all points of the pupil contour to determine whether there are some points outside the boundary of the minimum circle 1. If there are no points outside the boundary of the smallest circle 1, then the smallest circle 1 is the smallest enclosing circle of the pupil contour. If there are some points outside the boundary of the smallest circle, then the smallest circle 1 is not the smallest enclosing circle of the candidate pupil contour. (5) When the smallest circle 1 is not the smallest enclosing circle of the pupil contour, the point that is farthest from the center of the smallest circle 1 among the points outside the boundary of the smallest circle 1 is selected, and the point farthest from the center of the smallest circle 1 is Determine any three points among the four points of the minimum circle 1, and repeat steps (3) and (4) until all points of the pupil contour are traversed, and there are no points outside the boundary of the obtained minimum circle. The minimum circle obtained is the minimum enclosing circle of the pupil contour.
在其中一个实施例中,以贷款面审为例,控制终端可以预先存储面审对象在回答某一具体问题时的历史瞳孔半径数据,比如用历史瞳孔半径数据的平均值作为该面审对象的瞳孔半径基准值。在实际贷款面审过程中,面审对象佩戴具有眼动追踪功能的HMD,眼动追踪HMD拥有内置眼动追踪相机,在面审开始时眼动追踪相机采集面审对象的实时瞳孔半径待测图像,并将实时瞳孔半径待测图像实时传输至控制终端。控制终端通过对实时瞳孔半径待测图像进行分析处理,从实时瞳孔半径待测图像中提取感兴趣区域图像,再对感兴趣图像进行像素处理,得到瞳孔区域图像,通过边界跟踪算法从瞳孔区域图像提取多个瞳孔轮廓,获取多个瞳孔轮廓的最小包围圆的圆心,以及感兴趣区域图像中心与各圆心的距离,将与中心距离最近的圆心对应的最小包围圆的半径作为实时瞳孔半径。再将实时瞳孔半径与该面审对象的瞳孔半径基准值进行比较,得到面审对象在回答问题时的谎言检测结果。比如在回答某一具体问题时的实时瞳孔半径大于对应的瞳孔半径基准值,则判定该面审对象在回答该问题时说谎。In one of the embodiments, taking the loan face-to-face review as an example, the control terminal can pre-store the historical pupil radius data of the face-to-face subject when answering a specific question, for example, use the average value of the historical pupil radius data as the face-to-face subject Reference value of pupil radius. During the actual loan interview process, the interview subject wears an HMD with eye tracking function. The eye tracking HMD has a built-in eye tracking camera. At the beginning of the interview, the eye tracking camera collects the real-time pupil radius of the interview subject to be measured And transmit the real-time pupil radius to-be-measured image to the control terminal in real time. The control terminal analyzes and processes the real-time pupil radius to-be-measured image, extracts the image of the area of interest from the real-time pupil-radius image to be measured, and then performs pixel processing on the image of interest to obtain the pupil area image, which is obtained from the pupil area image through the boundary tracking algorithm Extract multiple pupil contours, obtain the center of the minimum enclosing circle of multiple pupil contours, and the distance between the center of the region of interest image and the center of each circle, and use the radius of the smallest enclosing circle corresponding to the center of the center with the closest distance as the real-time pupil radius. Then the real-time pupil radius is compared with the benchmark value of the pupil radius of the face-to-face interview subject, and the lie detection result of the face-to-face subject when answering questions is obtained. For example, when the real-time pupil radius when answering a specific question is greater than the corresponding pupil radius reference value, it is determined that the interview subject is lying when answering the question.
应该理解的是,虽然图2-4的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图2-4中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the various steps in the flowcharts of FIGS. 2-4 are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless specifically stated in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least some of the steps in Figures 2-4 may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. These sub-steps or stages The execution order of is not necessarily performed sequentially, but may be performed alternately or alternately with at least a part of other steps or sub-steps or stages of other steps.
在其中一个实施例中,如图5所示,提供了一种瞳孔半径的检测装置,包括:图像提取模块502、瞳孔图像获取模块504、瞳孔轮廓获取模块506、中心圆心获取模块508和瞳孔半径获取模块510。图像提取模块,用于获取瞳孔半径待测,提取瞳孔半径待测中的感兴趣区域图像;瞳孔图像获取模块, 用于对感兴趣区域图像进行像素处理,得到瞳孔区域图像;瞳孔轮廓获取模块,用于通过边界跟踪算法从瞳孔区域图像中提取多个瞳孔轮廓;中心圆心获取模块,用于获取感兴趣区域图像的中心、多个瞳孔轮廓的最小包围圆集合以及最小包围圆集合中各个最小包围圆的圆心;瞳孔半径获取模块,用于获取中心与各圆心的距离,筛选与中心距离最近的圆心,将最近的圆心对应的最小包围圆作为目标圆,以目标圆的半径作为瞳孔半径。In one of the embodiments, as shown in FIG. 5, a device for detecting pupil radius is provided, including: an image extraction module 502, a pupil image acquisition module 504, a pupil contour acquisition module 506, a central circle acquisition module 508, and a pupil radius Obtain the module 510. The image extraction module is used to obtain the pupil radius to be measured, and extract the image of the region of interest in the pupil radius to be measured; the pupil image acquisition module is used to perform pixel processing on the image of the region of interest to obtain the pupil area image; the pupil contour acquisition module, It is used to extract multiple pupil contours from the pupil area image through the boundary tracking algorithm; the center circle center acquisition module is used to obtain the center of the region of interest image, the minimum enclosing circle set of multiple pupil contours, and each minimum encircle in the minimum enclosing circle set The center of the circle; the pupil radius obtaining module is used to obtain the distance between the center and the center of each circle, filter the center of the circle closest to the center, and use the smallest enclosing circle corresponding to the nearest circle center as the target circle, and the radius of the target circle as the pupil radius.
在其中一个实施例中,瞳孔图像获取模块还用于获取感兴趣区域图像的各像素值,对各像素值进行按位非处理,获取处理后的感兴趣区域图像的各像素值;将处理后的感兴趣区域图像的各像素值中低于预设阈值的像素值置零,得到瞳孔区域图像。In one of the embodiments, the pupil image acquisition module is also used to acquire the pixel values of the image of the region of interest, perform bitwise non-processing on the pixel values, and acquire the pixel values of the processed image of the region of interest; Among the pixel values of the image of the region of interest, the pixel values lower than the preset threshold are set to zero to obtain an image of the pupil area.
在其中一个实施例中,瞳孔图像获取模块之后还包括凸包处理模块,用于获取多个瞳孔轮廓中每个瞳孔轮廓的像素点集合;对像素点集合中的像素点按照极角从小到大进行排序,对极角相同的像素点按照到所述像素点集合中最左下方像素点的距离从小到大进行排序;通过结构体数组储存排序后的像素点,遍历排序后的像素点,去除非顶点的像素点,得到顶点像素点集合;对顶点像素点集合中的每个顶点像素点进行转角判断,去除没有按照预设方向转角的顶点像素点,得到凸包处理后的瞳孔轮廓;中心圆心获取模块用于获取凸包处理后的瞳孔轮廓的最小包围圆集合。In one of the embodiments, the pupil image acquisition module further includes a convex hull processing module for acquiring the pixel point set of each pupil contour in the plurality of pupil contours; the pixel points in the pixel point set are from small to large according to the polar angle. Sort, sort the pixels with the same polar angle according to the distance from the bottom leftmost pixel in the pixel point set from small to large; store the sorted pixels through the structure array, traverse the sorted pixels, and go Except for the pixels of the vertex, the vertex pixel point set is obtained; the corner of each vertex pixel in the vertex pixel point set is judged, and the vertex pixels that are not cornered in the preset direction are removed to obtain the convex hull processed pupil contour; The circle center acquisition module is used to acquire the minimum enclosing circle set of the pupil contour after convex hull processing.
在其中一个实施例中,中心圆心获取模块还用于获取多个瞳孔轮廓分别对应的最小包围圆以及最小包围圆的半径;去除最小包围圆中半径大于预设值的最小包围圆,得到瞳孔轮廓的最小包围圆集合。In one of the embodiments, the central circle acquisition module is also used to acquire the minimum enclosing circle and the radius of the minimum enclosing circle respectively corresponding to multiple pupil contours; remove the smallest enclosing circle whose radius is greater than the preset value in the minimum enclosing circle to obtain the pupil contour The smallest enclosing circle set.
在其中一个实施例中,中心圆心获取模块还用于分别获取多个瞳孔轮廓中每个瞳孔轮廓的最左边、最右边、最上边和最下边的四个像素点,根据四个像素点得到包围所述四个像素点的最小圆;遍历瞳孔轮廓的所有像素点,当所有像素点中不存在位于最小圆的边界外的像素点时,得到最小圆为瞳孔轮廓的最小包围圆。In one of the embodiments, the center circle acquisition module is also used to separately acquire the leftmost, rightmost, uppermost, and lowermost four pixels of each pupil contour in the plurality of pupil contours, and obtain the encircling according to the four pixels. The smallest circle of the four pixels; traverse all the pixels of the pupil contour, and when there is no pixel outside the boundary of the smallest circle among all the pixels, the smallest circle is the smallest enclosing circle of the pupil contour.
在其中一个实施例中,中心圆心获取模块还用于当所有像素点中存在位 于最小圆的边界外的像素点,得到最小圆不为瞳孔轮廓的最小包围圆;从位于最小圆的边界外的像素点中,筛选距离最小圆的圆心最远的像素点,将筛选的像素点与最左边、最右边、最上边和最下边四个像素点中的任意三个进行排列组合;获取排列组合后的四个像素点,根据排列组合后的四个像素点得到包围四个像素点的候选最小圆;当未被选入排列组合的像素点不在候选最小圆的边界外时,遍历瞳孔轮廓的其它像素点,当其它像素点中不存在位于候选最小圆的边界外的像素点时,得到候选最小圆为瞳孔轮廓的最小包围圆。In one of the embodiments, the central circle acquisition module is also used to obtain the smallest enclosing circle whose smallest circle is not the pupil contour when there are pixels outside the boundary of the smallest circle among all the pixels; Among the pixels, filter the pixels farthest from the center of the smallest circle, and arrange and combine the filtered pixels with any three of the leftmost, rightmost, uppermost and lowermost four pixels; after obtaining the permutation and combination According to the four pixel points after permutation and combination, the candidate minimum circle surrounding the four pixels is obtained; when the pixel points not selected in the permutation and combination are not outside the boundary of the candidate minimum circle, traverse other pupil contours For pixel points, when there is no pixel point outside the boundary of the candidate minimum circle among other pixels, the candidate minimum circle is obtained as the minimum enclosing circle of the pupil contour.
在其中一个实施例中,瞳孔半径的检测装置还包括圆心半径模块,用于获取确定最小包围圆的四个像素点,从四个像素点中任意选取两个,得到两组不同的像素点组合,通过两组不同的像素点组合,得到两条直线;分别求取两条直线的垂直平均线,通过求取两条垂直平均线的交点得到最小包围圆的圆心;通过求取圆心和四个像素点中任意一点的距离得到最小包围圆的半径。In one of the embodiments, the detection device for pupil radius further includes a center radius module, which is used to obtain four pixels that determine the minimum enclosing circle, and select two of the four pixels at will to obtain two sets of different pixel point combinations , Through the combination of two sets of different pixels, two straight lines are obtained; the vertical average line of the two straight lines is obtained separately, and the center of the smallest enclosing circle is obtained by obtaining the intersection of the two vertical average lines; by obtaining the center and four The distance of any point in the pixel is the radius of the smallest enclosing circle.
关于瞳孔半径的检测装置的具体限定可以参见上文中对于瞳孔半径的检测方法的限定,在此不再赘述。上述瞳孔半径的检测装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。For the specific definition of the pupil radius detection device, please refer to the above definition of the pupil radius detection method, which will not be repeated here. Each module in the above-mentioned pupil radius detection device can be implemented in whole or in part by software, hardware, and a combination thereof. The foregoing modules may be embedded in the form of hardware or independent of the processor in the computer device, or may be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the foregoing modules.
在一个实施例中,提供了一种计算机设备,该计算机设备可以是服务器,其内部结构图可以如图6所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口和数据库。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统、计算机可读指令和数据库。该内存储器为非易失性存储介质中的操作系统和计算机可读指令的运行提供环境。该计算机设备的数据库用于存储最小包围圆的圆心、最小包围圆的半径等数据。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机可 读指令被处理器执行时以实现一种瞳孔半径的检测方法。In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. 6. The computer equipment includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide calculation and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer readable instructions, and a database. The internal memory provides an environment for the operation of the operating system and computer-readable instructions in the non-volatile storage medium. The database of the computer equipment is used to store data such as the center of the smallest enclosing circle and the radius of the smallest enclosing circle. The network interface of the computer device is used to communicate with an external terminal through a network connection. The computer readable instructions are executed by the processor to realize a pupil radius detection method.
本领域技术人员可以理解,图6中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the structure shown in FIG. 6 is only a block diagram of part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may Including more or fewer parts than shown in the figure, or combining some parts, or having a different arrangement of parts.
一种计算机设备,包括存储器和一个或多个处理器,存储器中储存有计算机可读指令,计算机可读指令被处理器执行时实现本申请任意一个实施例中提供的瞳孔半径的检测方法的步骤。A computer device, including a memory and one or more processors, in which computer-readable instructions are stored, and when the computer-readable instructions are executed by the processor, the steps of the pupil radius detection method provided in any embodiment of the present application are implemented .
一个或多个存储有计算机可读指令的非易失性计算机可读存储介质,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器实现本申请任意一个实施例中提供的瞳孔半径的检测方法的步骤。One or more non-volatile computer-readable storage media storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors implement any one of the embodiments of the present application. Provide the steps of the pupil radius detection method.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机可读指令来指令相关的硬件来完成,所述的计算机可读指令可存储于一非易失性计算机可读取存储介质中,该计算机可读指令在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing relevant hardware through computer-readable instructions, which can be stored in a non-volatile computer. In a readable storage medium, when the computer-readable instructions are executed, they may include the processes of the above-mentioned method embodiments. Wherein, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and/or volatile memory. Non-volatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not a limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Channel (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction between the combinations of these technical features, they should It is considered as the range described in this specification.
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only express several implementation manners of the present application, and the description is relatively specific and detailed, but it should not be understood as a limitation on the scope of the invention patent. It should be pointed out that for those of ordinary skill in the art, without departing from the concept of this application, several modifications and improvements can be made, and these all fall within the protection scope of this application. Therefore, the scope of protection of the patent of this application shall be subject to the appended claims.

Claims (20)

  1. 一种瞳孔半径的检测方法,包括:A method for detecting pupil radius, including:
    获取瞳孔半径待测图像,提取所述瞳孔半径待测图像中的感兴趣区域图像;Acquiring a pupil radius to-be-measured image, and extracting a region of interest image in the pupil-radius-to-be-measured image;
    对所述感兴趣区域图像进行像素处理,得到瞳孔区域图像;Performing pixel processing on the image of the region of interest to obtain an image of the pupil region;
    通过边界跟踪算法从所述瞳孔区域图像中提取多个瞳孔轮廓;Extracting multiple pupil contours from the pupil area image through a boundary tracking algorithm;
    获取所述感兴趣区域图像的中心、所述多个瞳孔轮廓的最小包围圆集合以及所述最小包围圆集合中各个最小包围圆的圆心;及Acquiring the center of the region of interest image, the smallest enclosing circle set of the multiple pupil contours, and the center of each smallest enclosing circle in the smallest enclosing circle set; and
    获取所述中心与各圆心的距离,筛选与所述中心距离最近的圆心,将所述最近的圆心对应的最小包围圆作为目标圆,以所述目标圆的半径作为瞳孔半径。The distance between the center and the center of each circle is obtained, the center of the circle closest to the center is selected, the smallest enclosing circle corresponding to the nearest circle center is taken as the target circle, and the radius of the target circle is taken as the pupil radius.
  2. 根据权利要求1所述的方法,其特征在于,所述对所述感兴趣区域图像进行像素处理,得到瞳孔区域图像,包括:The method according to claim 1, wherein the performing pixel processing on the image of the region of interest to obtain an image of the pupil region comprises:
    获取所述感兴趣区域图像的各像素值,对所述各像素值进行按位非处理,获取处理后的感兴趣区域图像的各像素值;及Acquiring each pixel value of the image of the region of interest, performing bitwise non-processing on each pixel value, and acquiring each pixel value of the processed region of interest image; and
    将所述处理后的感兴趣区域图像的各像素值中低于预设阈值的像素值置零,得到瞳孔区域图像。The pixel values that are lower than the preset threshold among the pixel values of the processed image of the region of interest are set to zero to obtain an image of the pupil region.
  3. 根据权利要求1所述的方法,其特征在于,所述通过边界跟踪算法从所述瞳孔区域图像提取多个瞳孔轮廓之后,还包括:The method according to claim 1, wherein, after extracting a plurality of pupil contours from the pupil region image through a boundary tracking algorithm, the method further comprises:
    获取所述多个瞳孔轮廓中每个瞳孔轮廓的像素点集合;Acquiring a pixel point set of each pupil contour in the plurality of pupil contours;
    对所述像素点集合中的像素点按照极角从小到大进行排序,对极角相同的像素点按照到所述像素点集合中最左下方像素点的距离从小到大进行排序;Sort the pixels in the pixel point set according to the polar angle from small to large, and sort the pixels with the same polar angle according to the distance to the bottom leftmost pixel in the pixel point set from small to large;
    通过结构体数组储存排序后的像素点,遍历所述排序后的像素点,去除非顶点的像素点,得到顶点像素点集合;及Store the sorted pixels through the structure array, traverse the sorted pixels, remove non-vertex pixels, and obtain a vertex pixel point set; and
    对所述顶点像素点集合中的每个顶点像素点进行转角判断,去除没有按照预设方向转角的顶点像素点,得到凸包处理后的瞳孔轮廓;Perform a corner judgment on each vertex pixel in the vertex pixel point set, remove vertex pixels that are not cornered in a preset direction, and obtain a pupil contour after convex hull processing;
    所述获取所述多个瞳孔轮廓的最小包围圆集合,包括:The acquiring the minimum enclosing circle set of the multiple pupil contours includes:
    获取所述凸包处理后的瞳孔轮廓的最小包围圆集合。Obtain the minimum enclosing circle set of the pupil contour after the convex hull processing.
  4. 根据权利要求1所述的方法,其特征在于,所述获取所述多个瞳孔轮廓的最小包围圆集合,包括:The method according to claim 1, wherein the obtaining the minimum enclosing circle set of the multiple pupil contours comprises:
    获取所述多个瞳孔轮廓分别对应的最小包围圆以及所述最小包围圆的半径;及Acquiring the minimum enclosing circle and the radius of the minimum enclosing circle respectively corresponding to the multiple pupil contours; and
    去除所述最小包围圆中半径大于预设值的最小包围圆,得到所述瞳孔轮廓的最小包围圆集合。The smallest enclosing circle whose radius is greater than the preset value in the smallest enclosing circle is removed to obtain the smallest enclosing circle set of the pupil contour.
  5. 根据权利要求4所述的方法,其特征在于,所述获取所述多个瞳孔轮廓分别对应的最小包围圆,包括:The method according to claim 4, wherein the obtaining the minimum enclosing circles corresponding to the multiple pupil contours respectively comprises:
    分别获取所述多个瞳孔轮廓中每个瞳孔轮廓的最左边、最右边、最上边和最下边的四个像素点,根据所述四个像素点得到包围所述四个像素点的最小圆;及Obtaining the leftmost, rightmost, uppermost and lowermost four pixel points of each pupil contour in the plurality of pupil contours respectively, and obtaining the smallest circle surrounding the four pixels according to the four pixel points; and
    遍历所述瞳孔轮廓的所有像素点,当所述所有像素点中不存在位于所述最小圆的边界外的像素点时,得到所述最小圆为所述瞳孔轮廓的最小包围圆。Traverse all the pixels of the pupil contour, and when there is no pixel located outside the boundary of the minimum circle among all the pixels, the minimum circle is obtained as the minimum enclosing circle of the pupil contour.
  6. 根据权利要求5所述的方法,其特征在于,还包括:The method according to claim 5, further comprising:
    当所述所有像素点中存在位于所述最小圆的边界外的像素点,得到所述最小圆不为所述瞳孔轮廓的最小包围圆;When there is a pixel point outside the boundary of the minimum circle among all the pixels, obtaining the minimum circle that is not the minimum enclosing circle of the pupil contour;
    从位于所述最小圆的边界外的像素点中,筛选距离所述最小圆的圆心最远的像素点,将筛选的像素点与所述最左边、最右边、最上边和最下边四个像素点中的任意三个进行排列组合;From the pixels located outside the boundary of the smallest circle, filter the pixels farthest from the center of the smallest circle, and compare the filtered pixels with the four pixels of the leftmost, rightmost, uppermost and lowermost edges Any three of the points are permuted and combined;
    获取排列组合后的四个像素点,根据所述排列组合后的四个像素点得到包围所述四个像素点的候选最小圆;及Obtaining four pixel points after permutation and combination, and obtaining the candidate smallest circle surrounding the four pixels according to the four pixel points after permutation and combination; and
    当未被选入排列组合的像素点不在所述候选最小圆的边界外时,遍历所述瞳孔轮廓的其它像素点,当所述其它像素点中不存在位于所述候选最小圆的边界外的像素点时,得到所述候选最小圆为所述瞳孔轮廓的最小包围圆。When the pixel points that are not selected into the permutation and combination are not outside the boundary of the candidate minimum circle, traverse other pixels of the pupil contour, when there is no pixel outside the boundary of the candidate minimum circle In the case of pixel points, the candidate minimum circle is obtained as the minimum enclosing circle of the pupil contour.
  7. 根据权利要求1所述的方法,其特征在于,还包括:The method according to claim 1, further comprising:
    获取确定最小包围圆的四个像素点,从所述四个像素点中任意选取两个,得到两组不同的像素点组合,通过所述两组不同的像素点组合,得到两条直线;Obtain four pixel points that determine the minimum enclosing circle, randomly select two from the four pixels to obtain two sets of different pixel point combinations, and obtain two straight lines through the two sets of different pixel point combinations;
    分别求取所述两条直线的垂直平均线,通过求取两条所述垂直平均线的交点得到最小包围圆的圆心;及Obtaining the vertical average lines of the two straight lines respectively, and obtaining the center of the smallest enclosing circle by obtaining the intersection of the two vertical average lines; and
    通过求取所述圆心和所述四个像素点中任意一点的距离得到所述最小包围圆的半径。The radius of the minimum enclosing circle is obtained by calculating the distance between the center of the circle and any one of the four pixel points.
  8. 一种瞳孔半径的检测装置,包括:A detection device for pupil radius, including:
    图像提取模块,用于获取瞳孔半径待测图像,提取所述瞳孔半径待测图像中的感兴趣区域图像;An image extraction module for acquiring a pupil radius to-be-measured image, and extracting an image of a region of interest in the pupil-radius-to-be-measured image;
    瞳孔图像获取模块,用于对所述感兴趣区域图像进行像素处理,得到瞳孔区域图像;A pupil image acquisition module, configured to perform pixel processing on the image of the region of interest to obtain an image of the pupil region;
    瞳孔轮廓获取模块,用于通过边界跟踪算法从所述瞳孔区域图像中提取多个瞳孔轮廓;A pupil contour acquisition module, configured to extract multiple pupil contours from the pupil area image through a boundary tracking algorithm;
    中心圆心获取模块,用于获取所述感兴趣区域图像的中心、所述多个瞳孔轮廓的最小包围圆集合以及所述最小包围圆集合中各个最小包围圆的圆心;及A center circle acquisition module, configured to acquire the center of the region of interest image, the smallest enclosing circle set of the multiple pupil contours, and the center of each smallest enclosing circle in the smallest enclosing circle set; and
    瞳孔半径获取模块,用于获取所述中心与各圆心的距离,筛选与所述中心距离最近的圆心,将所述最近的圆心对应的最小包围圆作为目标圆,以所述目标圆的半径作为瞳孔半径。The pupil radius acquiring module is used to acquire the distance between the center and the center of each circle, select the center of the circle closest to the center, and use the smallest enclosing circle corresponding to the nearest center as the target circle, and use the radius of the target circle as Pupil radius.
  9. 根据权利要求8所述的装置,其特征在于,所述瞳孔图像获取模块还用于获取所述感兴趣区域图像的各像素值,对所述各像素值进行按位非处理,获取处理后的感兴趣区域图像的各像素值;及The device according to claim 8, wherein the pupil image acquisition module is further configured to acquire each pixel value of the image of the region of interest, perform bitwise non-processing on each pixel value, and acquire the processed Each pixel value of the image of the region of interest; and
    将所述处理后的感兴趣区域图像的各像素值中低于预设阈值的像素值置零,得到瞳孔区域图像。The pixel values that are lower than the preset threshold among the pixel values of the processed image of the region of interest are set to zero to obtain an image of the pupil region.
  10. 一种计算机设备,包括存储器及一个或多个处理器,所述存储器中储存有计算机可读指令,所述计算机可读指令被所述一个或多个处理器执行 时,使得所述一个或多个处理器执行以下步骤:A computer device includes a memory and one or more processors. The memory stores computer-readable instructions. When the computer-readable instructions are executed by the one or more processors, the one or more Each processor performs the following steps:
    获取瞳孔半径待测图像,提取所述瞳孔半径待测图像中的感兴趣区域图像;Acquiring a pupil radius to-be-measured image, and extracting a region of interest image in the pupil-radius-to-be-measured image;
    对所述感兴趣区域图像进行像素处理,得到瞳孔区域图像;Performing pixel processing on the image of the region of interest to obtain an image of the pupil region;
    通过边界跟踪算法从所述瞳孔区域图像中提取多个瞳孔轮廓;Extracting multiple pupil contours from the pupil area image through a boundary tracking algorithm;
    获取所述感兴趣区域图像的中心、所述多个瞳孔轮廓的最小包围圆集合以及所述最小包围圆集合中各个最小包围圆的圆心;及Acquiring the center of the region of interest image, the smallest enclosing circle set of the multiple pupil contours, and the center of each smallest enclosing circle in the smallest enclosing circle set; and
    获取所述中心与各圆心的距离,筛选与所述中心距离最近的圆心,将所述最近的圆心对应的最小包围圆作为目标圆,以所述目标圆的半径作为瞳孔半径。The distance between the center and the center of each circle is obtained, the center of the circle closest to the center is selected, the smallest enclosing circle corresponding to the nearest circle center is taken as the target circle, and the radius of the target circle is taken as the pupil radius.
  11. 根据权利要求10所述的计算机设备,其特征在于,所述处理器执行所述计算机可读指令时还执行以下步骤:The computer device according to claim 10, wherein the processor further executes the following steps when executing the computer-readable instruction:
    获取所述感兴趣区域图像的各像素值,对所述各像素值进行按位非处理,获取处理后的感兴趣区域图像的各像素值;及Acquiring each pixel value of the image of the region of interest, performing bitwise non-processing on each pixel value, and acquiring each pixel value of the processed region of interest image; and
    将所述处理后的感兴趣区域图像的各像素值中低于预设阈值的像素值置零,得到瞳孔区域图像。The pixel values that are lower than the preset threshold among the pixel values of the processed image of the region of interest are set to zero to obtain an image of the pupil region.
  12. 根据权利要求10所述的计算机设备,其特征在于,所述处理器执行所述计算机可读指令时还执行以下步骤:The computer device according to claim 10, wherein the processor further executes the following steps when executing the computer-readable instruction:
    获取所述多个瞳孔轮廓中每个瞳孔轮廓的像素点集合;Acquiring a pixel point set of each pupil contour in the plurality of pupil contours;
    对所述像素点集合中的像素点按照极角从小到大进行排序,对极角相同的像素点按照到所述像素点集合中最左下方像素点的距离从小到大进行排序;Sort the pixels in the pixel point set according to the polar angle from small to large, and sort the pixels with the same polar angle according to the distance to the bottom leftmost pixel in the pixel point set from small to large;
    通过结构体数组储存排序后的像素点,遍历所述排序后的像素点,去除非顶点的像素点,得到顶点像素点集合;Store the sorted pixels through a structure array, traverse the sorted pixels, remove non-vertex pixels, and obtain a vertex pixel point set;
    对所述顶点像素点集合中的每个顶点像素点进行转角判断,去除没有按照预设方向转角的顶点像素点,得到凸包处理后的瞳孔轮廓;及Perform a corner judgment on each vertex pixel in the vertex pixel point set, remove vertex pixels that are not cornered in a preset direction, and obtain a pupil contour after convex hull processing; and
    获取所述凸包处理后的瞳孔轮廓的最小包围圆集合。Obtain the minimum enclosing circle set of the pupil contour after the convex hull processing.
  13. 根据权利要求10所述的计算机设备,其特征在于,所述处理器执行所述计算机可读指令时还执行以下步骤:The computer device according to claim 10, wherein the processor further executes the following steps when executing the computer-readable instruction:
    获取所述多个瞳孔轮廓分别对应的最小包围圆以及所述最小包围圆的半径;及Acquiring the minimum enclosing circle and the radius of the minimum enclosing circle respectively corresponding to the multiple pupil contours; and
    去除所述最小包围圆中半径大于预设值的最小包围圆,得到所述瞳孔轮廓的最小包围圆集合。The smallest enclosing circle whose radius is greater than the preset value in the smallest enclosing circle is removed to obtain the smallest enclosing circle set of the pupil contour.
  14. 根据权利要求13所述的计算机设备,其特征在于,所述处理器执行所述计算机可读指令时还执行以下步骤:The computer device according to claim 13, wherein the processor further executes the following steps when executing the computer-readable instruction:
    分别获取所述多个瞳孔轮廓中每个瞳孔轮廓的最左边、最右边、最上边和最下边的四个像素点,根据所述四个像素点得到包围所述四个像素点的最小圆;及Obtaining the leftmost, rightmost, uppermost and lowermost four pixel points of each pupil contour in the plurality of pupil contours respectively, and obtaining the smallest circle surrounding the four pixels according to the four pixel points; and
    遍历所述瞳孔轮廓的所有像素点,当所述所有像素点中不存在位于所述最小圆的边界外的像素点时,得到所述最小圆为所述瞳孔轮廓的最小包围圆。Traverse all the pixels of the pupil contour, and when there is no pixel located outside the boundary of the minimum circle among all the pixels, the minimum circle is obtained as the minimum enclosing circle of the pupil contour.
  15. 根据权利要求14所述的计算机设备,其特征在于,所述处理器执行所述计算机可读指令时还执行以下步骤:The computer device according to claim 14, wherein the processor further executes the following steps when executing the computer-readable instruction:
    当所述所有像素点中存在位于所述最小圆的边界外的像素点,得到所述最小圆不为所述瞳孔轮廓的最小包围圆;When there is a pixel point outside the boundary of the minimum circle among all the pixels, obtaining the minimum circle that is not the minimum enclosing circle of the pupil contour;
    从位于所述最小圆的边界外的像素点中,筛选距离所述最小圆的圆心最远的像素点,将筛选的像素点与所述最左边、最右边、最上边和最下边四个像素点中的任意三个进行排列组合;From the pixels located outside the boundary of the smallest circle, filter the pixels farthest from the center of the smallest circle, and compare the filtered pixels with the four pixels of the leftmost, rightmost, uppermost and lowermost edges Any three of the points are permuted and combined;
    获取排列组合后的四个像素点,根据所述排列组合后的四个像素点得到包围所述四个像素点的候选最小圆;及Obtaining four pixel points after permutation and combination, and obtaining the candidate smallest circle surrounding the four pixels according to the four pixel points after permutation and combination; and
    当未被选入排列组合的像素点不在所述候选最小圆的边界外时,遍历所述瞳孔轮廓的其它像素点,当所述其它像素点中不存在位于所述候选最小圆的边界外的像素点时,得到所述候选最小圆为所述瞳孔轮廓的最小包围圆。When the pixel points that are not selected into the permutation and combination are not outside the boundary of the candidate minimum circle, traverse other pixels of the pupil contour, when there is no pixel outside the boundary of the candidate minimum circle In the case of pixel points, the candidate minimum circle is obtained as the minimum enclosing circle of the pupil contour.
  16. 一个或多个存储有计算机可读指令的非易失性计算机可读存储介质,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理 器执行以下步骤:One or more non-volatile computer-readable storage media storing computer-readable instructions, which when executed by one or more processors, cause the one or more processors to perform the following steps:
    获取瞳孔半径待测图像,提取所述瞳孔半径待测图像中的感兴趣区域图像;Acquiring a pupil radius to-be-measured image, and extracting a region of interest image in the pupil-radius-to-be-measured image;
    对所述感兴趣区域图像进行像素处理,得到瞳孔区域图像;Performing pixel processing on the image of the region of interest to obtain an image of the pupil region;
    通过边界跟踪算法从所述瞳孔区域图像中提取多个瞳孔轮廓;Extracting multiple pupil contours from the pupil area image through a boundary tracking algorithm;
    获取所述感兴趣区域图像的中心、所述多个瞳孔轮廓的最小包围圆集合以及所述最小包围圆集合中各个最小包围圆的圆心;及Acquiring the center of the region of interest image, the smallest enclosing circle set of the multiple pupil contours, and the center of each smallest enclosing circle in the smallest enclosing circle set; and
    获取所述中心与各圆心的距离,筛选与所述中心距离最近的圆心,将所述最近的圆心对应的最小包围圆作为目标圆,以所述目标圆的半径作为瞳孔半径。The distance between the center and the center of each circle is obtained, the center of the circle closest to the center is selected, the smallest enclosing circle corresponding to the nearest circle center is taken as the target circle, and the radius of the target circle is taken as the pupil radius.
  17. 根据权利要求16所述的存储介质,其特征在于,所述计算机可读指令被所述处理器执行时还执行以下步骤:The storage medium according to claim 16, wherein the following steps are further executed when the computer-readable instructions are executed by the processor:
    获取所述感兴趣区域图像的各像素值,对所述各像素值进行按位非处理,获取处理后的感兴趣区域图像的各像素值;及Acquiring each pixel value of the image of the region of interest, performing bitwise non-processing on each pixel value, and acquiring each pixel value of the processed region of interest image; and
    将所述处理后的感兴趣区域图像的各像素值中低于预设阈值的像素值置零,得到瞳孔区域图像。The pixel values that are lower than the preset threshold among the pixel values of the processed image of the region of interest are set to zero to obtain an image of the pupil region.
  18. 根据权利要求16所述的存储介质,其特征在于,所述计算机可读指令被所述处理器执行时还执行以下步骤:The storage medium according to claim 16, wherein the following steps are further executed when the computer-readable instructions are executed by the processor:
    获取所述多个瞳孔轮廓中每个瞳孔轮廓的像素点集合;Acquiring a pixel point set of each pupil contour in the plurality of pupil contours;
    对所述像素点集合中的像素点按照极角从小到大进行排序,对极角相同的像素点按照到所述像素点集合中最左下方像素点的距离从小到大进行排序;Sort the pixels in the pixel point set according to the polar angle from small to large, and sort the pixels with the same polar angle according to the distance to the bottom leftmost pixel in the pixel point set from small to large;
    通过结构体数组储存排序后的像素点,遍历所述排序后的像素点,去除非顶点的像素点,得到顶点像素点集合;Store the sorted pixels through a structure array, traverse the sorted pixels, remove non-vertex pixels, and obtain a vertex pixel point set;
    对所述顶点像素点集合中的每个顶点像素点进行转角判断,去除没有按照预设方向转角的顶点像素点,得到凸包处理后的瞳孔轮廓;及Perform a corner judgment on each vertex pixel in the vertex pixel point set, remove vertex pixels that are not cornered in a preset direction, and obtain a pupil contour after convex hull processing; and
    获取所述凸包处理后的瞳孔轮廓的最小包围圆集合。Obtain the minimum enclosing circle set of the pupil contour after the convex hull processing.
  19. 根据权利要求16所述的存储介质,其特征在于,所述计算机可读指令被所述处理器执行时还执行以下步骤:The storage medium according to claim 16, wherein the following steps are further executed when the computer-readable instructions are executed by the processor:
    获取所述多个瞳孔轮廓分别对应的最小包围圆以及所述最小包围圆的半径;及Acquiring the minimum enclosing circle and the radius of the minimum enclosing circle respectively corresponding to the multiple pupil contours; and
    去除所述最小包围圆中半径大于预设值的最小包围圆,得到所述瞳孔轮廓的最小包围圆集合。The smallest enclosing circle whose radius is greater than the preset value in the smallest enclosing circle is removed to obtain the smallest enclosing circle set of the pupil contour.
  20. 根据权利要求19所述的存储介质,其特征在于,所述计算机可读指令被所述处理器执行时还执行以下步骤:The storage medium according to claim 19, wherein the following steps are further executed when the computer-readable instructions are executed by the processor:
    分别获取所述多个瞳孔轮廓中每个瞳孔轮廓的最左边、最右边、最上边和最下边的四个像素点,根据所述四个像素点得到包围所述四个像素点的最小圆;及Obtaining the leftmost, rightmost, uppermost and lowermost four pixel points of each pupil contour in the plurality of pupil contours respectively, and obtaining the smallest circle surrounding the four pixels according to the four pixel points; and
    遍历所述瞳孔轮廓的所有像素点,当所述所有像素点中不存在位于所述最小圆的边界外的像素点时,得到所述最小圆为所述瞳孔轮廓的最小包围圆。Traverse all the pixels of the pupil contour, and when there is no pixel located outside the boundary of the minimum circle among all the pixels, the minimum circle is obtained as the minimum enclosing circle of the pupil contour.
PCT/CN2019/106604 2019-07-25 2019-09-19 Pupil radius detection method and apparatus, computer device and storage medium WO2021012370A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SG11202004539QA SG11202004539QA (en) 2019-07-25 2019-09-19 Pupil radius detection method and apparatus, computer device, and storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910676753.7A CN110555875A (en) 2019-07-25 2019-07-25 Pupil radius detection method and device, computer equipment and storage medium
CN201910676753.7 2019-07-25

Publications (1)

Publication Number Publication Date
WO2021012370A1 true WO2021012370A1 (en) 2021-01-28

Family

ID=68735856

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/106604 WO2021012370A1 (en) 2019-07-25 2019-09-19 Pupil radius detection method and apparatus, computer device and storage medium

Country Status (3)

Country Link
CN (1) CN110555875A (en)
SG (1) SG11202004539QA (en)
WO (1) WO2021012370A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113267502A (en) * 2021-05-11 2021-08-17 江苏大学 Micro-motor friction plate defect detection system and detection method based on machine vision
CN113610881A (en) * 2021-08-25 2021-11-05 浙江大华技术股份有限公司 Target object determination method and device, storage medium and electronic device
CN117392226A (en) * 2023-12-11 2024-01-12 合肥安迅精密技术有限公司 BGA element identification positioning method and system based on machine vision and storage medium

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111461970B (en) * 2020-04-09 2023-08-11 北京百度网讯科技有限公司 Image processing method and device and electronic equipment
CN112184639B (en) * 2020-09-15 2024-03-29 佛山(华南)新材料研究院 Round hole detection method and device, electronic equipment and storage medium
FR3132967B1 (en) 2022-02-23 2024-02-16 Patrick Charreyron Method for generating a reconstructed image and device for generating such a reconstructed image.
CN115359548B (en) * 2022-07-22 2023-07-18 吉林大学第一医院 Handheld intelligent pupil detection device and detection method
CN116740068B (en) * 2023-08-15 2023-10-10 贵州毅丹恒瑞医药科技有限公司 Intelligent navigation system for cataract surgery

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101246544A (en) * 2008-01-24 2008-08-20 电子科技大学中山学院 Iris locating method based on boundary point search and SUSAN edge detection
CN103246871A (en) * 2013-04-25 2013-08-14 山东师范大学 Non-ideal iris outer boundary positioning method based on image nonlinear enhancement
CN103824061A (en) * 2014-03-03 2014-05-28 山东大学 Light-source-reflection-region-based iris positioning method for detecting and improving Hough conversion
CN106022315A (en) * 2016-06-17 2016-10-12 北京极创未来科技有限公司 Pupil center positioning method for iris recognition
US20180168446A1 (en) * 2016-12-21 2018-06-21 3E Co., Ltd. Method of detecting boundary between iris and sclera
CN108280403A (en) * 2017-12-27 2018-07-13 北京七鑫易维信息技术有限公司 The method and apparatus for determining pupil position
KR101942759B1 (en) * 2017-07-28 2019-01-28 계명대학교 산학협력단 Eye pupil detection using ensemble of random forest and fast radial symmetry transform with near infrared camera and system thereof
CN109766818A (en) * 2019-01-04 2019-05-17 京东方科技集团股份有限公司 Pupil center's localization method and system, computer equipment and readable storage medium storing program for executing

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105631447B (en) * 2015-12-18 2019-02-15 杭州仁盈科技股份有限公司 A kind of method of text in identification circular official seal
CN109784248A (en) * 2019-01-02 2019-05-21 京东方科技集团股份有限公司 Pupil positioning method, pupil positioning device, electronic equipment, storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101246544A (en) * 2008-01-24 2008-08-20 电子科技大学中山学院 Iris locating method based on boundary point search and SUSAN edge detection
CN103246871A (en) * 2013-04-25 2013-08-14 山东师范大学 Non-ideal iris outer boundary positioning method based on image nonlinear enhancement
CN103824061A (en) * 2014-03-03 2014-05-28 山东大学 Light-source-reflection-region-based iris positioning method for detecting and improving Hough conversion
CN106022315A (en) * 2016-06-17 2016-10-12 北京极创未来科技有限公司 Pupil center positioning method for iris recognition
US20180168446A1 (en) * 2016-12-21 2018-06-21 3E Co., Ltd. Method of detecting boundary between iris and sclera
KR101942759B1 (en) * 2017-07-28 2019-01-28 계명대학교 산학협력단 Eye pupil detection using ensemble of random forest and fast radial symmetry transform with near infrared camera and system thereof
CN108280403A (en) * 2017-12-27 2018-07-13 北京七鑫易维信息技术有限公司 The method and apparatus for determining pupil position
CN109766818A (en) * 2019-01-04 2019-05-17 京东方科技集团股份有限公司 Pupil center's localization method and system, computer equipment and readable storage medium storing program for executing

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113267502A (en) * 2021-05-11 2021-08-17 江苏大学 Micro-motor friction plate defect detection system and detection method based on machine vision
CN113267502B (en) * 2021-05-11 2022-07-22 江苏大学 Micro-motor friction plate defect detection system and detection method based on machine vision
CN113610881A (en) * 2021-08-25 2021-11-05 浙江大华技术股份有限公司 Target object determination method and device, storage medium and electronic device
CN113610881B (en) * 2021-08-25 2024-03-01 浙江华感科技有限公司 Target object determination method and device, storage medium and electronic device
CN117392226A (en) * 2023-12-11 2024-01-12 合肥安迅精密技术有限公司 BGA element identification positioning method and system based on machine vision and storage medium
CN117392226B (en) * 2023-12-11 2024-04-05 合肥安迅精密技术有限公司 BGA element identification positioning method and system based on machine vision and storage medium

Also Published As

Publication number Publication date
CN110555875A (en) 2019-12-10
SG11202004539QA (en) 2021-02-25

Similar Documents

Publication Publication Date Title
WO2021012370A1 (en) Pupil radius detection method and apparatus, computer device and storage medium
US10691928B2 (en) Method and apparatus for facial recognition
WO2019233266A1 (en) Image processing method, computer readable storage medium and electronic device
US11398084B2 (en) Method, apparatus and application system for extracting a target feature
WO2021008032A1 (en) Surveillance video processing method and apparatus, computer device and storage medium
US10740912B2 (en) Detection of humans in images using depth information
EP2930656B1 (en) Eye gaze detection apparatus, eye gaze detection program and eye gaze detection method
US8639058B2 (en) Method of generating a normalized digital image of an iris of an eye
US8755607B2 (en) Method of normalizing a digital image of an iris of an eye
US9965494B2 (en) Sharing photos
EP3704864B1 (en) Methods and systems for generating video synopsis
US11612314B2 (en) Electronic device and method for determining degree of conjunctival hyperemia by using same
US11875599B2 (en) Method and device for detecting blurriness of human face in image and computer-readable storage medium
WO2020172870A1 (en) Method and apparatus for determining motion trajectory of target object
WO2019061659A1 (en) Method and device for removing eyeglasses from facial image, and storage medium
CN110705353A (en) Method and device for identifying face to be shielded based on attention mechanism
CN110781770A (en) Living body detection method, device and equipment based on face recognition
US20160110909A1 (en) Method and apparatus for creating texture map and method of creating database
CN109002776B (en) Face recognition method, system, computer device and computer-readable storage medium
US11605220B2 (en) Systems and methods for video surveillance
EP3699865B1 (en) Three-dimensional face shape derivation device, three-dimensional face shape deriving method, and non-transitory computer readable medium
WO2012002048A1 (en) Head detection method, head detection device, attribute determination method, attribute determination device, program, recording medium and attribute determination system
US20140111431A1 (en) Optimizing photos
CN114038045A (en) Cross-modal face recognition model construction method and device and electronic equipment
CN110688926B (en) Subject detection method and apparatus, electronic device, and computer-readable storage medium

Legal Events

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

Ref document number: 19938910

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19938910

Country of ref document: EP

Kind code of ref document: A1

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

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 10/08/2022)

122 Ep: pct application non-entry in european phase

Ref document number: 19938910

Country of ref document: EP

Kind code of ref document: A1