Adafruit_AMG88xx
Adafruit_AMG88xx copied to clipboard
Added temporal smoothing and automatic temperature scale, not sure if should contribute back?
Thanks to this great library and the example code I managed to make a nice heat-camera.
I've ended up extending the Thermal Cam Interpolate example by adding temporal smoothing and auto scaling of min-max values.
It measure every 200ms, and smooth the interpolated image by taking the average of the last 4 frames. This reduces the jumpiness a bit.
It also keeps track of the minimal and maximal values for the past 2 seconds, and auto scales the image based on those ranges (instead of a fixed range between 20 and 30).
For now it's here (as I'm using a different screen so had to change some code). Not sure if you would want to integrate it, but in case you would like to, here is the source: https://github.com/DavyLandman/esp-heat-camera/blob/main/src/heat-camera.cpp
nice, you can submit it as a PR :)
okay, just wanted to make sure this still fits your ideas for example code. I will find some time to translate it to a PR.
This seems similar to #3 ?