How to modify the detection.py script to automatically have input and HEF file?

I’m modifying the detection.py script for my own stuff, but it’s annoying to have to add the “–input” and “–hef-path” flags to the terminal command every time. What code can I add to make it automatically choose USB video input and use yolov8m by default?

Welcome to the Hailo Community!

I recommend to use ChatGPT for these kind of generic questions. It really good at explaining code and making modifications. It might make mistakes here and there but it is a good programming companion.

Maybe store the cli command in a bash script and make it executable. Thats what I do.