You can simply install the project with the help of requirements.txt
included.
Just use the following commands:
1] https://github.com/pratik-suhas-pawar/Color-Tracking.git
2] pip install -r requirements.txt
The main aim is to detect orange circles in the given video. To begin with, we will detect the color orange.
Step 1] Converting video frame into HSV Color space.
cv2.cvtColor(src, cv2.COLOR_BGR2HSV)
Step 2] Getting the desired color and creating its mask.
cv2.inRange(src, lower, upper)
Nextly, we will detect the edges and find the contors.
Step 3] Bluring the video frame
cv2.GaussianBlur(src, kernel, sigmaX)
Step 4] Finding the edges
cv2.Canny(src, thresh_1, thresh_2, edges)
Averaging x and y coordinates and draw rectangle
Step 5] Drewing the rectangle
cv2.rectangle(src, pt_1, pt_2, color, thickness)