From 64e1d23cba84dd6770afeadbf78ba92f1a359eec Mon Sep 17 00:00:00 2001 From: Julian Szigethy <70467158+Julian-Sz@users.noreply.github.com> Date: Tue, 10 May 2022 18:11:27 +0200 Subject: [PATCH] Fix: Python and Java switched in Explanation --- .../hough_circle/hough_circle.markdown | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/doc/tutorials/imgproc/imgtrans/hough_circle/hough_circle.markdown b/doc/tutorials/imgproc/imgtrans/hough_circle/hough_circle.markdown index c4a9989e2b..497215794b 100644 --- a/doc/tutorials/imgproc/imgtrans/hough_circle/hough_circle.markdown +++ b/doc/tutorials/imgproc/imgtrans/hough_circle/hough_circle.markdown @@ -74,11 +74,11 @@ The image we used can be found [here](https://raw.githubusercontent.com/opencv/o @end_toggle @add_toggle_java -@snippet samples/python/tutorial_code/ImgTrans/HoughCircle/hough_circle.py load +@snippet samples/java/tutorial_code/ImgTrans/HoughCircle/HoughCircles.java load @end_toggle @add_toggle_python -@snippet samples/java/tutorial_code/ImgTrans/HoughCircle/HoughCircles.java load +@snippet samples/python/tutorial_code/ImgTrans/HoughCircle/hough_circle.py load @end_toggle #### Convert it to grayscale: @@ -88,11 +88,11 @@ The image we used can be found [here](https://raw.githubusercontent.com/opencv/o @end_toggle @add_toggle_java -@snippet samples/python/tutorial_code/ImgTrans/HoughCircle/hough_circle.py convert_to_gray +@snippet samples/java/tutorial_code/ImgTrans/HoughCircle/HoughCircles.java convert_to_gray @end_toggle @add_toggle_python -@snippet samples/java/tutorial_code/ImgTrans/HoughCircle/HoughCircles.java convert_to_gray +@snippet samples/python/tutorial_code/ImgTrans/HoughCircle/hough_circle.py convert_to_gray @end_toggle #### Apply a Median blur to reduce noise and avoid false circle detection: @@ -102,11 +102,11 @@ The image we used can be found [here](https://raw.githubusercontent.com/opencv/o @end_toggle @add_toggle_java -@snippet samples/python/tutorial_code/ImgTrans/HoughCircle/hough_circle.py reduce_noise +@snippet samples/java/tutorial_code/ImgTrans/HoughCircle/HoughCircles.java reduce_noise @end_toggle @add_toggle_python -@snippet samples/java/tutorial_code/ImgTrans/HoughCircle/HoughCircles.java reduce_noise +@snippet samples/python/tutorial_code/ImgTrans/HoughCircle/hough_circle.py reduce_noise @end_toggle #### Proceed to apply Hough Circle Transform: @@ -116,11 +116,11 @@ The image we used can be found [here](https://raw.githubusercontent.com/opencv/o @end_toggle @add_toggle_java -@snippet samples/python/tutorial_code/ImgTrans/HoughCircle/hough_circle.py houghcircles +@snippet samples/java/tutorial_code/ImgTrans/HoughCircle/HoughCircles.java houghcircles @end_toggle @add_toggle_python -@snippet samples/java/tutorial_code/ImgTrans/HoughCircle/HoughCircles.java houghcircles +@snippet samples/python/tutorial_code/ImgTrans/HoughCircle/hough_circle.py houghcircles @end_toggle - with the arguments: @@ -144,11 +144,11 @@ The image we used can be found [here](https://raw.githubusercontent.com/opencv/o @end_toggle @add_toggle_java -@snippet samples/python/tutorial_code/ImgTrans/HoughCircle/hough_circle.py draw +@snippet samples/java/tutorial_code/ImgTrans/HoughCircle/HoughCircles.java draw @end_toggle @add_toggle_python -@snippet samples/java/tutorial_code/ImgTrans/HoughCircle/HoughCircles.java draw +@snippet samples/python/tutorial_code/ImgTrans/HoughCircle/hough_circle.py draw @end_toggle You can see that we will draw the circle(s) on red and the center(s) with a small green dot @@ -160,11 +160,11 @@ You can see that we will draw the circle(s) on red and the center(s) with a smal @end_toggle @add_toggle_java -@snippet samples/python/tutorial_code/ImgTrans/HoughCircle/hough_circle.py display +@snippet samples/java/tutorial_code/ImgTrans/HoughCircle/HoughCircles.java display @end_toggle @add_toggle_python -@snippet samples/java/tutorial_code/ImgTrans/HoughCircle/HoughCircles.java display +@snippet samples/python/tutorial_code/ImgTrans/HoughCircle/hough_circle.py display @end_toggle Result