Skip to content
Advertisement

how to use argument parser in jupyter notebook

https://github.com/ITCoders/Human-detection-and-Tracking/blob/master/main.py This is the code I obtained for the human detection. I’m using anaconda navigator(jupyter notebook). How can I use argument parser in this? How can I give the video path -v ? Can anyone please say me a solution for this? As the running of the program is done by clicking on the run button or by giving shift+Enter. I need to do human detection. I’m a beginner to python and opencv. So please do help.

Advertisement

Answer

What you are asking seems similar to: Passing command line arguments to argv in jupyter/ipython notebook

There are two different methods mentioned in the post that were helpful. That said, I would suggest using command line tools and a Python IDE for writing scripts to run machine learning models. IPython may be helpful for visualization, fast debugging or running pre-trained models on commonly available datasets.

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement