WO2021114886A1 - Iris image acquisition method and device and focusing method and device - Google Patents

Iris image acquisition method and device and focusing method and device Download PDF

Info

Publication number
WO2021114886A1
WO2021114886A1 PCT/CN2020/122581 CN2020122581W WO2021114886A1 WO 2021114886 A1 WO2021114886 A1 WO 2021114886A1 CN 2020122581 W CN2020122581 W CN 2020122581W WO 2021114886 A1 WO2021114886 A1 WO 2021114886A1
Authority
WO
WIPO (PCT)
Prior art keywords
image acquisition
object distance
image
acquisition module
focus position
Prior art date
Application number
PCT/CN2020/122581
Other languages
French (fr)
Chinese (zh)
Inventor
梁明杰
李志荣
窦川川
刘源
Original Assignee
支付宝(杭州)信息技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 支付宝(杭州)信息技术有限公司 filed Critical 支付宝(杭州)信息技术有限公司
Publication of WO2021114886A1 publication Critical patent/WO2021114886A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/18Eye characteristics, e.g. of the iris
    • G06V40/19Sensors therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/401Transaction verification
    • G06Q20/4014Identity check for transactions
    • G06Q20/40145Biometric identity checks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/18Eye characteristics, e.g. of the iris
    • G06V40/193Preprocessing; Feature extraction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/67Focus control based on electronic image sensor signals

