Enrollment 28.2.0
Loading...
Searching...
No Matches
PrintDetectorConfig Class Reference

General configuration of PrintDetector. More...

#include <PrintDetector.h>

Collaboration diagram for PrintDetectorConfig:

Public Member Functions

void SetNarrowFingerPreference (bool expectNarrow)
 Informs the print detector to anticipate narrow fingers.
bool GetNarrowFingerPreference () const
 Retrieves information about the expected narrowness of detected fingers.
void WriteTo (Writer &writer) const override
 Function serializes configuration via provided Writer.
 PrintDetectorConfig ()=default
 Default PrintDetector configuration is.

Detailed Description

General configuration of PrintDetector.

Constructor & Destructor Documentation

◆ PrintDetectorConfig()

PrintDetectorConfig ( )
default

Default PrintDetector configuration is.

  • expectNarrowFinger - true

References PrintDetectorConfig().

Referenced by PrintDetectorConfig().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ GetNarrowFingerPreference()

bool GetNarrowFingerPreference ( ) const
inlinenodiscard

Retrieves information about the expected narrowness of detected fingers.

Returns
true if narrow detected fingers are expected
false if narrow detected fingers are not expected

◆ SetNarrowFingerPreference()

void SetNarrowFingerPreference ( bool expectNarrow)
inline

Informs the print detector to anticipate narrow fingers.

It recommends returning a narrow bounding rectangle even if the detected finger is initially identified as wide. This adjustment is particularly relevant in cases where the finger is rotated, causing a misalignment between the top-left rectangle point and the corresponding point from the finger's perspective. The function then adjusts the coordinates to narrow down the representation of the finger, estimating rectangle points (top-left, top-right, bottom-right, bottom-left) based on the fingerprint's viewpoint. Since there is limited information about the orientation of the fingerprint, this estimation involves some guesswork. It's important to note that the detector provides only the rectangle without indicating the direction of the finger within the bounding rectangle. This means that after alignment, some fingerprints may appear upside down. The recommended adjustment of the top-left point from the finger's perspective plays a crucial role in aligning the cropped finger accurately.

Parameters
expectNarrowWhen set to true, the detector will consistently output a narrow bounding rectangle for the detected finger. In contrast, if expectNarrow is false, the detector will refrain from modifying the rectangle and will maintain its original dimensions.

◆ WriteTo()

void WriteTo ( Writer & writer) const
inlineoverridevirtual

Function serializes configuration via provided Writer.

Parameters
writerused to serialize Config.

Implements Serializable.

References Writer::Write().

Referenced by AlgorithmicSegmentation::Config::WriteTo(), and NeuralSegmentation::Config::WriteTo().

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following file: