← Back to Portfolio

Video Projection using YOLOv5

OpenCV Perspective Transformation with Object Detection

OpenCV Perspective Transformation

This project demonstrates perspective transformation techniques using OpenCV combined with YOLOv5 object detection for video analysis.

# Perspective transformation matrix
ipm_matrix = cv.getPerspectiveTransform(src_points, dst_points)
# IPM matrix [3x3] describes coordinate mapping from source to destination
bev_img = cv.warpPerspective(image, ipm_matrix, output_size)
# Applies the transformation to create bird's eye view

Demo Video

Demo Video with detections