Skip to content

Commit f63c28a

Browse files
Sarthak AhujaSarthak Ahuja
authored andcommitted
[Aruco] detector_params YAML updated
[Aruco] Fixed the spelling of Length in Samples replaced images to 6x6_250 Updated README [Aruco] Updated Charuco Diamond Detection Tutorial Readme [Aruco] Updated Charuco Board Detection Tutorial Readme [Aruco] Updated Aruco Tutorials Readme [Aruco] Updated Aruco Tutorials Readme Added a new line at the end of file. Update aruco_board_detection.markdown Update aruco_calibration.markdown Update aruco_detection.markdown Update charuco_detection.markdown Update charuco_diamond_detection.markdown Update README.md Update charuco_detection.markdown
1 parent 14f16b1 commit f63c28a

18 files changed

+88
-14
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ provides production quality support for this module.
1313

1414
### How to build OpenCV with extra modules
1515

16-
You can build OpenCV, so it will include the modules from this repository.
16+
You can build OpenCV, so it will include the modules from this repository. Contrib modules are under constant development and it is recommended to use them alongside the master branch or latest releases of OpenCV.
17+
1718
Here is the CMake command for you:
1819

1920
```
@@ -46,10 +47,12 @@ If you prefer using the gui version of cmake (cmake-gui), then, you can add `ope
4647

4748
7. build the `opencv` core with the method you chose (make and make install if you chose Unix makfile at step 6)
4849

50+
8. to run, linker flags to contrib modules will need to be added to use them in your code/IDE. For example to use the aruco module, "-lopencv_aruco" flag will be added.
51+
4952
### Update the repository documentation
5053

5154
In order to keep a clean overview containing all contributed modules the following files need to be created/adapted.
5255

5356
1. Update the README.md file under the modules folder. Here you add your model with a single line description.
5457

55-
2. Add a README.md inside your own module folder. This README explains which functionality (seperate functions) is available, links to the corresponding samples and explains in somewhat more detail what the module is expected to do. If any extra requirements are needed to build the module without problems, add them here also.
58+
2. Add a README.md inside your own module folder. This README explains which functionality (seperate functions) is available, links to the corresponding samples and explains in somewhat more detail what the module is expected to do. If any extra requirements are needed to build the module without problems, add them here also.

modules/aruco/samples/calibrate_camera.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const char* about =
5858
const char* keys =
5959
"{w | | Number of squares in X direction }"
6060
"{h | | Number of squares in Y direction }"
61-
"{l | | Marker side lenght (in meters) }"
61+
"{l | | Marker side length (in meters) }"
6262
"{s | | Separation between two consecutive markers in the grid (in meters) }"
6363
"{d | | dictionary: DICT_4X4_50=0, DICT_4X4_100=1, DICT_4X4_250=2,"
6464
"DICT_4X4_1000=3, DICT_5X5_50=4, DICT_5X5_100=5, DICT_5X5_250=6, DICT_5X5_1000=7, "

modules/aruco/samples/calibrate_camera_charuco.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ const char* about =
5757
const char* keys =
5858
"{w | | Number of squares in X direction }"
5959
"{h | | Number of squares in Y direction }"
60-
"{sl | | Square side length (in pixels) }"
61-
"{ml | | Marker side length (in pixels) }"
60+
"{sl | | Square side length (in meters) }"
61+
"{ml | | Marker side length (in meters) }"
6262
"{d | | dictionary: DICT_4X4_50=0, DICT_4X4_100=1, DICT_4X4_250=2,"
6363
"DICT_4X4_1000=3, DICT_5X5_50=4, DICT_5X5_100=5, DICT_5X5_250=6, DICT_5X5_1000=7, "
6464
"DICT_6X6_50=8, DICT_6X6_100=9, DICT_6X6_250=10, DICT_6X6_1000=11, DICT_7X7_50=12,"

modules/aruco/samples/create_board.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const char* keys =
4848
"{@outfile |<none> | Output image }"
4949
"{w | | Number of markers in X direction }"
5050
"{h | | Number of markers in Y direction }"
51-
"{l | | Marker side lenght (in pixels) }"
51+
"{l | | Marker side length (in pixels) }"
5252
"{s | | Separation between two consecutive markers in the grid (in pixels)}"
5353
"{d | | dictionary: DICT_4X4_50=0, DICT_4X4_100=1, DICT_4X4_250=2,"
5454
"DICT_4X4_1000=3, DICT_5X5_50=4, DICT_5X5_100=5, DICT_5X5_250=6, DICT_5X5_1000=7, "

modules/aruco/samples/create_board_charuco.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ const char* keys =
4848
"{@outfile |<none> | Output image }"
4949
"{w | | Number of squares in X direction }"
5050
"{h | | Number of squares in Y direction }"
51-
"{sl | | Square side lenght (in pixels) }"
52-
"{ml | | Marker side lenght (in pixels) }"
51+
"{sl | | Square side length (in pixels) }"
52+
"{ml | | Marker side length (in pixels) }"
5353
"{d | | dictionary: DICT_4X4_50=0, DICT_4X4_100=1, DICT_4X4_250=2,"
5454
"DICT_4X4_1000=3, DICT_5X5_50=4, DICT_5X5_100=5, DICT_5X5_250=6, DICT_5X5_1000=7, "
5555
"DICT_6X6_50=8, DICT_6X6_100=9, DICT_6X6_250=10, DICT_6X6_1000=11, DICT_7X7_50=12,"

