C# Face Pad API

OneML model for Presentation Attack Detection (PAD)

OneML.Face.FacePad : public global.SystemIDisposable

Public Functions

inline void Dispose()

Gracefully destroy the object and free memory.

inline FacePad(PadType type, LicenseManager manager)

Construct a FacePad object of type PadType.

Parameters
  • type: PadType enum.

  • manager: LicenseManager instance.

inline FacePadResultList Classify(ImageBatch imgs)

Classify images as spoof or not spoof.

Return

an instance of FacePadResultList.

Parameters

inline FacePadResultList Classify(ImageBatch imgs, float spoof_threshold)

Classify images as spoof or not spoof.

Return

an instance of FacePadResultList.

Parameters
  • imgs: an instance of ImageBatch.

  • spoof_threshold: spoof threshold

inline FacePadResult Classify(Image img)

Classify an image as spoof or not spoof.

Return

an instance of FacePadResult.

Parameters
  • img: an instance of Image.

inline FacePadResult Classify(Image img, float spoof_threshold)

Classify an image as spoof or not spoof.

Return

an instance of FacePadResult.

Parameters
  • img: an instance of Image.

  • spoof_threshold: spoof threshold

OneML.Face.FacePadResult : public global.SystemIDisposable

Public Functions

inline void Dispose()

Gracefully destroy the object and free memory.

inline int GetReturnStatus()

returns return status.

Return

an int return status.

OneML.Face.FacePadResultList : public global.SystemIDisposable , public global.SystemCollections.IEnumerable , public global::SystemCollections::Generic::IEnumerable< FacePadResult >

Public Functions

inline void Dispose()

Gracefully destroy the object and free memory.

FacePadResultListEnumerator : public global.SystemCollections.IEnumerator , public global::SystemCollections::Generic::IEnumerator< FacePadResult >

Note that the IEnumerator documentation requires an InvalidOperationException to be thrown whenever the collection is modified.

This has been done for changes in the size of the collection but not when one of the elements of the collection is modified as it is a bit tricky to detect unmanaged code that modifies the collection under our feet.

Enums

enum FacePadStatus

Values:

enumerator Empty
enumerator Success
enumerator DigitalPadFail
enumerator PaperPadFail

Enums

enum PadType

Values:

enumerator Rgb
enumerator Paper