Running the following works perfectly when I do it in my terminal
python3 number_detection.py --train_predict 'P' --file 'Images/2/_newsize_1.png'
However, I need to be able to perform this task in a different script. I'm looping through images and want to return what they're recognized as.
So running the above in the terminal works fine, but how do I translate that code to work in a different .py file?