faceSwap.py
def choose_largest_face(self, faces_landmark_points):
        """choose largest face from all the faces in a given image.

        Parameters
        ----------
        faces_landmark_points : list
            landmark points of all the faces.

        Returns
        -------
        largest_face_landmark_points: list
            return landmark points of the largest face.

        """

        size = 0
        faces = np.array(faces_landmark_points).shape[0]
        for face in range(faces):
            boundingRect = cv2.boundingRect(
                np.array(faces_landmark_points[face]))

            face_size = boundingRect[2] * boundingRect[3]
            if face_size > size:
                size = face_size
                larger_face_index = face

        largest_face_landmark_points = faces_landmark_points[larger_face_index]

        return largest_face_landmark_points
choose largest face from all the faces in a given image.

        Parameters
        ----------
        faces_landmark_points : list
            landmark points of all the faces.

        Returns
        -------
        largest_face_landmark_points: list
            return landmark points of the largest face.

        
choose largest face from all the faces in a given image.
Parameters

faces_landmark_points : list
landmark points of all the faces.

Returns

list
return landmark points of the largest face.
choose largest face from all the faces in a given image . Parameters faces_landmark_points : list landmark points of all the faces . Returns list return landmark points of the largest face .
def choose_largest_face(self, faces_landmark_points):
        size = 0
        faces = np.array(faces_landmark_points).shape[0]
        for face in range(faces):
            boundingRect = cv2.boundingRect(
                np.array(faces_landmark_points[face]))
            face_size = boundingRect[2] * boundingRect[3]
            if face_size > size:
                size = face_size
                larger_face_index = face
        largest_face_landmark_points = faces_landmark_points[larger_face_index]
        return largest_face_landmark_points
def choose_largest_face ( self , faces_landmark_points ) : size = 0 faces = np . array ( faces_landmark_points ) . shape [ 0 ] for face in range ( faces ) : boundingRect = cv2 . boundingRect ( np . array ( faces_landmark_points [ face ] ) ) face_size = boundingRect [ 2 ] * boundingRect [ 3 ] if face_size > size : size = face_size larger_face_index = face largest_face_landmark_points = faces_landmark_points [ larger_face_index ] return largest_face_landmark_points
choose largest face from all the faces in a given image.
choose largest face from all the faces in a given image .
"""choose largest face from all the faces in a given image.

        Parameters
        ----------
        faces_landmark_points : list
            landmark points of all the faces.

        Returns
        -------
        largest_face_landmark_points: list
            return landmark points of the largest face.

        """
self
faces_landmark_points