This week I was able to get more work done with the backend python scripting. I fully implemented the structures for handling the backend both while the camera is recording or just idling and waiting for the user to do something. This required me to implement several while loops with conditionals directing processing to either remain in the outer loops or enter the processing parts of the inner loops. One disappointment was that I was unable to use keypresses to simulate Nano GPIO inputs. I’m not sure if this is a result of there being 2 processes trying to intercept these inputs or what have you but I’ve been unable to make this work. This means that the full backend system as it stands now I can only test through code tracing and making sure the logic I’ve implemented makes sense. The good news is that I’ve been able to find the way to save videos using OpenCV, so to complete the save part of the system should just involve editing a variable to point the save file to the right path/where the SD card lives in the file system. Hopefully this means that once I’m able to get this code onto the Nano I should be able to immediately debug and start getting this system running up to spec.

Actually the biggest achievement for this week was my ability to correct my bugs linked to using shared memory objects. Before, I was unable to utilize this module to allow my separate processes to communicate, but now it not only works but functions exactly as I intended it to. This breakthrough for me allowed me to make rapid progress as this impediment would’ve halted my progress until I could resolve it.


0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *