Changed package name

This commit is contained in:
Kristofers Solo
2022-12-21 12:04:12 +02:00
parent 190d7613fc
commit 322c40669b
3 changed files with 4 additions and 4 deletions

View File

@@ -4,8 +4,8 @@ from TrafficLightDetector.traffic_light_detector import TrafficLightDetector
class TrafficLightDetectorWebcam(TrafficLightDetector):
def __init__(self) -> None:
self.video_capture = cv2.VideoCapture(0) # Change number if webcam didn't detect
def __init__(self, source: int) -> None:
self.video_capture = cv2.VideoCapture(source)
def enable(self) -> None:
while True: