Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can run zad2.py without camera #24

Open
Sepideh-Rezaeirad opened this issue Sep 28, 2020 · 1 comment
Open

How can run zad2.py without camera #24

Sepideh-Rezaeirad opened this issue Sep 28, 2020 · 1 comment

Comments

@Sepideh-Rezaeirad
Copy link

Hi there,

can i swap two face from two image with zad2.py and without use of camera?
i mean i have two image named im1 and im2, i want to swap face from these two image.

if i can do that using zad2, how?

@MarekKowalski
Copy link
Owner

Hi,

You can just replace the cameraImg in zad2.py with your own image. One way to do it might be to replace line 38 with:
cameraImg = cv2.imread(<path_to_your_image>)
and commenting-out line 45.
If instead of using a video from the camera you want to use a video file, you can do the following in line 36:
cap = cv2.VideoCapture(<path_to_you_video>)

Best regards,

Marek

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants