mirror of
https://github.com/kristoferssolo/Traffic-Light-Detector.git
synced 2025-10-21 20:00:36 +00:00
Disabled video support
This commit is contained in:
parent
3592fdb142
commit
5881607373
25
main.py
25
main.py
@ -32,16 +32,12 @@ parser.add_argument(
|
|||||||
action="store_true",
|
action="store_true",
|
||||||
help="detects traffic lights in images located in ./assets/detection/images_in/",
|
help="detects traffic lights in images located in ./assets/detection/images_in/",
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
# parser.add_argument(
|
||||||
"-v",
|
# "-v",
|
||||||
"--video",
|
# "--video",
|
||||||
action="store_true",
|
# action="store_true",
|
||||||
help="detects traffic lights in videos located in ./assets/detection/videos_in/",
|
# help="detects traffic lights in videos located in ./assets/detection/videos_in/",
|
||||||
)
|
# )
|
||||||
parser.add_argument(
|
|
||||||
"--test",
|
|
||||||
action="store_true",
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
@logger.catch
|
@logger.catch
|
||||||
@ -56,12 +52,9 @@ def main(args) -> None:
|
|||||||
if args.image:
|
if args.image:
|
||||||
module = importlib.import_module("detector.detect_traffic_light_color_image")
|
module = importlib.import_module("detector.detect_traffic_light_color_image")
|
||||||
module.detect_traffic_light_color_image()
|
module.detect_traffic_light_color_image()
|
||||||
if args.video:
|
# if args.video:
|
||||||
module = importlib.import_module("detector.detect_traffic_light_color_video")
|
# module = importlib.import_module("detector.detect_traffic_light_color_video")
|
||||||
module.detect_traffic_light_color_video()
|
# module.detect_traffic_light_color_video()
|
||||||
if args.test:
|
|
||||||
module = importlib.import_module("detector.test")
|
|
||||||
module.main()
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user