Skip to main content

Operation Results

During biometric operation capturing, callback with intermediate results are returned. The results can be interpreted graphically to make the UI smoother, or for the user to perform liveness and ICAO related actions. For each processed frame Janus returns a JSON object through WebRTC connection, i.e.:

{
"operationFinished": true,
"status": 1,
"yaw": -1.4272499084472656,
"roll": 2.770369529724121,
"pitch": 4.6590986251831055,
"livenessTargetYaw": 0,
"livenessScore": 254,
"quality": 85,
"errorMessage": "",
"boundingRect": {
"x": 260,
"y": 197,
"width": 195,
"height": 201,
"fullImageWidth": 640,
"fullImageHeight": 480
},
"icaoWarnings": [],
"livenessAction": []
}
ElementTypeGlossary
operationFinishedboolIndicates if operation was finished and this is the last result returned
statusStatusCurrent operation status
yawfloatYaw angle on last processed frame
rollfloatRoll angle on last processed frame
pitchfloatPitch angle on last processed frame
livenessTargetYawfloatTo what angle face should be tuned. Used on Active liveness mode
livenessScoreintWhat is the current liveness score. Used in Passive liveness modes
qualityintWhat is the current face quality
errorMessagestringError string if and exception has occurred
icaoWarningsICAOWarningICAO warnings. Empty array means there are no ICAO warnings
livenessActionLivenessActionIndicates which liveness actions to perform if Liveness is checked. Empty array means that no liveness actions need to be performed
boundingRectRectFace bounding rectangle. If face is not detected, rectangle is not returned.

Yaw

Shows current face yaw angle.

Liveness target yaw

Shows what angle face should be turned.

Liveness score

Show liveness progress. Used in Passive, PassiveWithBlink and Simple liveness modes. Liveness is considered passed when this score becomes higher than the LivenessThreshold.

Status

StatusInt representationGlossary
NONE0None of status values were returned
SUCCESS1Operation completed successfully
TIMEOUT2Operation has timeout out
CANCELED3Operation was cancelled
BAD_QUALITY4Not used (in align with MegaMatcher ID SDK)
MATCH_NOT_FOUND5Verified subjects did not match
CAMERA_NOT_FOUND6Not used (in align with MegaMatcher ID SDK)
FACE_NOT_FOUND7Face was not found during extraction
LIVENESS_CHECK_FAILED8Face was not detected as alive
BAD_SHARPNESS9Face image was not sharp enough
TOO_NOISY10Face image was too noisy
BAD_LIGHTING11Indicates bad lighting or lighting artifacts
OCCLUSION12Indicates face occlusion
BAD_POSE13Indicates bad face position
TOO_MANY_OBJECTS14Indicates that more than one face was detected
MASK_DETECTED15Indicates that mask was detected
DUPLICATE_FOUND16Indicates that duplicate was found if MMABIS integration is true
DUPLICATE_ID17Indicates that duplicate id was found if MMABIS integration is true
MOTION_BLUR18Indicates bad image quality because of motion blur
COMPRESSION_ARTIFACTS19Indicates bad image quality because of compression artifacts
TOO_DISTANT20Indicates bad image quality because the subject is too far
TOO_CLOSE21Indicates bad image quality because the subject is too close
FAILED22Indicates a general failure
RESOLUTION_INSUFFICIENT995Indicates that even after waiting for StrictQualityTimeout the pixel count did not reach StrictQualityImageSize
CHUNK_RECEIVE_TIMEOUT996Indicates that the server stopped receiving audio/frame chunks, this is usally due to a dropped session (e.g. a browser refresh)
STREAM_DECODE_FAILED997Indicates that the decoder failed to decode audio/frame chunks, this is usually due to a very poor internet connection or some other packet loss
ADJUSTING_QUALITY998Indicates that image quality is being adjusted in order to receive good frames. This status is returned when FramesToSkip setting is used
INTERNAL_ERROR999Internal error has occurred

Bad sharpness

Is returned when face image sharpness is poor.

Too noisy

Is returned when face image is too noisy (occurs most likely due to poor camera).

Bad lighting

Is returned when face cannot be extracted due to poor lighting conditions.

Occlusion

