This commit is contained in:
Tulis
2025-09-10 19:59:07 +02:00
parent 35e0f79b35
commit d3063a6048
2 changed files with 11 additions and 4 deletions

View File

@ -16,8 +16,7 @@ class Method:
def __init__(self, method_type):
self.method_type = method_type
print(method_type)
if method_type is "cam":
if method_type == "cam":
self.cap = cv2.VideoCapture(0)
if not self.cap.isOpened():