红外相关
记录日常
噜啦噜啦嘞113
这个作者很懒,什么都没留下…
展开
-
热图转换成温度矩阵
对温度矩阵转图片进行补充,之前被问到了,回答时想的简单了。。。# -- coding: utf-8 --import cv2import color_tableimport numpy as np# 热图转换成温度矩阵# 思路:将图片读取出来,根据color_table中的映射关系将找到原始的温度值def read_txt(txt_path, height=288, width=384): with open(txt_path, 'r') as f_r: temp原创 2022-03-06 00:55:35 · 1842 阅读 · 4 评论 -
温度矩阵转图片补充
补充上一篇只写了10进制的温度矩阵转化为图片的方法,这篇就写一下遇到的二进制数据和和yuv格式的数据的情况二进制温度矩阵转化import pandas as pdimport numpy as npimport structdef read_bin(file, height, width): ''' :param file: 要转化的文件名 :param height: 热图的纵向像素 :param width: 热图的横向像素 :return: 转原创 2022-03-06 01:00:37 · 828 阅读 · 0 评论 -
温度矩阵转图片
温度矩阵转图片前言在使用热像仪的时候可能会出现图片展示效果并不是自己希望得到的情况,这时候我们就可以将获取的温度矩阵重新渲染。问题: 比如说我们在热像仪上看到的画面是黑白的(疫情防控很重要):这时候我们希望能获取铁红或者别的图像如:不废话了,开整。1.引入库import cv2import numpy as npfrom color_table import get_color_table2.将txt格式温度矩阵读出来def read_txt(txt_path, height=2原创 2022-03-06 01:00:44 · 3449 阅读 · 16 评论