Skip to content

[MS-491] limit fingerprint scan attempts#905

Merged
alexandr-simprints merged 10 commits into
mainfrom
MS-491-limit-fingerprint-scan-attempts
Sep 23, 2024
Merged

[MS-491] limit fingerprint scan attempts#905
alexandr-simprints merged 10 commits into
mainfrom
MS-491-limit-fingerprint-scan-attempts

Conversation

@alexandr-simprints
Copy link
Copy Markdown
Contributor

There is now a limit to the amount of 'No Finger detected' scans before the user is automatically navigated to the next finger.

  • The default value is 40 and is stored in the IsNoFingerDetectedLimitReachedUseCase.MAXIMUM_LIMIT_OF_NO_FINGER_DETECTED_SCANS
  • The value is set in the Vulcan under Configuration -> Fingerprint -> SimMatcher
  • If the value is not in the [2..40] range, the default value of 40 is used

Other Changes
To accommodate the newly added noFingerDetectedThreshold, the CaptureState sealed class was refactored to have the following subclasses:

  • CaptureState.NotCollected
  • CaptureState.Skipped
  • CaptureState.ScanProcess - number of bad scans and no-finger-detected is stored here

Copy link
Copy Markdown
Contributor

@BurningAXE BurningAXE left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should handle NEC, too. Otherwise looks good!

): Boolean = when (fingerState) {
is CaptureState.ScanProcess -> {
val noFingerDetectedThreshold =
configuration.secugenSimMatcher?.maxCaptureAttempts?.noFingerDetected?.takeIf { it > 1 }
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this feature only applicable to SimMatcher? If so, we should take care to either not call this use case when using NEC or pass the SDK used currently and skip the check for NEC.

Copy link
Copy Markdown
Contributor Author

@alexandr-simprints alexandr-simprints Sep 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a good question, actually. Let's take it to Slack first

I've checked the description for the MS-491 task, it states that both SDKs should be included:

This should apply to all fingerprint SDKs (SimMatcher and NEC currently)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, then the use case should lookup the configuration for the particular SDK used. Currently it's always checking the SimMatcher config.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great spot! Fixing it now

…ic FingerprintSdkConfiguration (SimMatcher or NEC) so that 'maxCaptureAttempts' is taken from the currently used SDKˆ
@sonarqubecloud
Copy link
Copy Markdown

@alexandr-simprints alexandr-simprints merged commit 4b97cc4 into main Sep 23, 2024
@luhmirin-s luhmirin-s deleted the MS-491-limit-fingerprint-scan-attempts branch September 24, 2024 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants