Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
DavyLandman opened this issue Nov 22, 2021 · 3 comments

Comments

@DavyLandman
Copy link

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

@ladyada
Copy link
Member

ladyada commented Nov 22, 2021

nice, you can submit it as a PR :)

@DavyLandman
Copy link
Author

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.

@caternuson
Copy link
Contributor

This seems similar to #3 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants