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

@ -25,7 +25,7 @@ def main(args) -> None:
create_dirs()
if args.webcam:
from TrafficLightDetector.traffic_light_webcam import TrafficLightDetectorWebcam
camera = TrafficLightDetectorWebcam()
camera = TrafficLightDetectorWebcam(0) # Change number if webcam didn't detect
camera.enable()
if args.image:

View File

@ -1,5 +1,5 @@
[metadata]
name = detector
name = TrafficLightDetector
desctiption = Reduce traffic congestion effects due to human reaction times at intersections with traffic lights by utilizing a computer system based on direct communication method of changes in the circumscribed route intersection.
author = Kristofers Solo
license = MIT

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: