Skip to content

Commit 82c55fd

Browse files
author
github-actions
committed
[docs] @Breakthrough: Generate Documentation
Source: main (85d79b6) Destination: head
1 parent 2ccc3ee commit 82c55fd

File tree

15 files changed

+73
-42
lines changed

15 files changed

+73
-42
lines changed

docs/head/.doctrees/api.doctree

0 Bytes
Binary file not shown.
377 Bytes
Binary file not shown.
10.2 KB
Binary file not shown.
-1.68 KB
Binary file not shown.
-1008 Bytes
Binary file not shown.
11.9 KB
Binary file not shown.

docs/head/_sources/api.rst.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ The `scenedetect` API is easy to integrate with most application workflows, whil
99

1010
* :ref:`scenedetect.detectors 🕵️ <scenedetect-detectors>`: detection algorithms:
1111

12+
* :mod:`AdaptiveDetector <scenedetect.detectors.adaptive_detector>` finds fast cuts using rolling average of HSL changes
13+
1214
* :mod:`ContentDetector <scenedetect.detectors.content_detector>`: detects fast cuts using weighted average of HSV changes
1315

1416
* :mod:`ThresholdDetector <scenedetect.detectors.threshold_detector>`: finds fades in/out using average pixel intensity changes in RGB
1517

16-
* :mod:`AdaptiveDetector <scenedetect.detectors.adaptive_detector>` finds fast cuts using rolling average of HSL changes
17-
1818
* :mod:`HistogramDetector <scenedetect.detectors.histogram_detector>` finds fast cuts using HSV histogram changes
1919

2020
* :mod:`HashDetector <scenedetect.detectors.hash_detector>`: finds fast cuts using perceptual image hashing

