ILogger

Pass an instance of a class that implements this interface to VerID.shared.setLogger to implement your own logging mechanism.

Package com.appliedrec.ver_id.util

public interface ILogger

Methods

log

Introduced in version 1.8

public log(ILogger.EventType, String, long, Bitmap, RectF, PointF[], VerID.EulerAngleF, Boolean)

Log an event

Parameters

eventType com.appliedrec.ver_id.util.ILogger.EventType
Type of the event
description java.lang.String
Description of the event
timestamp long
Timestamp of the event occurrence in milliseconds since Jan 1 1970
image android.graphics.Bitmap
Image associated with the event – typically an image collected during a Ver-ID session
faceBounds android.graphics.RectF
Bounds of the face detected in the image expressed as fractions of the image width and height
eyeCoordinates android.graphics.PointF[]
Eye coordinates of the face detected in the image expressed as fractions of the image width and height
faceAngle com.appliedrec.ver_id.VerID.EulerAngleF
Yaw, pitch and roll of the face detected in the image
faceHasTemplate java.lang.Boolean
true if the face has a template and is suitable for recognition

getLog

Introduced in version 1.8

public getLog(ILogger.EventType...)

Fetch log entries with the given types

Parameters

eventType com.appliedrec.ver_id.util.ILogger.EventType[]
The types of event to fetch

Returns

com.appliedrec.ver_id.model.LogEntry[]
Array of log entries of the given types or all entries if no type is specified

clearLog

Introduced in version 1.8

public clearLog()

Clear the event log

isLogEmpty

Introduced in version 1.8

public isLogEmpty(ILogger.EventType...)

Indicates whether the log has events with the given types. All entries are considered if no event types are specified.

Parameters

eventType com.appliedrec.ver_id.util.ILogger.EventType[]
The types of event to check

Returns

boolean
false if the log contains entries with the given event types