So, I am using a python file to run object detection on an image. I want to run this file inside a python script and save the output from a .py file.
python3 yolo_video.py --model='models.h5' --classes='_classes.txt' --image --input='pic1.jpeg' --output='obj_det
So, I need the output in a Python file. I put an exclamation mark because that is what happens in the jupyter notebook. How do I run it in the script? I don't want to change function in the yolo_video.py file.
python output = !python3 yolo_video.py --model='models.h5' --classes='_classes.txt' --image --input='pic1.jpeg' --output='obj_det