docs/head/api.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ <h1><code class="docutils literal notranslate"><span class="pre">scenedetect</sp
4242
<li><p><a class="reference internal" href="api/detectors.html#scenedetect-detectors"><span class="std std-ref">scenedetect.detectors 🕵️</span></a>: detection algorithms:</p>
4343
<blockquote>
4444
<div><ul class="simple">
45+
<li><p><a class="reference internal" href="api/detectors.html#module-scenedetect.detectors.adaptive_detector" title="scenedetect.detectors.adaptive_detector"><code class="xref py py-mod docutils literal notranslate"><span class="pre">AdaptiveDetector</span></code></a> finds fast cuts using rolling average of HSL changes</p></li>
4546
<li><p><a class="reference internal" href="api/detectors.html#module-scenedetect.detectors.content_detector" title="scenedetect.detectors.content_detector"><code class="xref py py-mod docutils literal notranslate"><span class="pre">ContentDetector</span></code></a>: detects fast cuts using weighted average of HSV changes</p></li>
4647
<li><p><a class="reference internal" href="api/detectors.html#module-scenedetect.detectors.threshold_detector" title="scenedetect.detectors.threshold_detector"><code class="xref py py-mod docutils literal notranslate"><span class="pre">ThresholdDetector</span></code></a>: finds fades in/out using average pixel intensity changes in RGB</p></li>
47-
<li><p><a class="reference internal" href="api/detectors.html#module-scenedetect.detectors.adaptive_detector" title="scenedetect.detectors.adaptive_detector"><code class="xref py py-mod docutils literal notranslate"><span class="pre">AdaptiveDetector</span></code></a> finds fast cuts using rolling average of HSL changes</p></li>
4848
<li><p><a class="reference internal" href="api/detectors.html#module-scenedetect.detectors.histogram_detector" title="scenedetect.detectors.histogram_detector"><code class="xref py py-mod docutils literal notranslate"><span class="pre">HistogramDetector</span></code></a> finds fast cuts using HSV histogram changes</p></li>
4949
<li><p><a class="reference internal" href="api/detectors.html#module-scenedetect.detectors.hash_detector" title="scenedetect.detectors.hash_detector"><code class="xref py py-mod docutils literal notranslate"><span class="pre">HashDetector</span></code></a>: finds fast cuts using perceptual image hashing</p></li>
5050
</ul>
@@ -256,7 +256,11 @@ <h2>Module Reference<a class="headerlink" href="#module-reference" title="Permal
256256
<li class="toctree-l2"><a class="reference internal" href="api/common.html#scenedetect.common.FrameTimecode"><code class="docutils literal notranslate"><span class="pre">FrameTimecode</span></code></a><ul>
257257
<li class="toctree-l3"><a class="reference internal" href="api/common.html#scenedetect.common.FrameTimecode.equal_framerate"><code class="docutils literal notranslate"><span class="pre">FrameTimecode.equal_framerate()</span></code></a></li>
258258
<li class="toctree-l3"><a class="reference internal" href="api/common.html#scenedetect.common.FrameTimecode.get_timecode"><code class="docutils literal notranslate"><span class="pre">FrameTimecode.get_timecode()</span></code></a></li>
259+
<li class="toctree-l3"><a class="reference internal" href="api/common.html#scenedetect.common.FrameTimecode.frame_num"><code class="docutils literal notranslate"><span class="pre">FrameTimecode.frame_num</span></code></a></li>
260+
<li class="toctree-l3"><a class="reference internal" href="api/common.html#scenedetect.common.FrameTimecode.framerate"><code class="docutils literal notranslate"><span class="pre">FrameTimecode.framerate</span></code></a></li>
261+
<li class="toctree-l3"><a class="reference internal" href="api/common.html#scenedetect.common.FrameTimecode.pts"><code class="docutils literal notranslate"><span class="pre">FrameTimecode.pts</span></code></a></li>
259262
<li class="toctree-l3"><a class="reference internal" href="api/common.html#scenedetect.common.FrameTimecode.seconds"><code class="docutils literal notranslate"><span class="pre">FrameTimecode.seconds</span></code></a></li>
263+
<li class="toctree-l3"><a class="reference internal" href="api/common.html#scenedetect.common.FrameTimecode.time_base"><code class="docutils literal notranslate"><span class="pre">FrameTimecode.time_base</span></code></a></li>
260264
</ul>
261265
</li>
262266
<li class="toctree-l2"><a class="reference internal" href="api/common.html#scenedetect.common.Interpolation"><code class="docutils literal notranslate"><span class="pre">Interpolation</span></code></a><ul>
@@ -394,7 +398,6 @@ <h2>Module Reference<a class="headerlink" href="#module-reference" title="Permal
394398
<li class="toctree-l3"><a class="reference internal" href="api/detector.html#scenedetect.detector.SceneDetector.get_metrics"><code class="docutils literal notranslate"><span class="pre">SceneDetector.get_metrics()</span></code></a></li>
395399
<li class="toctree-l3"><a class="reference internal" href="api/detector.html#scenedetect.detector.SceneDetector.post_process"><code class="docutils literal notranslate"><span class="pre">SceneDetector.post_process()</span></code></a></li>
396400
<li class="toctree-l3"><a class="reference internal" href="api/detector.html#scenedetect.detector.SceneDetector.process_frame"><code class="docutils literal notranslate"><span class="pre">SceneDetector.process_frame()</span></code></a></li>
397-
<li class="toctree-l3"><a class="reference internal" href="api/detector.html#scenedetect.detector.SceneDetector.stats_manager_required"><code class="docutils literal notranslate"><span class="pre">SceneDetector.stats_manager_required()</span></code></a></li>
398401
<li class="toctree-l3"><a class="reference internal" href="api/detector.html#scenedetect.detector.SceneDetector.event_buffer_length"><code class="docutils literal notranslate"><span class="pre">SceneDetector.event_buffer_length</span></code></a></li>
399402
<li class="toctree-l3"><a class="reference internal" href="api/detector.html#scenedetect.detector.SceneDetector.stats_manager"><code class="docutils literal notranslate"><span class="pre">SceneDetector.stats_manager</span></code></a></li>
400403
</ul>

