Submission of Assignment 3 as part of ENPM809T in the University of Maryland, College Park. The following tasks were carried out as part of this assignment.
1. Used HSV masking to convert a recorded RGB image using the raspberry Pi and converting it into the HSV colorspace using OpenCV's cv2.cvtColor() function. The HSV image is used create a mask of the green spotlight in the image of the traffic signal. The images are displayed using NumPy's hstack() function.
2. The identified mask from the HSV image is used to find contours to draw a minimum enclosing circle around the green light in the RGB Image. The cv2.minEnclosingCircle(), cv2.moments() and cv2.circle() was used to form contours.
3. Used the picamera video feed to continously track the green spotlight using the picamera module. The picamera feed was shot under different backgrounds and lighting.
Ещё видео!