viep-fault-detection / services /thermal_service.py
Sanjayraju30's picture
Update services/thermal_service.py
b17dec2 verified
raw
history blame
154 Bytes
import cv2
def detect_thermal_anomalies(image_path):
img = cv2.imread(image_path)
red_channel = img[:, :, 2]
return red_channel.mean() > 180