hi master
i use openmv4 and lepton3.5
i hope to send the ordinary data of lepton to other pc by using mqtt
i think may be two ways
1 sensor.snapshot() get the image,then use ‘ get_pixel’ or ‘get_statistics’
but i get error ‘MemoryError: memory allocation failed, allocating 16824 bytes’,i think may be head size not enough,May i use stack to map a large array?and how?
256KB .DATA/.BSS/Heap/Stack
512KB Frame Buffer/Stack
256 KB DMA Buffers
(1MB Total)
2 i can send the jpeg compressed image,then uncompressed the image,use the min and max temperature,maybe can get the ordinary data
i I refer to demo of mjpeg_stream_ap.py
cframe=img.compress(quality=35)
client.publish("openmv/test", cframe)
i get err the image not get ‘len’,and How can I convert an image to a format that mqtt can forward, such as byte, string, or JSON
Thanks a lot