@@ -383,7 +383,7 @@ The high-level steps involved in liveness orchestration are illustrated below:
383
383
384
384
#### [JavaScript](#tab/javascript)
385
385
```javascript
386
- const deleteLivenessSessionResponse = await client .path ('/detectliveness- sessions/{sessionId}' , createLivenessSessionResponse .body .sessionId ).delete ();
386
+ const deleteLivenessSessionResponse = await client .path ('/detectLiveness/singleModal/ sessions/{sessionId}' , createLivenessSessionResponse .body .sessionId ).delete ();
387
387
if (isUnexpected (deleteLivenessSessionResponse )) {
388
388
throw new Error (deleteLivenessSessionResponse .body .error .message );
389
389
}
@@ -460,8 +460,8 @@ The high-level steps involved in liveness with verification orchestration are il
460
460
Console .WriteLine ($" Session id: {sessionId }" );
461
461
Console .WriteLine ($" Auth token: {createResponse .Value .AuthToken }" );
462
462
Console .WriteLine (" The reference image:" );
463
- Console .WriteLine ($" Face rectangle: {createResponse .Value .Results . VerifyReferences [ 0 ]. FaceRectangle .Top }, {createResponse .Value .Results . VerifyReferences [ 0 ]. FaceRectangle .Left }, {createResponse .Value .Results . VerifyReferences [ 0 ]. FaceRectangle .Width }, {createResponse .Value .Results . VerifyReferences [ 0 ] .FaceRectangle .Height }" );
464
- Console .WriteLine ($" The quality for recognition: {createResponse .Value .Results . VerifyReferences [ 0 ] .QualityForRecognition }" );
463
+ Console .WriteLine ($" Face rectangle: {createResponse .Value .VerifyImage . FaceRectangle .Top }, {createResponse .Value .VerifyImage . FaceRectangle .Left }, {createResponse .Value .VerifyImage . FaceRectangle .Width }, {createResponse .Value .VerifyImage .FaceRectangle .Height }" );
464
+ Console .WriteLine ($" The quality for recognition: {createResponse .Value .VerifyImage .QualityForRecognition }" );
465
465
```
466
466
467
467
#### [Java](#tab/java)
@@ -487,7 +487,7 @@ The high-level steps involved in liveness with verification orchestration are il
487
487
System .out .println (" Auth token: " + creationResult .getAuthToken ());
488
488
System .out .println (" The reference image:" );
489
489
System .out .println (" Face rectangle: " + creationResult .getVerifyImage ().getFaceRectangle ().getTop () + " " + creationResult .getVerifyImage ().getFaceRectangle ().getLeft () + " " + creationResult .getVerifyImage ().getFaceRectangle ().getWidth () + " " + creationResult .getVerifyImage ().getFaceRectangle ().getHeight ());
490
- System .out .println (" The quality for recognition: " + creationResult .getVerifyImage ().getQualityForRecognition ());
490
+ System .out .println (" The quality for recognition: " + creationResult .getVerifyImage ().getQualityForRecognition ());
491
491
```
492
492
493
493
#### [Python](#tab/python)
@@ -513,8 +513,8 @@ The high-level steps involved in liveness with verification orchestration are il
513
513
print (f " Session id: {created_session.session_id}" )
514
514
print (f " Auth token: {created_session.auth_token}" )
515
515
print (" The reference image:" )
516
- print (f " Face rectangle: {created_session.results.verifyReferences[0] .face_rectangle}" )
517
- print (f " The quality for recognition: {created_session.results.verifyReferences[0] .quality_for_recognition}" )
516
+ print (f " Face rectangle: {created_session.verify_image .face_rectangle}" )
517
+ print (f " The quality for recognition: {created_session.verify_image .quality_for_recognition}" )
518
518
```
519
519
520
520
#### [JavaScript](#tab/javascript)
@@ -553,8 +553,8 @@ The high-level steps involved in liveness with verification orchestration are il
553
553
console .log (`Session ID : ${createLivenessSessionResponse .body .sessionId }`);
554
554
console .log (`Auth token : ${createLivenessSessionResponse .body .authToken }`);
555
555
console .log ('The reference image:' );
556
- console .log (` Face rectangle : ${createLivenessSessionResponse .body .results . verifyReferences [ 0 ] .faceRectangle }`);
557
- console .log (` The quality for recognition : ${createLivenessSessionResponse .body .results . verifyReferences [ 0 ] .qualityForRecognition }`)
556
+ console .log (` Face rectangle : ${createLivenessSessionResponse .body .verifyImage .faceRectangle }`);
557
+ console .log (` The quality for recognition : ${createLivenessSessionResponse .body .verifyImage .qualityForRecognition }`)
558
558
```
559
559
560
560
#### [REST API (Windows)](#tab/cmd)
@@ -712,45 +712,45 @@ The high-level steps involved in liveness with verification orchestration are il
712
712
An example of the response body :
713
713
```json
714
714
{
715
- " sessionId" : " 3835769c-364d-467f-a727-e11048fce781 " ,
715
+ " sessionId" : " 93fd6f13-4161-41df-8a22-80a38ef53836 " ,
716
716
" authToken" : " " ,
717
717
" status" : " Succeeded" ,
718
718
" modelVersion" : " 2024-11-15" ,
719
719
" results" : {
720
720
" attempts" : [
721
- {
722
- " attemptId" : 1 ,
723
- " attemptStatus" : " Succeeded" ,
724
- " result" : {
725
- " livenessDecision" : " realface" ,
726
- " targets" : {
727
- " color" : {
728
- " faceRectangle" : {
729
- " top" : 669 ,
730
- " left" : 203 ,
731
- " width" : 646 ,
732
- " height" : 724
721
+ {
722
+ " attemptId" : 1 ,
723
+ " attemptStatus" : " Succeeded" ,
724
+ " result" : {
725
+ " livenessDecision" : " realface" ,
726
+ " targets" : {
727
+ " color" : {
728
+ " faceRectangle" : {
729
+ " top" : 669 ,
730
+ " left" : 203 ,
731
+ " width" : 646 ,
732
+ " height" : 724
733
+ }
734
+ }
735
+ },
736
+ " digest" : " EE664438FDF0535C6344A468181E4DDD4A34AC89582D4FD6E9E8954B843C7AA7" ,
737
+ " verifyResult" : {
738
+ " matchConfidence" : 0 . 08172279 ,
739
+ " isIdentical" : false
733
740
}
734
- }
735
- },
736
- " digest" : " AD3B7F889C75F0E377F2BB249656405FE12721FE597C13D21BC434A556667546" ,
737
- " verifyResult" : {
738
- " matchConfidence" : 0 . 08172279 ,
739
- " isIdentical" : false
740
741
}
741
742
}
742
- }
743
743
],
744
744
" verifyReferences" : [
745
- {
746
- " faceRectangle" : {
745
+ {
746
+ " faceRectangle" : {
747
747
" top" : 98 ,
748
748
" left" : 131 ,
749
749
" width" : 233 ,
750
750
" height" : 300
751
751
},
752
- " qualityForRecognition" : " high"
753
- }
752
+ " qualityForRecognition" : " high"
753
+ }
754
754
]
755
755
}
756
756
}
0 commit comments