modules/aruco/samples/create_diamond.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ namespace {
4949
const char* about = "Create a ChArUco marker image";
5050
const char* keys =
5151
"{@outfile |<none> | Output image }"
52-
"{sl | | Square side lenght (in pixels) }"
53-
"{ml | | Marker side lenght (in pixels) }"
52+
"{sl | | Square side length (in pixels) }"
53+
"{ml | | Marker side length (in pixels) }"
5454
"{d | | dictionary: DICT_4X4_50=0, DICT_4X4_100=1, DICT_4X4_250=2,"
5555
"DICT_4X4_1000=3, DICT_5X5_50=4, DICT_5X5_100=5, DICT_5X5_250=6, DICT_5X5_1000=7, "
5656
"DICT_6X6_50=8, DICT_6X6_100=9, DICT_6X6_250=10, DICT_6X6_1000=11, DICT_7X7_50=12,"

modules/aruco/samples/detect_board_charuco.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ const char* about = "Pose estimation using a ChArUco board";
5151
const char* keys =
5252
"{w | | Number of squares in X direction }"
5353
"{h | | Number of squares in Y direction }"
54-
"{sl | | Square side lenght (in pixels) }"
55-
"{ml | | Marker side lenght (in pixels) }"
54+
"{sl | | Square side length (in meters) }"
55+
"{ml | | Marker side length (in meters) }"
5656
"{d | | dictionary: DICT_4X4_50=0, DICT_4X4_100=1, DICT_4X4_250=2,"
5757
"DICT_4X4_1000=3, DICT_5X5_50=4, DICT_5X5_100=5, DICT_5X5_250=6, DICT_5X5_1000=7, "
5858
"DICT_6X6_50=8, DICT_6X6_100=9, DICT_6X6_250=10, DICT_6X6_1000=11, DICT_7X7_50=12,"

modules/aruco/samples/detect_diamonds.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ using namespace cv;
4949
namespace {
5050
const char* about = "Detect ChArUco markers";
5151
const char* keys =
52-
"{sl | | Square side lenght (in pixels) }"
53-
"{ml | | Marker side lenght (in pixels) }"
52+
"{sl | | Square side length (in meters) }"
53+
"{ml | | Marker side length (in meters) }"
5454
"{d | | dictionary: DICT_4X4_50=0, DICT_4X4_100=1, DICT_4X4_250=2,"
5555
"DICT_4X4_1000=3, DICT_5X5_50=4, DICT_5X5_100=5, DICT_5X5_250=6, DICT_5X5_1000=7, "
5656
"DICT_6X6_50=8, DICT_6X6_100=9, DICT_6X6_250=10, DICT_6X6_1000=11, DICT_7X7_50=12,"

modules/aruco/samples/detector_params.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
%YAML:1.0
22
nmarkers: 1024
3+
adaptiveThreshWinSizeMin: 3
4+
adaptiveThreshWinSizeMax: 23
5+
adaptiveThreshWinSizeStep: 10
36
adaptiveThreshWinSize: 21
47
adaptiveThreshConstant: 7
58
minMarkerPerimeterRate: 0.03
@@ -8,10 +11,14 @@ polygonalApproxAccuracyRate: 0.05
811
minCornerDistance: 10.0
912
minDistanceToBorder: 3
1013
minMarkerDistance: 10.0
14+
minMarkerDistanceRate: 0.05
15+
doCornerRefinement: false
1116
cornerRefinementWinSize: 5
1217
cornerRefinementMaxIterations: 30
1318
cornerRefinementMinAccuracy: 0.1
1419
markerBorderBits: 1
1520
perspectiveRemovePixelPerCell: 8
1621
perspectiveRemoveIgnoredMarginPerCell: 0.13
1722
maxErroneousBitsInBorderRate: 0.04
23+
minOtsuStdDev: 5.0
24+
errorCorrectionRate: 0.6

modules/aruco/tutorials/aruco_board_detection/aruco_board_detection.markdown

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,11 @@ The output image will be something like this:
155155

156156
A full working example of board creation is included in the ```create_board.cpp``` inside the module samples folder.
157157

158+
Note: The samples now take input via commandline via the [OpenCV Commandline Parser](http://docs.opencv.org/trunk/d0/d2e/classcv_1_1CommandLineParser.html#gsc.tab=0). For this file the example parameters will look like
159+
``` c++
160+
"_output path_/aboard.png" -w=5 -h=7 -l=100 -s=10 -d=10
161+
```
162+
158163
Finally, a full example of board detection:
159164

160165
``` c++
@@ -204,6 +209,12 @@ Sample video:
204209
205210
A full working example is included in the ```detect_board.cpp``` inside the module samples folder.
206211
212+
Note: The samples now take input via commandline via the [OpenCV Commandline Parser](http://docs.opencv.org/trunk/d0/d2e/classcv_1_1CommandLineParser.html#gsc.tab=0). For this file the example parameters will look like
213+
``` c++
214+
-c="_path_"/calib.txt" "_path_/aboard.png" -w=5 -h=7 -l=100 -s=10 -d=10
215+
```
216+
217+
207218

208219
Refine marker detection
209220
-----

0 commit comments

Comments
 (0)