This PR updates the REST API to automatically process and save all images in our "optimized for the MCU" format. I was doing some slides and I really wanted to write that the REST API had the functionality of processing these images, so I just added it (to not make any misleading statements of course 😉 ).
Details
Saved into image-processed/{uuid} w/ almost the exact same format as what we used to print the C-code
Done synchronously on upload
Testing
I ran the following commands
$ poetry run task apply-migrations
$ poetry run task run &
$ curl -F "file=@/Users/jbewing/Desktop/a_golden_retriever.jpeg" 127.0.0.1:5000/api/images
...
$ kill %1
and verified that the text file was indeed created on my local filesystem.
This PR updates the REST API to automatically process and save all images in our "optimized for the MCU" format. I was doing some slides and I really wanted to write that the REST API had the functionality of processing these images, so I just added it (to not make any misleading statements of course 😉 ).
Details
Testing
I ran the following commands
and verified that the text file was indeed created on my local filesystem.
cc @DarkAce65 Closes: https://github.com/brodigan-e/capstone-POV/issues/9