-
Notifications
You must be signed in to change notification settings - Fork 1
/
intelligent-camera.py
29 lines (19 loc) · 889 Bytes
/
intelligent-camera.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import argparse
import logging
from driver.IntelligentCamera import IntelligentCamera
def main():
parser = argparse.ArgumentParser(description='An application for adding intelligence to '
+ 'a collection of cameras.')
parser.add_argument('-i', '--input', default='.',
help='The input directory to search for images in.')
parser.add_argument('-o', '--output', default='./output',
help='The output directory to store processed images in.')
parser.add_argument('-v', '--verbose', default=False, action='store_true',
help='Turn on debugging messages.')
options = vars(parser.parse_args())
if options['verbose']:
logging.basicConfig(level=logging.DEBUG)
intelligentCamera = IntelligentCamera(options)
intelligentCamera.run()
if __name__ == "__main__":
main()