Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion TASK2 OpenCV/Shaun_Pimenta/Circle Detection.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import cv2
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
a = str(input("Enter circle color"))
a = str(input("Enter circle color: "))
cap = cv2.VideoCapture(0)

while (1):
Expand Down Expand Up @@ -99,6 +100,8 @@
print(r)
print(f"Center is ({x},{y})")
cv2.imshow('gray',gray)
cv2.imshow('mask',mask)
cv2.imshow('mask_3',mask_3)
# stacking up all three images together
stacked = np.hstack((mask_3, output, res))
gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
Expand Down