Is returned when part of the face is covered (for example, hand is touching the face). If face is covered by a mask, separate Mask detected status is returned.

Bad pose

Is returned when face is turned too much.

Too many objects

Is returned when there is more than one face facing the camera.

Too many objects

Mask detected

Is returned when face is wearing a mask.

Mask detected

Duplicate found

Is returned when a duplicate subject is found in MMABIS, can only occur if MMABIS integration is configured.

Duplicate id

Is returned when a duplicate id is found in MMABIS, can only occur if MMABIS integration is configured.

LivenessAction

ActionInt representationGlossary
NO_ACTION0No actions are required from the user
KEEP_STILL1The user should keep still as possible
BLINK2The user should blink at least once
ROTATE_YAW4The user should rotate his/hers face according instructions
KEEP_ROTATING_YAW8The user should keep turning face from side to side
TURN_TO_CENTER16The user should center out his/hers face
TURN_LEFT32The user should turn his/hers face left
TURN_RIGHT64The user should turn his/hers face right
TURN_UP128The user should turn his/hers face up
TURN_DOWN256The user should turn his/hers face down
MOVE_CLOSER512The user should move his/hers face closer to the camera
MOVE_BACK1024The user should move his/hers face further away from the camera

Keep still

When this action occurs, it is advised to display the liveness score, in order for the user to know that something is actually happening. During this action, user should keep still as possible until the liveness reaches LivenessThreshold.

Keep still

During this action user should blink at least one time.

Blink Blink

Rotate yaw

During this action, user should rotate his yaw according LivenessTargetedYaw. During this action MegaMatcher ID UI uses yaw angle to show user current position with an arrow, and livenessTargetYaw as target in order to show the user where to rotate his head.

Rotate yaw Rotate yaw

Keep rotating yaw

During this action user should keep rotating his yaw from left to right until the livenessScore is above the LivenessThreshold.

KeepRotatingYaw KeepRotatingYaw KeepRotatingYaw

Turn to center

During this action user should center out his face.

TurnToCenter TurnToCenter

Turn left

During this action user should turn his head from the center to the left.

TurnLeft TurnLeft

Turn right

During this action user should turn his head from the center to the right.

TurnRight TurnRight

Turn down

During this action user should lower his head.

TurnDown TurnDown

Turn up

During this action user should raise his head.

TurnUp TurnUp

Move closer

During this action user should move closer to the camera.

Move back

During this action user should move further away from the camera.

ICAOWarning

WarningInt representationGlossary
NO_WARNINGS0Indicates that no warnings were detected
FACE_NOT_DETECTED1Indicates that was not detected
ROLL_LEFT2Indicates face roll left
ROLL_RIGHT3Indicates face roll right
YAW_LEFT4Indicates face yaw left warning
YAW_RIGHT5Indicates face yaw right warning
PITCH_UP6Indicates pitch up
PITCH_DOWN7Indicates pitch down
TOO_NEAR8Indicates that face is too near
TOO_FAR9Indicates that face is too far
TOO_NORTH10Indicates that face is too north
TOO_SOUTH11Indicates that face is too south
TOO_EAST12Indicates that face is too east
TOO_WEST13Indicates that face is too west
SHARPNESS14Indicates that face sharpness was insufficient
BACKGROUND_UNIFORMITY15Indicates background uniformity
GRAYSCALE_DENSITY16Indicates grayscale density
SATURATION17Indicates that saturation was detected
EXPRESSION18Indicates non neutral face expression
DARK_GLASSES19Indicates that dark glasses detected
EYES_CLOSED20Indicates that eyes were closed
MOUTH_OPEN21Indicates that mouth was open
LOOKING_AWAY22Indicates that eyes were looking away
RED_EYE23Indicates that red eyes were detected
FACE_DARKNESS24Indicates that the face was too dark
UNNATURAL_SKINTONE25Indicates that unnatural face skin tone was detected.
WASHED_OUT26Indicates that face colors were washed out (blurry)
PIXELATION27Indicates that pixelation was detected
SKIN_REFLECTION28Indicates that there was skin reflection on the face
GLASSES_REFLECTION29Indicates that there was glasses reflection
HEAVY_FRAME30Indicates that glasses have a thick frame
OCCLUSION_WARNING32Indicates that the face is occluded by something
RESOLUTION_WARNING33Indicates that the resolution is not acceptable
MOTION_BLUR_WARNING34Indicates that motion blur has been detected
COMPRESSION_ARTIFACTS_WARNING35Indicates that compression artifacts have been detected
OVEREXPOSURE36Indicates that overexposure was detected
UNDEREXPOSURE37Indicates that underexposure was detected
GLASSES38Indicates that glasses have been detected
HAT39Indicates that some sort of headware is on the persons head
HEAD_MOVEMENT40Indicates that subject's head is currently moving
IMAGE_RESOLUTION41Indicates that stream resolution is below threshold

