Object Rotation Tracking with OpenCV using ORB

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
[Music] oh hi in this video I'll be showing my implementation of object rotation tracking with open CV over the summer I worked on a few projects for a professor at the Brown University School of Engineering and one of these projects was tracking the rotation of a squash ball across individual frames of a video when I was initially approaching the use case I was considering training an object detection model using the rotation of the bounding box but for this data set specifically that wasn't entirely needed since the face of the ball facing the camera across frames was consistent for the most part it was mostly just the rotation changing I was eventually able to write a program to label the ball with a rotated bounding box to reflect its orientation using orb and algorithm for feature detection and images proof Force feature mapping and open CV's minimum area rectangle the program uses one or multiple template images which are just images of the object is trying to detect and finds matches to the template in this case the rotated squash ball in the frame using open CV's minimum area rectangle the program identifies a bounding box and the rotation of the squash ball incrementing the angle of rotation to displayed in the top left corner of the screen in this case I used two template images but I also tried implementing automatic template updating by using Contour detection and background subtraction to isolate images of the ball this method would have rotated the isolated image of the squash ball counterclockwise by the track angle so identify total rotation in the subsequent image and so on however this method will be harder to implement in busier images due to the inaccuracies and background subtraction based on Contours and it was already struggling in these frames during the Collision of the ball with the edge I eventually settled on using two images one for before and after the collision and that worked pretty well so a bit of a shorter video but I wanted to share this cuz I wasn't able to find too many solutions online I have linked the code in the description below and as always feel free to let me know if you have any questions in the comments thanks for watching and stay tuned since I have some pretty good video ideas in the works for the next few [Music] months [Music]
Info
Channel: Armaan Priyadarshan
Views: 1,169
Rating: undefined out of 5
Keywords: Python, Computer Programming, OpenCV, ORB, Computer Vision, Rotation Tracking
Id: W1exH29pD0Q
Channel Id: undefined
Length: 2min 36sec (156 seconds)
Published: Mon Sep 11 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.