Definitions

  • the embodiments of this specification relate to the field of payment technology, in particular to an iris image acquisition method, an iris image acquisition device, a focusing method and device, two computing devices, and two computer-readable storage media.
  • biometric identification of biological individuals based on biological signs has begun to be applied and promoted in the field of identity recognition, such as mobile phone unlocking based on fingerprint recognition or face recognition, fingerprint door locks, and facial payment.
  • identity recognition such as mobile phone unlocking based on fingerprint recognition or face recognition, fingerprint door locks, and facial payment.
  • Many payment platforms have introduced quick payment methods such as facial recognition payment based on facial recognition, but facial recognition is difficult to distinguish people with similar facial features, and facial features are greatly affected by external features, such as makeup and age.
  • the change of the iris has changed significantly, and it is easy to be attacked after being reproduced by 3D printing and other means.
  • the identifiability, stability and resistance of iris features are better than face recognition, but due to the larger size of the iris Small, making the acquisition of clear iris images become one of the main bottlenecks in the further promotion and application of iris recognition.
  • the embodiment of this specification provides an iris image acquisition method.
  • One or more embodiments of this specification provide an iris image acquisition device, a focusing method and device, two computing devices, and two computer-readable storage media at the same time.
  • An embodiment of this specification provides an iris image acquisition method, including: calculating the object distance corresponding to the target object image based on the eye features in the target object image; the target object image is collected by the image acquisition module; The corresponding relationship between the object distance interval and the focusing position of the image acquisition module constructed by the image acquisition index is determined, and the focusing position corresponding to the object distance interval to which the object distance belongs is determined; The subsequent image acquisition module acquires iris images.
  • the corresponding relationship between the object distance interval and the focus position is constructed in the following manner: according to the image parameter corresponding to the iris image acquisition index, at least one image parameter is used as the target parameter, and the target parameter is determined according to the iris image acquisition index.
  • the target constraint conditions corresponding to the target parameters, and the fixed constraint conditions corresponding to the remaining image parameters are determined according to the iris image acquisition index; for each target parameter, an image acquisition module is established under the constraints of the fixed constraint conditions.
  • the relationship curve between the object distance and the target parameter at the focus position based on the relationship curve, the minimum object distance and the maximum object distance that the image acquisition module meets the target constraint conditions at each focus position are determined, and the minimum object distance and The maximum object distance constitutes an object distance interval; the corresponding relationship between the object distance interval and the focus position is generated by constructing the correspondence relationship between the object distance interval and the focus position of the image acquisition module.
  • the calculation of the object distance corresponding to the target object image based on the eye features is implemented by calling a depth sensing sub-module configured by the image acquisition module, wherein the depth sensing sub-module collects The depth data calculates the actual collection distance between the eye of the target object corresponding to the target object image and the image collection module, and outputs the calculated actual collection distance as the object distance.
  • the step of calculating the object distance corresponding to the target object image based on the eye characteristics in the case of detecting eye features in the target object image collected by the image acquisition module is performed, and the The corresponding relationship between the object distance interval and the focus position of the image acquisition module constructed based on the iris image acquisition index, and before the step of determining the focus position corresponding to the object distance interval to which the object distance belongs, includes: the object distance interval corresponds to the focus position In the relationship, find whether there is an object distance interval to which the object distance belongs; if so, execute the corresponding relationship between the object distance interval and the focus position of the image acquisition module constructed based on the iris image acquisition index in advance, and determine the object distance to which the object distance belongs.
  • the focus position step corresponding to the object distance interval if it does not exist, the target object image is collected by the image acquisition module and the eye feature detection is performed.
  • the focusing of the image acquisition module according to the focus position includes: issuing a focus instruction to a focus control sub-module configured by the image acquisition module, and the focus control sub-module is based on the focus
  • the focus position carried in the instruction adjusts the lens group configured by the image acquisition module to the focus position.
  • the embodiment of this specification also provides an iris image acquisition device, including: a processing module and an image acquisition module; wherein the processing module is configured to calculate the object corresponding to the target object image based on the eye features in the target object image. Distance, and according to the corresponding relationship between the object distance interval and the focus position of the image acquisition module constructed in advance based on the iris image acquisition index, determine the focus position corresponding to the object distance interval to which the object distance belongs, and send it to the image acquisition module to carry There is a focus instruction for the focus position; the target object image is collected by the image acquisition module; the image acquisition module is configured to collect the target object image, and according to the focus issued by the processing module The focus position carried by the instruction is to focus, and an iris image is collected after focus.
  • the corresponding relationship between the object distance interval and the focus position is constructed in the following manner: according to the image parameter corresponding to the iris image acquisition index, at least one image parameter is used as the target parameter, and the target parameter is determined according to the iris image acquisition index.
  • the target constraint conditions corresponding to the target parameters, and the fixed constraint conditions corresponding to the remaining image parameters are determined according to the iris image acquisition index; for each target parameter, an image acquisition module is established under the constraints of the fixed constraint conditions.
  • the relationship curve between the object distance and the target parameter at the focus position based on the relationship curve, the minimum object distance and the maximum object distance that the image acquisition module meets the target constraint conditions at each focus position are determined, and the minimum object distance and The maximum object distance constitutes an object distance interval; the corresponding relationship between the object distance interval and the focus position is generated by constructing the correspondence relationship between the object distance interval and the focus position of the image acquisition module.
  • the image acquisition module is configured with a depth sensing sub-module, wherein the depth sensing sub-module calculates the difference between the eye of the target object corresponding to the target object image and the image acquisition module by collecting depth data The actual collection distance between the two, and the calculated actual collection distance is output as the object distance.
  • the image acquisition module includes: a focus control sub-module, a lens group, and a photosensitive component; wherein the focus control sub-module is configured to receive the focus instruction carrying the focus position issued by the processing module , And adjust the lens group to the focus position according to the focus instruction.
  • the embodiment of the present specification also provides a focusing method, including: determining the object distance corresponding to the target object image collected by the image acquisition module; according to the corresponding relationship between the object distance interval and the focus position constructed based on the image acquisition parameters of the image acquisition module in advance , Determine the focus position corresponding to the object distance interval to which the object distance belongs; focus the image acquisition module according to the focus position.
  • the corresponding relationship between the object distance interval and the focus position is constructed in the following manner: at least one of the image acquisition parameters is used as a target parameter, and the remaining image acquisition parameters are determined as constraint parameters; Parameters, in combination with the constraint parameters, the relationship curve between the object distance and the target parameter at each focus position of the image acquisition module is established; based on the relationship curve, it is determined that the image acquisition module satisfies the target parameter at each focus position
  • the minimum object distance and the maximum object distance of the corresponding parameter threshold, and the object distance interval is composed of the minimum object distance and the maximum object distance; by constructing the correspondence between the object distance interval and the focus position of the image acquisition module , Generating the corresponding relationship between the object distance interval and the focus position.
  • the step of determining the object distance corresponding to the target object image collected by the image acquisition module is implemented by calling a depth sensing sub-module configured by the image acquisition module, wherein the depth sensing sub-module is The data calculates the actual collection distance between the target object corresponding to the target object image and the image collection module, and outputs the calculated actual collection distance as the object distance.
  • the step includes: searching for the object distance interval to which the object distance belongs in the corresponding relationship between the object distance interval and the focus position; The corresponding relationship between the object distance interval and the focus position constructed based on the image acquisition parameters of the image acquisition module in advance, and the step of determining the focus position corresponding to the object distance interval to which the object distance belongs; if it does not exist, collect the target through the image acquisition module Object image, and return to execute the step of determining the object distance corresponding to the target object image collected by the image collection module.
  • the focusing of the image acquisition module according to the focus position includes: issuing a focus instruction to a focus control sub-module configured by the image acquisition module, and the focus control sub-module is based on the focus
  • the focus position carried in the instruction adjusts the lens group configured by the image acquisition module to the focus position.
  • the embodiment of this specification also provides a focusing device, including: a processing module and an image acquisition module; wherein the processing module is configured to determine the object distance corresponding to the target object image collected by the image acquisition module, And according to the corresponding relationship between the object distance interval and the focus position constructed based on the image acquisition parameters of the image acquisition module in advance, the focus position corresponding to the object distance interval to which the object distance belongs is determined, and issued to the image acquisition module with The focus instruction of the focus position; the image acquisition module is configured to collect the target object image, and focus according to the focus position carried in the focus instruction issued by the processing module.
  • the embodiments of this specification also provide a computing device, including: a memory and a processor; the memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions: based on the eye in the target object image
  • the feature calculates the object distance corresponding to the target object image; the target object image is collected by the image acquisition module; the object distance is determined according to the corresponding relationship between the object distance interval and the focus position of the image acquisition module constructed based on the iris image acquisition index The focusing position corresponding to the object distance interval to which it belongs; focusing on the image acquisition module according to the focusing position, and acquiring an iris image through the focused image acquisition module.
  • the embodiment of this specification also provides a computing device, including: a memory and a processor; the memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions: determine the target collected by the image acquisition module The object distance corresponding to the object image; determine the focus position corresponding to the object distance interval to which the object distance belongs according to the corresponding relationship between the object distance interval and the focus position constructed based on the image acquisition parameters of the image acquisition module in advance; according to the focus position Focusing on the image acquisition module.
  • the embodiment of this specification also provides a computer-readable storage medium, which stores computer instructions, which implement the steps of the iris image acquisition method when the instructions are executed by a processor.
  • the embodiments of this specification also provide a computer-readable storage medium that stores computer instructions, which implement the steps of the focusing method when the instructions are executed by a processor.
  • An embodiment of this specification determines the object distance interval to which the image acquisition module performs iris image acquisition by calculating the object distance between the target object corresponding to the target object image and the image acquisition module, and collects the image according to the correspondence between the object distance interval and the focus position
  • the module matches the adapted focus position, and finally collects the iris image after adjusting the focus of the image acquisition module according to the focus position, which improves the focusing efficiency of the image acquisition module in the iris image acquisition process, and at the same time avoids the problem of the image acquisition module. Acquire high-quality iris images for frequent focusing, thereby prolonging the service life of the image acquisition module.
  • Another embodiment of this specification calculates the object distance between the target object corresponding to the target object image collected by the image acquisition module and the image acquisition module, and determines the object distance interval to which the object distance belongs according to the correspondence between the object distance interval and the focus position Determine the suitable focus position for the image acquisition module, and finally adjust the focus of the image acquisition module according to the focus position, which improves the focusing efficiency of the image acquisition module and avoids frequent focusing adjustments of the image acquisition module during the focusing process. Extend the service life of the image acquisition module.
  • FIG. 1 is a processing flowchart of an iris image acquisition method provided by an embodiment of this specification
  • FIG. 2 is a graph showing the variation curve of the modulation degree of the user's eye image relative to the object distance according to the first embodiment of this specification;
  • FIG. 3 is a graph showing the change of the modulation degree of the user's eye image relative to the object distance according to the embodiment of the present specification
  • Fig. 4 is a schematic diagram of an iris image acquisition device provided by an embodiment of this specification.
  • FIG. 5 is a processing flowchart of a focusing method provided by an embodiment of this specification.
  • FIG. 6 is a schematic diagram of a focusing device provided by an embodiment of this specification.
  • FIG. 7 is a structural block diagram of a computing device provided by an embodiment of this specification.
  • Fig. 8 is a structural block diagram of another computing device provided by an embodiment of this specification.
  • first, second, etc. may be used to describe various information in one or more embodiments of this specification, the information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other.
  • the first may also be referred to as the second, and similarly, the second may also be referred to as the first.
  • word “if” as used herein can be interpreted as "when” or “when” or "in response to determination”.
  • the iris is a circular area between the pupil (black) and the sclera (white) of the human eye. It can capture rich texture information under infrared light. It is a unique feature of an individual and can be used for individual identification.
  • Focus by adjusting the distance between the lens group and the photosensitive element, changing the imaging focus position so that the object image falls on the photosensitive element, the process of forming a clear image.
  • Spatial Resolution It is used to characterize the detailed resolution capability of the camera system, usually expressed by the number of resolvable black and white line pairs per unit length (eg, line pairs/mm).
  • One embodiment of this specification provides an iris image acquisition method, and one or more embodiments of this specification also provide an iris image acquisition device, a focusing method and device, two computing devices, and two computer-readable storage media.
  • an iris image acquisition device a focusing method and device
  • two computing devices two computer-readable storage media.
  • An example of an iris image acquisition method provided in this specification is as follows.
  • FIG. 1 shows a processing flowchart of an iris image acquisition method provided by an embodiment of this specification, and referring to FIG. 2, which shows the modulation degree of the first eye image of a user provided by the embodiment of this specification.
  • FIG. 3 shows the variation curve of the modulation degree of the user's eye image with respect to the object distance according to the embodiment of the present specification.
  • Step S102 Calculate the object distance corresponding to the target object image based on the eye features in the target object image.
  • iris recognition In practical applications, an important part of iris recognition is how to collect iris images quickly and accurately.
  • the iris recognition algorithm requires high iris image quality, it is necessary to repeatedly adjust the image distance of the image collection module to The iris image collected by the image acquisition module meets the requirements.
  • the iris image acquisition based on this is not only low in efficiency, but also repeated focusing during the iris image acquisition process will increase the loss of the image acquisition module and reduce the service life of the image acquisition module.
  • the image distance of the image acquisition module is divided into multiple focus segments before the iris image acquisition, and the actual working range of the image acquisition module for iris image acquisition (the effective acquisition of iris image The span from the shortest distance to the farthest distance) is divided into multiple working intervals, so that the working interval of the image acquisition module for iris image acquisition is corresponding to the focus segment.
  • the image acquisition module performs the iris image acquisition process.
  • the actual acquisition distance (object distance) between the captured target object and the image acquisition module is calculated.
  • the image acquisition module is finally focused according to the focus segment corresponding to the working interval to which the object distance belongs.
  • the image acquisition module described in this embodiment refers to an image acquisition component configured with a lens group and a photosensitive component for image acquisition, and the distance (image distance) between the lens group and the photosensitive component can be performed according to actual iris image acquisition requirements Focus adjustment.
  • an image collection component configured in a payment terminal in an offline store, or an image collection component configured in a mobile terminal such as a mobile phone uses the iris image collected by the image collection component for identity recognition during the payment process.
  • first collect the target object image of the target object for example, the payment user who recognizes the identity through iris recognition during the payment process of the offline store
  • the image acquisition module performs the eye image in the collected target object image Feature detection.
  • the actual collection distance between the target object and the image collection camera is calculated based on the detected eye features, that is, the image collection module is collecting The object distance when the target object is imaged.
  • the calculation is performed by calling the depth sensing sub-module configured by the image acquisition module.
  • the depth The sensing sub-module collects the depth data between the target object and the image acquisition module when the image acquisition module collects the image of the target object (for example, through the 3D structured light or ToF (Time of Flight) module to collect the payment user and the image acquisition component).
  • the actual acquisition distance between the eye of the target object corresponding to the target object image and the image acquisition module is calculated according to the acquired depth data , And output the calculated actual collection distance as the object distance.
  • a deep learning method is used to perform eye feature detection, specifically by training an eye feature detection model,
  • the target object image is input to the trained eye feature detection model for eye feature detection, and the position information of the detected eye feature in the target object image is output, so that the eye detected by the eye feature detection model More accurate object distance calculations are carried out on the basis of some features.
  • the target object image is calculated as described above. On the basis of the corresponding object distance, searching for whether there is an object distance interval to which the object distance belongs in the corresponding relationship between the object distance interval and the focus position;
  • step S104 determine the focus position corresponding to the object distance interval to which the object distance belongs according to the corresponding relationship between the object distance interval and the focus position of the image acquisition module constructed based on the iris image acquisition index in advance;
  • the image acquisition module collects the target object image again and performs eye feature detection. When the eye feature is detected in the image, return to step S102 to complete the iris image acquisition process of the image acquisition module.
  • Step S104 Determine the focus position corresponding to the object distance interval to which the object distance belongs according to the correspondence between the object distance interval and the focus position of the image acquisition module constructed in advance based on the iris image acquisition index.
  • the purpose of collecting the iris image is to perform identity recognition based on the iris image, and in the process of identity recognition in actual applications, there are certain requirements for the image index of the iris image, and only the iris image that meets certain index requirements is required. Can realize the identity recognition based on iris image.
  • the iris image collection index in this embodiment refers to the quality or feature requirements of the iris image when performing identity recognition based on the iris image.
  • the iris recognition algorithm or the iris recognition system requires the input iris image to have a spatial resolution of At 2lp/mm, the modulation degree (MTF, Modulation Transfer Function) is not less than 60%.
  • the object distance interval in this embodiment refers to the actual working range of the image acquisition module for iris image acquisition (that is, the span range from the shortest distance to the farthest distance for effectively acquiring the iris image) divided into the distance interval.
  • the shortest distance of the image acquisition component configured in the payment terminal of the offline store to effectively collect the user's iris image is 300mm
  • the farthest distance is 750mm
  • the actual working range of the image acquisition component is 300mm ⁇ 750mm.
  • the span range is divided into several sub-intervals, which is the object distance interval.
  • the image capture module includes a lens group and a photosensitive component
  • the image distance adjustment during the focusing process of the image capture module is realized by adjusting the position of the lens group
  • the lens group relative to the photosensitive component is adjusted by adjusting the position of the lens group.
  • the focus position refers to the specific position of the lens group in the image acquisition module.
  • the lens group is in different focus positions, the distance between the lens group and the photosensitive component is different, and the image distance of the image acquisition module is also different.
  • the method of "focusing in stages” is adopted. Focusing on the image acquisition module, and the realization of "stage focusing” depends on the pre-built correspondence between the object distance and the focusing section of the image acquisition module, that is, the correspondence between the object distance section and the focus position, which is provided in this embodiment.
  • the corresponding relationship between the object distance interval and the focus position is constructed in the following manner:
  • the image parameter corresponding to the iris image acquisition index at least one image parameter is used as a target parameter, and the target constraint condition corresponding to the target parameter is determined according to the iris image acquisition index, and determined according to the iris image acquisition index The fixed constraint conditions corresponding to the remaining image parameters;
  • the corresponding relationship between the object distance interval and the focus position of the image acquisition component is constructed offline in advance. After the corresponding relationship between the object distance interval and the focus position is constructed, the object distance will be constructed. The corresponding relationship between the interval and the focus position is written into the storage space of the image acquisition component for storage, so that the subsequent use of the image acquisition component for iris image acquisition can adopt a "stage focus" method for focusing.
  • the construction of the correspondence between the object distance interval and the focus position of the image acquisition component includes the following 4 steps a) to d).
  • Modulation Transfer Function is not less than 60% when the spatial resolution is 2lp/mm
  • image parameters namely, spatial resolution and modulation degree.
  • the modulation degree is used as the target parameter. It can be seen that the target constraint condition corresponding to the modulation degree is that the modulation degree is not less than 60%.
  • the remaining image parameters except for the modulation degree are Spatial resolution, the fixed constraint condition corresponding to the spatial resolution is determined to satisfy 2lp/mm.
  • the abscissa represents the object distance (that is, the actual collection distance between the user’s eyes and the image capture component), and the ordinate represents the modulation degree.
  • the image distance of the image capture component is v1
  • the imaging effect is the best when the image acquisition component is performing image acquisition, that is, the user's eye image collected by the image acquisition component happens to fall on the photosensitive element of the image acquisition component and the image is clear.
  • the curve shown in the figure is that the spatial resolution is 2lp/mm(
  • the image distance of the image acquisition component is v1
  • the modulation curve of the user's eye image relative to the object distance as shown in the figure, the user's eye image is collected when the object distance is in the range of 300 ⁇ 379mm
  • the modulation degree is greater than 60% (the modulation degree is not less than 60% to meet the target constraint condition), which meets the iris image requirements of the iris recognition algorithm.
  • the imaging effect is the best.
  • the image acquisition component has the best imaging effect when the image distance is v3.
  • the imaging effect is best when the image distance of the image acquisition component is v4
  • the imaging effect is the best when the image distance of the image acquisition component is v5, that is: the user's eye image collected by the image acquisition component during image acquisition It happens to fall on the photosensitive element of the image acquisition component and the image is clear, which is the same as that shown in Figure 2 when the spatial resolution is 2lp/mm.
  • the modulation degree of the user's eye image is relative to the object distance.
  • the change curve is similar to the change curve of the user’s eye image modulation relative to the object distance when the image distance of the acquisition component is v2, v3, v4, and v5 when the spatial resolution is 2lp/mm;
  • 301 is the variation curve of the modulation degree of the user's eye image with respect to the object distance when the image distance of the image acquisition component is v1
  • 302 is the image of the image acquisition component
  • 303 is the change curve of the modulation degree of the user's eye image relative to the object distance when the image distance of the image acquisition component is v3
  • 304 is the image acquisition component
  • 305 is the change curve of the modulation degree of the user's eye image with respect to the object distance when the image collection component's image distance is v5.
  • the object distance interval is 300mm ⁇ 379mm .
  • the minimum object distance and the maximum object distance for which the modulation degree is greater than 60% constitute the object distance interval of 380mm-479mm.
  • the minimum object distance and the maximum object distance composition where the modulation degree is greater than 60% are 580mm-679mm.
  • the minimum object distance and the maximum object distance constitute the object distance interval of 680mm-750mm when the modulation degree is greater than 60%.
  • L1 is the position of the lens group when the image distance of the image acquisition component is v1, that is, the focus position corresponding to the object distance interval of 300mm to 379mm.
  • L2 is the position of the lens group when the image distance of the image acquisition component is v2, that is, the focus position corresponding to the object distance interval of 380mm to 479mm.
  • L3 is the position of the lens group when the image distance of the image acquisition component is v3, that is, the focus position corresponding to the object distance interval of 480mm to 579mm.
  • L4 is the position of the lens group when the image distance of the image acquisition component is v4, that is, the focus position corresponding to the object distance interval of 580mm to 679mm.
  • L5 is the position of the lens group when the image distance of the image acquisition component is v5, that is, the focus position corresponding to the object distance interval of 680mm to 750mm.
  • the image acquisition component When collecting iris images based on this, determine the object distance interval according to the actual collection distance at the time of collection, and then adjust the lens group of the image acquisition component to the focus position corresponding to the object distance interval.
  • the image distance is adjusted to match the actual acquisition distance. On the one hand, it avoids repeatedly adjusting the focus position during the focusing process to find a focus position that matches the actual acquisition distance. On the other hand, it also avoids the image acquisition component in a focus adjustment process.
  • the medium adjustment range is too large, thereby prolonging the service life of the image acquisition component and reducing equipment maintenance caused by frequent focus adjustment.
  • the construction process of the correspondence between the object distance interval and the focus position is described.
  • multiple different spatial resolutions and modulation degrees such as When the spatial resolution is 3lp/mm, the modulation degree is not less than 50%, or when the spatial resolution is 4lp/mm, the modulation degree is not less than 35%) and one or more other images based on the spatial resolution and modulation degree.
  • Parameters for example, resolution
  • the corresponding relationship is not limited in this embodiment.
  • the specific construction process is similar to the construction process of the correspondence relationship between the object distance interval and the focus position based on the spatial resolution and modulation degree provided above, and will not be repeated here.
  • step S102 on the basis of calculating the object distance corresponding to the target object image in the above step S102, determine the object distance interval to which the object distance belongs in the corresponding relationship between the object distance interval and the focus position, and further determine the object distance In the correspondence between the object distance interval and the focus position, the focus position corresponding to the object distance interval to which the object distance belongs is determined.
  • the object distance corresponding to the user's eye image collected by the image acquisition component is calculated to be 500mm
  • the above table shows that the object distance corresponding to the user's eye image is in the object distance range of 480mm to 579mm.
  • the focus position of the lens group in the image acquisition component corresponding to the object distance interval is L3.
  • Step S106 Focus the image acquisition module according to the focus position, and acquire an iris image through the focused image acquisition module.
  • focusing the image acquisition module according to the focus position is specifically implemented in the following manner: issuing a focus instruction to the focus control sub-module configured by the image acquisition module, The focus control sub-module adjusts the lens group configured by the image acquisition module to the focus position according to the focus position carried in the focus instruction.
  • the iris image of the target object is acquired by the image acquisition module after focusing, and then in the application according to the acquisition Of the iris image for identification.
  • the focus corresponding to the object distance interval 480mm ⁇ 579mm to which this object distance belongs is determined
  • the focus motor (such as voice coil motor, Voice Coil Motor) configured in the image acquisition component will adjust the lens group To the focus position L3, the iris image of the paying user is collected at the image distance corresponding to the focus position L3 thereafter.
  • the object distance between the target object corresponding to the target object image and the image acquisition module is calculated. Determine the object distance interval of the image acquisition module for iris image acquisition, and according to the corresponding relationship between the object distance interval and the focus position, match the image acquisition module with a suitable focus position, and finally perform focus adjustment on the image acquisition module according to the focus position.
  • the image acquisition improves the focusing efficiency of the image acquisition module in the iris image acquisition process, and at the same time prevents the image acquisition module from frequently focusing for acquiring high-quality iris images, thereby prolonging the service life of the image acquisition module.
  • an iris image acquisition device provided in this specification is as follows: In the above-mentioned embodiment, an iris image acquisition method is provided. Correspondingly, an iris image acquisition device is also provided. The following is combined with the drawings Be explained.
  • FIG. 4 shows a schematic diagram of an iris image acquisition device provided by this embodiment.
  • the description is relatively simple.
  • the corresponding description of the method embodiment provided above please refer to the corresponding description of the method embodiment provided above.
  • the device embodiments described below are merely illustrative.
  • an iris image acquisition device including: a processing module 410, an image acquisition module 420; wherein the processing module 410 is configured to calculate the object corresponding to the target object image based on the eye features in the target object image. According to the corresponding relationship between the object distance interval and the focus position of the image acquisition module constructed in advance based on the iris image acquisition index, determine the focus position corresponding to the object distance interval to which the object distance belongs, and send it to the image acquisition module 420 Carrying the focus instruction of the focus position; the target object image is collected by the image acquisition module 420; the image acquisition module 420 is configured to collect the target object image and issue it according to the processing module 410 Focusing is performed at the focus position carried by the focus instruction, and an iris image is collected after focusing.
  • the corresponding relationship between the object distance interval and the focus position is constructed in the following manner: according to the image parameter corresponding to the iris image acquisition index, at least one image parameter is used as the target parameter, and the target parameter is determined according to the iris image acquisition index.
  • the target constraint conditions corresponding to the target parameters, and the fixed constraint conditions corresponding to the remaining image parameters are determined according to the iris image acquisition index; for each target parameter, an image acquisition module is established under the constraints of the fixed constraint conditions.
  • the relationship curve between the object distance and the target parameter at the focus position based on the relationship curve, the minimum object distance and the maximum object distance that the image acquisition module meets the target constraint conditions at each focus position are determined, and the minimum object distance and The maximum object distance constitutes an object distance interval; the corresponding relationship between the object distance interval and the focus position is generated by constructing the correspondence relationship between the object distance interval and the focus position of the image acquisition module.
  • the image acquisition module 420 is configured with a depth sensing sub-module 421, wherein the depth sensing sub-module calculates the relationship between the eye of the target object corresponding to the target object image and the image acquisition by collecting depth data.
  • the actual collection distance between the modules 420, and the calculated actual collection distance is output as the object distance.
  • the image acquisition module 420 includes: a focus control sub-module 422, a lens group 423, and a photosensitive component 424; wherein the focus control sub-module 422 is configured to receive the focus control module 410 issued by the processing module 410 to carry the focus. Position the focus instruction, and adjust the lens group 423 to the focus position according to the focus instruction.
  • FIG. 5 shows a processing flowchart of a focusing method provided in an embodiment of this specification
  • the focusing method includes step S502 to step S506.
  • Step S502 Determine the object distance corresponding to the target object image collected by the image collection module.
  • the image distance of the image acquisition module is divided into multiple focusing segments, and the actual working range of the image acquisition module for image acquisition (that is, the range between the closest distance to the farthest distance for effectively acquiring an image)
  • the span range between the image acquisition module is divided into multiple working intervals, so that the working interval of the image acquisition module for image acquisition is corresponding to the focusing section.
  • the actual acquisition distance between the captured target object and the image acquisition module is calculated ( Object distance), according to the working interval to which the object distance belongs, and finally adjust the focus of the image acquisition module according to the focus segment corresponding to the working interval to which the object distance belongs, which improves the focusing efficiency of the image acquisition module and avoids the focusing process of the image acquisition module at the same time.
  • the focus adjustment is frequently performed in the middle, thereby prolonging the service life of the image acquisition module.
  • the image acquisition module in this embodiment refers to an image acquisition component configured with a lens group and a photosensitive component for image acquisition, and the distance (image distance) between the lens group and the photosensitive component can be adjusted according to the focus.
  • an image acquisition component configured in a mobile terminal such as a mobile phone.
  • the image acquisition module first collects the target object image of the target object (for example, a user holding a mobile terminal); and then calculates the actual acquisition distance between the target object and the image acquisition camera, that is, the image acquisition module is collecting the The object distance when the target object is imaged.
  • the target object image of the target object for example, a user holding a mobile terminal
  • the calculation is performed by calling the depth sensing sub-module configured by the image acquisition module.
  • the depth The sensing sub-module collects the depth data between the target object and the image acquisition module when the image acquisition module collects the image of the target object (for example, through 3D structured light or ToF (Time of Flight) module to collect between the user and the image acquisition component
  • the actual acquisition distance between the target object corresponding to the target object image and the image acquisition module is calculated according to the acquired depth data, and the actual acquisition distance is calculated
  • the obtained actual collection distance is output as the object distance.
  • the object distance corresponding to the target object image is calculated as described above. After that, search for the object distance interval to which the object distance belongs in the corresponding relationship between the object distance interval and the focus position; if so, perform the following step S504, according to the image acquisition parameters based on the image acquisition module in advance The constructed correspondence between the object distance interval and the focus position determines the focus position corresponding to the object distance interval to which the object distance belongs; The image of the target object is collected by the image collection module, and the execution of the above step S502 is returned.
  • Step S504 Determine the focus position corresponding to the object distance interval to which the object distance belongs based on the correspondence between the object distance interval and the focus position constructed based on the image acquisition parameters of the image acquisition module in advance.
  • the image acquisition module has certain performance indicators, and these performance indicators will eventually be reflected in the images collected by the image acquisition module.
  • the image acquisition parameters in this embodiment refer to the image quality parameters or image characteristic parameters of the images collected by the image acquisition module, for example, the modulation degree of the image acquired by the image acquisition component configured in the mobile terminal when the spatial resolution is x1lp/mm (MTF, Modulation Transfer Function) is x2%.
  • MTF Modulation Transfer Function
  • the object distance interval in this embodiment refers to the distance interval after the actual working range of the image acquisition module for image acquisition (the span range from the shortest distance to the farthest distance for effectively acquiring an image) is divided. For example, if the shortest distance for the image capture component of the payment terminal configured in an offline store to effectively capture user images is D1, and the farthest distance is D2, then the actual working range of the image capture component is the span of D1 ⁇ D2.
  • the divided sub-intervals are the object distance intervals.
  • the image capture module includes a lens group and a photosensitive component
  • the image distance adjustment during the focusing process of the image capture module is realized by adjusting the position of the lens group
  • the lens group relative to the photosensitive component is adjusted by adjusting the position of the lens group.
  • the focus position refers to the specific position of the lens group in the image acquisition module.
  • the lens group is in different focus positions, the distance between the lens group and the photosensitive component is also different, and the image distance of the image acquisition module is also different.
  • the image acquisition module is focused by the method of “stage focusing”, and the “stage focusing” method is adopted to focus the image acquisition module.
  • the following method Construct the correspondence between the object distance interval and the focus position: use at least one of the image acquisition parameters as a target parameter, and determine the remaining image acquisition parameters as a constraint parameter; for each target parameter, combine the constraint parameters respectively Establish a relationship curve between the object distance and the target parameter of the image acquisition module at each focus position; determine the minimum object distance that the image acquisition module meets the parameter threshold corresponding to the target parameter at each focus position based on the relationship curve And the maximum object distance, and the object distance interval is composed of the minimum object distance and the maximum object distance; by constructing the corresponding relationship between the object distance interval and the focus position of the image acquisition module, the object distance interval and Correspondence between focus positions.
  • the image acquisition module will then proceed on this basis.
  • the object distance interval can be determined according to the actual acquisition distance at the time of acquisition, and then the lens group of the image acquisition module can be adjusted to the focus position corresponding to the determined object distance interval, and the image distance of the image acquisition module can be quickly adjusted to the same
  • the actual acquisition distance is adapted. On the one hand, it avoids repeatedly adjusting the focus position during the focusing process to find a focus position that matches the actual acquisition distance. On the other hand, it also avoids the adjustment range of the image acquisition module during a focus adjustment process. In large cases, the service life of the image acquisition module is prolonged, and equipment maintenance caused by frequent focusing is reduced.
  • step S502 on the basis of calculating the object distance corresponding to the target object image in the above step S502, determine the object distance interval to which the object distance belongs in the corresponding relationship between the object distance interval and the focus position, and further determine the object distance interval to which the object distance belongs in the corresponding relationship between the object distance interval and the focus position. In the correspondence between the object distance interval and the focus position, the focus position corresponding to the object distance interval to which the object distance belongs is determined.
  • Step S506 Focus the image acquisition module according to the focus position.
  • focusing the image acquisition module according to the focus position is specifically implemented in the following manner: issuing a focus instruction to the focus control sub-module configured by the image acquisition module, The focus control sub-module adjusts the lens group configured by the image acquisition module to the focus position according to the focus position carried in the focus instruction, so that the imaging focus of the lens group is exactly at the focus position when the lens group is in the focus position Falling on the photosensitive component.
  • the focusing method calculates the object distance between the target object corresponding to the target object image collected by the image acquisition module and the image acquisition module, and determines the object distance to which the object distance belongs according to the correspondence between the object distance interval and the focus position
  • the object distance interval is for the image acquisition module to determine the suitable focus position, and finally adjust the focus of the image acquisition module according to the focus position, which improves the focusing efficiency of the image acquisition module and avoids the frequent operation of the image acquisition module during the focusing process. Focus adjustment, thereby extending the service life of the image acquisition module.
  • a focusing device provided in this specification is as follows: In the above-mentioned embodiment, a focusing method is provided, and correspondingly, a focusing device is also provided, which will be described below with reference to the accompanying drawings.
  • FIG. 6 shows a schematic diagram of a focusing device provided by this embodiment.
  • the description is relatively simple.
  • the corresponding description of the method embodiment provided above please refer to the corresponding description of the method embodiment provided above.
  • the device embodiments described below are merely illustrative.
  • This specification provides a focusing device, including: a processing module 610 and an image acquisition module 620; wherein the processing module 610 is configured to determine the object distance corresponding to the target object image collected by the image acquisition module 620. , And according to the corresponding relationship between the object distance interval and the focus position constructed based on the image acquisition parameters of the image acquisition module 620 in advance, the focus position corresponding to the object distance interval to which the object distance belongs is determined, and downloads to the image acquisition module 620 Send a focus instruction carrying the focus position; the image acquisition module 620 is configured to collect the target object image, and focus according to the focus position carried in the focus instruction issued by the processing module 610 .
  • the corresponding relationship between the object distance interval and the focus position is constructed in the following manner: at least one of the image acquisition parameters is used as a target parameter, and the remaining image acquisition parameters are determined as constraint parameters; Parameters, combining the constraint parameters to establish the relationship curve between the object distance and the target parameter of the image acquisition module 620 at each focus position; based on the relationship curve, it is determined that the image acquisition module 620 satisfies the The minimum object distance and the maximum object distance of the parameter threshold corresponding to the target parameter, and the object distance interval is composed of the minimum object distance and the maximum object distance; by constructing the object distance interval and the focus position of the image acquisition module 620 The corresponding relationship between the object distance interval and the focus position is generated.
  • the determining the object distance corresponding to the target object image collected by the image acquisition module is implemented by calling the depth sensing sub-module 621 configured by the image acquisition module 620, wherein the depth sensing sub-module 621 passes Collecting depth data calculates the actual collection distance between the target object corresponding to the target object image and the image collection module 620, and outputs the calculated actual collection distance as the object distance.
  • the image acquisition module 620 includes: a focus control sub-module 622, a lens group 623, and a photosensitive component 624; wherein, the focus control sub-module 622 is configured to receive a focus instruction issued by the processing module 610, according to The focus position carried in the focus instruction adjusts the lens group 623 configured by the image acquisition module 620 to the focus position.
  • FIG. 7 is a structural block diagram of a computing device 700 provided according to an embodiment of this specification.
  • the components of the computing device 700 include, but are not limited to, a memory 710 and a processor 720.
  • the processor 720 and the memory 710 are connected through a bus 730, and the database 750 is used to store data.
  • the computing device 700 also includes an access device 740 that enables the computing device 700 to communicate via one or more networks 760.
  • networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet.
  • the access device 740 may include one or more of any type of wired or wireless network interface (for example, a network interface card (NIC)), such as IEEE802.11 wireless local area network (WLAN) wireless interface, global interconnection for microwave access ( Wi-MAX) interface, Ethernet interface, universal serial bus (USB) interface, cellular network interface, Bluetooth interface, near field communication (NFC) interface, etc.
  • NIC network interface card
  • the aforementioned components of the computing device 700 and other components not shown in FIG. 7 may also be connected to each other, for example, via a bus. It should be understood that the structural block diagram of the computing device shown in FIG. 7 is only for the purpose of example, and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.
  • the computing device 700 can be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (for example, a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook, etc.), a mobile phone (for example, a smart phone). ), wearable computing devices (for example, smart watches, smart glasses, etc.) or other types of mobile devices, or stationary computing devices such as desktop computers or PCs.
  • the computing device 700 may also be a mobile or stationary server.
  • This specification provides a computing device that includes a memory 710, a processor 720, and computer instructions that are stored in the memory and can run on the processor.
  • the processor 720 is configured to execute the following computer-executable instructions: Calculate the object distance corresponding to the target object image based on the eye feature; The target object image is collected by the image acquisition module; According to the corresponding relationship between the object distance interval and the focus position of the image acquisition module constructed in advance based on the iris image acquisition index, the object distance is determined The focus position corresponding to the object distance interval to which the object distance belongs; the image acquisition module is focused according to the focus position, and an iris image is acquired through the focused image acquisition module.
  • An example of another computing device provided in this specification is as follows.
  • FIG. 8 is a structural block diagram of a computing device 800 provided according to an embodiment of the present specification.
  • the components of the computing device 800 include, but are not limited to, a memory 810 and a processor 820.
  • the processor 820 and the memory 810 are connected through a bus 830, and the database 850 is used to store data.
  • the computing device 800 also includes an access device 840 that enables the computing device 800 to communicate via one or more networks 860.
  • networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet.
  • the access device 840 may include one or more of any type of wired or wireless network interface (for example, a network interface card (NIC)), such as IEEE802.11 wireless local area network (WLAN) wireless interface, global interconnection for microwave access ( Wi-MAX) interface, Ethernet interface, universal serial bus (USB) interface, cellular network interface, Bluetooth interface, near field communication (NFC) interface, etc.
  • NIC network interface card
  • the aforementioned components of the computing device 800 and other components not shown in FIG. 8 may also be connected to each other, for example, via a bus. It should be understood that the structural block diagram of the computing device shown in FIG. 8 is only for the purpose of example, and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.
  • the computing device 800 can be any type of stationary or mobile computing device, including mobile computers or mobile computing devices (for example, tablet computers, personal digital assistants, laptop computers, notebook computers, netbooks, etc.), mobile phones (for example, smart phones). ), wearable computing devices (for example, smart watches, smart glasses, etc.) or other types of mobile devices, or stationary computing devices such as desktop computers or PCs.
  • the computing device 800 may also be a mobile or stationary server.
  • This specification provides a computing device that includes a memory 810, a processor 820, and computer instructions that are stored in the memory and can run on the processor.
  • the processor 820 is used to execute the following computer-executable instructions: determine that the image acquisition module collects The object distance corresponding to the obtained target object image; according to the corresponding relationship between the object distance interval and the focus position constructed based on the image acquisition parameters of the image acquisition module in advance, determine the focus position corresponding to the object distance interval to which the object distance belongs; The focus position focuses on the image acquisition module.
  • An example of a computer-readable storage medium provided in this specification is as follows: an embodiment of this specification provides a computer-readable storage medium that stores computer instructions that, when executed by a processor, implement the iris image acquisition method step.
  • An example of another computer-readable storage medium provided in this specification is as follows: an embodiment of this specification provides a computer-readable storage medium that stores computer instructions that implement the steps of the focusing method when the instructions are executed by a processor .
  • the computer instructions include computer program codes, and the computer program codes may be in the form of source code, object code, executable files, or some intermediate forms.
  • the computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory) , Random Access Memory (RAM, Random Access Memory), electrical carrier signal, telecommunications signal, and software distribution media, etc. It should be noted that the content contained in the computer-readable medium can be appropriately added or deleted according to the requirements of the legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to the legislation and patent practice, the computer-readable medium Does not include electrical carrier signals and telecommunication signals.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Accounting & Taxation (AREA)
  • General Health & Medical Sciences (AREA)
  • Ophthalmology & Optometry (AREA)
  • Human Computer Interaction (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Finance (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Studio Devices (AREA)
  • Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)

Abstract

An iris image acquisition method and device and a focusing method and device. The iris image acquisition method comprises: firstly, on the basis of eye features in a target object image, calculating an object distance corresponding to the target object image (S102); then, according to a corresponding relation between object distance sections and focusing positions of an image acquisition module constructed on the basis of iris image acquisition indexes in advance, determining a focusing position corresponding to an object distance section to which the object distance belongs (S104); and finally according to the focusing position, focusing the image acquisition module, and acquiring an iris image by means of the focused image acquisition module (S106).

Description

虹膜图像采集方法以及装置、对焦方法以及装置Iris image acquisition method and device, focusing method and device 技术领域Technical field
本说明书实施例涉及支付技术领域,特别涉及一种虹膜图像采集方法、一种虹膜图像采集装置、一种对焦方法以及装置、两种计算设备以及两种计算机可读存储介质。The embodiments of this specification relate to the field of payment technology, in particular to an iris image acquisition method, an iris image acquisition device, a focusing method and device, two computing devices, and two computer-readable storage media.
背景技术Background technique
随着模式识别技术的逐步成熟,基于生物体体征对生物个体进行生物识别开始在身份识别领域得到应用及推广,如基于指纹识别或者人脸识别的手机解锁、指纹门锁、刷脸支付等。许多支付平台已经基于人脸识别推出刷脸支付等快捷支付方式,但人脸识别难以辨别脸部特征相似度较高的人,同时脸部特征受外部特征影响较大,比如会因化妆和年龄的变化发生明显改变,并且容易被3D打印等手段复现后遭受攻击,相比而言,虹膜特征的可辨识性、稳定性及抵御攻击性均优于人脸识别,但由于虹膜的尺寸较小,使得获取清晰虹膜图像成为虹膜识别进一步推广应用的主要瓶颈之一。With the gradual maturity of pattern recognition technology, biometric identification of biological individuals based on biological signs has begun to be applied and promoted in the field of identity recognition, such as mobile phone unlocking based on fingerprint recognition or face recognition, fingerprint door locks, and facial payment. Many payment platforms have introduced quick payment methods such as facial recognition payment based on facial recognition, but facial recognition is difficult to distinguish people with similar facial features, and facial features are greatly affected by external features, such as makeup and age. The change of the iris has changed significantly, and it is easy to be attacked after being reproduced by 3D printing and other means. In contrast, the identifiability, stability and resistance of iris features are better than face recognition, but due to the larger size of the iris Small, making the acquisition of clear iris images become one of the main bottlenecks in the further promotion and application of iris recognition.
发明内容Summary of the invention
有鉴于此,本说明书实施例提供了一种虹膜图像采集方法。本说明书一个或者多个实施例同时提供了一种虹膜图像采集装置、一种对焦方法以及装置、两种计算设备以及两种计算机可读存储介质。In view of this, the embodiment of this specification provides an iris image acquisition method. One or more embodiments of this specification provide an iris image acquisition device, a focusing method and device, two computing devices, and two computer-readable storage media at the same time.
本说明书一个实施例提供一种虹膜图像采集方法,包括:基于目标对象图像中的眼部特征计算所述目标对象图像对应的物距;所述目标对象图像由图像采集模块采集;根据预先基于虹膜图像采集指标构建的图像采集模块的物距区间与对焦位置对应关系,确定所述物距所属的物距区间对应的对焦位置;按照所述对焦位置对所述图像采集模块进行对焦,并通过对焦后的图像采集模块采集虹膜图像。An embodiment of this specification provides an iris image acquisition method, including: calculating the object distance corresponding to the target object image based on the eye features in the target object image; the target object image is collected by the image acquisition module; The corresponding relationship between the object distance interval and the focusing position of the image acquisition module constructed by the image acquisition index is determined, and the focusing position corresponding to the object distance interval to which the object distance belongs is determined; The subsequent image acquisition module acquires iris images.
可选的,所述物距区间与对焦位置对应关系,采用如下方式构建:根据所述虹膜图像采集指标对应的图像参数,将至少一个图像参数作为目标参数,根据所述虹膜图像采集指标确定所述目标参数对应的目标约束条件,并根据所述虹膜图像采集指标确定剩余的图像参数对应的固定约束条件;针对每个目标参数,在所述固定约束条件的约束下分别建立图像采集模块在各个对焦位置下物距与目标参数的关系曲线;基于所述关系曲线确定图像采集模块在每个对焦位置下满足所述目标约束条件的最小物距和最大物距, 并由所述最小物距和所述最大物距组成物距区间;通过构建所述物距区间与图像采集模块的对焦位置的对应关系,生成所述物距区间与对焦位置对应关系。Optionally, the corresponding relationship between the object distance interval and the focus position is constructed in the following manner: according to the image parameter corresponding to the iris image acquisition index, at least one image parameter is used as the target parameter, and the target parameter is determined according to the iris image acquisition index. The target constraint conditions corresponding to the target parameters, and the fixed constraint conditions corresponding to the remaining image parameters are determined according to the iris image acquisition index; for each target parameter, an image acquisition module is established under the constraints of the fixed constraint conditions. The relationship curve between the object distance and the target parameter at the focus position; based on the relationship curve, the minimum object distance and the maximum object distance that the image acquisition module meets the target constraint conditions at each focus position are determined, and the minimum object distance and The maximum object distance constitutes an object distance interval; the corresponding relationship between the object distance interval and the focus position is generated by constructing the correspondence relationship between the object distance interval and the focus position of the image acquisition module.
可选的,所述基于所述眼部特征计算所述目标对象图像对应的物距,通过调用所述图像采集模块配置的深度传感子模块实现,其中,所述深度传感子模块通过采集深度数据计算所述目标对象图像对应的目标对象的眼部与所述图像采集模块之间的实际采集距离,并将计算获得的实际采集距离作为所述物距输出。Optionally, the calculation of the object distance corresponding to the target object image based on the eye features is implemented by calling a depth sensing sub-module configured by the image acquisition module, wherein the depth sensing sub-module collects The depth data calculates the actual collection distance between the eye of the target object corresponding to the target object image and the image collection module, and outputs the calculated actual collection distance as the object distance.
可选的,所述在图像采集模块采集的目标对象图像中检测到眼部特征的情况下,基于所述眼部特征计算所述目标对象图像对应的物距步骤执行之后,且所述根据预先基于虹膜图像采集指标构建的图像采集模块的物距区间与对焦位置对应关系,确定所述物距所属的物距区间对应的对焦位置步骤执行之前,包括:在所述物距区间与对焦位置对应关系中查找是否存在所述物距所属的物距区间;若存在,执行所述根据预先基于虹膜图像采集指标构建的图像采集模块的物距区间与对焦位置对应关系,确定所述物距所属的物距区间对应的对焦位置步骤;若不存在,通过所述图像采集模块采集目标对象图像并进行眼部特征检测。Optionally, after the step of calculating the object distance corresponding to the target object image based on the eye characteristics in the case of detecting eye features in the target object image collected by the image acquisition module is performed, and the The corresponding relationship between the object distance interval and the focus position of the image acquisition module constructed based on the iris image acquisition index, and before the step of determining the focus position corresponding to the object distance interval to which the object distance belongs, includes: the object distance interval corresponds to the focus position In the relationship, find whether there is an object distance interval to which the object distance belongs; if so, execute the corresponding relationship between the object distance interval and the focus position of the image acquisition module constructed based on the iris image acquisition index in advance, and determine the object distance to which the object distance belongs. The focus position step corresponding to the object distance interval; if it does not exist, the target object image is collected by the image acquisition module and the eye feature detection is performed.
可选的,所述按照所述对焦位置对所述图像采集模块进行对焦,包括:向所述图像采集模块配置的对焦控制子模块下发对焦指令,由所述对焦控制子模块根据所述对焦指令中携带的所述对焦位置将所述图像采集模块配置的镜头组调节至所述对焦位置。Optionally, the focusing of the image acquisition module according to the focus position includes: issuing a focus instruction to a focus control sub-module configured by the image acquisition module, and the focus control sub-module is based on the focus The focus position carried in the instruction adjusts the lens group configured by the image acquisition module to the focus position.
本说明书实施例还提供一种虹膜图像采集装置,包括:处理模块、图像采集模块;其中,所述处理模块,被配置为基于目标对象图像中的眼部特征计算所述目标对象图像对应的物距,并根据预先基于虹膜图像采集指标构建的图像采集模块的物距区间与对焦位置对应关系,确定所述物距所属的物距区间对应的对焦位置,并向所述图像采集模块下发携带有所述对焦位置的对焦指令;所述目标对象图像由所述图像采集模块采集;所述图像采集模块,被配置为采集所述目标对象图像,以及按照所述处理模块下发的所述对焦指令携带的所述对焦位置进行对焦,并在对焦后采集虹膜图像。The embodiment of this specification also provides an iris image acquisition device, including: a processing module and an image acquisition module; wherein the processing module is configured to calculate the object corresponding to the target object image based on the eye features in the target object image. Distance, and according to the corresponding relationship between the object distance interval and the focus position of the image acquisition module constructed in advance based on the iris image acquisition index, determine the focus position corresponding to the object distance interval to which the object distance belongs, and send it to the image acquisition module to carry There is a focus instruction for the focus position; the target object image is collected by the image acquisition module; the image acquisition module is configured to collect the target object image, and according to the focus issued by the processing module The focus position carried by the instruction is to focus, and an iris image is collected after focus.
可选的,所述物距区间与对焦位置对应关系,采用如下方式构建:根据所述虹膜图像采集指标对应的图像参数,将至少一个图像参数作为目标参数,根据所述虹膜图像采集指标确定所述目标参数对应的目标约束条件,并根据所述虹膜图像采集指标确定剩余的图像参数对应的固定约束条件;针对每个目标参数,在所述固定约束条件的约束下分别建立图像采集模块在各个对焦位置下物距与目标参数的关系曲线;基于所述关系曲线确定图像采集模块在每个对焦位置下满足所述目标约束条件的最小物距和最大物距, 并由所述最小物距和所述最大物距组成物距区间;通过构建所述物距区间与图像采集模块的对焦位置的对应关系,生成所述物距区间与对焦位置对应关系。Optionally, the corresponding relationship between the object distance interval and the focus position is constructed in the following manner: according to the image parameter corresponding to the iris image acquisition index, at least one image parameter is used as the target parameter, and the target parameter is determined according to the iris image acquisition index. The target constraint conditions corresponding to the target parameters, and the fixed constraint conditions corresponding to the remaining image parameters are determined according to the iris image acquisition index; for each target parameter, an image acquisition module is established under the constraints of the fixed constraint conditions. The relationship curve between the object distance and the target parameter at the focus position; based on the relationship curve, the minimum object distance and the maximum object distance that the image acquisition module meets the target constraint conditions at each focus position are determined, and the minimum object distance and The maximum object distance constitutes an object distance interval; the corresponding relationship between the object distance interval and the focus position is generated by constructing the correspondence relationship between the object distance interval and the focus position of the image acquisition module.
可选的,所述图像采集模块配置有深度传感子模块,其中,所述深度传感子模块通过采集深度数据计算所述目标对象图像对应的目标对象的眼部与所述图像采集模块之间的实际采集距离,并将计算获得的实际采集距离作为所述物距输出。Optionally, the image acquisition module is configured with a depth sensing sub-module, wherein the depth sensing sub-module calculates the difference between the eye of the target object corresponding to the target object image and the image acquisition module by collecting depth data The actual collection distance between the two, and the calculated actual collection distance is output as the object distance.
可选的,所述图像采集模块包括:对焦控制子模块、镜头组和感光组件;其中,所述对焦控制子模块用于接收所述处理模块下发的携带所述对焦位置的所述对焦指令,并按照所述对焦指令将所述镜头组调节至所述对焦位置。Optionally, the image acquisition module includes: a focus control sub-module, a lens group, and a photosensitive component; wherein the focus control sub-module is configured to receive the focus instruction carrying the focus position issued by the processing module , And adjust the lens group to the focus position according to the focus instruction.
本说明书实施例还提供一种对焦方法,包括:确定图像采集模块采集到的目标对象图像对应的物距;根据预先基于所述图像采集模块的图像采集参数构建的物距区间与对焦位置对应关系,确定所述物距所属的物距区间对应的对焦位置;按照所述对焦位置对所述图像采集模块进行对焦。The embodiment of the present specification also provides a focusing method, including: determining the object distance corresponding to the target object image collected by the image acquisition module; according to the corresponding relationship between the object distance interval and the focus position constructed based on the image acquisition parameters of the image acquisition module in advance , Determine the focus position corresponding to the object distance interval to which the object distance belongs; focus the image acquisition module according to the focus position.
可选的,所述物距区间与对焦位置对应关系,采用如下方式构建:将所述图像采集参数中的至少一个作为目标参数,并将剩余的图像采集参数确定为约束参数;针对每个目标参数,结合所述约束参数分别建立所述图像采集模块在各个对焦位置下物距与目标参数的关系曲线;基于所述关系曲线确定所述图像采集模块在每个对焦位置下满足所述目标参数对应的参数阈值的最小物距和最大物距,并由所述最小物距和所述最大物距组成物距区间;通过构建所述物距区间与所述图像采集模块的对焦位置的对应关系,生成所述物距区间与对焦位置对应关系。Optionally, the corresponding relationship between the object distance interval and the focus position is constructed in the following manner: at least one of the image acquisition parameters is used as a target parameter, and the remaining image acquisition parameters are determined as constraint parameters; Parameters, in combination with the constraint parameters, the relationship curve between the object distance and the target parameter at each focus position of the image acquisition module is established; based on the relationship curve, it is determined that the image acquisition module satisfies the target parameter at each focus position The minimum object distance and the maximum object distance of the corresponding parameter threshold, and the object distance interval is composed of the minimum object distance and the maximum object distance; by constructing the correspondence between the object distance interval and the focus position of the image acquisition module , Generating the corresponding relationship between the object distance interval and the focus position.
可选的,所述确定图像采集模块采集到的目标对象图像对应的物距步骤,通过调用所述图像采集模块配置的深度传感子模块实现,其中,所述深度传感子模块通过采集深度数据计算所述目标对象图像对应的目标对象与所述图像采集模块之间的实际采集距离,并将计算获得的实际采集距离作为所述物距输出。Optionally, the step of determining the object distance corresponding to the target object image collected by the image acquisition module is implemented by calling a depth sensing sub-module configured by the image acquisition module, wherein the depth sensing sub-module is The data calculates the actual collection distance between the target object corresponding to the target object image and the image collection module, and outputs the calculated actual collection distance as the object distance.
可选的,所述确定图像采集模块采集到的目标对象图像对应的物距步骤执行之后,且所述根据预先基于所述图像采集模块的图像采集参数构建的物距区间与对焦位置对应关系,确定所述物距所属的物距区间对应的对焦位置步骤执行之前,包括:在所述物距区间与对焦位置对应关系中查找是否存在所述物距所属的物距区间;若存在,执行根据预先基于所述图像采集模块的图像采集参数构建的物距区间与对焦位置对应关系,确定所述物距所属的物距区间对应的对焦位置步骤;若不存在,通过所述图像采集模块采 集目标对象图像,并返回执行所述确定图像采集模块采集到的目标对象图像对应的物距步骤。Optionally, after the step of determining the object distance corresponding to the target object image collected by the image acquisition module is performed, and the corresponding relationship between the object distance interval and the focus position constructed based on the image acquisition parameters of the image acquisition module in advance, Before the step of determining the focus position corresponding to the object distance interval to which the object distance belongs is executed, the step includes: searching for the object distance interval to which the object distance belongs in the corresponding relationship between the object distance interval and the focus position; The corresponding relationship between the object distance interval and the focus position constructed based on the image acquisition parameters of the image acquisition module in advance, and the step of determining the focus position corresponding to the object distance interval to which the object distance belongs; if it does not exist, collect the target through the image acquisition module Object image, and return to execute the step of determining the object distance corresponding to the target object image collected by the image collection module.
可选的,所述按照所述对焦位置对所述图像采集模块进行对焦,包括:向所述图像采集模块配置的对焦控制子模块下发对焦指令,由所述对焦控制子模块根据所述对焦指令中携带的所述对焦位置将所述图像采集模块配置的镜头组调节至所述对焦位置。Optionally, the focusing of the image acquisition module according to the focus position includes: issuing a focus instruction to a focus control sub-module configured by the image acquisition module, and the focus control sub-module is based on the focus The focus position carried in the instruction adjusts the lens group configured by the image acquisition module to the focus position.
本说明书实施例还提供一种对焦装置,包括:处理模块、图像采集模块;其中,所述处理模块,被配置为在所述确定所述图像采集模块采集到的目标对象图像对应的物距,并根据预先基于所述图像采集模块的图像采集参数构建的物距区间与对焦位置对应关系,确定所述物距所属的物距区间对应的对焦位置,并向所述图像采集模块下发携带有所述对焦位置的对焦指令;所述图像采集模块,被配置为采集所述目标对象图像,以及按照所述处理模块下发的所述对焦指令携带的所述对焦位置进行对焦。The embodiment of this specification also provides a focusing device, including: a processing module and an image acquisition module; wherein the processing module is configured to determine the object distance corresponding to the target object image collected by the image acquisition module, And according to the corresponding relationship between the object distance interval and the focus position constructed based on the image acquisition parameters of the image acquisition module in advance, the focus position corresponding to the object distance interval to which the object distance belongs is determined, and issued to the image acquisition module with The focus instruction of the focus position; the image acquisition module is configured to collect the target object image, and focus according to the focus position carried in the focus instruction issued by the processing module.
本说明书实施例还提供一种计算设备,包括:存储器和处理器;所述存储器用于存储计算机可执行指令,所述处理器用于执行所述计算机可执行指令:基于目标对象图像中的眼部特征计算所述目标对象图像对应的物距;所述目标对象图像由图像采集模块采集;根据预先基于虹膜图像采集指标构建的图像采集模块的物距区间与对焦位置对应关系,确定所述物距所属的物距区间对应的对焦位置;按照所述对焦位置对所述图像采集模块进行对焦,并通过对焦后的图像采集模块采集虹膜图像。The embodiments of this specification also provide a computing device, including: a memory and a processor; the memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions: based on the eye in the target object image The feature calculates the object distance corresponding to the target object image; the target object image is collected by the image acquisition module; the object distance is determined according to the corresponding relationship between the object distance interval and the focus position of the image acquisition module constructed based on the iris image acquisition index The focusing position corresponding to the object distance interval to which it belongs; focusing on the image acquisition module according to the focusing position, and acquiring an iris image through the focused image acquisition module.
本说明书实施例还提供一种计算设备,包括:存储器和处理器;所述存储器用于存储计算机可执行指令,所述处理器用于执行所述计算机可执行指令:确定图像采集模块采集到的目标对象图像对应的物距;根据预先基于所述图像采集模块的图像采集参数构建的物距区间与对焦位置对应关系,确定所述物距所属的物距区间对应的对焦位置;按照所述对焦位置对所述图像采集模块进行对焦。The embodiment of this specification also provides a computing device, including: a memory and a processor; the memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions: determine the target collected by the image acquisition module The object distance corresponding to the object image; determine the focus position corresponding to the object distance interval to which the object distance belongs according to the corresponding relationship between the object distance interval and the focus position constructed based on the image acquisition parameters of the image acquisition module in advance; according to the focus position Focusing on the image acquisition module.
本说明书实施例还提供一种计算机可读存储介质,其存储有计算机指令,该指令被处理器执行时实现所述虹膜图像采集方法的步骤。The embodiment of this specification also provides a computer-readable storage medium, which stores computer instructions, which implement the steps of the iris image acquisition method when the instructions are executed by a processor.
本说明书实施例还提供一种计算机可读存储介质,其存储有计算机指令,该指令被处理器执行时实现所述对焦方法的步骤。The embodiments of this specification also provide a computer-readable storage medium that stores computer instructions, which implement the steps of the focusing method when the instructions are executed by a processor.
本说明书一个实施例通过计算目标对象图像对应的目标对象与图像采集模块之间的物距来确定图像采集模块进行虹膜图像采集所属物距区间,并根据物距区间与对焦位置对应关系为图像采集模块匹配相适配的对焦位置,最终在按照对焦位置对图像采集模 块进行对焦调节后进行虹膜图像的采集,提升了图像采集模块在虹膜图像采集过程中的对焦效率,同时避免了图像采集模块为采集高质量的虹膜图像频繁进行对焦,从而延长了图像采集模块的使用寿命。An embodiment of this specification determines the object distance interval to which the image acquisition module performs iris image acquisition by calculating the object distance between the target object corresponding to the target object image and the image acquisition module, and collects the image according to the correspondence between the object distance interval and the focus position The module matches the adapted focus position, and finally collects the iris image after adjusting the focus of the image acquisition module according to the focus position, which improves the focusing efficiency of the image acquisition module in the iris image acquisition process, and at the same time avoids the problem of the image acquisition module. Acquire high-quality iris images for frequent focusing, thereby prolonging the service life of the image acquisition module.
本说明书另一实施例通过计算图像采集模块采集的目标对象图像对应的目标对象与图像采集模块之间的物距,并根据物距区间与对焦位置对应关系确定所述物距所属的物距区间为图像采集模块确定相适配的对焦位置,最终在按照对焦位置对图像采集模块进行对焦调节,提升了图像采集模块的对焦效率,同时避免了图像采集模块在对焦过程中频繁进行对焦调节,从而延长了图像采集模块的使用寿命。Another embodiment of this specification calculates the object distance between the target object corresponding to the target object image collected by the image acquisition module and the image acquisition module, and determines the object distance interval to which the object distance belongs according to the correspondence between the object distance interval and the focus position Determine the suitable focus position for the image acquisition module, and finally adjust the focus of the image acquisition module according to the focus position, which improves the focusing efficiency of the image acquisition module and avoids frequent focusing adjustments of the image acquisition module during the focusing process. Extend the service life of the image acquisition module.
附图说明Description of the drawings
图1是本说明书实施例提供的一种虹膜图像采集方法处理流程图;FIG. 1 is a processing flowchart of an iris image acquisition method provided by an embodiment of this specification;
图2是本说明书实施例提供的第一种用户眼部图像的调制度相对于物距的变化曲线图;FIG. 2 is a graph showing the variation curve of the modulation degree of the user's eye image relative to the object distance according to the first embodiment of this specification;
图3是本说明书实施例提供的第二种用户眼部图像的调制度相对于物距的变化曲线图;FIG. 3 is a graph showing the change of the modulation degree of the user's eye image relative to the object distance according to the embodiment of the present specification;
图4是本说明书实施例提供的一种虹膜图像采集装置的示意图;Fig. 4 is a schematic diagram of an iris image acquisition device provided by an embodiment of this specification;
图5是本说明书实施例提供的一种对焦方法处理流程图;FIG. 5 is a processing flowchart of a focusing method provided by an embodiment of this specification;
图6是本说明书实施例提供的一种对焦装置的示意图;FIG. 6 is a schematic diagram of a focusing device provided by an embodiment of this specification;
图7是本说明书实施例提供的一种计算设备的结构框图;FIG. 7 is a structural block diagram of a computing device provided by an embodiment of this specification;
图8是本说明书实施例提供的另一种计算设备的结构框图。Fig. 8 is a structural block diagram of another computing device provided by an embodiment of this specification.
具体实施方式Detailed ways
在下面的描述中阐述了很多具体细节以便于充分理解本说明书。但是本说明书能够以很多不同于在此描述的其它方式来实施,本领域技术人员可以在不违背本说明书内涵的情况下做类似推广,因此本说明书不受下面公开的具体实施的限制。In the following description, many specific details are explained in order to fully understand this specification. However, this specification can be implemented in many other ways different from those described here, and those skilled in the art can make similar extensions without departing from the connotation of this specification. Therefore, this specification is not limited by the specific implementation disclosed below.
在本说明书一个或多个实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本说明书一个或多个实施例。在本说明书一个或多个实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上 下文清楚地表示其他含义。还应当理解,本说明书一个或多个实施例中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。The terms used in one or more embodiments of this specification are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of this specification. The singular forms of "a", "said" and "the" used in one or more embodiments of this specification and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and/or" used in one or more embodiments of this specification refers to and includes any or all possible combinations of one or more associated listed items.
应当理解,尽管在本说明书一个或多个实施例中可能采用术语第一、第二等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本说明书一个或多个实施例范围的情况下,第一也可以被称为第二,类似地,第二也可以被称为第一。取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。It should be understood that although the terms first, second, etc. may be used to describe various information in one or more embodiments of this specification, the information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of this specification, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein can be interpreted as "when" or "when" or "in response to determination".
首先,对本发明一个或多个实施例涉及的名词术语进行解释。First, the terminology involved in one or more embodiments of the present invention will be explained.
虹膜:虹膜是位于人眼瞳孔(黑色)与巩膜(白色)之间的圆环状区域,在红外光下可以捕捉到丰富的纹理信息,属个体独特特征,可用于个体身份识别。Iris: The iris is a circular area between the pupil (black) and the sclera (white) of the human eye. It can capture rich texture information under infrared light. It is a unique feature of an individual and can be used for individual identification.
对焦(Focus):通过调整镜头组与感光元件之间的距离,改变成像焦点位置使物像恰好落在感光元件上,成清晰像的过程。Focus (Focus): by adjusting the distance between the lens group and the photosensitive element, changing the imaging focus position so that the object image falls on the photosensitive element, the process of forming a clear image.
空间分辨率(Spatial Resolution):用于表征相机系统的细节分辨能力,通常通过单位长度内包含可分辨的黑白线对数来表示(如,线对/毫米)。Spatial Resolution: It is used to characterize the detailed resolution capability of the camera system, usually expressed by the number of resolvable black and white line pairs per unit length (eg, line pairs/mm).
本说明书一个实施例提供一种虹膜图像采集方法,本说明书一个或者多个实施例还提供一种虹膜图像采集装置、一种对焦方法以及装置、两种计算设备以及两种计算机可读存储介质。以下分别结合本说明书提供的实施例的附图逐一进行详细说明,并且对方法的各个步骤进行说明。One embodiment of this specification provides an iris image acquisition method, and one or more embodiments of this specification also provide an iris image acquisition device, a focusing method and device, two computing devices, and two computer-readable storage media. The following is a detailed description one by one in conjunction with the accompanying drawings of the embodiments provided in this specification, and each step of the method is described.
本说明书提供的一种虹膜图像采集方法实施例如下。An example of an iris image acquisition method provided in this specification is as follows.
参照附图1,其示出了本说明书实施例提供的一种虹膜图像采集方法处理流程图,参照附图2,其示出了本说明书实施例提供的第一种用户眼部图像的调制度相对于物距的变化曲线图,参照附图3,其示出了本说明书实施例提供的第二种用户眼部图像的调制度相对于物距的变化曲线图。Referring to FIG. 1, it shows a processing flowchart of an iris image acquisition method provided by an embodiment of this specification, and referring to FIG. 2, which shows the modulation degree of the first eye image of a user provided by the embodiment of this specification. With respect to the variation curve of the object distance, refer to FIG. 3, which shows the variation curve of the modulation degree of the user's eye image with respect to the object distance according to the embodiment of the present specification.
步骤S102,基于目标对象图像中的眼部特征计算所述目标对象图像对应的物距。Step S102: Calculate the object distance corresponding to the target object image based on the eye features in the target object image.
实际应用中,虹膜识别的一个重要环节是如何快速、准确的采集虹膜图像,而在虹膜图像采集过程中,由于虹膜识别算法对虹膜图像质量要求较高,需要反复调节图像采集模块的像距以使图像采集模块采集的虹膜图像满足要求,据此进行的虹膜图像采集不仅效率较低,同时虹膜图像采集过程中反复对焦还会增加图像采集模块的损耗,降低 图像采集模块的使用寿命。In practical applications, an important part of iris recognition is how to collect iris images quickly and accurately. In the process of iris image collection, because the iris recognition algorithm requires high iris image quality, it is necessary to repeatedly adjust the image distance of the image collection module to The iris image collected by the image acquisition module meets the requirements. The iris image acquisition based on this is not only low in efficiency, but also repeated focusing during the iris image acquisition process will increase the loss of the image acquisition module and reduce the service life of the image acquisition module.
本实施例提供的一种虹膜图像采集方法,在虹膜图像采集之前将图像采集模块的像距划分为多个对焦段,并将图像采集模块进行虹膜图像采集的实际工作范围(有效采集虹膜图像的最近距离至最远距离之间的跨度范围)划分为多个工作区间,从而将图像采集模块进行虹膜图像采集的工作区间与对焦段对应起来,图像采集模块基于此进行虹膜图像采集过程中,在图像识别基础上计算出被采集的目标对象与图像采集模块的实际采集距离(物距),根据物距所属的工作区间,最终按照物距所属的工作区间对应的对焦段对图像采集模块进行对焦,并在对焦完成后进行虹膜图像采集,提升了图像采集模块在虹膜图像采集过程中的对焦效率,同时避免了图像采集模块为采集高质量的虹膜图像频繁进行对焦,从而延长了图像采集模块的使用寿命。In the iris image acquisition method provided in this embodiment, the image distance of the image acquisition module is divided into multiple focus segments before the iris image acquisition, and the actual working range of the image acquisition module for iris image acquisition (the effective acquisition of iris image The span from the shortest distance to the farthest distance) is divided into multiple working intervals, so that the working interval of the image acquisition module for iris image acquisition is corresponding to the focus segment. Based on this, the image acquisition module performs the iris image acquisition process. On the basis of image recognition, the actual acquisition distance (object distance) between the captured target object and the image acquisition module is calculated. According to the working interval to which the object distance belongs, the image acquisition module is finally focused according to the focus segment corresponding to the working interval to which the object distance belongs. , And perform iris image acquisition after the focus is completed, which improves the focusing efficiency of the image acquisition module in the iris image acquisition process, and at the same time avoids the image acquisition module from frequently focusing on the acquisition of high-quality iris images, thereby extending the image acquisition module’s Service life.
本实施例所述图像采集模块,是指配置有镜头组和感光组件用于进行图像采集的图像采集组件,并且镜头组与感光组件之间的距离(像距)能够根据实际虹膜图像采集需求进行对焦调节。比如,配置于线下门店的支付终端中的图像采集组件,或者配置于手机等移动终端的图像采集组件,在支付过程中利用图像采集组件采集的虹膜图像进行身份识别。The image acquisition module described in this embodiment refers to an image acquisition component configured with a lens group and a photosensitive component for image acquisition, and the distance (image distance) between the lens group and the photosensitive component can be performed according to actual iris image acquisition requirements Focus adjustment. For example, an image collection component configured in a payment terminal in an offline store, or an image collection component configured in a mobile terminal such as a mobile phone, uses the iris image collected by the image collection component for identity recognition during the payment process.
具体实施时,首先通过图像采集模块采集目标对象(比如,线下门店进行支付过程中通过虹膜识别进行身份识别的支付用户)的目标对象图像;然后在采集的所述目标对象图像中进行眼部特征检测,在所述目标对象图像中检测到眼部特征的情况下,则基于检测到的所述眼部特征计算目标对象与图像采集相机之间的实际采集距离,即:图像采集模块在采集所述目标对象图像时的物距。In specific implementation, first collect the target object image of the target object (for example, the payment user who recognizes the identity through iris recognition during the payment process of the offline store) through the image acquisition module; and then perform the eye image in the collected target object image Feature detection. In the case that eye features are detected in the target object image, the actual collection distance between the target object and the image collection camera is calculated based on the detected eye features, that is, the image collection module is collecting The object distance when the target object is imaged.
为使所述目标对象图像对应的物距计算更加精准,本实施例提供的一种可选实施方式中,通过调用图像采集模块配置的深度传感子模块来计算,具体的,由所述深度传感子模块在图像采集模块采集所述目标对象图像时采集目标对象与图像采集模块之间的深度数据(比如通过3D结构光或ToF(Time of Flight)模组采集支付用户与图像采集组件之间的深度数据),采集到目标对象与图像采集模块之间的深度数据之后,根据采集到的深度数据计算所述目标对象图像对应的目标对象的眼部与图像采集模块之间的实际采集距离,并将计算获得的实际采集距离作为所述物距输出。In order to make the calculation of the object distance corresponding to the target object image more accurate, in an optional implementation manner provided in this embodiment, the calculation is performed by calling the depth sensing sub-module configured by the image acquisition module. Specifically, the depth The sensing sub-module collects the depth data between the target object and the image acquisition module when the image acquisition module collects the image of the target object (for example, through the 3D structured light or ToF (Time of Flight) module to collect the payment user and the image acquisition component). After the depth data between the target object and the image acquisition module is collected, the actual acquisition distance between the eye of the target object corresponding to the target object image and the image acquisition module is calculated according to the acquired depth data , And output the calculated actual collection distance as the object distance.
需要说明是,在所述目标对象图像中检测眼部特征的过程中,为了提升特征检测的效率和准确率,采用深度学习方法来进行眼部特征检测,具体是通过训练眼部特征检测模型,将所述目标对象图像输入训练好的眼部特征检测模型进行眼部特征检测,输出 检测到的眼部特征在所述目标对象图像中的位置信息,从而在眼部特征检测模型检测到的眼部特征的基础上进行更加准确的物距计算。It should be noted that in the process of detecting eye features in the target object image, in order to improve the efficiency and accuracy of feature detection, a deep learning method is used to perform eye feature detection, specifically by training an eye feature detection model, The target object image is input to the trained eye feature detection model for eye feature detection, and the position information of the detected eye feature in the target object image is output, so that the eye detected by the eye feature detection model More accurate object distance calculations are carried out on the basis of some features.
此外,在具体实施时,为了提升图像采集模块在虹膜图像采集过程中的采集流畅性,提升用户采集体验,本实施例提的一种可选实施方式中,在上述计算出所述目标对象图像对应的物距的基础上,在所述物距区间与对焦位置对应关系中查找是否存在所述物距所属的物距区间;In addition, in specific implementation, in order to improve the smoothness of the image acquisition module in the iris image acquisition process and enhance the user’s acquisition experience, in an optional implementation manner proposed in this embodiment, the target object image is calculated as described above. On the basis of the corresponding object distance, searching for whether there is an object distance interval to which the object distance belongs in the corresponding relationship between the object distance interval and the focus position;
若存在,执行下述步骤S104即可,根据预先基于虹膜图像采集指标构建的图像采集模块的物距区间与对焦位置对应关系,确定所述物距所属的物距区间对应的对焦位置;If it exists, perform the following step S104, and determine the focus position corresponding to the object distance interval to which the object distance belongs according to the corresponding relationship between the object distance interval and the focus position of the image acquisition module constructed based on the iris image acquisition index in advance;
若不存在,则表明无法通过所述物距区间与对焦位置对应关系确定图像采集模块的对焦位置,通过所述图像采集模块再次采集目标对象图像并进行眼部特征检测,并在采集的目标对象图像中检测到眼部特征的情况下返回执行上述步骤S102,以此完善图像采集模块的虹膜图像采集过程。If it does not exist, it means that the focus position of the image acquisition module cannot be determined by the corresponding relationship between the object distance interval and the focus position. The image acquisition module collects the target object image again and performs eye feature detection. When the eye feature is detected in the image, return to step S102 to complete the iris image acquisition process of the image acquisition module.
步骤S104,根据预先基于虹膜图像采集指标构建的图像采集模块的物距区间与对焦位置对应关系,确定所述物距所属的物距区间对应的对焦位置。Step S104: Determine the focus position corresponding to the object distance interval to which the object distance belongs according to the correspondence between the object distance interval and the focus position of the image acquisition module constructed in advance based on the iris image acquisition index.
本实施例中,采集虹膜图像的目的是为了基于虹膜图像进行身份识别,而实际应用中进行身份识别的过程中,对虹膜图像的图像指标有一定的要求,只有满足一定指标要求的虹膜图像才能够实现基于虹膜图像的身份识别。本实施例所述虹膜图像采集指标,是指基于虹膜图像进行身份识别时对虹膜图像的质量要求或者特征要求,比如,虹膜识别算法或者虹膜识别系统对输入的虹膜图像的要求为空间分辨率为2lp/mm时调制度(MTF,Modulation Transfer Function)不小于60%。In this embodiment, the purpose of collecting the iris image is to perform identity recognition based on the iris image, and in the process of identity recognition in actual applications, there are certain requirements for the image index of the iris image, and only the iris image that meets certain index requirements is required. Can realize the identity recognition based on iris image. The iris image collection index in this embodiment refers to the quality or feature requirements of the iris image when performing identity recognition based on the iris image. For example, the iris recognition algorithm or the iris recognition system requires the input iris image to have a spatial resolution of At 2lp/mm, the modulation degree (MTF, Modulation Transfer Function) is not less than 60%.
本实施例所述物距区间,是指图像采集模块进行虹膜图像采集的实际工作范围(即:有效采集虹膜图像的最近距离至最远距离之间的跨度范围)被划分后的距离区间。例如,线下门店内支付终端配置的图像采集组件有效采集用户的虹膜图像的最近距离为300mm,最远距离为750mm,则该图像采集组件的实际工作范围为300mm~750mm这一跨度范围,该跨度范围被划分为若干个子区间即为物距区间。The object distance interval in this embodiment refers to the actual working range of the image acquisition module for iris image acquisition (that is, the span range from the shortest distance to the farthest distance for effectively acquiring the iris image) divided into the distance interval. For example, the shortest distance of the image acquisition component configured in the payment terminal of the offline store to effectively collect the user's iris image is 300mm, and the farthest distance is 750mm, then the actual working range of the image acquisition component is 300mm~750mm. The span range is divided into several sub-intervals, which is the object distance interval.
本实施例中,图像采集模块中包括镜头组和感光组件,并且图像采集模块对焦过程中的像距调节通过调节镜头组的位置来实现,通过调节镜头组的位置来调节镜头组相对于感光组件的像距,从而通过图像采集模块的像距调节实现对焦。所述对焦位置,是指图像采集模块中镜头组所处的具体位置,镜头组处在不同的对焦位置,镜头组与感光 组件之间的距离也不同,图像采集模块的像距也不同。In this embodiment, the image capture module includes a lens group and a photosensitive component, and the image distance adjustment during the focusing process of the image capture module is realized by adjusting the position of the lens group, and the lens group relative to the photosensitive component is adjusted by adjusting the position of the lens group. In order to achieve focusing through the image distance adjustment of the image acquisition module. The focus position refers to the specific position of the lens group in the image acquisition module. The lens group is in different focus positions, the distance between the lens group and the photosensitive component is different, and the image distance of the image acquisition module is also different.
本实施例为提升图像采集模块在虹膜图像采集过程中的对焦效率,避免图像采集模块为采集高质量的虹膜图像频繁进行对焦调节,延长图像采集模块的使用寿命,采用“分档对焦”的方式对图像采集模块进行对焦,而“分档对焦”的实现则依赖于预先构建图像采集模块的物距与对焦段的对应关系,即:所述物距区间与对焦位置对应关系,本实施例提供的一种可选实施方式中,采用如下方式构建所述物距区间与对焦位置对应关系:In this embodiment, in order to improve the focusing efficiency of the image acquisition module in the iris image acquisition process, avoid the image acquisition module from frequently performing focusing adjustments for acquiring high-quality iris images, and prolong the service life of the image acquisition module, the method of "focusing in stages" is adopted. Focusing on the image acquisition module, and the realization of "stage focusing" depends on the pre-built correspondence between the object distance and the focusing section of the image acquisition module, that is, the correspondence between the object distance section and the focus position, which is provided in this embodiment In an optional implementation manner, the corresponding relationship between the object distance interval and the focus position is constructed in the following manner:
1)根据所述虹膜图像采集指标对应的图像参数,将至少一个图像参数作为目标参数,根据所述虹膜图像采集指标确定所述目标参数对应的目标约束条件,并根据所述虹膜图像采集指标确定剩余的图像参数对应的固定约束条件;1) According to the image parameter corresponding to the iris image acquisition index, at least one image parameter is used as a target parameter, and the target constraint condition corresponding to the target parameter is determined according to the iris image acquisition index, and determined according to the iris image acquisition index The fixed constraint conditions corresponding to the remaining image parameters;
2)针对每个目标参数,在所述固定约束条件的约束下分别建立图像采集模块在各个对焦位置下物距与目标参数的关系曲线;2) For each target parameter, the relationship curve between the object distance and the target parameter at each focus position of the image acquisition module is established under the constraints of the fixed constraint conditions;
3)基于所述关系曲线确定图像采集模块在每个对焦位置下满足所述目标约束条件的最小物距和最大物距,并由所述最小物距和所述最大物距组成物距区间;3) Determine, based on the relationship curve, the minimum object distance and the maximum object distance that the image acquisition module satisfies the target constraint condition at each focus position, and an object distance interval is composed of the minimum object distance and the maximum object distance;
4)通过构建所述物距区间与图像采集模块的对焦位置的对应关系,生成所述物距区间与对焦位置对应关系。4) By constructing the corresponding relationship between the object distance interval and the focus position of the image acquisition module, the corresponding relationship between the object distance interval and the focus position is generated.
例如,针对线下门店内支付终端配置的图像采集组件,预先在线下构建该图像采集组件的物距区间与对焦位置对应关系,构建好物距区间与对焦位置对应关系之后,将构建好的物距区间与对焦位置对应关系写入图像采集组件的存储空间进行存储,以便于后续利用图像采集组件进行虹膜图像采集时能够采用“分档对焦”方式进行对焦。For example, for the image acquisition component configured in the payment terminal in an offline store, the corresponding relationship between the object distance interval and the focus position of the image acquisition component is constructed offline in advance. After the corresponding relationship between the object distance interval and the focus position is constructed, the object distance will be constructed. The corresponding relationship between the interval and the focus position is written into the storage space of the image acquisition component for storage, so that the subsequent use of the image acquisition component for iris image acquisition can adopt a "stage focus" method for focusing.
其中,该图像采集组件的物距区间与对焦位置对应关系的构建包括下述a)~d)4步。Among them, the construction of the correspondence between the object distance interval and the focus position of the image acquisition component includes the following 4 steps a) to d).
a)该图像采集组件采集到的虹膜图像在通过虹膜识别算法进行身份识别时,对虹膜图像的要求为:空间分辨率为2lp/mm时调制度(MTF,Modulation Transfer Function)不小于60%,共涉及两种空间分辨率和调制度这两种图像参数,将其中的调制度作为目标参数,可见调制度对应的目标约束条件为调制度不小于60%,除调制度外剩余的图像参数为空间分辨率,则确定空间分辨率对应的固定约束条件为空间分辨率满足2lp/mm。a) When the iris image collected by the image acquisition component is identified by the iris recognition algorithm, the requirement for the iris image is: Modulation Transfer Function (MTF) is not less than 60% when the spatial resolution is 2lp/mm, There are two kinds of image parameters, namely, spatial resolution and modulation degree. The modulation degree is used as the target parameter. It can be seen that the target constraint condition corresponding to the modulation degree is that the modulation degree is not less than 60%. The remaining image parameters except for the modulation degree are Spatial resolution, the fixed constraint condition corresponding to the spatial resolution is determined to satisfy 2lp/mm.
b)在空间分辨率为2lp/mm时建立图像采集组件在各个对焦位置下物距与调制度的关系曲线。b) When the spatial resolution is 2lp/mm, the relationship curve between the object distance and the modulation degree of the image acquisition component at each focus position is established.
如附图2所示,横坐标表示物距(即用户的眼部与图像采集组件之间的实际采集距离),纵坐标表示调制度,当物距为350mm时图像采集组件的像距为v1时的成像效果最好,即:图像采集组件进行图像采集时采集的用户眼部图像恰好落在图像采集组件的感光元件上并且成像清晰,图中所示曲线为空间分辨率为2lp/mm(固定约束条件)时,图像采集组件的像距为v1时用户眼部图像的调制度相对于物距的变化曲线,如图所示,物距处于300~379mm范围时采集到的用户眼部图像的调制度大于60%(满足目标约束条件调制度不小于60%),满足虹膜识别算法对虹膜图像的要求。As shown in Figure 2, the abscissa represents the object distance (that is, the actual collection distance between the user’s eyes and the image capture component), and the ordinate represents the modulation degree. When the object distance is 350mm, the image distance of the image capture component is v1 The imaging effect is the best when the image acquisition component is performing image acquisition, that is, the user's eye image collected by the image acquisition component happens to fall on the photosensitive element of the image acquisition component and the image is clear. The curve shown in the figure is that the spatial resolution is 2lp/mm( When the fixed constraint condition), when the image distance of the image acquisition component is v1, the modulation curve of the user's eye image relative to the object distance, as shown in the figure, the user's eye image is collected when the object distance is in the range of 300~379mm The modulation degree is greater than 60% (the modulation degree is not less than 60% to meet the target constraint condition), which meets the iris image requirements of the iris recognition algorithm.
与之相类似,物距为450mm时图像采集组件的像距为v2时的成像效果最好,物距为550mm时图像采集组件的像距为v3时的成像效果最好,物距为650mm时图像采集组件的像距为v4时的成像效果最好,物距为750mm时图像采集组件的像距为v5时的成像效果最好,即:图像采集组件进行图像采集时采集的用户眼部图像恰好落在图像采集组件的感光元件上并且成像清晰,与上述附图2所示的空间分辨率为2lp/mm时图像采集组件的像距为v1时用户眼部图像的调制度相对于物距的变化曲线类似,分别建立空间分辨率为2lp/mm时采集组件的像距为v2、v3、v4和v5时采集到的用户眼部图像的调制度相对于物距的变化曲线;Similarly, when the object distance is 450mm, when the image distance of the image acquisition component is v2, the imaging effect is the best. When the object distance is 550mm, the image acquisition component has the best imaging effect when the image distance is v3. When the object distance is 650mm The imaging effect is best when the image distance of the image acquisition component is v4, and when the object distance is 750mm, the imaging effect is the best when the image distance of the image acquisition component is v5, that is: the user's eye image collected by the image acquisition component during image acquisition It happens to fall on the photosensitive element of the image acquisition component and the image is clear, which is the same as that shown in Figure 2 when the spatial resolution is 2lp/mm. When the image distance of the image acquisition component is v1, the modulation degree of the user's eye image is relative to the object distance. The change curve is similar to the change curve of the user’s eye image modulation relative to the object distance when the image distance of the acquisition component is v2, v3, v4, and v5 when the spatial resolution is 2lp/mm;
如附图3所示,在空间分辨率为2lp/mm时,301为图像采集组件的像距为v1时用户眼部图像的调制度相对于物距的变化曲线,302为图像采集组件的像距为v2时用户眼部图像的调制度相对于物距的变化曲线,303为图像采集组件的像距为v3时用户眼部图像的调制度相对于物距的变化曲线,304为图像采集组件的像距为v4时用户眼部图像的调制度相对于物距的变化曲线,305为图像采集组件的像距为v5时用户眼部图像的调制度相对于物距的变化曲线。As shown in Figure 3, when the spatial resolution is 2lp/mm, 301 is the variation curve of the modulation degree of the user's eye image with respect to the object distance when the image distance of the image acquisition component is v1, and 302 is the image of the image acquisition component The change curve of the modulation degree of the user's eye image relative to the object distance when the distance is v2, 303 is the change curve of the modulation degree of the user's eye image relative to the object distance when the image distance of the image acquisition component is v3, and 304 is the image acquisition component The change curve of the modulation degree of the user's eye image with respect to the object distance when the image distance of is v4, and 305 is the change curve of the modulation degree of the user's eye image with respect to the object distance when the image collection component's image distance is v5.
c)基于关系曲线(301至305)确定图像采集组件在每个对焦位置下调制度大于60%(满足目标约束条件调制度不小于60%)的最小物距和最大物距,并由最小物距和最大物距组成物距区间。c) Based on the relationship curve (301 to 305), determine the minimum object distance and the maximum object distance with the modulation degree greater than 60% at each focus position of the image acquisition component (the modulation degree is not less than 60% to meet the target constraint condition), and determine the minimum object distance And the maximum object distance constitute the object distance interval.
具体的,对于图像采集组件的像距为v1时用户眼部图像的调制度相对于物距的变化曲线301,调制度大于60%的最小物距和最大物距组成物距区间为300mm~379mm。Specifically, for the variation curve 301 of the modulation degree of the user's eye image with respect to the object distance when the image distance of the image acquisition component is v1, the minimum object distance and the maximum object distance for which the modulation degree is greater than 60%, the object distance interval is 300mm~379mm .
对于图像采集组件的像距为v2时用户眼部图像的调制度相对于物距的变化曲线302,调制度大于60%的最小物距和最大物距组成物距区间为380mm~479mm。For the variation curve 302 of the modulation degree of the user's eye image with respect to the object distance when the image distance of the image acquisition component is v2, the minimum object distance and the maximum object distance for which the modulation degree is greater than 60% constitute the object distance interval of 380mm-479mm.
对于图像采集组件的像距为v3时用户眼部图像的调制度相对于物距的变化曲线 303,调制度大于60%的最小物距和最大物距组成物距区间为480mm~579mm。For the variation curve 303 of the modulation degree of the user's eye image relative to the object distance when the image distance of the image acquisition component is v3, the minimum object distance and the maximum object distance composed of the object distance interval of 480mm-579mm where the modulation degree is greater than 60%.
对于图像采集组件的像距为v4时用户眼部图像的调制度相对于物距的变化曲线304,调制度大于60%的最小物距和最大物距组成物距区间为580mm~679mm。For the variation curve 304 of the modulation degree of the user's eye image with respect to the object distance when the image distance of the image acquisition component is v4, the minimum object distance and the maximum object distance composition where the modulation degree is greater than 60% are 580mm-679mm.
对于图像采集组件的像距为v5时用户眼部图像的调制度相对于物距的变化曲线305,调制度大于60%的最小物距和最大物距组成物距区间为680mm~750mm。For the variation curve 305 of the modulation degree of the user's eye image with respect to the object distance when the image distance of the image acquisition component is v5, the minimum object distance and the maximum object distance constitute the object distance interval of 680mm-750mm when the modulation degree is greater than 60%.
d)生成图像采集组件的物距区间与对焦位置对应关系,具体如下表:d) Generate the corresponding relationship between the object distance interval and the focus position of the image acquisition component, as shown in the following table:
物距区间/mmObject distance interval/mm 像距Image distance 对焦位置Focus position
300mm~379mm300mm~379mm v1v1 L1L1
380mm~479mm380mm~479mm v2v2 L2L2
480mm~579mm480mm~579mm v3v3 L3L3
580mm~679mm580mm~679mm v4v4 L4L4
680mm~750mm680mm~750mm v5v5 L5L5
其中,L1为图像采集组件的像距为v1时镜头组所处的位置,即300mm~379mm这一物距区间对应的对焦位置。Among them, L1 is the position of the lens group when the image distance of the image acquisition component is v1, that is, the focus position corresponding to the object distance interval of 300mm to 379mm.
L2为图像采集组件的像距为v2时镜头组所处的位置,即380mm~479mm这一物距区间对应的对焦位置。L2 is the position of the lens group when the image distance of the image acquisition component is v2, that is, the focus position corresponding to the object distance interval of 380mm to 479mm.
L3为图像采集组件的像距为v3时镜头组所处的位置,即480mm~579mm这一物距区间对应的对焦位置。L3 is the position of the lens group when the image distance of the image acquisition component is v3, that is, the focus position corresponding to the object distance interval of 480mm to 579mm.
L4为图像采集组件的像距为v4时镜头组所处的位置,即580mm~679mm这一物距区间对应的对焦位置。L4 is the position of the lens group when the image distance of the image acquisition component is v4, that is, the focus position corresponding to the object distance interval of 580mm to 679mm.
L5为图像采集组件的像距为v5时镜头组所处的位置,即680mm~750mm这一物距区间对应的对焦位置。L5 is the position of the lens group when the image distance of the image acquisition component is v5, that is, the focus position corresponding to the object distance interval of 680mm to 750mm.
由此可见,通过将图像采集组件进行虹膜图像采集时的物距划分为5个物距区间,并将这5个物距区间分别与图像采集组件的相应对焦位置对应起来,此后,图像采集组件基于此进行虹膜图像采集时,根据采集时的实际采集距离确定所属的物距区间,然后将图像采集组件的镜头组调节至所属的物距区间对应的对焦位置,能够快速的将图像采集组件的像距调节为与实际采集距离相适配,一方面避免了对焦过程中反复调节对焦位置以找到与实际采集距离相适配的对焦位置,另一方面还避免了图像采集组件在一次对 焦调节过程中调节幅度过大,从而延长了图像采集组件的使用寿命,降低了因频繁对焦调节导致的设备维护。It can be seen that by dividing the object distance during iris image acquisition by the image acquisition component into 5 object distance intervals, and these 5 object distance intervals are respectively corresponding to the corresponding focus positions of the image acquisition component, and then, the image acquisition component When collecting iris images based on this, determine the object distance interval according to the actual collection distance at the time of collection, and then adjust the lens group of the image acquisition component to the focus position corresponding to the object distance interval. The image distance is adjusted to match the actual acquisition distance. On the one hand, it avoids repeatedly adjusting the focus position during the focusing process to find a focus position that matches the actual acquisition distance. On the other hand, it also avoids the image acquisition component in a focus adjustment process. The medium adjustment range is too large, thereby prolonging the service life of the image acquisition component and reducing equipment maintenance caused by frequent focus adjustment.
需要说明的是,上述以空间分辨率和调制度为例,对物距区间与对焦位置对应关系的构建过程进行说明,除此之外,还可以结合多个不同空间分辨率和调制度(如空间分辨率为3lp/mm时调制度不低于50%,或者空间分辨率为4lp/mm时调制度不低于35%)以及基于空间分辨率和调制度之外的一个或者多个其他图像参数(比如,解析度)构建图像采集模块的物距区间与对焦位置对应关系,或者结合空间分辨率和/或调制度与其他一个或者多个图像参数构建图像采集模块的物距区间与对焦位置对应关系,本实施例对此不做限定,具体构建过程与上述提供的基于空间分辨率和调制度的物距区间与对焦位置对应关系构建过程类似,在此不再一一赘述。It should be noted that, taking the spatial resolution and modulation degree as an example, the construction process of the correspondence between the object distance interval and the focus position is described. In addition, multiple different spatial resolutions and modulation degrees (such as When the spatial resolution is 3lp/mm, the modulation degree is not less than 50%, or when the spatial resolution is 4lp/mm, the modulation degree is not less than 35%) and one or more other images based on the spatial resolution and modulation degree. Parameters (for example, resolution) construct the correspondence between the object distance interval and the focus position of the image acquisition module, or combine the spatial resolution and/or modulation with one or more other image parameters to construct the object distance interval and focus position of the image acquisition module The corresponding relationship is not limited in this embodiment. The specific construction process is similar to the construction process of the correspondence relationship between the object distance interval and the focus position based on the spatial resolution and modulation degree provided above, and will not be repeated here.
具体实施时,在上述步骤S102计算出所述目标对象图像对应的物距的基础上,确定所述物距在所述物距区间与对焦位置对应关系中所属的物距区间,并进一步在所述物距区间与对焦位置对应关系中确定所述物距所属的物距区间对应的对焦位置。During specific implementation, on the basis of calculating the object distance corresponding to the target object image in the above step S102, determine the object distance interval to which the object distance belongs in the corresponding relationship between the object distance interval and the focus position, and further determine the object distance In the correspondence between the object distance interval and the focus position, the focus position corresponding to the object distance interval to which the object distance belongs is determined.
沿用上例,若计算出图像采集组件采集的用户眼部图像对应的物距为500mm,由上表可知,用户眼部图像对应的物距所处的物距区间为480mm至579mm这一物距区间,该物距区间对应的图像采集组件中镜头组的对焦位置为L3。Following the above example, if the object distance corresponding to the user's eye image collected by the image acquisition component is calculated to be 500mm, the above table shows that the object distance corresponding to the user's eye image is in the object distance range of 480mm to 579mm. In the interval, the focus position of the lens group in the image acquisition component corresponding to the object distance interval is L3.
步骤S106,按照所述对焦位置对所述图像采集模块进行对焦,并通过对焦后的图像采集模块采集虹膜图像。Step S106: Focus the image acquisition module according to the focus position, and acquire an iris image through the focused image acquisition module.
本实施例提供的一种可选实施方式中,按照所述对焦位置对所述图像采集模块进行对焦,具体采用如下方式实现:向所述图像采集模块配置的对焦控制子模块下发对焦指令,由所述对焦控制子模块根据所述对焦指令中携带的所述对焦位置将所述图像采集模块配置的镜头组调节至所述对焦位置。In an optional implementation manner provided by this embodiment, focusing the image acquisition module according to the focus position is specifically implemented in the following manner: issuing a focus instruction to the focus control sub-module configured by the image acquisition module, The focus control sub-module adjusts the lens group configured by the image acquisition module to the focus position according to the focus position carried in the focus instruction.
在此基础上,通过将图像采集模块中的镜头组的位置调节至所述物距对应的对焦位置实现对焦之后,利用对焦之后的图像采集模块采集目标对象的虹膜图像,后续在应用中根据采集的所述虹膜图像进行身份识别。On this basis, after the focus is achieved by adjusting the position of the lens group in the image acquisition module to the focus position corresponding to the object distance, the iris image of the target object is acquired by the image acquisition module after focusing, and then in the application according to the acquisition Of the iris image for identification.
沿用上例,若计算出图像采集组件采集的用户眼部图像对应的物距为500mm,并基于物距区间与对焦位置对应关系表确定这一物距所属的物距区间480mm~579mm对应的对焦位置为L3,则向图像采集组件下发对焦指令,对焦指令中包含有对焦位置L3,下发之后,由图像采集组件中配置的对焦马达(比如音圈马达,Voice Coil Motor)将镜 头组调节至对焦位置L3,此后在对焦位置L3对应的像距下对支付用户进行虹膜图像采集。Following the above example, if the object distance corresponding to the user's eye image collected by the image capture component is calculated to be 500mm, and based on the object distance interval and the focus position correspondence table, the focus corresponding to the object distance interval 480mm ~ 579mm to which this object distance belongs is determined When the position is L3, the focus instruction is issued to the image acquisition component, and the focus instruction includes the focus position L3. After it is issued, the focus motor (such as voice coil motor, Voice Coil Motor) configured in the image acquisition component will adjust the lens group To the focus position L3, the iris image of the paying user is collected at the image distance corresponding to the focus position L3 thereafter.
综上所述,所述虹膜图像采集方法,在图像采集模块采集的目标对象图像中检测到眼部特征的情况下,通过计算目标对象图像对应的目标对象与图像采集模块之间的物距来确定图像采集模块进行虹膜图像采集所属物距区间,并根据物距区间与对焦位置对应关系为图像采集模块匹配相适配的对焦位置,最终在按照对焦位置对图像采集模块进行对焦调节后进行虹膜图像的采集,提升了图像采集模块在虹膜图像采集过程中的对焦效率,同时避免了图像采集模块为采集高质量的虹膜图像频繁进行对焦,从而延长了图像采集模块的使用寿命。In summary, in the iris image acquisition method, when eye features are detected in the target object image collected by the image acquisition module, the object distance between the target object corresponding to the target object image and the image acquisition module is calculated. Determine the object distance interval of the image acquisition module for iris image acquisition, and according to the corresponding relationship between the object distance interval and the focus position, match the image acquisition module with a suitable focus position, and finally perform focus adjustment on the image acquisition module according to the focus position. The image acquisition improves the focusing efficiency of the image acquisition module in the iris image acquisition process, and at the same time prevents the image acquisition module from frequently focusing for acquiring high-quality iris images, thereby prolonging the service life of the image acquisition module.
本说明书提供的一种虹膜图像采集装置实施例如下:在上述的实施例中,提供了一种虹膜图像采集方法,与之相对应的,还提供了一种虹膜图像采集装置,下面结合附图进行说明。The embodiment of an iris image acquisition device provided in this specification is as follows: In the above-mentioned embodiment, an iris image acquisition method is provided. Correspondingly, an iris image acquisition device is also provided. The following is combined with the drawings Be explained.
参照附图4,其示出了本实施例提供的一种虹膜图像采集装置的示意图。Referring to FIG. 4, it shows a schematic diagram of an iris image acquisition device provided by this embodiment.
由于装置实施例对应于方法实施例,所以描述得比较简单,相关的部分请参见上述提供的方法实施例的对应说明即可。下述描述的装置实施例仅仅是示意性的。Since the device embodiment corresponds to the method embodiment, the description is relatively simple. For related parts, please refer to the corresponding description of the method embodiment provided above. The device embodiments described below are merely illustrative.
本说明书提供一种虹膜图像采集装置,包括:处理模块410、图像采集模块420;其中,所述处理模块410,被配置为基于目标对象图像中的眼部特征计算所述目标对象图像对应的物距,并根据预先基于虹膜图像采集指标构建的图像采集模块的物距区间与对焦位置对应关系,确定所述物距所属的物距区间对应的对焦位置,并向所述图像采集模块420下发携带有所述对焦位置的对焦指令;所述目标对象图像由所述图像采集模块420采集;所述图像采集模块420,被配置为采集所述目标对象图像,以及按照所述处理模块410下发的所述对焦指令携带的所述对焦位置进行对焦,并在对焦后采集虹膜图像。This specification provides an iris image acquisition device, including: a processing module 410, an image acquisition module 420; wherein the processing module 410 is configured to calculate the object corresponding to the target object image based on the eye features in the target object image. According to the corresponding relationship between the object distance interval and the focus position of the image acquisition module constructed in advance based on the iris image acquisition index, determine the focus position corresponding to the object distance interval to which the object distance belongs, and send it to the image acquisition module 420 Carrying the focus instruction of the focus position; the target object image is collected by the image acquisition module 420; the image acquisition module 420 is configured to collect the target object image and issue it according to the processing module 410 Focusing is performed at the focus position carried by the focus instruction, and an iris image is collected after focusing.
可选的,所述物距区间与对焦位置对应关系,采用如下方式构建:根据所述虹膜图像采集指标对应的图像参数,将至少一个图像参数作为目标参数,根据所述虹膜图像采集指标确定所述目标参数对应的目标约束条件,并根据所述虹膜图像采集指标确定剩余的图像参数对应的固定约束条件;针对每个目标参数,在所述固定约束条件的约束下分别建立图像采集模块在各个对焦位置下物距与目标参数的关系曲线;基于所述关系曲线确定图像采集模块在每个对焦位置下满足所述目标约束条件的最小物距和最大物距, 并由所述最小物距和所述最大物距组成物距区间;通过构建所述物距区间与图像采集模块的对焦位置的对应关系,生成所述物距区间与对焦位置对应关系。Optionally, the corresponding relationship between the object distance interval and the focus position is constructed in the following manner: according to the image parameter corresponding to the iris image acquisition index, at least one image parameter is used as the target parameter, and the target parameter is determined according to the iris image acquisition index. The target constraint conditions corresponding to the target parameters, and the fixed constraint conditions corresponding to the remaining image parameters are determined according to the iris image acquisition index; for each target parameter, an image acquisition module is established under the constraints of the fixed constraint conditions. The relationship curve between the object distance and the target parameter at the focus position; based on the relationship curve, the minimum object distance and the maximum object distance that the image acquisition module meets the target constraint conditions at each focus position are determined, and the minimum object distance and The maximum object distance constitutes an object distance interval; the corresponding relationship between the object distance interval and the focus position is generated by constructing the correspondence relationship between the object distance interval and the focus position of the image acquisition module.
可选的,所述图像采集模块420配置有深度传感子模块421,其中,所述深度传感子模块通过采集深度数据计算所述目标对象图像对应的目标对象的眼部与所述图像采集模块420之间的实际采集距离,并将计算获得的实际采集距离作为所述物距输出。Optionally, the image acquisition module 420 is configured with a depth sensing sub-module 421, wherein the depth sensing sub-module calculates the relationship between the eye of the target object corresponding to the target object image and the image acquisition by collecting depth data. The actual collection distance between the modules 420, and the calculated actual collection distance is output as the object distance.
可选的,所述图像采集模块420包括:对焦控制子模块422、镜头组423和感光组件424;其中,所述对焦控制子模块422用于接收所述处理模块410下发的携带所述对焦位置的所述对焦指令,并按照所述对焦指令将所述镜头组423调节至所述对焦位置。Optionally, the image acquisition module 420 includes: a focus control sub-module 422, a lens group 423, and a photosensitive component 424; wherein the focus control sub-module 422 is configured to receive the focus control module 410 issued by the processing module 410 to carry the focus. Position the focus instruction, and adjust the lens group 423 to the focus position according to the focus instruction.
本说明书提供的一种对焦方法实施例如下:参照附图5,其示出了本说明书实施例提供的一种对焦方法处理流程图,所述对焦方法包括步骤S502至步骤S506。An embodiment of a focusing method provided in this specification is as follows: referring to FIG. 5, which shows a processing flowchart of a focusing method provided in an embodiment of this specification, the focusing method includes step S502 to step S506.
步骤S502,确定图像采集模块采集到的目标对象图像对应的物距。Step S502: Determine the object distance corresponding to the target object image collected by the image collection module.
本实施例提供的一种对焦方法,将图像采集模块的像距划分为多个对焦段,并将图像采集模块进行图像采集的实际工作范围(即:有效采集图像的最近距离至最远距离之间的跨度范围)划分为多个工作区间,从而将图像采集模块进行图像采集的工作区间与对焦段对应起来,在对焦过程中,通过计算被采集的目标对象与图像采集模块的实际采集距离(物距),根据物距所属的工作区间,最终按照物距所属的工作区间对应的对焦段对图像采集模块进行对焦调节,提升了图像采集模块的对焦效率,同时避免了图像采集模块在对焦过程中频繁进行对焦调节,从而延长了图像采集模块的使用寿命。In the focusing method provided by this embodiment, the image distance of the image acquisition module is divided into multiple focusing segments, and the actual working range of the image acquisition module for image acquisition (that is, the range between the closest distance to the farthest distance for effectively acquiring an image) The span range between the image acquisition module) is divided into multiple working intervals, so that the working interval of the image acquisition module for image acquisition is corresponding to the focusing section. During the focusing process, the actual acquisition distance between the captured target object and the image acquisition module is calculated ( Object distance), according to the working interval to which the object distance belongs, and finally adjust the focus of the image acquisition module according to the focus segment corresponding to the working interval to which the object distance belongs, which improves the focusing efficiency of the image acquisition module and avoids the focusing process of the image acquisition module at the same time. The focus adjustment is frequently performed in the middle, thereby prolonging the service life of the image acquisition module.
本实施例所述图像采集模块,是指配置有镜头组和感光组件用于进行图像采集的图像采集组件,并且镜头组与感光组件之间的距离(像距)能够根据进行对焦调节。比如,配置于手机等移动终端内的图像采集组件。The image acquisition module in this embodiment refers to an image acquisition component configured with a lens group and a photosensitive component for image acquisition, and the distance (image distance) between the lens group and the photosensitive component can be adjusted according to the focus. For example, an image acquisition component configured in a mobile terminal such as a mobile phone.
具体实施时,首先通过图像采集模块采集目标对象(比如,手持移动终端的用户)的目标对象图像;然后计算目标对象与图像采集相机之间的实际采集距离,即:图像采集模块在采集所述目标对象图像时的物距。In the specific implementation, the image acquisition module first collects the target object image of the target object (for example, a user holding a mobile terminal); and then calculates the actual acquisition distance between the target object and the image acquisition camera, that is, the image acquisition module is collecting the The object distance when the target object is imaged.
为使所述目标对象图像对应的物距计算更加精准,本实施例提供的一种可选实施方式中,通过调用图像采集模块配置的深度传感子模块来计算,具体的,由所述深度传感子模块在图像采集模块采集所述目标对象图像时采集目标对象与图像采集模块之间的深度数据(比如通过3D结构光或ToF(Time of Flight)模组采集用户与图像采集组件之间的深度数据),采集到目标对象与图像采集模块之间的深度数据之后,根据采集 到的深度数据计算所述目标对象图像对应的目标对象与图像采集模块之间的实际采集距离,并将计算获得的实际采集距离作为所述物距输出。In order to make the calculation of the object distance corresponding to the target object image more accurate, in an optional implementation manner provided in this embodiment, the calculation is performed by calling the depth sensing sub-module configured by the image acquisition module. Specifically, the depth The sensing sub-module collects the depth data between the target object and the image acquisition module when the image acquisition module collects the image of the target object (for example, through 3D structured light or ToF (Time of Flight) module to collect between the user and the image acquisition component After the depth data between the target object and the image acquisition module is collected, the actual acquisition distance between the target object corresponding to the target object image and the image acquisition module is calculated according to the acquired depth data, and the actual acquisition distance is calculated The obtained actual collection distance is output as the object distance.
此外,在具体实施时,为了提升对焦过程的流畅性,提升用户在对焦过程中的体验,本实施例提的一种可选实施方式中,在上述计算出所述目标对象图像对应的物距之后,在所述物距区间与对焦位置对应关系中查找是否存在所述物距所属的物距区间;若存在,执行下述步骤S504即可,根据预先基于所述图像采集模块的图像采集参数构建的物距区间与对焦位置对应关系,确定所述物距所属的物距区间对应的对焦位置;若不存在,则表明无法通过所述物距区间与对焦位置对应关系确定相应的对焦位置,通过所述图像采集模块采集目标对象图像,并返回执行上述步骤S502。In addition, in specific implementation, in order to improve the fluency of the focusing process and enhance the user's experience in the focusing process, in an optional implementation manner proposed in this embodiment, the object distance corresponding to the target object image is calculated as described above. After that, search for the object distance interval to which the object distance belongs in the corresponding relationship between the object distance interval and the focus position; if so, perform the following step S504, according to the image acquisition parameters based on the image acquisition module in advance The constructed correspondence between the object distance interval and the focus position determines the focus position corresponding to the object distance interval to which the object distance belongs; The image of the target object is collected by the image collection module, and the execution of the above step S502 is returned.
步骤S504,根据预先基于所述图像采集模块的图像采集参数构建的物距区间与对焦位置对应关系,确定所述物距所属的物距区间对应的对焦位置。Step S504: Determine the focus position corresponding to the object distance interval to which the object distance belongs based on the correspondence between the object distance interval and the focus position constructed based on the image acquisition parameters of the image acquisition module in advance.
实际应用中,图像采集模块都有一定的性能指标,这些性能指标最终会反应在图像采集模块采集到的图像中。本实施例所述图像采集参数,是指图像采集模块所采集图像的图像质量参数或者图像特征参数,比如移动终端内配置的图像采集组件采集到的图像在空间分辨率为x1lp/mm时调制度(MTF,Modulation Transfer Function)为x2%。In practical applications, the image acquisition module has certain performance indicators, and these performance indicators will eventually be reflected in the images collected by the image acquisition module. The image acquisition parameters in this embodiment refer to the image quality parameters or image characteristic parameters of the images collected by the image acquisition module, for example, the modulation degree of the image acquired by the image acquisition component configured in the mobile terminal when the spatial resolution is x1lp/mm (MTF, Modulation Transfer Function) is x2%.
本实施例所述物距区间,是指图像采集模块进行图像采集的实际工作范围(有效采集图像的最近距离至最远距离之间的跨度范围)被划分后的距离区间。例如,线下门店内支付终端配置的图像采集组件有效采集用户图像的最近距离为D1,最远距离为D2,则该图像采集组件的实际工作范围为D1~D2这一跨度范围,该跨度范围被划分后的若干个子区间即为物距区间。The object distance interval in this embodiment refers to the distance interval after the actual working range of the image acquisition module for image acquisition (the span range from the shortest distance to the farthest distance for effectively acquiring an image) is divided. For example, if the shortest distance for the image capture component of the payment terminal configured in an offline store to effectively capture user images is D1, and the farthest distance is D2, then the actual working range of the image capture component is the span of D1~D2. The divided sub-intervals are the object distance intervals.
本实施例中,图像采集模块中包括镜头组和感光组件,并且图像采集模块对焦过程中的像距调节通过调节镜头组的位置来实现,通过调节镜头组的位置来调节镜头组相对于感光组件的像距,从而通过图像采集模块的像距调节实现对焦。所述对焦位置,是指图像采集模块中镜头组所处的具体位置,镜头组处在不同的对焦位置,镜头组与感光组件之间的距离也不同,图像采集模块的像距也不同。In this embodiment, the image capture module includes a lens group and a photosensitive component, and the image distance adjustment during the focusing process of the image capture module is realized by adjusting the position of the lens group, and the lens group relative to the photosensitive component is adjusted by adjusting the position of the lens group. In order to achieve focusing through the image distance adjustment of the image acquisition module. The focus position refers to the specific position of the lens group in the image acquisition module. The lens group is in different focus positions, the distance between the lens group and the photosensitive component is also different, and the image distance of the image acquisition module is also different.
本实施例为了提升图像采集模块的对焦效率,避免图像采集模块为频繁进行对焦调节,延长图像采集模块的使用寿命,采用“分档对焦”的方式对图像采集模块进行对焦,而“分档对焦”的实现则依赖于预先构建图像采集模块的物距与对焦段的对应关系,即:所述物距区间与对焦位置对应关系,本实施例提供的一种可选实施方式中,采用如 下方式构建所述物距区间与对焦位置对应关系:将所述图像采集参数中的至少一个作为目标参数,并将剩余的图像采集参数确定为约束参数;针对每个目标参数,结合所述约束参数分别建立所述图像采集模块在各个对焦位置下物距与目标参数的关系曲线;基于所述关系曲线确定所述图像采集模块在每个对焦位置下满足所述目标参数对应的参数阈值的最小物距和最大物距,并由所述最小物距和所述最大物距组成物距区间;通过构建所述物距区间与所述图像采集模块的对焦位置的对应关系,生成所述物距区间与对焦位置对应关系。In this embodiment, in order to improve the focusing efficiency of the image acquisition module, avoid frequent focusing adjustments of the image acquisition module, and prolong the service life of the image acquisition module, the image acquisition module is focused by the method of “stage focusing”, and the “stage focusing” method is adopted to focus the image acquisition module. "The realization of "relies on the pre-built corresponding relationship between the object distance and the focus segment of the image acquisition module, that is, the corresponding relationship between the object distance interval and the focus position. In an optional implementation manner provided in this embodiment, the following method is adopted Construct the correspondence between the object distance interval and the focus position: use at least one of the image acquisition parameters as a target parameter, and determine the remaining image acquisition parameters as a constraint parameter; for each target parameter, combine the constraint parameters respectively Establish a relationship curve between the object distance and the target parameter of the image acquisition module at each focus position; determine the minimum object distance that the image acquisition module meets the parameter threshold corresponding to the target parameter at each focus position based on the relationship curve And the maximum object distance, and the object distance interval is composed of the minimum object distance and the maximum object distance; by constructing the corresponding relationship between the object distance interval and the focus position of the image acquisition module, the object distance interval and Correspondence between focus positions.
由此可见,通过将图像采集模块的物距划分为多个物距区间,并将这5个物距区间分别与图像采集模块的相应对焦位置对应起来,此后,图像采集模块在此基础上进行对焦调节时,能够根据采集时的实际采集距离确定物距区间,然后将图像采集模块的镜头组调节至确定的物距区间对应的对焦位置,能够快速的将图像采集模块的像距调节为与实际采集距离相适配,一方面避免了对焦过程中反复调节对焦位置以找到与实际采集距离相适配的对焦位置,另一方面还避免了图像采集模块在一次对焦调节过程中的调节幅度较大的情况,从而延长了图像采集模块的使用寿命,降低了因频繁对焦导致的设备维护。It can be seen that by dividing the object distance of the image acquisition module into a plurality of object distance intervals, and corresponding these 5 object distance intervals with the corresponding focus positions of the image acquisition module, the image acquisition module will then proceed on this basis. During focus adjustment, the object distance interval can be determined according to the actual acquisition distance at the time of acquisition, and then the lens group of the image acquisition module can be adjusted to the focus position corresponding to the determined object distance interval, and the image distance of the image acquisition module can be quickly adjusted to the same The actual acquisition distance is adapted. On the one hand, it avoids repeatedly adjusting the focus position during the focusing process to find a focus position that matches the actual acquisition distance. On the other hand, it also avoids the adjustment range of the image acquisition module during a focus adjustment process. In large cases, the service life of the image acquisition module is prolonged, and equipment maintenance caused by frequent focusing is reduced.
具体实施时,在上述步骤S502计算出所述目标对象图像对应的物距的基础上,确定所述物距在所述物距区间与对焦位置对应关系中所属的物距区间,并进一步在所述物距区间与对焦位置对应关系中确定所述物距所属的物距区间对应的对焦位置。During specific implementation, on the basis of calculating the object distance corresponding to the target object image in the above step S502, determine the object distance interval to which the object distance belongs in the corresponding relationship between the object distance interval and the focus position, and further determine the object distance interval to which the object distance belongs in the corresponding relationship between the object distance interval and the focus position. In the correspondence between the object distance interval and the focus position, the focus position corresponding to the object distance interval to which the object distance belongs is determined.
步骤S506,按照所述对焦位置对所述图像采集模块进行对焦。Step S506: Focus the image acquisition module according to the focus position.
本实施例提供的一种可选实施方式中,按照所述对焦位置对所述图像采集模块进行对焦,具体采用如下方式实现:向所述图像采集模块配置的对焦控制子模块下发对焦指令,由所述对焦控制子模块根据所述对焦指令中携带的所述对焦位置将所述图像采集模块配置的镜头组调节至所述对焦位置,从而使镜头组处于所述对焦位置时其成像焦点恰好落在感光组件上。In an optional implementation manner provided by this embodiment, focusing the image acquisition module according to the focus position is specifically implemented in the following manner: issuing a focus instruction to the focus control sub-module configured by the image acquisition module, The focus control sub-module adjusts the lens group configured by the image acquisition module to the focus position according to the focus position carried in the focus instruction, so that the imaging focus of the lens group is exactly at the focus position when the lens group is in the focus position Falling on the photosensitive component.
综上所述,所述对焦方法,通过计算图像采集模块采集的目标对象图像对应的目标对象与图像采集模块之间的物距,并根据物距区间与对焦位置对应关系确定所述物距所属的物距区间为图像采集模块确定相适配的对焦位置,最终在按照对焦位置对图像采集模块进行对焦调节,提升了图像采集模块的对焦效率,同时避免了图像采集模块在对焦过程中频繁进行对焦调节,从而延长了图像采集模块的使用寿命。In summary, the focusing method calculates the object distance between the target object corresponding to the target object image collected by the image acquisition module and the image acquisition module, and determines the object distance to which the object distance belongs according to the correspondence between the object distance interval and the focus position The object distance interval is for the image acquisition module to determine the suitable focus position, and finally adjust the focus of the image acquisition module according to the focus position, which improves the focusing efficiency of the image acquisition module and avoids the frequent operation of the image acquisition module during the focusing process. Focus adjustment, thereby extending the service life of the image acquisition module.
本说明书提供的一种对焦装置实施例如下:在上述的实施例中,提供了一种对焦方法,与之相对应的,还提供了一种对焦装置,下面结合附图进行说明。The embodiment of a focusing device provided in this specification is as follows: In the above-mentioned embodiment, a focusing method is provided, and correspondingly, a focusing device is also provided, which will be described below with reference to the accompanying drawings.
参照附图6,其示出了本实施例提供的一种对焦装置的示意图。Referring to FIG. 6, it shows a schematic diagram of a focusing device provided by this embodiment.
由于装置实施例对应于方法实施例,所以描述得比较简单,相关的部分请参见上述提供的方法实施例的对应说明即可。下述描述的装置实施例仅仅是示意性的。Since the device embodiment corresponds to the method embodiment, the description is relatively simple. For related parts, please refer to the corresponding description of the method embodiment provided above. The device embodiments described below are merely illustrative.
本说明书提供一种对焦装置,包括:处理模块610、图像采集模块620;其中,所述处理模块610,被配置为在所述确定所述图像采集模块620采集到的目标对象图像对应的物距,并根据预先基于所述图像采集模块620的图像采集参数构建的物距区间与对焦位置对应关系,确定所述物距所属的物距区间对应的对焦位置,并向所述图像采集模块620下发携带有所述对焦位置的对焦指令;所述图像采集模块620,被配置为采集所述目标对象图像,以及按照所述处理模块610下发的所述对焦指令携带的所述对焦位置进行对焦。This specification provides a focusing device, including: a processing module 610 and an image acquisition module 620; wherein the processing module 610 is configured to determine the object distance corresponding to the target object image collected by the image acquisition module 620. , And according to the corresponding relationship between the object distance interval and the focus position constructed based on the image acquisition parameters of the image acquisition module 620 in advance, the focus position corresponding to the object distance interval to which the object distance belongs is determined, and downloads to the image acquisition module 620 Send a focus instruction carrying the focus position; the image acquisition module 620 is configured to collect the target object image, and focus according to the focus position carried in the focus instruction issued by the processing module 610 .
可选的,所述物距区间与对焦位置对应关系,采用如下方式构建:将所述图像采集参数中的至少一个作为目标参数,并将剩余的图像采集参数确定为约束参数;针对每个目标参数,结合所述约束参数分别建立所述图像采集模块620在各个对焦位置下物距与目标参数的关系曲线;基于所述关系曲线确定所述图像采集模块620在每个对焦位置下满足所述目标参数对应的参数阈值的最小物距和最大物距,并由所述最小物距和所述最大物距组成物距区间;通过构建所述物距区间与所述图像采集模块620的对焦位置的对应关系,生成所述物距区间与对焦位置对应关系。Optionally, the corresponding relationship between the object distance interval and the focus position is constructed in the following manner: at least one of the image acquisition parameters is used as a target parameter, and the remaining image acquisition parameters are determined as constraint parameters; Parameters, combining the constraint parameters to establish the relationship curve between the object distance and the target parameter of the image acquisition module 620 at each focus position; based on the relationship curve, it is determined that the image acquisition module 620 satisfies the The minimum object distance and the maximum object distance of the parameter threshold corresponding to the target parameter, and the object distance interval is composed of the minimum object distance and the maximum object distance; by constructing the object distance interval and the focus position of the image acquisition module 620 The corresponding relationship between the object distance interval and the focus position is generated.
可选的,所述确定图像采集模块采集到的目标对象图像对应的物距,通过调用所述图像采集模块620配置的深度传感子模块621实现,其中,所述深度传感子模块621通过采集深度数据计算所述目标对象图像对应的目标对象与所述图像采集模块620之间的实际采集距离,并将计算获得的实际采集距离作为所述物距输出。Optionally, the determining the object distance corresponding to the target object image collected by the image acquisition module is implemented by calling the depth sensing sub-module 621 configured by the image acquisition module 620, wherein the depth sensing sub-module 621 passes Collecting depth data calculates the actual collection distance between the target object corresponding to the target object image and the image collection module 620, and outputs the calculated actual collection distance as the object distance.
可选的,所述图像采集模块620包括:对焦控制子模块622、镜头组623和感光组件624;其中,所述对焦控制子模块622用于接收所述处理模块610下发的对焦指令,根据所述对焦指令中携带的所述对焦位置将所述图像采集模块620配置的镜头组623调节至所述对焦位置。Optionally, the image acquisition module 620 includes: a focus control sub-module 622, a lens group 623, and a photosensitive component 624; wherein, the focus control sub-module 622 is configured to receive a focus instruction issued by the processing module 610, according to The focus position carried in the focus instruction adjusts the lens group 623 configured by the image acquisition module 620 to the focus position.
本说明书提供的一种计算设备实施例如下:图7是示出了根据本说明书一个实施例提供的计算设备700的结构框图。该计算设备700的部件包括但不限于存储器710和 处理器720。处理器720与存储器710通过总线730相连接,数据库750用于保存数据。An embodiment of a computing device provided in this specification is as follows: FIG. 7 is a structural block diagram of a computing device 700 provided according to an embodiment of this specification. The components of the computing device 700 include, but are not limited to, a memory 710 and a processor 720. The processor 720 and the memory 710 are connected through a bus 730, and the database 750 is used to store data.
计算设备700还包括接入设备740,接入设备740使得计算设备700能够经由一个或多个网络760通信。这些网络的示例包括公用交换电话网(PSTN)、局域网(LAN)、广域网(WAN)、个域网(PAN)或诸如因特网的通信网络的组合。接入设备740可以包括有线或无线的任何类型的网络接口(例如,网络接口卡(NIC))中的一个或多个,诸如IEEE802.11无线局域网(WLAN)无线接口、全球微波互联接入(Wi-MAX)接口、以太网接口、通用串行总线(USB)接口、蜂窝网络接口、蓝牙接口、近场通信(NFC)接口,等等。The computing device 700 also includes an access device 740 that enables the computing device 700 to communicate via one or more networks 760. Examples of these networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 740 may include one or more of any type of wired or wireless network interface (for example, a network interface card (NIC)), such as IEEE802.11 wireless local area network (WLAN) wireless interface, global interconnection for microwave access ( Wi-MAX) interface, Ethernet interface, universal serial bus (USB) interface, cellular network interface, Bluetooth interface, near field communication (NFC) interface, etc.
在本说明书的一个实施例中,计算设备700的上述部件以及图7中未示出的其他部件也可以彼此相连接,例如通过总线。应当理解,图7所示的计算设备结构框图仅仅是出于示例的目的,而不是对本说明书范围的限制。本领域技术人员可以根据需要,增添或替换其他部件。In an embodiment of this specification, the aforementioned components of the computing device 700 and other components not shown in FIG. 7 may also be connected to each other, for example, via a bus. It should be understood that the structural block diagram of the computing device shown in FIG. 7 is only for the purpose of example, and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.
计算设备700可以是任何类型的静止或移动计算设备,包括移动计算机或移动计算设备(例如,平板计算机、个人数字助理、膝上型计算机、笔记本计算机、上网本等)、移动电话(例如,智能手机)、可佩戴的计算设备(例如,智能手表、智能眼镜等)或其他类型的移动设备,或者诸如台式计算机或PC的静止计算设备。计算设备700还可以是移动式或静止式的服务器。The computing device 700 can be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (for example, a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook, etc.), a mobile phone (for example, a smart phone). ), wearable computing devices (for example, smart watches, smart glasses, etc.) or other types of mobile devices, or stationary computing devices such as desktop computers or PCs. The computing device 700 may also be a mobile or stationary server.
本说明书提供一种计算设备,包括存储器710、处理器720及存储在存储器上并可在处理器上运行的计算机指令,所述处理器720用于执行如下计算机可执行指令:基于目标对象图像中的眼部特征计算所述目标对象图像对应的物距;所述目标对象图像由图像采集模块采集;根据预先基于虹膜图像采集指标构建的图像采集模块的物距区间与对焦位置对应关系,确定所述物距所属的物距区间对应的对焦位置;按照所述对焦位置对所述图像采集模块进行对焦,并通过对焦后的图像采集模块采集虹膜图像。This specification provides a computing device that includes a memory 710, a processor 720, and computer instructions that are stored in the memory and can run on the processor. The processor 720 is configured to execute the following computer-executable instructions: Calculate the object distance corresponding to the target object image based on the eye feature; The target object image is collected by the image acquisition module; According to the corresponding relationship between the object distance interval and the focus position of the image acquisition module constructed in advance based on the iris image acquisition index, the object distance is determined The focus position corresponding to the object distance interval to which the object distance belongs; the image acquisition module is focused according to the focus position, and an iris image is acquired through the focused image acquisition module.
本说明书提供的另一种计算设备实施例如下。An example of another computing device provided in this specification is as follows.
图8是示出了根据本说明书一个实施例提供的计算设备800的结构框图。该计算设备800的部件包括但不限于存储器810和处理器820。处理器820与存储器810通过总线830相连接,数据库850用于保存数据。FIG. 8 is a structural block diagram of a computing device 800 provided according to an embodiment of the present specification. The components of the computing device 800 include, but are not limited to, a memory 810 and a processor 820. The processor 820 and the memory 810 are connected through a bus 830, and the database 850 is used to store data.
计算设备800还包括接入设备840,接入设备840使得计算设备800能够经由一个或多个网络860通信。这些网络的示例包括公用交换电话网(PSTN)、局域网(LAN)、 广域网(WAN)、个域网(PAN)或诸如因特网的通信网络的组合。接入设备840可以包括有线或无线的任何类型的网络接口(例如,网络接口卡(NIC))中的一个或多个,诸如IEEE802.11无线局域网(WLAN)无线接口、全球微波互联接入(Wi-MAX)接口、以太网接口、通用串行总线(USB)接口、蜂窝网络接口、蓝牙接口、近场通信(NFC)接口,等等。The computing device 800 also includes an access device 840 that enables the computing device 800 to communicate via one or more networks 860. Examples of these networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 840 may include one or more of any type of wired or wireless network interface (for example, a network interface card (NIC)), such as IEEE802.11 wireless local area network (WLAN) wireless interface, global interconnection for microwave access ( Wi-MAX) interface, Ethernet interface, universal serial bus (USB) interface, cellular network interface, Bluetooth interface, near field communication (NFC) interface, etc.
在本说明书的一个实施例中,计算设备800的上述部件以及图8中未示出的其他部件也可以彼此相连接,例如通过总线。应当理解,图8所示的计算设备结构框图仅仅是出于示例的目的,而不是对本说明书范围的限制。本领域技术人员可以根据需要,增添或替换其他部件。In an embodiment of this specification, the aforementioned components of the computing device 800 and other components not shown in FIG. 8 may also be connected to each other, for example, via a bus. It should be understood that the structural block diagram of the computing device shown in FIG. 8 is only for the purpose of example, and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.
计算设备800可以是任何类型的静止或移动计算设备,包括移动计算机或移动计算设备(例如,平板计算机、个人数字助理、膝上型计算机、笔记本计算机、上网本等)、移动电话(例如,智能手机)、可佩戴的计算设备(例如,智能手表、智能眼镜等)或其他类型的移动设备,或者诸如台式计算机或PC的静止计算设备。计算设备800还可以是移动式或静止式的服务器。The computing device 800 can be any type of stationary or mobile computing device, including mobile computers or mobile computing devices (for example, tablet computers, personal digital assistants, laptop computers, notebook computers, netbooks, etc.), mobile phones (for example, smart phones). ), wearable computing devices (for example, smart watches, smart glasses, etc.) or other types of mobile devices, or stationary computing devices such as desktop computers or PCs. The computing device 800 may also be a mobile or stationary server.
本说明书提供一种计算设备,包括存储器810、处理器820及存储在存储器上并可在处理器上运行的计算机指令,所述处理器820用于执行如下计算机可执行指令:确定图像采集模块采集到的目标对象图像对应的物距;根据预先基于所述图像采集模块的图像采集参数构建的物距区间与对焦位置对应关系,确定所述物距所属的物距区间对应的对焦位置;按照所述对焦位置对所述图像采集模块进行对焦。This specification provides a computing device that includes a memory 810, a processor 820, and computer instructions that are stored in the memory and can run on the processor. The processor 820 is used to execute the following computer-executable instructions: determine that the image acquisition module collects The object distance corresponding to the obtained target object image; according to the corresponding relationship between the object distance interval and the focus position constructed based on the image acquisition parameters of the image acquisition module in advance, determine the focus position corresponding to the object distance interval to which the object distance belongs; The focus position focuses on the image acquisition module.
本说明书提供的一种计算机可读存储介质实施例如下:本说明书一个实施例提供一种计算机可读存储介质,其存储有计算机指令,该指令被处理器执行时实现所述虹膜图像采集方法的步骤。An example of a computer-readable storage medium provided in this specification is as follows: an embodiment of this specification provides a computer-readable storage medium that stores computer instructions that, when executed by a processor, implement the iris image acquisition method step.
上述为本实施例的一种计算机可读存储介质的示意性方案。需要说明的是,该存储介质的技术方案与上述的虹膜图像采集方法的技术方案属于同一构思,存储介质的技术方案未详细描述的细节内容,均可以参见上述虹膜图像采集方法的技术方案的描述。The foregoing is a schematic solution of a computer-readable storage medium of this embodiment. It should be noted that the technical solution of the storage medium belongs to the same concept as the technical solution of the above-mentioned iris image acquisition method. For details that are not described in detail in the technical solution of the storage medium, please refer to the description of the technical solution of the above-mentioned iris image acquisition method. .
本说明书提供的另一种计算机可读存储介质实施例如下:本说明书一个实施例提供一种计算机可读存储介质,其存储有计算机指令,该指令被处理器执行时实现所述对焦方法的步骤。An example of another computer-readable storage medium provided in this specification is as follows: an embodiment of this specification provides a computer-readable storage medium that stores computer instructions that implement the steps of the focusing method when the instructions are executed by a processor .
上述为本实施例的一种计算机可读存储介质的示意性方案。需要说明的是,该存储介质的技术方案与上述的对焦方法的技术方案属于同一构思,存储介质的技术方案未 详细描述的细节内容,均可以参见上述对焦方法的技术方案的描述。The foregoing is a schematic solution of a computer-readable storage medium of this embodiment. It should be noted that the technical solution of the storage medium belongs to the same concept as the technical solution of the above-mentioned focusing method. For details of the technical solution of the storage medium that are not described in detail, please refer to the description of the technical solution of the above-mentioned focusing method.
上述对本说明书特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可以的或者可能是有利的。The foregoing describes specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps described in the claims can be performed in a different order than in the embodiments and still achieve desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or sequential order shown in order to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
所述计算机指令包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,所述计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括电载波信号和电信信号。The computer instructions include computer program codes, and the computer program codes may be in the form of source code, object code, executable files, or some intermediate forms. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory) , Random Access Memory (RAM, Random Access Memory), electrical carrier signal, telecommunications signal, and software distribution media, etc. It should be noted that the content contained in the computer-readable medium can be appropriately added or deleted according to the requirements of the legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to the legislation and patent practice, the computer-readable medium Does not include electrical carrier signals and telecommunication signals.
需要说明的是,对于前述的各方法实施例,为了简便描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本说明书实施例并不受所描述的动作顺序的限制,因为依据本说明书实施例,某些步骤可以采用其它顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定都是本说明书实施例所必须的。It should be noted that for the foregoing method embodiments, for simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should know that the embodiments of this specification are not subject to the described sequence of actions. Limitation, because according to the embodiments of this specification, some steps can be performed in other order or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the involved actions and modules are not necessarily all required by the embodiments of the specification.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其它实施例的相关描述。In the above-mentioned embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in an embodiment, reference may be made to related descriptions of other embodiments.
以上公开的本说明书优选实施例只是用于帮助阐述本说明书。可选实施例并没有详尽叙述所有的细节,也不限制该发明仅为所述的具体实施方式。显然,根据本说明书实施例的内容,可作很多的修改和变化。本说明书选取并具体描述这些实施例,是为了更好地解释本说明书实施例的原理和实际应用,从而使所属技术领域技术人员能很好地理解和利用本说明书。本说明书仅受权利要求书及其全部范围和等效物的限制。The preferred embodiments of this specification disclosed above are only used to help explain this specification. The optional embodiments do not describe all the details in detail, nor do they limit the invention to only the specific implementations described. Obviously, many modifications and changes can be made according to the content of the embodiments of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the embodiments of this specification, so that those skilled in the art can understand and use this specification well. This description is only limited by the claims and their full scope and equivalents.

