Update irpythermal.py dead_pixels_mask to also include hot pixels#4
Open
mdarnold1 wants to merge 1 commit into
Open
Update irpythermal.py dead_pixels_mask to also include hot pixels#4mdarnold1 wants to merge 1 commit into
mdarnold1 wants to merge 1 commit into
Conversation
diminDDL
requested changes
Nov 19, 2025
Owner
diminDDL
left a comment
There was a problem hiding this comment.
Good idea, but on my end it detects way too many hot pixels for my liking on my camera:
python ./pyplot.py -r -o -12.3
Found a camera 0 with resolution 256x196
Waiting for camera to stabilize...
Min: 0.0, Max: 7528.0, Avg: 6297.91455078125
Min: 0.0, Max: 7551.0, Avg: 6312.3125
Camera is stable with std: 2.8034488371369637
Min: 0.0, Max: 7566.0, Avg: 6325.80419921875
Found 580 dead pixels
At: [[ 1 237]
[ 2 117]
[ 3 36]
...
[ 77 201]
[ 78 99]
[ 81 120]]
Maybe have separate hot and colt margins? Considering that hot pixels are usually not an issue maybe don't enable it by default and have a command line option to enable it if needed?
tdamsma
added a commit
to CEAD-group/ht301_t2s_plus_python
that referenced
this pull request
Mar 24, 2026
irpythermal.py changes: - calibrate_raw() now detects both cold AND hot stuck pixels using symmetric 5% threshold (previously only detected cold pixels) Source: diminDDL/IR-Py-Thermal PR stawel#4 diminDDL#4 - Add save_calibration() and load_calibration() methods to persist reference frame and dead pixel mask as .npy files across restarts Source: MCMH2000/OpenHD_HT301_Driver noise_pattern_calibration.npy approach https://github.com/MCMH2000/OpenHD_HT301_Driver - Fix resource leak in find_device(): release cameras that don't match supported resolutions instead of leaving them open - Replace bare except with except Exception
This was referenced Mar 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.