Skip to content

Commit

Permalink
deploy: 87f5d27
Browse files Browse the repository at this point in the history
  • Loading branch information
nekiwo committed Oct 8, 2024
1 parent a1f611e commit 9c20f4b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions dev/PreseasonTraining/OpenCV_ColorSegmentation/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -361,8 +361,7 @@ <h3>Camera stream<a class="headerlink" href="#camera-stream" title="Permalink to
<section id="showing-image">
<h3>Showing image<a class="headerlink" href="#showing-image" title="Permalink to this heading"></a></h3>
<p>Use the <code class="docutils literal notranslate"><span class="pre">cv.imshow</span></code> function to show image with the first argument corresponding to window title and the second being the frame. Make sure this is inside your while loop so it keeps updating.</p>
<div class="highlight-py notranslate"><div class="highlight"><pre><span></span><span class="n">cv</span><span class="o">.</span><span class="n">imshow</span><span class="p">(</span><span class="s2">&quot;Mask&quot;</span><span class="p">,</span> <span class="n">mask</span><span class="p">)</span>
<span class="n">cv</span><span class="o">.</span><span class="n">imshow</span><span class="p">(</span><span class="s2">&quot;Feed&quot;</span><span class="p">,</span> <span class="n">final_image</span><span class="p">)</span>
<div class="highlight-py notranslate"><div class="highlight"><pre><span></span><span class="n">cv</span><span class="o">.</span><span class="n">imshow</span><span class="p">(</span><span class="s2">&quot;Window Title&quot;</span><span class="p">,</span> <span class="n">your_frame</span><span class="p">)</span>
</pre></div>
</div>
</section>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ cv.destroyAllWindows()
Use the `cv.imshow` function to show image with the first argument corresponding to window title and the second being the frame. Make sure this is inside your while loop so it keeps updating.

```py
cv.imshow("Mask", mask)
cv.imshow("Feed", final_image)
cv.imshow("Window Title", your_frame)
```

### NumPy arrays
Expand Down
Loading

0 comments on commit 9c20f4b

Please sign in to comment.