Face Recognition package

Submodules

face_recognition_engine module

class dronebuddylib.atoms.facerecognition.face_recognition_engine.FaceRecognitionEngine(algorithm: FaceRecognitionAlgorithm, config: EngineConfigurations)[source]

Bases: object

The FaceRecognitionEngine class handles face recognition operations.

recognize_face(image)[source]

Recognize faces in an image.

Parameters:

image – The image containing faces to be recognized.

Returns:

A list of recognized faces.

remember_face(image, name)[source]

Remember a face by associating it with a name.

Parameters:
  • image – The image containing the face.

  • name (str) – The name to be associated with the face.

Returns:

True if the operation was successful, False otherwise.

face_recognition_impl module

i_face_recognition module

class dronebuddylib.atoms.facerecognition.i_face_recognition.IFaceRecognition(engine_configurations: EngineConfigurations)[source]

Bases: IDBLFunction

Interface for face recognition functionality.

recognize_face()[source]

Recognizes faces in an image.

remember_face()[source]

Associates a name with a face in an image.

abstract recognize_face(image) list[source]

Recognize faces in an image.

Parameters:

image – The image containing faces to be recognized.

Returns:

A list of recognized faces.

Return type:

list

abstract remember_face(image, name) bool[source]

Associate a name with a face in an image.

Parameters:
  • image – The image containing the face to be associated with a name.

  • name (str) – The name to be associated with the face.

Returns:

True if the association was successful, False otherwise.

Return type:

bool

Module contents