No warnings

Indicates that no warnings were detected

Face not detected

Indicates that face is not detected.

Roll left/right

Indicates that face is rolled too left/right. Arrows show the user to roll his face left/right.

Roll left

Yaw left

Indicates that face is turned too left. Arrows show the user to turn his face right.

Yaw right

Yaw right

Indicates that face is turned too right. Arrows show the user to turn his face left.

Yaw right

Pitch up

Indicates that face is raised too much. Arrows show the used to lower his face.

Pitch up

Pitch down

Indicates that face is too low. Arrows show that face should be raised.

Pitch down

Too near

Indicates that face is too near the camera. Face should be moved back.

Too far

Indicates that face is too far from the camera. Face should be moved closer.

Too north

Indicates that face is position too close to the upper side of the image. Face should be moved towards the center.

Too north

Too south

Indicates that face is position too close to the bottom side of the image. Face should be moved towards the center.

Too east

Indicates that face is position too close to the right side of the image. Face should be moved towards the center.

Too west

Indicates that face is position too close to the west side of the image. Face should be moved towards the center.

Too west

Sharpness

Indicates that image is blurry. User should keep still, or camera should be adjusted.

Sharpness

Background uniformity

Indicates that backgroud is too colorful. User should move to a more solid backgroud.

Background uniformity

Grayscale density

Indicates that image is gray scale. Camera settings should be adjusted.

Grayscale density

Saturation

Indicates that image is saturated too much. Camera settings should be adjusted.

Saturation

Expression

Indicates that face expression is not neutral. User should maintain neutral face expression during capturing.

Expression

Dark glasses

Indicates that face is captured with dark glassed. Dark glasses should be removed. This status may also occur when normal glasses have hard reflections.

Dark glasses Glasses with reflection

Eyes closed

Indicates that face has closed eyes. User should keep his eyes open and blink as minimal as possible during capturing.

Eyes closed

Mouth open

Indicates that face has an open mouth. User should have his mouth closed and maintain neutral face expression.

Mouth open

Looking away

Indicates that face is looking away from the camera. User should look directly into the camera.

Looking away

Red eye

Indicates that image has red eyes. Camera flash should be adjusted.

Red eyes

Face darkness

Indicates that part of the face is not lip up appropriately. Lighting should be adjusted.

Face darkness

Unnatural skintone

Indicates that skin tone seems unnatural. Lighting should be adjusted.

Unnatural skintone

Washed out

Indicates that colors are washed out. Camera should be adjusted.

Pixelation

Indicates that image is pixelated. Camera should be adjusted.

Pixelation

Skin reflection

Indicates that face skin is reflecting light. Lighting should be adjusted.

Skin reflection

Glasses reflection

Indicates that there is a reflection on users glasses. User should capture without glasses or adjust the lighting.

Glasses reflection

Heavy frame

Indicates that user's glasses have a thick frame. User should capture without glasses.

Occlusion

Indicates that the face is occluded by something

Resolution

Indicates that the resolution is not acceptable

Motion blur

Indicates that motion blur has been detected

Compression artifacts

Indicates that compression artifacts have been detected

Too distant

Indicates bad image quality because the subject is too far.

Too close

Indicates bad image quality because the subject is too close.

Overexposure

Indicates that overexposure was detected

Underexposure

Indicates that underexposure was detected

Glasses

Indicates that glasses have been detected

Hat

Indicates that some sort of headware is on the persons head

Head movement

Indicates that subject's head is currently moving

Image resolution

Requires a minimum resolution and prioritizes frames that meet or exceed this threshold when stream contains multiple resolutions.