Adafruit_AMG88xx icon indicating copy to clipboard operation
Adafruit_AMG88xx copied to clipboard

Added temporal smoothing and automatic temperature scale, not sure if should contribute back?

Open DavyLandman opened this issue 4 years ago • 3 comments

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

DavyLandman avatar Nov 22 '21 19:11 DavyLandman

nice, you can submit it as a PR :)

ladyada avatar Nov 22 '21 19:11 ladyada

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.

DavyLandman avatar Nov 22 '21 19:11 DavyLandman

This seems similar to #3 ?

caternuson avatar May 12 '22 19:05 caternuson