Discussion related to "under the hood" OpenMV topics.
3 posts • Page 1 of 1
I occasionally get an out of memory error when trying to print(img.compressed_for_ide(quality = 30)). I understand that jpegs are large even when compressed, but I'm confused as to why sometimes I can show the image in the serial terminal IDE and other times not. Is there an explicit way to clear the onboard memory of the M7 at the end of the script? Would that prevent me from running into this issue?
Yes, use the compress() method versus compressed (). Compress() compressed in place. The ed() method creates a copy in the heap which is tiny.
This fixed my problem - thanks!
Who is online
Users browsing this forum: No registered users and 4 guests