Skip to content

Commit

Permalink
corrected the errors in CC
Browse files Browse the repository at this point in the history
  • Loading branch information
alsacco38 committed Nov 10, 2014
1 parent 9e0ce0c commit d8fd14e
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 9 deletions.
Binary file modified docs/build/doctrees/05 - Camera Calibration.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/environment.pickle
Binary file not shown.
12 changes: 6 additions & 6 deletions docs/build/html/05 - Camera Calibration.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ <h2>What is the camera calibration?<a class="headerlink" href="#what-is-the-came
<div class="section" id="calibration-pattern">
<h2>Calibration Pattern<a class="headerlink" href="#calibration-pattern" title="Permalink to this headline"></a></h2>
<p>As we said earlier we are going to need some sort of pattern that the program can recognize in order to make the calibration work. The pattern that we are going to use is a chessboard image.</p>
<img alt="res/05-00.png;" src="res/05-00.png;" />
<img alt="_images/05-00.png" src="_images/05-00.png" />
<p>The reason why we use this image is because there are some OpenCV functions that can recognize this pattern and draw a scheme which highlights the intersections between each block.
To make the calibration work you need to print the chessboard image and show it to the cam; it is important to maintain the sheet still, better if stick to a surface.
In order to make a good calibration, we need to have about 20 samples of the pattern taken from different angles and distances.</p>
Expand Down Expand Up @@ -177,11 +177,11 @@ <h2>Pattern Recognition<a class="headerlink" href="#pattern-recognition" title="
</div></blockquote>
<div class="admonition warning">
<p class="first admonition-title">Warning</p>
<p>Before doing the <code class="docutils literal"><span class="pre">findChessboardCorners</span></code> convert the image to gayscale and save the board size into a Size variable:
.. code-block:: java</p>
<blockquote class="last">
<div>Imgproc.cvtColor(frame, grayImage, Imgproc.COLOR_BGR2GRAY);
Size boardSize = new Size(this.numCornersHor, this.numCornersVer);</div></blockquote>
<p>Before doing the <code class="docutils literal"><span class="pre">findChessboardCorners</span></code> convert the image to gayscale and save the board size into a Size variable:</p>
<div class="last highlight-java"><div class="highlight"><pre><span class="n">Imgproc</span><span class="o">.</span><span class="na">cvtColor</span><span class="o">(</span><span class="n">frame</span><span class="o">,</span> <span class="n">grayImage</span><span class="o">,</span> <span class="n">Imgproc</span><span class="o">.</span><span class="na">COLOR_BGR2GRAY</span><span class="o">);</span>
<span class="n">Size</span> <span class="n">boardSize</span> <span class="o">=</span> <span class="k">new</span> <span class="nf">Size</span><span class="o">(</span><span class="k">this</span><span class="o">.</span><span class="na">numCornersHor</span><span class="o">,</span> <span class="k">this</span><span class="o">.</span><span class="na">numCornersVer</span><span class="o">);</span>
</pre></div>
</div>
</div>
<p>If the recognition went well <code class="docutils literal"><span class="pre">found</span></code> should be <code class="docutils literal"><span class="pre">true</span></code>.</p>
<p>For square images the positions of the corners are only approximate. We may improve this by calling the <code class="docutils literal"><span class="pre">cornerSubPix</span></code> function. It will produce better calibration result.</p>
Expand Down
Binary file added docs/build/html/_images/05-00.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion docs/build/html/_sources/05 - Camera Calibration.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Calibration Pattern
-------------------
As we said earlier we are going to need some sort of pattern that the program can recognize in order to make the calibration work. The pattern that we are going to use is a chessboard image.

.. image:: res/05-00.png;
.. image:: res/05-00.png

The reason why we use this image is because there are some OpenCV functions that can recognize this pattern and draw a scheme which highlights the intersections between each block.
To make the calibration work you need to print the chessboard image and show it to the cam; it is important to maintain the sheet still, better if stick to a surface.
Expand Down Expand Up @@ -112,6 +112,7 @@ Its parameters are:
- ``CALIB_CB_FAST_CHECK`` Run a fast check on the image that looks for chessboard corners, and shortcut the call if none is found. This can drastically speed up the call in the degenerate condition when no chessboard is observed.

.. warning:: Before doing the ``findChessboardCorners`` convert the image to gayscale and save the board size into a Size variable:

.. code-block:: java

Imgproc.cvtColor(frame, grayImage, Imgproc.COLOR_BGR2GRAY);
Expand Down
Binary file modified docs/build/html/objects.inv
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/build/html/searchindex.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion docs/source/05 - Camera Calibration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Calibration Pattern
-------------------
As we said earlier we are going to need some sort of pattern that the program can recognize in order to make the calibration work. The pattern that we are going to use is a chessboard image.

.. image:: res/05-00.png;
.. image:: res/05-00.png

The reason why we use this image is because there are some OpenCV functions that can recognize this pattern and draw a scheme which highlights the intersections between each block.
To make the calibration work you need to print the chessboard image and show it to the cam; it is important to maintain the sheet still, better if stick to a surface.
Expand Down Expand Up @@ -112,6 +112,7 @@ Its parameters are:
- ``CALIB_CB_FAST_CHECK`` Run a fast check on the image that looks for chessboard corners, and shortcut the call if none is found. This can drastically speed up the call in the degenerate condition when no chessboard is observed.

.. warning:: Before doing the ``findChessboardCorners`` convert the image to gayscale and save the board size into a Size variable:

.. code-block:: java
Imgproc.cvtColor(frame, grayImage, Imgproc.COLOR_BGR2GRAY);
Expand Down

0 comments on commit d8fd14e

Please sign in to comment.