mirror of
https://github.com/kristoferssolo/Traffic-Light-Detector.git
synced 2025-10-21 20:00:36 +00:00
Renamed webcam to camera
This commit is contained in:
parent
8647acdc8d
commit
455226432a
@ -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)
|
||||
Loading…
Reference in New Issue
Block a user