getJPEGHandle
getJPEGHandle (file_path)
parameters: [str] file_path: jpg file return: DIRP_HANDLE
lht_parse_djixmp
lht_parse_djixmp (file_path:str)
str2
str(object=’’) -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.__str__() (if defined) or repr(object). encoding defaults to sys.getdefaultencoding(). errors defaults to ‘strict’.
rjpeg_to_thermal
rjpeg_to_thermal (src:str, palette:int)
parameters: [str] src: file path of original jpg. For example, c:.jpg [int] palette: the number of palette DIRP_PSEUDO_COLOR_WHITEHOT = 0 DIRP_PSEUDO_COLOR_FULGURITE = 1 DIRP_PSEUDO_COLOR_IRONRED = 2 DIRP_PSEUDO_COLOR_HOTIRON = 3 DIRP_PSEUDO_COLOR_MEDICAL = 4 DIRP_PSEUDO_COLOR_ARCTIC = 5 DIRP_PSEUDO_COLOR_RAINBOW1 = 6 DIRP_PSEUDO_COLOR_RAINBOW2 = 7 DIRP_PSEUDO_COLOR_TINT = 8 DIRP_PSEUDO_COLOR_BLACKHOT = 9 return: return numpy.ndarray -> img
rjpeg_to_heatmap
rjpeg_to_heatmap (src:str, dtype='float32')
parameters: [str] src: file path of original jpg. For example, c:.jpg [str] dtype: ‘float32’ or ‘int16’ return: return numpy.ndarray -> img