Hackster is hosting Hackster Holidays, Ep. 7: Livestream & Giveaway Drawing. Watch previous episodes or stream live on Friday!Stream Hackster Holidays, Ep. 7 on Friday!
Dheeraj BhartiParikshit Saha
Created April 24, 2024

Hardware-Software based approach towards defogging

Here we are going to build a low-cost portable hardware-software solution focusing toward real-time defogging for enhancing visibility.

35
Hardware-Software based approach towards defogging

Things used in this project

Hardware components

AMD Ryzen AI PC (Minisforum UM790Pro)
×1

Software apps and online services

AMD Ryzen AI

Story

Read more

Schematics

Overall Setup Design Basic Block Diagram

Code

Fusion of RCF output with Visible Range Images

Python
import cv2
import numpy as np

color_image = cv2.imread('whiteroofs-copy-0.jpg')
edges_colored = cv2.imread('whiteroofs_ss.png')

# Set the edge pixels to red (or any color you prefer)
edges_colored[np.where((edges_colored == [255, 255, 255]).all(axis=2))] = [0, 0, 255]

# Overlay the edge image on the original image
overlay_image = cv2.addWeighted(color_image, 0.8, edges_colored, 0.2, 0)

# Save or display the result
cv2.imwrite('whiteroofs.jpg', overlay_image)
cv2.waitKey(0)
cv2.destroyAllWindows()

RCF Python used on IR Images

RCF Python used on IR Images to extract vital edge information which are invisible in Visible Range Images

Credits

Dheeraj Bharti
1 project • 0 followers
Parikshit Saha
13 projects • 9 followers

Comments