Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
ayoolaolafenwa committed Sep 28, 2020
1 parent 46d30b9 commit f34512c
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 18 deletions.
6 changes: 3 additions & 3 deletions Tutorials/change_image_bg.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,11 @@ change_bg.blur_bg("sample2.jpg", low = True, output_image_name="blur_img.jpg")
```
We called the function *blur_bg* to blur the background of the image and set the blurred effect to be low. There are three parameters that control the degree in which the background is blurred.

*low* When it is set to true the background is blurred slightly.
*low:* When it is set to true the background is blurred slightly.

*moderate* When it is set to true the background is moderately blurred.
*moderate:* When it is set to true the background is moderately blurred.

*extreme* When it is set to true the background is deeply blurred.
*extreme:* When it is set to true the background is deeply blurred.

**blur_low**

Expand Down
6 changes: 3 additions & 3 deletions Tutorials/change_video_bg.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ change_bg.blur_video("sample_video.mp4", moderate = True, frames_per_second=15,

There are three parameters that control the degree in which the background is blurred.

*low* When it is set to true the background is blurred slightly.
*low:* When it is set to true the background is blurred slightly.

*moderate* When it is set to true the background is moderately blurred.
*moderate:* When it is set to true the background is moderately blurred.

*extreme* When it is set to true the background is deeply blurred.
*extreme:* When it is set to true the background is deeply blurred.

```python
change_bg.blur_video("sample_video.mp4", moderate = True, frames_per_second=15, output_video_name="blur_video.mp4")
Expand Down
Binary file modified docs/_build/doctrees/change_image_bg.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/environment.pickle
Binary file not shown.
8 changes: 5 additions & 3 deletions docs/_build/html/_sources/change_image_bg.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ You can obtain the output arrays of your changed image....
**Process frames directly with Image Tuning...**

**Blur frames**
*Blur frames*


.. code-block:: python
Expand All @@ -284,7 +284,7 @@ You can obtain the output arrays of your changed image....
break
**Color frames**
*Color frames*


.. code-block:: python
Expand All @@ -305,7 +305,7 @@ You can obtain the output arrays of your changed image....
break
**Grayscale frames**
*Grayscale frames*


.. code-block:: python
Expand All @@ -327,5 +327,7 @@ You can obtain the output arrays of your changed image....
Read the `tutorial <https://pixellib.readthedocs.io/en/latest/change_video_bg.html>`_ on blurring, coloring and grayscaling background of videos and camera's feeds.



24 changes: 19 additions & 5 deletions docs/_build/html/change_image_bg.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="index" title="Index" href="genindex.html" />
<link rel="search" title="Search" href="search.html" />
<link rel="search" title="Search" href="search.html" />
<link rel="next" title="Change the Background of A Video" href="change_video_bg.html" />
<link rel="prev" title="Inference With A Custom Model" href="custom_inference.html" />
</head>

<body class="wy-body-for-nav">
Expand Down Expand Up @@ -79,7 +81,7 @@


<p class="caption"><span class="caption-text">Contents:</span></p>
<ul>
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="image_ade20k.html"><strong>Semantic segmentation of images with PixelLib using Ade20k model</strong></a></li>
<li class="toctree-l1"><a class="reference internal" href="video_ade20k.html"><strong>Semantic segmentation of videos with PixelLib using Ade20k model</strong></a></li>
<li class="toctree-l1"><a class="reference internal" href="video_ade20k.html#segmentation-of-live-camera-with-ade20k-model"><strong>Segmentation of live camera with Ade20k model</strong></a></li>
Expand All @@ -91,6 +93,8 @@
<li class="toctree-l1"><a class="reference internal" href="video_instance.html#instance-segmentation-of-live-camera-with-mask-r-cnn"><strong>Instance Segmentation of Live Camera with Mask R-cnn.</strong></a></li>
<li class="toctree-l1"><a class="reference internal" href="custom_train.html"><strong>Custom Training With PixelLib</strong></a></li>
<li class="toctree-l1"><a class="reference internal" href="custom_inference.html"><strong>Inference With A Custom Model</strong></a></li>
<li class="toctree-l1 current"><a class="current reference internal" href="#">Image Tuning With PixelLib</a></li>
<li class="toctree-l1"><a class="reference internal" href="change_video_bg.html">Change the Background of A Video</a></li>
</ul>


Expand Down Expand Up @@ -318,7 +322,7 @@
</pre></div>
</div>
<p><strong>Process frames directly with Image Tuning…</strong></p>
<p><strong>Blur frames</strong></p>
<p><em>Blur frames</em></p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="kn">import</span> <span class="nn">pixellib</span>
<span class="kn">from</span> <span class="nn">pixellib.tune_bg</span> <span class="kn">import</span> <span class="n">alter_bg</span>
<span class="kn">import</span> <span class="nn">cv2</span>
Expand All @@ -335,7 +339,7 @@
<span class="k">break</span>
</pre></div>
</div>
<p><strong>Color frames</strong></p>
<p><em>Color frames</em></p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="kn">import</span> <span class="nn">pixellib</span>
<span class="kn">from</span> <span class="nn">pixellib.tune_bg</span> <span class="kn">import</span> <span class="n">alter_bg</span>
<span class="kn">import</span> <span class="nn">cv2</span>
Expand All @@ -352,7 +356,7 @@
<span class="k">break</span>
</pre></div>
</div>
<p><strong>Grayscale frames</strong></p>
<p><em>Grayscale frames</em></p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="kn">import</span> <span class="nn">pixellib</span>
<span class="kn">from</span> <span class="nn">pixellib.tune_bg</span> <span class="kn">import</span> <span class="n">alter_bg</span>
<span class="kn">import</span> <span class="nn">cv2</span>
Expand All @@ -369,6 +373,7 @@
<span class="k">break</span>
</pre></div>
</div>
<p>Read the <a class="reference external" href="https://pixellib.readthedocs.io/en/latest/change_video_bg.html">tutorial</a> on blurring, coloring and grayscaling background of videos and camera’s feeds.</p>
</div>


Expand All @@ -377,6 +382,15 @@
</div>
<footer>

<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">

<a href="change_video_bg.html" class="btn btn-neutral float-right" title="Change the Background of A Video" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a>


<a href="custom_inference.html" class="btn btn-neutral float-left" title="Inference With A Custom Model" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>

</div>


<hr/>

Expand Down
2 changes: 1 addition & 1 deletion docs/_build/html/searchindex.js

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions docs/change_image_bg.rst
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ You can obtain the output arrays of your changed image....
**Process frames directly with Image Tuning...**

**Blur frames**
*Blur frames*


.. code-block:: python
Expand All @@ -284,7 +284,7 @@ You can obtain the output arrays of your changed image....
break
**Color frames**
*Color frames*


.. code-block:: python
Expand All @@ -305,7 +305,7 @@ You can obtain the output arrays of your changed image....
break
**Grayscale frames**
*Grayscale frames*


.. code-block:: python
Expand All @@ -327,5 +327,7 @@ You can obtain the output arrays of your changed image....
Read the `tutorial <https://pixellib.readthedocs.io/en/latest/change_video_bg.html>`_ on blurring, coloring and grayscaling background of videos and camera's feeds.



0 comments on commit f34512c

Please sign in to comment.