Claims (19)

  1. 一种虹膜图像采集方法,包括:An iris image acquisition method, including:
    基于目标对象图像中的眼部特征计算所述目标对象图像对应的物距;所述目标对象图像由图像采集模块采集;Calculating the object distance corresponding to the target object image based on the eye features in the target object image; the target object image is collected by the image acquisition module;
    根据预先基于虹膜图像采集指标构建的图像采集模块的物距区间与对焦位置对应关系,确定所述物距所属的物距区间对应的对焦位置;Determining the focus position corresponding to the object distance interval to which the object distance belongs according to the correspondence between the object distance interval and the focus position of the image acquisition module constructed in advance based on the iris image acquisition index;
    按照所述对焦位置对所述图像采集模块进行对焦,并通过对焦后的图像采集模块采集虹膜图像。The image acquisition module is focused according to the focus position, and an iris image is acquired through the focused image acquisition module.
  2. 根据权利要求1所述的虹膜图像采集方法,所述物距区间与对焦位置对应关系,采用如下方式构建:The iris image acquisition method according to claim 1, wherein the corresponding relationship between the object distance interval and the focus position is constructed in the following manner:
    根据所述虹膜图像采集指标对应的图像参数,将至少一个图像参数作为目标参数,根据所述虹膜图像采集指标确定所述目标参数对应的目标约束条件,并根据所述虹膜图像采集指标确定剩余的图像参数对应的固定约束条件;According to the image parameter corresponding to the iris image acquisition index, at least one image parameter is used as a target parameter, the target constraint condition corresponding to the target parameter is determined according to the iris image acquisition index, and the remaining ones are determined according to the iris image acquisition index. The fixed constraint conditions corresponding to the image parameters;
    针对每个目标参数,在所述固定约束条件的约束下分别建立图像采集模块在各个对焦位置下物距与目标参数的关系曲线;For each target parameter, the relationship curve between the object distance and the target parameter at each focus position of the image acquisition module is established under the constraints of the fixed constraint conditions;
    基于所述关系曲线确定图像采集模块在每个对焦位置下满足所述目标约束条件的最小物距和最大物距,并由所述最小物距和所述最大物距组成物距区间;Determine, based on the relationship curve, a minimum object distance and a maximum object distance that the image acquisition module meets the target constraint condition at each focus position, and an object distance interval is composed of the minimum object distance and the maximum object distance;
    通过构建所述物距区间与图像采集模块的对焦位置的对应关系,生成所述物距区间与对焦位置对应关系。By constructing the correspondence between the object distance interval and the focus position of the image acquisition module, the correspondence relationship between the object distance interval and the focus position is generated.
  3. 根据权利要求1所述的虹膜图像采集方法,所述基于所述眼部特征计算所述目标对象图像对应的物距,通过调用所述图像采集模块配置的深度传感子模块实现,其中,所述深度传感子模块通过采集深度数据计算所述目标对象图像对应的目标对象的眼部与所述图像采集模块之间的实际采集距离,并将计算获得的实际采集距离作为所述物距输出。The iris image acquisition method according to claim 1, wherein the calculation of the object distance corresponding to the target object image based on the eye features is implemented by calling a depth sensing sub-module configured by the image acquisition module, wherein The depth sensing sub-module calculates the actual collection distance between the eye of the target object corresponding to the target object image and the image collection module by collecting depth data, and outputs the calculated actual collection distance as the object distance .
  4. 根据权利要求1所述的虹膜图像采集方法,所述在图像采集模块采集的目标对象图像中检测到眼部特征的情况下,基于所述眼部特征计算所述目标对象图像对应的物距步骤执行之后,且所述根据预先基于虹膜图像采集指标构建的图像采集模块的物距区间与对焦位置对应关系,确定所述物距所属的物距区间对应的对焦位置步骤执行之前,包括:The iris image acquisition method according to claim 1, wherein the step of calculating the object distance corresponding to the target object image based on the eye characteristics in the case that eye features are detected in the target object image collected by the image acquisition module After execution, and according to the corresponding relationship between the object distance interval and the focus position of the image acquisition module constructed based on the iris image acquisition index in advance, the step of determining the focus position corresponding to the object distance interval to which the object distance belongs before execution includes:
    在所述物距区间与对焦位置对应关系中查找是否存在所述物距所属的物距区间;Searching whether there is an object distance interval to which the object distance belongs in the correspondence between the object distance interval and the focus position;
    若存在,执行所述根据预先基于虹膜图像采集指标构建的图像采集模块的物距区间 与对焦位置对应关系,确定所述物距所属的物距区间对应的对焦位置步骤;If it exists, execute the step of determining the focus position corresponding to the object distance interval to which the object distance belongs according to the corresponding relationship between the object distance interval and the focus position of the image acquisition module constructed in advance based on the iris image acquisition index;
    若不存在,通过所述图像采集模块采集目标对象图像并进行眼部特征检测。If it does not exist, an image of the target object is collected through the image acquisition module and eye feature detection is performed.
  5. 根据权利要求1所述的虹膜图像采集方法,所述按照所述对焦位置对所述图像采集模块进行对焦,包括:The iris image acquisition method according to claim 1, wherein the focusing the image acquisition module according to the focusing position comprises:
    向所述图像采集模块配置的对焦控制子模块下发对焦指令,由所述对焦控制子模块根据所述对焦指令中携带的所述对焦位置将所述图像采集模块配置的镜头组调节至所述对焦位置。A focus instruction is issued to the focus control sub-module configured by the image acquisition module, and the focus control sub-module adjusts the lens group configured by the image acquisition module to the focus position according to the focus position carried in the focus instruction. Focus position.
  6. 一种虹膜图像采集装置,包括:An iris image acquisition device, including:
    处理模块、图像采集模块;Processing module, image acquisition module;
    其中,所述处理模块,被配置为基于目标对象图像中的眼部特征计算所述目标对象图像对应的物距,并根据预先基于虹膜图像采集指标构建的图像采集模块的物距区间与对焦位置对应关系,确定所述物距所属的物距区间对应的对焦位置,并向所述图像采集模块下发携带有所述对焦位置的对焦指令;所述目标对象图像由所述图像采集模块采集;Wherein, the processing module is configured to calculate the object distance corresponding to the target object image based on the eye features in the target object image, and according to the object distance interval and the focus position of the image acquisition module constructed in advance based on the iris image acquisition index Correspondence, determining the focus position corresponding to the object distance interval to which the object distance belongs, and issuing a focus instruction carrying the focus position to the image acquisition module; the target object image is acquired by the image acquisition module;
    所述图像采集模块,被配置为采集所述目标对象图像,以及按照所述处理模块下发的所述对焦指令携带的所述对焦位置进行对焦,并在对焦后采集虹膜图像。The image acquisition module is configured to acquire the target object image, perform focusing according to the focusing position carried in the focusing instruction issued by the processing module, and acquire an iris image after focusing.
  7. 根据权利要求6所述的虹膜图像采集装置,所述物距区间与对焦位置对应关系,采用如下方式构建:The iris image acquisition device according to claim 6, wherein the corresponding relationship between the object distance interval and the focus position is constructed in the following manner:
    根据所述虹膜图像采集指标对应的图像参数,将至少一个图像参数作为目标参数,根据所述虹膜图像采集指标确定所述目标参数对应的目标约束条件,并根据所述虹膜图像采集指标确定剩余的图像参数对应的固定约束条件;According to the image parameter corresponding to the iris image acquisition index, at least one image parameter is used as a target parameter, the target constraint condition corresponding to the target parameter is determined according to the iris image acquisition index, and the remaining ones are determined according to the iris image acquisition index. The fixed constraint conditions corresponding to the image parameters;
    针对每个目标参数,在所述固定约束条件的约束下分别建立图像采集模块在各个对焦位置下物距与目标参数的关系曲线;For each target parameter, the relationship curve between the object distance and the target parameter at each focus position of the image acquisition module is established under the constraints of the fixed constraint conditions;
    基于所述关系曲线确定图像采集模块在每个对焦位置下满足所述目标约束条件的最小物距和最大物距,并由所述最小物距和所述最大物距组成物距区间;Determine, based on the relationship curve, a minimum object distance and a maximum object distance that the image acquisition module meets the target constraint condition at each focus position, and an object distance interval is composed of the minimum object distance and the maximum object distance;
    通过构建所述物距区间与图像采集模块的对焦位置的对应关系,生成所述物距区间与对焦位置对应关系。By constructing the correspondence between the object distance interval and the focus position of the image acquisition module, the correspondence relationship between the object distance interval and the focus position is generated.
  8. 根据权利要求6所述的虹膜图像采集装置,所述图像采集模块配置有深度传感子模块,其中,所述深度传感子模块通过采集深度数据计算所述目标对象图像对应的目标对象的眼部与所述图像采集模块之间的实际采集距离,并将计算获得的实际采集距离作为所述物距输出。The iris image acquisition device according to claim 6, wherein the image acquisition module is configured with a depth sensing sub-module, wherein the depth sensing sub-module calculates the eye of the target object corresponding to the target object image by collecting depth data The actual acquisition distance between the image acquisition module and the image acquisition module, and the calculated actual acquisition distance is output as the object distance.
  9. 根据权利要求6所述的虹膜图像采集装置,所述图像采集模块包括:对焦控制 子模块、镜头组和感光组件;The iris image acquisition device according to claim 6, wherein the image acquisition module comprises: a focus control sub-module, a lens group and a photosensitive component;
    其中,所述对焦控制子模块用于接收所述处理模块下发的携带所述对焦位置的所述对焦指令,并按照所述对焦指令将所述镜头组调节至所述对焦位置。Wherein, the focus control sub-module is configured to receive the focus instruction carrying the focus position issued by the processing module, and adjust the lens group to the focus position according to the focus instruction.
  10. 一种对焦方法,包括:A focusing method includes:
    确定图像采集模块采集到的目标对象图像对应的物距;Determine the object distance corresponding to the target object image collected by the image collection module;
    根据预先基于所述图像采集模块的图像采集参数构建的物距区间与对焦位置对应关系,确定所述物距所属的物距区间对应的对焦位置;Determine the focus position corresponding to the object distance interval to which the object distance belongs according to the corresponding relationship between the object distance interval and the focus position constructed based on the image acquisition parameters of the image acquisition module in advance;
    按照所述对焦位置对所述图像采集模块进行对焦。Focusing the image acquisition module according to the focus position.
  11. 根据权利要求10所述的对焦方法,所述物距区间与对焦位置对应关系,采用如下方式构建:According to the focusing method of claim 10, the corresponding relationship between the object distance interval and the focusing position is constructed in the following manner:
    将所述图像采集参数中的至少一个作为目标参数,并将剩余的图像采集参数确定为约束参数;Taking at least one of the image acquisition parameters as a target parameter, and determining the remaining image acquisition parameters as constraint parameters;
    针对每个目标参数,结合所述约束参数分别建立所述图像采集模块在各个对焦位置下物距与目标参数的关系曲线;For each target parameter, the relationship curve between the object distance and the target parameter of the image acquisition module at each focus position is established in combination with the constraint parameter;
    基于所述关系曲线确定所述图像采集模块在每个对焦位置下满足所述目标参数对应的参数阈值的最小物距和最大物距,并由所述最小物距和所述最大物距组成物距区间;The minimum object distance and the maximum object distance that the image acquisition module meets the parameter threshold corresponding to the target parameter at each focus position are determined based on the relationship curve, and are composed of the minimum object distance and the maximum object distance Distance interval
    通过构建所述物距区间与所述图像采集模块的对焦位置的对应关系,生成所述物距区间与对焦位置对应关系。By constructing the correspondence between the object distance interval and the focus position of the image acquisition module, the correspondence relationship between the object distance interval and the focus position is generated.
  12. 根据权利要求10所述的对焦方法,所述确定图像采集模块采集到的目标对象图像对应的物距步骤,通过调用所述图像采集模块配置的深度传感子模块实现,其中,所述深度传感子模块通过采集深度数据计算所述目标对象图像对应的目标对象与所述图像采集模块之间的实际采集距离,并将计算获得的实际采集距离作为所述物距输出。The focusing method according to claim 10, wherein the step of determining the object distance corresponding to the target object image collected by the image acquisition module is implemented by calling a depth sensing sub-module configured by the image acquisition module, wherein the depth transmission The sensor module calculates the actual collection distance between the target object corresponding to the target object image and the image collection module by collecting depth data, and outputs the calculated actual collection distance as the object distance.
  13. 根据权利要求10所述的对焦方法,所述确定图像采集模块采集到的目标对象图像对应的物距步骤执行之后,且所述根据预先基于所述图像采集模块的图像采集参数构建的物距区间与对焦位置对应关系,确定所述物距所属的物距区间对应的对焦位置步骤执行之前,包括:The focusing method according to claim 10, after the step of determining the object distance corresponding to the target object image collected by the image acquisition module is executed, and the object distance interval constructed based on the image acquisition parameters of the image acquisition module in advance The corresponding relationship with the focus position, before the step of determining the focus position corresponding to the object distance interval to which the object distance belongs, includes:
    在所述物距区间与对焦位置对应关系中查找是否存在所述物距所属的物距区间;Searching whether there is an object distance interval to which the object distance belongs in the correspondence between the object distance interval and the focus position;
    若存在,执行根据预先基于所述图像采集模块的图像采集参数构建的物距区间与对焦位置对应关系,确定所述物距所属的物距区间对应的对焦位置步骤;If it exists, execute the step of determining the focus position corresponding to the object distance interval to which the object distance belongs according to the corresponding relationship between the object distance interval and the focus position constructed based on the image acquisition parameters of the image acquisition module in advance;
    若不存在,通过所述图像采集模块采集目标对象图像,并返回执行所述确定图像采集模块采集到的目标对象图像对应的物距步骤。If it does not exist, an image of the target object is acquired through the image acquisition module, and the step of determining the object distance corresponding to the image of the target object acquired by the image acquisition module is returned to execute.
  14. 根据权利要求10所述的对焦方法,所述按照所述对焦位置对所述图像采集模块进行对焦,包括:The focusing method according to claim 10, wherein the focusing the image acquisition module according to the focusing position comprises:
    向所述图像采集模块配置的对焦控制子模块下发对焦指令,由所述对焦控制子模块根据所述对焦指令中携带的所述对焦位置将所述图像采集模块配置的镜头组调节至所述对焦位置。A focus instruction is issued to the focus control sub-module configured by the image acquisition module, and the focus control sub-module adjusts the lens group configured by the image acquisition module to the focus position according to the focus position carried in the focus instruction. Focus position.
  15. 一种对焦装置,包括:A focusing device includes:
    处理模块、图像采集模块;Processing module, image acquisition module;
    其中,所述处理模块,被配置为在所述确定所述图像采集模块采集到的目标对象图像对应的物距,并根据预先基于所述图像采集模块的图像采集参数构建的物距区间与对焦位置对应关系,确定所述物距所属的物距区间对应的对焦位置,并向所述图像采集模块下发携带有所述对焦位置的对焦指令;Wherein, the processing module is configured to determine the object distance corresponding to the image of the target object collected by the image acquisition module, and to determine the object distance interval and focus based on the image acquisition parameters of the image acquisition module in advance. Position correspondence, determining the focus position corresponding to the object distance interval to which the object distance belongs, and issue a focus instruction carrying the focus position to the image acquisition module;
    所述图像采集模块,被配置为采集所述目标对象图像,以及按照所述处理模块下发的所述对焦指令携带的所述对焦位置进行对焦。The image acquisition module is configured to acquire the target object image, and perform focusing according to the focusing position carried in the focusing instruction issued by the processing module.
  16. 一种计算设备,包括:A computing device including:
    存储器和处理器;Memory and processor;
    所述存储器用于存储计算机可执行指令,所述处理器用于执行所述计算机可执行指令:The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions:
    基于目标对象图像中的眼部特征计算所述目标对象图像对应的物距;所述目标对象图像由图像采集模块采集;Calculating the object distance corresponding to the target object image based on the eye features in the target object image; the target object image is collected by the image acquisition module;
    根据预先基于虹膜图像采集指标构建的图像采集模块的物距区间与对焦位置对应关系,确定所述物距所属的物距区间对应的对焦位置;Determine the focus position corresponding to the object distance interval to which the object distance belongs according to the correspondence between the object distance interval and the focus position of the image acquisition module constructed in advance based on the iris image acquisition index;
    按照所述对焦位置对所述图像采集模块进行对焦,并通过对焦后的图像采集模块采集虹膜图像。The image acquisition module is focused according to the focus position, and an iris image is acquired through the focused image acquisition module.
  17. 一种计算设备,包括:A computing device including:
    存储器和处理器;Memory and processor;
    所述存储器用于存储计算机可执行指令,所述处理器用于执行所述计算机可执行指令:The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions:
    确定图像采集模块采集到的目标对象图像对应的物距;Determine the object distance corresponding to the target object image collected by the image collection module;
    根据预先基于所述图像采集模块的图像采集参数构建的物距区间与对焦位置对应关系,确定所述物距所属的物距区间对应的对焦位置;Determine the focus position corresponding to the object distance interval to which the object distance belongs according to the corresponding relationship between the object distance interval and the focus position constructed based on the image acquisition parameters of the image acquisition module in advance;
    按照所述对焦位置对所述图像采集模块进行对焦。Focusing the image acquisition module according to the focus position.
  18. 一种计算机可读存储介质,其存储有计算机指令,该指令被处理器执行时实现权利要求1至5任意一项所述虹膜图像采集方法的步骤。A computer-readable storage medium, which stores computer instructions that, when executed by a processor, implement the steps of the iris image acquisition method described in any one of claims 1 to 5.
  19. 一种计算机可读存储介质,其存储有计算机指令,该指令被处理器执行时实现权利要求10至14任意一项所述对焦方法的步骤。A computer-readable storage medium, which stores computer instructions, which, when executed by a processor, implement the steps of the focusing method described in any one of claims 10 to 14.
