Repository navigation
Create text_detection.py - #13429
Create text_detection.py#13429vishwesh5 wants to merge 5 commits into
Conversation
#12270 Deep Learning text detection sample (Python)
| # Model argument | ||
| parser.add_argument('--model', required=True, | ||
| help='Path to a binary .pb file of model contains trained weights.' | ||
| ) |
There was a problem hiding this comment.
I think # Model argument and others are redundant. We already have add_argument and model.
There was a problem hiding this comment.
@dkurt Thanks for that. I am trying to follow the same code style as in the C++ code and that's why you would notice the model argument.
I can change it of course but then it would create a variation between the C++ and Python code.
There was a problem hiding this comment.
@dkurt, which one do you think I should remove?
There was a problem hiding this comment.
The reason I would like to keep the following arguments:
input- for the image/video/webcam inputmodel- model path (Though I think we can remove this since in most cases thepbfile is saved in the same directory)width,height- Is there a standard value I should fix these to?thr,nms- we can fix these to default values (0.5, 0.4 respectively)
|
if you rename |
|
@vishwesh5, thank you! Could you pleas consider my comments (see above) and fix the warnings about trailing whitespaces: https://pullrequest.opencv.org/buildbot/builders/precommit_docs/builds/18800/steps/whitespace%20opencv/logs/stdio? |
|
Thanks @berak |
opencv#12270 opencv#13429 **Deep Learning text detection sample (Python)** - Tested on **Ubuntu 18.04** - OpenCV 3.4.3, OpenCV 3.4.4, OpenCV 4.0 (master branch) - Python version supported - Python 2 and Python 3
opencv#12270 opencv#13429 **Deep Learning text detection sample (Python)** - Tested on **Ubuntu 18.04** - OpenCV 3.4.3, OpenCV 3.4.4, OpenCV 4.0 (master branch) - Python version supported - Python 2 and Python 3
* Create text_detection.py opencv#12270 opencv#13429 **Deep Learning text detection sample (Python)** - Tested on **Ubuntu 18.04** - OpenCV 3.4.3, OpenCV 3.4.4, OpenCV 4.0 (master branch) - Python version supported - Python 2 and Python 3 * Fix trailing whitespaces * Update text_detection.py * Remove whitespace * Remove comments * Remove unused packages * Update description
#12270
Deep Learning text detection sample (Python)