This PR adds a script that processes an arbitrary image for the PoV display and outputs the necessary C code such that the processed data can be shown on the MCU.
I apologize for writing this. The algorithm is generally as follows at the moment:
Take the segment of pixels in the right center of a thumbnailed view of the original image
Save those
Rotate the image 3 degrees (relative to the OG image i.e. only one "rotation" operation is performed from the base image to prevent tearing from successive rotation transformations)
loop until we've gone 360 degrees
output these processed images so that they can be copy-pasta'd into the MCU source
Usage
poetry run python image_processor.py <path_to_image>
# Example:
poetry run python image_processor.py /Users/jbewing/Desktop/a_golden_retriever.jpeg
# Most likely worth it to redirect output to a file as they get _quite_ large
run python image_processor.py /Users/jbewing/Desktop/a_golden_retriever.jpeg > /Users/jbewing/Desktop/golden_retriever_pov_pixels.txt
This PR adds a script that processes an arbitrary image for the PoV display and outputs the necessary C code such that the processed data can be shown on the MCU.
I apologize for writing this. The algorithm is generally as follows at the moment:
Usage
cc @DarkAce65 @brodigan-e Related to: https://github.com/brodigan-e/capstone-POV/issues/9