PCT/CN2020/122581 2019-12-12 2020-10-21 Iris image acquisition method and device and focusing method and device WO2021114886A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911271771.3A CN110717482B (en) 2019-12-12 2019-12-12 Iris image acquisition method and device, and focusing method and device
CN201911271771.3 2019-12-12

Publications (1)

Publication Number Publication Date
WO2021114886A1 true WO2021114886A1 (en) 2021-06-17

Family

ID=69216662

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/122581 WO2021114886A1 (en) 2019-12-12 2020-10-21 Iris image acquisition method and device and focusing method and device

Country Status (2)

Country Link
CN (1) CN110717482B (en)
WO (1) WO2021114886A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115641635A (en) * 2022-11-08 2023-01-24 北京万里红科技有限公司 Method for determining focusing parameters of iris image acquisition module and iris focusing equipment

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110717482B (en) * 2019-12-12 2020-04-14 支付宝(杭州)信息技术有限公司 Iris image acquisition method and device, and focusing method and device
CN112651382B (en) * 2021-01-15 2024-04-02 北京中科虹霸科技有限公司 Focusing data calibration system and iris image acquisition system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101520838A (en) * 2008-02-27 2009-09-02 中国科学院自动化研究所 Automatic-tracking and automatic-zooming method for acquiring iris images
US20140226876A1 (en) * 2011-10-12 2014-08-14 Carnegie Mellon University System and Method for the Long Range Acquisition of Iris Images From Stationary and Mobile Subjects
CN107341467A (en) * 2017-06-30 2017-11-10 广东欧珀移动通信有限公司 Iris collection method and device, electronic device and computer-readable storage medium
CN109271914A (en) * 2018-09-07 2019-01-25 百度在线网络技术(北京)有限公司 Detect method, apparatus, storage medium and the terminal device of sight drop point
CN110717482A (en) * 2019-12-12 2020-01-21 支付宝(杭州)信息技术有限公司 Iris image acquisition method and device, and focusing method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105787435A (en) * 2016-02-03 2016-07-20 北京天诚盛业科技有限公司 Indication method and apparatus for iris acquisition
CN108470152A (en) * 2018-02-14 2018-08-31 天目爱视(北京)科技有限公司 Based on infrared 3D four-dimension iris data acquisition methods and system
CN108742512B (en) * 2018-04-17 2020-10-27 中山大学中山眼科中心 Eye imaging method and device
CN110557547B (en) * 2018-05-30 2021-06-08 北京小米移动软件有限公司 Lens position adjustment method and device
CN109886069B (en) * 2018-12-21 2023-12-15 深圳动保科技有限公司 Iris recognition acquisition device based on animal management system and acquisition method using device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101520838A (en) * 2008-02-27 2009-09-02 中国科学院自动化研究所 Automatic-tracking and automatic-zooming method for acquiring iris images
US20140226876A1 (en) * 2011-10-12 2014-08-14 Carnegie Mellon University System and Method for the Long Range Acquisition of Iris Images From Stationary and Mobile Subjects
CN107341467A (en) * 2017-06-30 2017-11-10 广东欧珀移动通信有限公司 Iris collection method and device, electronic device and computer-readable storage medium
CN109271914A (en) * 2018-09-07 2019-01-25 百度在线网络技术(北京)有限公司 Detect method, apparatus, storage medium and the terminal device of sight drop point
CN110717482A (en) * 2019-12-12 2020-01-21 支付宝(杭州)信息技术有限公司 Iris image acquisition method and device, and focusing method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115641635A (en) * 2022-11-08 2023-01-24 北京万里红科技有限公司 Method for determining focusing parameters of iris image acquisition module and iris focusing equipment

