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
imgs
: an instance of ImageBatch.
-
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 void
-
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.
-
inline void
-
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.
-
inline void
Enums