- Clone https://github.com/ultralytics/yolov5 into directory on the same level as current project
Or change its path indetect_car.pybefore adding to Pythonpath:
cur_path = (Path(os.getcwd()) / __file__).parent
yolov5_path = cur_path.parent / 'yolov5'- Install requirements:
pip install -r requirements.txt
Add files in images/input and run
python detect_car.pyDetections will be put in images/output directory. Also paths can be set using command line arguments:
python detect_car.py --input <input-path> --output <output-path>
