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

pass background images as command line arguments #4

Open
bowbahdoe opened this issue Jun 8, 2018 · 0 comments
Open

pass background images as command line arguments #4

bowbahdoe opened this issue Jun 8, 2018 · 0 comments

Comments

@bowbahdoe
Copy link

You can use the built-in python argparse module or the click library to allow people to pass in things like the images to use for the body and for the eyes as arguments.

For example python face_track.py --background=base.png --eyes=eyes.png

This is a usability win because it lets people experiment with the functionality of the code (having eyes follow a person) with different images without having to touch the code itself.

These args can be optional, so the defaults you have will work just fine.

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

1 participant