Also Published As

Publication number Publication date
CN110717482A (en) 2020-01-21
CN110717482B (en) 2020-04-14

Similar Documents

Publication Publication Date Title
WO2021114886A1 (en) Iris image acquisition method and device and focusing method and device
CN109840531B (en) Method and device for training multi-label classification model
WO2021057848A1 (en) Network training method, image processing method, network, terminal device and medium
WO2021098618A1 (en) Data classification method and apparatus, terminal device and readable storage medium
WO2018141252A1 (en) Facial tracking method, apparatus, storage medium and electronic device
JP7089045B2 (en) Media processing methods, related equipment and computer programs
CN112232506B (en) Network model training method, image target recognition method, device and electronic device
WO2018035794A1 (en) System and method for measuring image resolution value
CN112307934B (en) Image detection method, and training method, device, equipment and medium of related model
US9740932B2 (en) Cross-sensor iris matching
CN114139013A (en) Image searching method and device, electronic equipment and computer readable storage medium
CN111147737A (en) A kind of automatic focusing method and device based on RBF neural network
WO2023123923A1 (en) Human body weight identification method, human body weight identification device, computer device, and medium
CN110020728B (en) Service model reinforcement learning method and device
CN111199536B (en) Focusing evaluation method and device
CN113327212B (en) Face driving method, face driving model training device, electronic equipment and storage medium
CN110728217B (en) SAR image recognition method, SAR image recognition device, SAR image recognition equipment and storage medium
CN111259698B (en) Method and device for acquiring image
JP2018045517A (en) Application device, application method, and application program
CN109711328B (en) Face recognition method and device and electronic equipment
CN116310615A (en) Image processing method, device, equipment and medium
CN115131831A (en) Fingerprint image segmentation method and device, electronic equipment and storage medium
CN112966790B (en) Image classification method, device, electronic equipment and storage medium
CN114783041B (en) Target object recognition method, electronic device, and computer-readable storage medium
CN118818475A (en) Image ranging method, device, electronic device and 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: 20899336

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: 20899336

Country of ref document: EP

Kind code of ref document: A1