mirror of
https://github.com/kristoferssolo/Traffic-Light-Detector.git
synced 2026-03-22 00:36:22 +00:00
Changed package name
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user