Open Rich700000000000 opened 8 years ago
You can apply the annotation directly to the source images after read_im_and_get_landmarks
im1, landmarks1 = read_im_and_landmarks(sys.argv[1])
im2, landmarks2 = read_im_and_landmarks(sys.argv[2])
im1_annotated = annotate_landmarks(im1, landmarks1)
im2_annotated = annotate_landmarks(im2, landmarks2)
cv2.imwrite('output-src1-annotate.jpg', im1_annotated)
cv2.imwrite('output-src2-annotate.jpg', im2_annotated)
Cool, thanks.
In faceswap.py there is this chunk of code:
Which I assume was used to generate like this image. However, the code was never used and despite my attempts I can't seem to get it working. Can you show me how it worked?