![]()
Arduino camera point and shoot code#In some cases this can make the code less readable - but the beauty of an Arduino library is that this can be abstracted (hidden) from user sketch code beneath the cleaner library function APIs. Sometimes it is necessary to restructure algorithms, pay attention to compiler behavior, or even analyze timing of machine code instructions in order to squeeze the most out of a microcontroller. However, embedded systems have constrained resources, and when applications demand more performance, some trade-offs might have to be made. Being readable and optimized don’t necessarily have to be mutually exclusive. In fact there are very good reasons to prioritize readable, maintainable code. It’s rarely practical or necessary to optimize every line of code you write. Let’s have a look at how Larry approached the camera library optimization and how some of these techniques can apply to your Arduino code in general. Larry’s work got the camera image read down from 1500ms to just 393ms for a QCIF (176×144 pixel) image. Arduino camera point and shoot software#This is a simplified example of how two of the CMSIS-NN optimization techniques are used.įigure 3: Performance with CMSIS-NN and camera library optimizationsįor this, we enlisted the help of Larry Bank who specializes in embedded software optimization.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |