iris.nodes.encoder package

Submodules

iris.nodes.encoder.iris_encoder module

class iris.nodes.encoder.iris_encoder.IrisEncoder(mask_threshold: float = 0.9, callbacks: List[Callback] = [])[source]

Bases: Algorithm

Binarize IrisFilterResponse to generate iris code using Daugman’s method.

Algorithm steps:
  1. Binarize iris response by comparing real and imaginary parts to zero.

  2. Binarize mask response by comparing real and imaginary parts to a given parameter: mask_threshold.

Reference:

[1] https://www.robots.ox.ac.uk/~az/lectures/est/iris.pdf.

class Parameters(*, mask_threshold: ConstrainedFloatValue)[source]

Bases: Parameters

IrisEncoder parameters.

mask_threshold: float
run(response: IrisFilterResponse) IrisTemplate[source]

Encode iris code and mask code.

Parameters:

response (IrisFilterResponse) – Filter responses.

Returns:

Final iris template.

Return type:

IrisTemplate

Module contents