brodigan-e / capstone-POV

NEU Capstone Project
MIT License
2 stars 1 forks source link

Add a first cut at an image generation script #24

Closed jbewing closed 3 years ago

jbewing commented 3 years ago

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
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

cc @DarkAce65 @brodigan-e Related to: https://github.com/brodigan-e/capstone-POV/issues/9