我正在寻找访问相机热数据的解决方案。好吧,我使用了OpenCV,只能得到原始图像。但没有更多的过程数据,如温度。我尝试了有关海康威视相机的可用库并为此上网。但我无法成功。我也尝试了 FLIR 库,但没有成功。
我的第二个解决方案是将 RGB 转换为温度,但我不知道如何处理这种过程。我也知道设备温度范围在 20 到 150 度之间
寻找这样的东西:
# cam model: hikvision DS-2TD2615-10
import cv2
import hikvision api library for example
thermal = cv2.VideoCapture()
thermal.open("rtsp://""user:pass@ip:port/Streaming/channels/202/")
ret, frame = thermal.read()
while True:
ret, frame = thermal.read()
temp_data = api.read_temperature(frame) # -> array or excel file
cv2.imshow('frame', frame)
if cv2.waitKey(1) & 0xFF == ord('q'):
break
thermal.release()
cv2.destroyAllWindows()
我的视频输入类似于这张图片,例如我想通过点击它来找出鼻子有多热: