Skip to content

Instantly share code, notes, and snippets.

@keithweaver
Created December 16, 2018 15:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save keithweaver/b0abeff725e05dc32f647ef86809eb04 to your computer and use it in GitHub Desktop.
Save keithweaver/b0abeff725e05dc32f647ef86809eb04 to your computer and use it in GitHub Desktop.
Sample code used in http://localhost:3000/docs/tutorial/smart-dashcam
def delete_image(image_object):
# TODO
print ('delete_image')
def process_image(image_object):
# TODO
print ('process_image')
def get_image_from_path(image_path):
print ('get_image_from_path')
def get_list_of_image_file_paths_from_args():
print ('get_list_of_image_file_paths_from_args')
def main():
images = get_list_of_image_file_paths_from_args()
for image_path in images:
image = get_image_from_path(image_path)
process_image(image)
delete_image(image_path)
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment