According to my reverse engineering the lower video frame contains the temperature data directly in Kelvin. It's 14-bit, shifted into the most significant bits, multiplied by a factor of 16.
So to get from the value from the camera to a temperature in °C, the formula is:
t = ((x >> 2) / 16) - 273.15
or simpler:
t = x / 64 - 273.15
Dear all,
I’ve just joined the forum, and I apologize in advance if this post is not in the right place.
I recently purchased a Thermal Master P2 camera, and I'm working on extracting temperature data from the raw image files for further analysis. So far, I’ve managed to retrieve the raw data from the JPG files and convert it to temperature using the formula suggested by LeoDJ (Thank you for that helpful insight!):
T = x / 64 - 273.15 (Eq. 1)
However, I’ve run into an issue when switching the camera to extended range mode (100–600°C). The conversion using Eq. 1 appears to give incorrect results, even though the Temp Master app and the saved JPG image show accurate temperatures.
I tested a hot source at approximately 280°C, verified with both the Thermal Master P2 and a FLIR E75 camera. Both cameras reported a consistent temperature of ~280°C, so I’m confident that’s the correct value. However, when I extract the raw values from the JPG and apply Eq. 1, I get a result of 310°C. In another test, a source at 310.1°C yields a converted temperature of 442.7°C using the same equation, a clear mismatch.
I also tried reading the image using P2 Pro Viewer (
https://p2proviewer.streamlit.app/) and observed the same (incorrect) temperature values, which suggest the issue lies in the conversion rather than the raw extraction.
Has anyone else encountered this issue?
Could there be a different conversion formula for the extended temperature range?
Does the raw data scale differently depending on the camera's gain mode?
Is it possible the camera applies a different calibration internally that’s not reflected in Eq. 1?
I’ve attached some sample images (next comment) in case anyone wants to investigate further or run their own tests.
Any suggestions, insights, or guidance would be greatly appreciated! Thanks in advance for your help.
Best regards,
Simone