From 455226432a18bf256b82df168a3b8a21b83b1fbd Mon Sep 17 00:00:00 2001 From: Kristofers Solo Date: Sat, 24 Dec 2022 11:36:20 +0200 Subject: [PATCH] Renamed `webcam` to `camera` --- .../{traffic_light_webcam.py => traffic_light_camera.py} | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) rename src/TrafficLightDetector/{traffic_light_webcam.py => traffic_light_camera.py} (89%) diff --git a/src/TrafficLightDetector/traffic_light_webcam.py b/src/TrafficLightDetector/traffic_light_camera.py similarity index 89% rename from src/TrafficLightDetector/traffic_light_webcam.py rename to src/TrafficLightDetector/traffic_light_camera.py index da43275..0ba336e 100644 --- a/src/TrafficLightDetector/traffic_light_webcam.py +++ b/src/TrafficLightDetector/traffic_light_camera.py @@ -1,10 +1,11 @@ import cv2 -from paths import SOUND_PATH from playsound import playsound + +from TrafficLightDetector.paths import SOUND_PATH from TrafficLightDetector.traffic_light_detector import TrafficLightDetector -class TrafficLightDetectorWebcam(TrafficLightDetector): +class TrafficLightDetectorCamera(TrafficLightDetector): def __init__(self, source: int, sound: bool = False) -> None: self.video_capture = cv2.VideoCapture(source)