Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How I skip FirstStep and DoneStep in liveness method[BR] #20

Open
hafeezrana opened this issue Mar 20, 2023 · 0 comments
Open

How I skip FirstStep and DoneStep in liveness method[BR] #20

hafeezrana opened this issue Mar 20, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@hafeezrana
Copy link

 var firstStep = Regula.LivenessSkipStep.START_STEP;
  var lastStep = Regula.LivenessSkipStep.DONE_STEP;

  liveness() => Regula.FaceSDK.startLiveness().then(
        (value) {
          var result = Regula.LivenessResponse.fromJson(json.decode(value));
          setImage(
            true,
            base64Decode(result!.bitmap!.replaceAll("\n", "")),
            Regula.ImageType.LIVE,
          );
          setState(() {
            _liveness = result.liveness == Regula.LivenessStatus.PASSED
                ? "passed"
                : "unknown";
          });
        },
      );
@hafeezrana hafeezrana added the bug Something isn't working label Mar 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

1 participant