Temperature Measurement
Temperature measurement algorithm initialization and calculation
Description of Class
TemperatureActionProxy
Member Function
Description
Version Introduced
int init(TempMeasureVersion algorithmVersion,iTemperConvertCallback temperConvertCallback )
Initialize temperature measurement algorithm
2.0.0
TemperInfo temperCalculateObtainRect(FaceInfo faceInfo, float[] imageData, int width, int height, int orient, float envTemper, float topN)
Measure temperature of single person on Sensepass, SenseThunderE, SenseThunderE-mini
2.0.0
TemperInfo multiTemperCalculate(MatchFace[] matchFaces, float[] temperatureData,int temperatureWidth, int temperatureHeight, float envTemper, int orient, float topN)
Measure temperature of multi persons on SenseThunderAir
2.0.0
void release()
Release temperature measurement resource
2.0.0
Description of Member Function
int init(TempMeasureVersion algorithmVersion,TemperConvertCallback temperConvertCallback )
Initialize temperature measurement algorithm
ThunderAir supports model 1.7.0 (summer mode) and 1.8.0 (normal mode) ThunderMini supports model 1.3.0 (summer mode), 1.5.0 (normal mode), 1.10.0 (winter mode), 1.11.0 (auto mode) Thunder-E supports model 1.2.0 (summer mode), 1.5.0 (normal mode)
Parameter
Parameter Name
Type
Description
Note
Version Introduced
algorithmVersion
TempMeasureVersion
Algorithm version
None
2.0.0
temperConvertCallback
TemperConvertCallback
Temperature measurement callback
None
2.0.0
Return
Return 0 if the init operation is successful, otherwise return negative value
Exception
None
TemperInfo temperCalculateObtainRect(FaceInfo faceInfo, float[] imageData, int width, int height, int orient, float envTemper, float topN)
Calculate temperature
Parameter
Parameter Name
Type
Description
Note
Version Introduced
faceInfo
FaceInfo
Face information
None
2.0.0
imageData
float[]
Image data
None
2.0.0
width
int
Image width
None
2.0.0
height
int
Image height
None
2.0.0
orient
int
Face orientation
None
2.0.0
envTemper
float
Environment temperature
None
2.0.0
topN
float
Face information(The temperature detection model detects temperature based on the points on the face. TOP N refers to a portion. Input is float such as 100%, 50%.)
None
2.0.0
Return
If the calculate operation is successful, return temperature data and region (the region is the face rectangle region where to measure the temperature), otherwise return null
Exception
None
TemperInfo[] multiTemperCalculate(MatchFace[] matchFaces, float[] temperatureData,int temperatureWidth, int temperatureHeight, float envTemper, int orient, float topN)
Calculate temperature
Parameter
Parameter Name
Type
Description
Note
Version Introduced
MatchFace[]
matchFaces
Matched face information array
None
2.0.0
temperatureData
float[]
Image data
None
2.0.0
temperatureWidth
int
Image width
None
2.0.0
temperatureHeight
int
Image height
None
2.0.0
orient
int
Face orientation
None
2.0.0
envTemper
float
Environment temperature
None
2.0.0
topN
float
Face information
None
2.0.0
Return
If the calculate is successful, return result array, otherwise return null array
Exception
None
void release()
Release temperature measurement resource
Parameter
None
Return
None
Exception
None
最終更新