Initial commit

This commit is contained in:
Senad Uka
2019-11-17 12:44:16 +01:00
parent e41eae7301
commit a3ef27c7a0
4894 changed files with 1771218 additions and 0 deletions

13
count_cars.py Normal file
View File

@@ -0,0 +1,13 @@
from amazonservices import uploader, analyzer;
import sys
import base64
import os
name = sys.argv[1]
filename, file_extension = os.path.splitext(name)
with open(name, "rb") as f:
encoded = base64.b64encode(f.read())
name = uploader.upload_file(encoded, file_extension)
number, instances = analyzer.cars(name)
print("Service recognized %d cars" % number)