docs/head/api/backends.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ <h2>Devices / Cameras / Pipes<a class="headerlink" href="#devices-cameras-pipes"
426426
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
427427
<dd class="field-odd"><ul class="simple">
428428
<li><p><strong>path_or_io</strong> (<em>AnyStr</em><em> | </em><em>BinaryIO</em>) – Path to the video, or a file-like object.</p></li>
429-
<li><p><strong>framerate</strong> (<em>float</em><em> | </em><em>None</em>) – If set, overrides the detected framerate.</p></li>
429+
<li><p><strong>framerate</strong> (<em>float</em><em> | </em><em>Fraction</em><em> | </em><em>None</em>) – If set, overrides the detected framerate.</p></li>
430430
<li><p><strong>name</strong> (<em>str</em><em> | </em><em>None</em>) – Overrides the <cite>name</cite> property derived from the video path. Should be set if
431431
<cite>path_or_io</cite> is a file-like object.</p></li>
432432
<li><p><strong>threading_mode</strong> (<em>str</em><em> | </em><em>None</em>) – The PyAV video stream <cite>thread_type</cite>. See av.codec.context.ThreadType

docs/head/api/common.html

Lines changed: 33 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@
9393
<dd class="field-odd"><ul class="simple">
9494
<li><p><strong>timecode</strong> (<em>int</em><em> | </em><em>float</em><em> | </em><em>str</em><em> | </em><a class="reference internal" href="#scenedetect.common.Timecode" title="scenedetect.common.Timecode"><em>Timecode</em></a><em> | </em><a class="reference internal" href="#scenedetect.common.FrameTimecode" title="scenedetect.common.FrameTimecode"><em>FrameTimecode</em></a>) – A frame number (<cite>int</cite>), number of seconds (<cite>float</cite>), timecode string in
9595
the form <cite>‘HH:MM:SS’</cite> or <cite>‘HH:MM:SS.nnn’</cite>, or a <cite>Timecode</cite>.</p></li>
96-
<li><p><strong>fps</strong> (<em>int</em><em> | </em><em>float</em><em> | </em><em>str</em><em> | </em><a class="reference internal" href="#scenedetect.common.FrameTimecode" title="scenedetect.common.FrameTimecode"><em>FrameTimecode</em></a>) – The framerate or FrameTimecode to use as a time base for all arithmetic.</p></li>
96+
<li><p><strong>fps</strong> (<em>float</em><em> | </em><a class="reference internal" href="#scenedetect.common.FrameTimecode" title="scenedetect.common.FrameTimecode"><em>FrameTimecode</em></a><em> | </em><em>Fraction</em>) – The framerate to use for distance between frames and to calculate frame numbers.
97+
For a VFR video, this may just be the average framerate.</p></li>
9798
</ul>
9899
</dd>
99100
<dt class="field-even">Raises<span class="colon">:</span></dt>
@@ -123,14 +124,16 @@
123124

124125
<dl class="py method">
125126
<dt class="sig sig-object py" id="scenedetect.common.FrameTimecode.get_timecode">
126-
<span class="sig-name descname"><span class="pre">get_timecode</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">precision</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">3</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">use_rounding</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">True</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#scenedetect.common.FrameTimecode.get_timecode" title="Permalink to this definition"></a></dt>
127+
<span class="sig-name descname"><span class="pre">get_timecode</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">precision</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">3</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">use_rounding</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">True</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">nearest_frame</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">True</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#scenedetect.common.FrameTimecode.get_timecode" title="Permalink to this definition"></a></dt>
127128
<dd><p>Get a formatted timecode string of the form HH:MM:SS[.nnn].</p>
128129
<dl class="field-list simple">
129130
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
130131
<dd class="field-odd"><ul class="simple">
131132
<li><p><strong>precision</strong> (<em>int</em>) – The number of decimal places to include in the output <code class="docutils literal notranslate"><span class="pre">[.nnn]</span></code>.</p></li>
132133
<li><p><strong>use_rounding</strong> (<em>bool</em>) – Rounds the output to the desired precision. If False, the value
133134
will be truncated to the specified precision.</p></li>
135+
<li><p><strong>nearest_frame</strong> (<em>bool</em>) – Ensures that the timecode is moved to the nearest frame boundary if this
136+
object has a defined framerate, otherwise has no effect.</p></li>
134137
</ul>
135138
</dd>
136139
<dt class="field-even">Returns<span class="colon">:</span></dt>
@@ -142,12 +145,38 @@
142145
</dl>
143146
</dd></dl>
144147

148+
<dl class="py property">
149+
<dt class="sig sig-object py" id="scenedetect.common.FrameTimecode.frame_num">
150+
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">frame_num</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">int</span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">None</span></em><a class="headerlink" href="#scenedetect.common.FrameTimecode.frame_num" title="Permalink to this definition"></a></dt>
151+
<dd><p>The frame number. This value will be an estimate if the video is VFR. Prefer using the
152+
<cite>pts</cite> property.</p>
153+
</dd></dl>
154+
155+
<dl class="py property">
156+
<dt class="sig sig-object py" id="scenedetect.common.FrameTimecode.framerate">
157+
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">framerate</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">float</span></em><a class="headerlink" href="#scenedetect.common.FrameTimecode.framerate" title="Permalink to this definition"></a></dt>
158+
<dd><p>The framerate to use for distance between frames and to calculate frame numbers.
159+
For a VFR video, this may just be the average framerate.</p>
160+
</dd></dl>
161+
162+
<dl class="py property">
163+
<dt class="sig sig-object py" id="scenedetect.common.FrameTimecode.pts">
164+
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">pts</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">int</span></em><a class="headerlink" href="#scenedetect.common.FrameTimecode.pts" title="Permalink to this definition"></a></dt>
165+
<dd><p>The presentation timestamp of the frame in units of <cite>time_base</cite>.</p>
166+
</dd></dl>
167+
145168
<dl class="py property">
146169
<dt class="sig sig-object py" id="scenedetect.common.FrameTimecode.seconds">
147170
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">seconds</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">float</span></em><a class="headerlink" href="#scenedetect.common.FrameTimecode.seconds" title="Permalink to this definition"></a></dt>
148171
<dd><p>The frame’s position in number of seconds.</p>
149172
</dd></dl>
150173

174+
<dl class="py property">
175+
<dt class="sig sig-object py" id="scenedetect.common.FrameTimecode.time_base">
176+
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">time_base</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">Fraction</span></em><a class="headerlink" href="#scenedetect.common.FrameTimecode.time_base" title="Permalink to this definition"></a></dt>
177+
<dd><p>The time base in which presentation time is calculated.</p>
178+
</dd></dl>
179+
151180
</dd></dl>
152181

153182
<dl class="py class">
@@ -229,8 +258,8 @@
229258

230259
<dl class="py data">
231260
<dt class="sig sig-object py" id="scenedetect.common.MAX_FPS_DELTA">
232-
<span class="sig-prename descclassname"><span class="pre">scenedetect.common.</span></span><span class="sig-name descname"><span class="pre">MAX_FPS_DELTA</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">float</span></em><em class="property"><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="pre">1e-05</span></em><a class="headerlink" href="#scenedetect.common.MAX_FPS_DELTA" title="Permalink to this definition"></a></dt>
233-
<dd><p>Maximum amount two framerates can differ by for equality testing.</p>
261+
<span class="sig-prename descclassname"><span class="pre">scenedetect.common.</span></span><span class="sig-name descname"><span class="pre">MAX_FPS_DELTA</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">float</span></em><em class="property"><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="pre">1e-09</span></em><a class="headerlink" href="#scenedetect.common.MAX_FPS_DELTA" title="Permalink to this definition"></a></dt>
262+
<dd><p>Maximum amount two framerates can differ by for equality testing. Currently 1 frame/nanosec.</p>
234263
</dd></dl>
235264

236265
<dl class="py data">

0 commit comments

Comments
 (0)