Class FaceRecognition

java.lang.Object
com.esprit.utils.FaceRecognition

public class FaceRecognition extends Object
Utility class providing helper methods for the RAKCHA application. Contains reusable functionality and common operations.
Since:
1.0.0
Version:
1.0.0
Author:
RAKCHA Team
  • Field Details

    • LOGGER

      private static final Logger LOGGER
    • FACES_DIR

      private static final String FACES_DIR
      See Also:
    • faceRecognizer

      private final org.opencv.face.LBPHFaceRecognizer faceRecognizer
    • isInitialized

      private boolean isInitialized
  • Constructor Details

    • FaceRecognition

      public FaceRecognition()
      Performs FaceRecognition operation.
  • Method Details

    • init

      public boolean init()
      Initialize the face recognizer with training data
      Returns:
      true if initialization was successful
    • recognize

      public int recognize(org.opencv.core.Mat faceImage)
      Recognize a face in the given image
      Parameters:
      faceImage - The image containing a face to recognize
      Returns:
      the recognized label, or -1 if not recognized or error