Created
December 16, 2018 15:43
-
-
Save keithweaver/b0abeff725e05dc32f647ef86809eb04 to your computer and use it in GitHub Desktop.
Sample code used in http://localhost:3000/docs/tutorial/smart-dashcam
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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