Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import argparse
- def count_objects(file_path: str):
- # Your algorithm
- pass
- def parse_args():
- """Parse command line arguments.
- Returns:
- Arguments
- """
- parser = argparse.ArgumentParser(
- description="Detects object in an image."
- )
- parser.add_argument(
- "--file_path",
- type=str,
- default="somefile.jpg",
- help="Path to an image file.",
- )
- return parser.parse_args()
- if __name__ == '__main__':
- args = parse_args()
- count_objects(args.file_path)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement