Enrollment 28.2.0
Loading...
Searching...
No Matches

PrintDetector implements segmentation by means of Innovatrics ISegLib library. More...

#include <PrintDetector.h>

Collaboration diagram for PrintDetector:

Public Member Functions

std::vector< std::shared_ptr< PrintSegment > > Segment (const std::shared_ptr< PrintCapture > &capture) final
 Detects segments in given image The Function scans the provided capture to locate fingers.
 PrintDetector ()
 Construct a new PrintDetector object GlobalPrintExecutor is used for PrintSegment detection.
 PrintDetector (std::shared_ptr< PrintExecutor > executor)
 Construct a new PrintDetector object.

Protected Member Functions

virtual inno_PrintDetector_result DoDetect (const std::shared_ptr< PrintExecutor > &executor, const std::shared_ptr< Image > &image, FormattingLogger &logger)=0
 Template method for various segmentation strategies.

Detailed Description

PrintDetector implements segmentation by means of Innovatrics ISegLib library.

It is class that defines template method PrintDetector::DoDetect for various segmentation strategies.

Constructor & Destructor Documentation

◆ PrintDetector()

PrintDetector ( std::shared_ptr< PrintExecutor > executor)
inlineexplicit

Construct a new PrintDetector object.

Parameters
executorPrintExecutor to use for PrintSegment detection
Exceptions
NullArgumentExceptionwhen executor is null

Member Function Documentation

◆ DoDetect()

virtual inno_PrintDetector_result DoDetect ( const std::shared_ptr< PrintExecutor > & executor,
const std::shared_ptr< Image > & image,
FormattingLogger & logger )
protectedpure virtual

Template method for various segmentation strategies.

Parameters
executorPrintExecutor to use for PrintSegment detection
imageImage to segment
loggerFormattingLogger to log messages
Returns
inno_PrintDetector_result result of segmentation from binary part of library

Referenced by Segment().

Here is the caller graph for this function:

◆ Segment()

std::vector< std::shared_ptr< PrintSegment > > Segment ( const std::shared_ptr< PrintCapture > & capture)
inlinefinal

Detects segments in given image The Function scans the provided capture to locate fingers.

For each identified finger, it estimates its position on the hand by comparing the x-coordinate of the center of the finger's bounding box rectangle. As a result, the estimation may not be precise for slaps with an angle greater than 45 degrees and is not suitable for PrintCapture types other than Slap or Thumbs.

Parameters
capturePrintCapture
Returns
slap segments
Exceptions
EnrollmentExceptionwhen ISegLib returns error

References DoDetect().

Here is the call graph for this function:

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