Skip to content

Commit a7ca1ac

Browse files
authored
Update making-progress.rst
1 parent 7277539 commit a7ca1ac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

posts/making-progress.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ So, to automatically extract our square region of interest we first need to calc
3737
:align: center
3838

3939
To find the center of the circle we use a method from computer vision called `blob centroid detection
40-
<https://www.learnopencv.com/find-center-of-blob-centroid-using-opencv-cpp-python/>`_. In short, we take the average position of all the points in the circle.
40+
<https://www.learnopencv.com/find-center-of-blob-centroid-using-opencv-cpp-python/>`_. In short, we take the average position of all the points in the white circle.
4141

4242
.. image:: /images/auto-scope-cam/center.png
4343
:align: center
@@ -54,12 +54,12 @@ We can then feed this square information to the camera, that will zoom in and re
5454
:align: center
5555

5656
Now that we have a tile we need a way to tell if it’s in focus. There are many 'blurriness metrics' for example the `variation of the Laplacian
57-
<https://www.pyimagesearch.com/2015/09/07/blur-detection-with-opencv/>`_. This method returns high values if an image contains high variance in rapid intensity change regions (associated with focused images).
57+
<https://www.pyimagesearch.com/2015/09/07/blur-detection-with-opencv/>`_. This method returns high values if an image contains high variance in rapid intensity change regions (as with focused images).
5858

5959
.. image:: /images/auto-scope-cam/focus.png
6060
:align: center
6161

62-
To find the optimal focal height we need to map the focal plane and try to maximise the variation of the Laplacian (see bar plot). The initial scan of the focal plane is done in large steps down the focal plane until we find a peak. Once the course mapping is complete we then switch to fine steps to map the peak in detail. Now that we have a fine grain map of the focal plane peak we can simply move to focus with the highest variation. This course, fine, find algorithm is implemented in the `auto_focus` method of the autoscope `Autoscope` class.
62+
To find the optimal focal height we need to map the focal plane and try to maximise the variation of the Laplacian (see bar plot). The initial scan of the focal plane is done in large steps down the focal plane until we find a peak. Once the course mapping is complete we then switch to fine steps to map the peak in detail. Now that we have a detailed map of the focal plane peak we can simply move to the focal point with the highest variation. This course, fine, find algorithm is implemented in the `auto_focus` method of the autoscope `Autoscope` class.
6363

6464
You can check out all this camera code and more on `GitHub
6565
<https://github.com/python-friends/auto-scope>`_ or `pip install opencv-contrib-python` and try it yourself.

0 commit comments

Comments
 (0)