faceSwap.py
def showImages(self, img1, img2, swappedImage, showOriginalImages=False):
        """Display image1, image2 and warped image.

        Parameters
        ----------
        img1 : numpy.nparray
            output of image1 read with opencv.
        img2 : numpy:nparray
            output of image2 read with opencv.
        swappedImage : numpy.nparray
            the swapped image or new value of image2.

        Returns
        -------
        deosn't return any value. it just display the images.

        """

        if showOriginalImages:
            cv2.imshow("image1", img1)
            cv2.imshow("image2", img2)
        cv2.imshow("swappedImage", swappedImage)

        cv2.waitKey(0)
        cv2.destroyAllWindows()
Display image1, image2 and warped image.

        Parameters
        ----------
        img1 : numpy.nparray
            output of image1 read with opencv.
        img2 : numpy:nparray
            output of image2 read with opencv.
        swappedImage : numpy.nparray
            the swapped image or new value of image2.

        Returns
        -------
        deosn't return any value. it just display the images.

        
Display image1, image2 and warped image.
Parameters

img1 : numpy.nparray
output of image1 read with opencv.
img2 : numpy:nparray
output of image2 read with opencv.
swappedImage : numpy.nparray
the swapped image or new value of image2.

Returns

deosn't return any value. it just display the images.
Display image1 image2 and warped image . Parameters img1 : numpy . nparray output of image1 read with opencv . img2 : numpy : nparray output of image2 read with opencv . swappedImage : numpy . nparray the swapped image or new value of image2 . Returns deosn ' t return any value . it just display the images .
def showImages(self, img1, img2, swappedImage, showOriginalImages=False):
        if showOriginalImages:
            cv2.imshow("image1", img1)
            cv2.imshow("image2", img2)
        cv2.imshow("swappedImage", swappedImage)
        cv2.waitKey(0)
        cv2.destroyAllWindows()
def showImages ( self , img1 , img2 , swappedImage , showOriginalImages = False ) : if showOriginalImages : cv2 . imshow ( "image1" , img1 ) cv2 . imshow ( "image2" , img2 ) cv2 . imshow ( "swappedImage" , swappedImage ) cv2 . waitKey ( 0 ) cv2 . destroyAllWindows ( )
Display image1, image2 and warped image.
Display image1 image2 and warped image .
"""Display image1, image2 and warped image.

        Parameters
        ----------
        img1 : numpy.nparray
            output of image1 read with opencv.
        img2 : numpy:nparray
            output of image2 read with opencv.
        swappedImage : numpy.nparray
            the swapped image or new value of image2.

        Returns
        -------
        deosn't return any value. it just display the images.

        """
self
img1
img2
swappedImage
showOriginalImages