<h5 dir="auto">System information (version)</h5>

<ul dir="auto">
<li>OpenCV =&gt; 4.0.1</li>
<li>Operating System / Platform =&gt; Windows 10 64bit</li>
<li>Compiler =&gt; Visual C++ 14.0</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">Hi, this is my first bug report,<br>
I have tried to use this example code:<br>
<a href="https://docs.opencv.org/3.4.3/db/da4/samples_2dnn_2text_detection_8cpp-example.html" rel="nofollow">https://docs.opencv.org/3.4.3/db/da4/samples_2dnn_2text_detection_8cpp-example.html</a></p>
<p dir="auto">It doesn't work well on my computer when trying to load images,<br>
I tried replacing</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="    if (parser.has(&quot;input&quot;))
	cap.open(parser.get&lt;String&gt;(&quot;input&quot;));
    else
	cap.open(0);
    ...
    ...
    ...
    cap &gt;&gt; frame;"><pre class="notranslate"><code class="notranslate">    if (parser.has("input"))
	cap.open(parser.get&lt;String&gt;("input"));
    else
	cap.open(0);
    ...
    ...
    ...
    cap &gt;&gt; frame;
</code></pre></div>
<p dir="auto">with a simpler code:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="   frame = imread(parser.get&lt;String&gt;(&quot;input&quot;), cv::IMREAD_COLOR);"><pre class="notranslate"><code class="notranslate">   frame = imread(parser.get&lt;String&gt;("input"), cv::IMREAD_COLOR);
</code></pre></div>
<p dir="auto">and it worked. Before that the command cap &gt;&gt; frame did not load the image.</p>
<h5 dir="auto">Steps to reproduce</h5>

<p dir="auto">Change these lines :</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="    cap &gt;&gt; frame;
    if (frame.empty())
    {
        waitKey();
        break;
    }"><pre class="notranslate"><code class="notranslate">    cap &gt;&gt; frame;
    if (frame.empty())
    {
        waitKey();
        break;
    }
</code></pre></div>
<p dir="auto">to this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="frame = imread(parser.get&lt;String&gt;(&quot;input&quot;), cv::IMREAD_COLOR);"><pre class="notranslate"><code class="notranslate">frame = imread(parser.get&lt;String&gt;("input"), cv::IMREAD_COLOR);
</code></pre></div>
<p dir="auto">Transferred from <a href="http://code.opencv.org/issues/3752" rel="nofollow">http://code.opencv.org/issues/3752</a></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="|| Vasili Gulevich on 2014-06-14 06:37
|| Priority: Normal
|| Affected: 2.4.9 (latest release)
|| Category: java bindings
|| Tracker: Bug
|| Difficulty: 
|| PR: 
|| Platform: Any / Any"><pre class="notranslate"><code class="notranslate">|| Vasili Gulevich on 2014-06-14 06:37
|| Priority: Normal
|| Affected: 2.4.9 (latest release)
|| Category: java bindings
|| Tracker: Bug
|| Difficulty: 
|| PR: 
|| Platform: Any / Any
</code></pre></div>
<h2 dir="auto">BOW*Trainers are missing in Java API</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Following functionality is missing in Java API:

* BOWTrainer
* BOWKMeansTrainer

&quot;It is possible to port in Python, but Java automatic binding generation won't work&quot;:http://answers.opencv.org/question/34700/bowkmeanstrainer-in-python

Related questions:
http://answers.opencv.org/question/24444/developping-a-java-bag-of-words-implemetation/
http://answers.opencv.org/question/10961/bowtrainer-in-java-api/
http://answers.opencv.org/question/17537/train-kmeans-in-java-api-for-bow/"><pre class="notranslate"><code class="notranslate">Following functionality is missing in Java API:

* BOWTrainer
* BOWKMeansTrainer

"It is possible to port in Python, but Java automatic binding generation won't work":http://answers.opencv.org/question/34700/bowkmeanstrainer-in-python

Related questions:
http://answers.opencv.org/question/24444/developping-a-java-bag-of-words-implemetation/
http://answers.opencv.org/question/10961/bowtrainer-in-java-api/
http://answers.opencv.org/question/17537/train-kmeans-in-java-api-for-bow/
</code></pre></div>
<h2 dir="auto">History</h2>
<h5 dir="auto">Poyan Nabati on 2015-03-09 12:30</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Vasili Gulevich wrote:
&gt; Following functionality is missing in Java API:
&gt; 
&gt; * BOWTrainer
&gt; * BOWKMeansTrainer
&gt; 
&gt; &quot;It is possible to port in Python, but Java automatic binding generation won't work&quot;:http://answers.opencv.org/question/34700/bowkmeanstrainer-in-python
&gt; 
&gt; Related questions:
&gt; http://answers.opencv.org/question/24444/developping-a-java-bag-of-words-implemetation/
&gt; http://answers.opencv.org/question/10961/bowtrainer-in-java-api/
&gt; http://answers.opencv.org/question/17537/train-kmeans-in-java-api-for-bow/

Any update on this?"><pre class="notranslate"><code class="notranslate">Vasili Gulevich wrote:
&gt; Following functionality is missing in Java API:
&gt; 
&gt; * BOWTrainer
&gt; * BOWKMeansTrainer
&gt; 
&gt; "It is possible to port in Python, but Java automatic binding generation won't work":http://answers.opencv.org/question/34700/bowkmeanstrainer-in-python
&gt; 
&gt; Related questions:
&gt; http://answers.opencv.org/question/24444/developping-a-java-bag-of-words-implemetation/
&gt; http://answers.opencv.org/question/10961/bowtrainer-in-java-api/
&gt; http://answers.opencv.org/question/17537/train-kmeans-in-java-api-for-bow/

Any update on this?
</code></pre></div>