Zum Inhalt springen

Calculator + Live Camera Project

Hey there!

Recently built this live camera thing for my nspire because I thought it would be cool to take pictures with it, as ive never seen it being done before. It’s working a bit poorly, so im still trying to find better and more optimized ways to transmit and render this kind of data over serial.

Its using an esp32-cam to take the pictures, then I convert them into pixel art, then into a string, and compress it with a basic huffman encoder before sending it over. the calc is responsible for decompression and rendering.

It *works*, but performance is my main issue here. both in terms of transmission speed and decompression/rendering time on the calculator side. I picked the huffman algo since it seemed to balance compression ratio with relatively low processing time, also bcus it was suggested to me, but im not entirely satisfied with it’s preformance especially since its using the nspire’s lua framework with the asi lib which is horrible in it’s own way.
Are there better compression methods for this kind of limited setup? I’m not really sure if the nspire’s end can be sped up, so maybe a shorter compression output would make it faster to read.

The project is available at https://github.com/hexanitrohexaazaisowurtzitane/Nspire-live-camera, and you can also see the demo in the video appended. I’m not trying to promote anything, im just curious on what you think of this project and on how to improve the preformance side of things / any general ideas you people might have.

Please let me know your thoughts 🙂
Thanks!

submitted by /u/degenmaxxer
[link] [comments]

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert