Skip to content

Commit

Permalink
deploy: ead9494
Browse files Browse the repository at this point in the history
  • Loading branch information
nekiwo committed Oct 9, 2024
1 parent dc3fe0e commit ad216c9
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 2 deletions.
2 changes: 2 additions & 0 deletions dev/PreseasonTraining/OpenCV_ColorSegmentation/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,8 @@
<article role="main" id="furo-main-content">
<section id="color-based-segmentation-in-opencv-python">
<h1>Color-based segmentation in OpenCV Python<a class="headerlink" href="#color-based-segmentation-in-opencv-python" title="Permalink to this heading"></a></h1>
<p>2024 October 8/9</p>
<p><a class="reference external" href="https://docs.google.com/presentation/d/1IMgoiuJn4d6MBo8bgtqWCU0rHaVIX8sB9S1IGK5x0JQ/edit?usp=sharing">Slideshow (color-based segmentation)</a></p>
<section id="installation">
<h2>Installation<a class="headerlink" href="#installation" title="Permalink to this heading"></a></h2>
<p>On Windows, install Python 3.12 from the Microsoft Store. On Linux, Python should be preinstalled. Ping Georgi and Ethan if you need help.</p>
Expand Down
17 changes: 16 additions & 1 deletion dev/TitanProcessing/AprilTags/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -295,9 +295,21 @@
<h1>AprilTag Detection<a class="headerlink" href="#apriltag-detection" title="Permalink to this heading"></a></h1>
<section id="reading-configuration">
<h2>Reading Configuration<a class="headerlink" href="#reading-configuration" title="Permalink to this heading"></a></h2>
<section id="setup">
<h3>Setup<a class="headerlink" href="#setup" title="Permalink to this heading"></a></h3>
<p>Initiate a <code class="docutils literal notranslate"><span class="pre">ConfigReader</span></code> object without a constructor and call the <code class="docutils literal notranslate"><span class="pre">readFromFile(std::string</span> <span class="pre">path)</span></code> method with specified directory path with the config to load it.</p>
<div class="highlight-cpp notranslate"><div class="highlight"><pre><span></span><span class="n">ConfigReader</span><span class="w"> </span><span class="n">config</span><span class="p">;</span>
<span class="n">config</span><span class="p">.</span><span class="n">readFromFile</span><span class="p">(</span><span class="s">&quot;./example/&quot;</span><span class="p">);</span><span class="w"> </span><span class="c1">// Relative to project root directory but absolute paths work too</span>
</pre></div>
</div>
</section>
</section>
<section id="detection">
<h2>Detection<a class="headerlink" href="#detection" title="Permalink to this heading"></a></h2>
<p>TitanProcessing library provides an <code class="docutils literal notranslate"><span class="pre">ApriltagDetector</span></code> class which processes the specified stream and sends pose packets over UDP. Initialize <code class="docutils literal notranslate"><span class="pre">ConfigReader</span></code>, <code class="docutils literal notranslate"><span class="pre">NetworkingClient</span></code>, <code class="docutils literal notranslate"><span class="pre">PoseFilter</span></code>, and <code class="docutils literal notranslate"><span class="pre">Localizer</span></code> and pass these objects to the <code class="docutils literal notranslate"><span class="pre">ApriltagDetector</span></code> constructor. The first <code class="docutils literal notranslate"><span class="pre">int</span></code> argument specified is the index of <code class="docutils literal notranslate"><span class="pre">/dev/video*</span></code> feed. The second <code class="docutils literal notranslate"><span class="pre">bool</span></code> argument specified whether or not to open the stream with a window (opens through X11 by default).</p>
<div class="highlight-cpp notranslate"><div class="highlight"><pre><span></span>
</pre></div>
</div>
</section>
<section id="multithreading">
<h2>Multithreading<a class="headerlink" href="#multithreading" title="Permalink to this heading"></a></h2>
Expand Down Expand Up @@ -360,7 +372,10 @@ <h2>Multithreading<a class="headerlink" href="#multithreading" title="Permalink
<div class="toc-tree">
<ul>
<li><a class="reference internal" href="#">AprilTag Detection</a><ul>
<li><a class="reference internal" href="#reading-configuration">Reading Configuration</a></li>
<li><a class="reference internal" href="#reading-configuration">Reading Configuration</a><ul>
<li><a class="reference internal" href="#setup">Setup</a></li>
</ul>
</li>
<li><a class="reference internal" href="#detection">Detection</a></li>
<li><a class="reference internal" href="#multithreading">Multithreading</a></li>
</ul>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Color-based segmentation in OpenCV Python

2024 October 8/9

[Slideshow (color-based segmentation)](https://docs.google.com/presentation/d/1IMgoiuJn4d6MBo8bgtqWCU0rHaVIX8sB9S1IGK5x0JQ/edit?usp=sharing)

## Installation

On Windows, install Python 3.12 from the Microsoft Store. On Linux, Python should be preinstalled. Ping Georgi and Ethan if you need help.
Expand Down
15 changes: 15 additions & 0 deletions dev/_sources/TitanProcessing/AprilTags/index.md.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,21 @@

## Reading Configuration

### Setup

Initiate a `ConfigReader` object without a constructor and call the `readFromFile(std::string path)` method with specified directory path with the config to load it.

```cpp
ConfigReader config;
config.readFromFile("./example/"); // Relative to project root directory but absolute paths work too
```

## Detection

TitanProcessing library provides an `ApriltagDetector` class which processes the specified stream and sends pose packets over UDP. Initialize `ConfigReader`, `NetworkingClient`, `PoseFilter`, and `Localizer` and pass these objects to the `ApriltagDetector` constructor. The first `int` argument specified is the index of `/dev/video*` feed. The second `bool` argument specified whether or not to open the stream with a window (opens through X11 by default).

```cpp

```

## Multithreading
2 changes: 1 addition & 1 deletion dev/searchindex.js

Large diffs are not rendered by default.

0 comments on commit ad216c9

Please sign in to comment.