diff options
author | Théo de la Hogue | 2024-04-10 15:13:12 +0200 |
---|---|---|
committer | Théo de la Hogue | 2024-04-10 15:13:12 +0200 |
commit | 03013286100d4a3cc49439afc6f432f7be0c494b (patch) | |
tree | 3615506f50381208bd4d327d61a49440143d6ffe /docs/user_guide/aruco_marker_pipeline/advanced_topics/aruco_detector_configuration.md | |
parent | bcfb82055c1736262ce974dc5dd10b365dda8d5c (diff) | |
download | argaze-03013286100d4a3cc49439afc6f432f7be0c494b.zip argaze-03013286100d4a3cc49439afc6f432f7be0c494b.tar.gz argaze-03013286100d4a3cc49439afc6f432f7be0c494b.tar.bz2 argaze-03013286100d4a3cc49439afc6f432f7be0c494b.tar.xz |
orthographic corrections
Diffstat (limited to 'docs/user_guide/aruco_marker_pipeline/advanced_topics/aruco_detector_configuration.md')
-rw-r--r-- | docs/user_guide/aruco_marker_pipeline/advanced_topics/aruco_detector_configuration.md | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/docs/user_guide/aruco_marker_pipeline/advanced_topics/aruco_detector_configuration.md b/docs/user_guide/aruco_marker_pipeline/advanced_topics/aruco_detector_configuration.md new file mode 100644 index 0000000..410e2d7 --- /dev/null +++ b/docs/user_guide/aruco_marker_pipeline/advanced_topics/aruco_detector_configuration.md @@ -0,0 +1,37 @@ +Improve ArUco markers detection +=============================== + +As explain in [OpenCV ArUco documentation](https://docs.opencv.org/4.x/d1/dcd/structcv_1_1aruco_1_1DetectorParameters.html), ArUco markers detection is highly configurable. + +## Load ArUcoDetector parameters + +[ArUcoCamera.detector.parameters](../../../argaze.md/#argaze.ArUcoMarkers.ArUcoDetector.Parameters) can be loaded thanks to a dedicated JSON entry. + +Here is an extract from the JSON [ArUcoCamera](../../../argaze.md/#argaze.ArUcoMarkers.ArUcoCamera) configuration file with ArUco detector parameters: + +```json +{ + "name": "My FullHD camera", + "size": [1920, 1080], + "aruco_detector": { + "dictionary": "DICT_APRILTAG_16h5", + "parameters": { + "adaptiveThreshConstant": 10, + "useAruco3Detection": 1 + } + }, + ... +``` + +## Print ArUcoDetector parameters + +```python +# Assuming ArUcoCamera is loaded +... + +# Print all ArUcoDetector parameters +print(aruco_camera.aruco_detector.parameters) + +# Print only modified ArUcoDetector parameters +print(f'{aruco_camera.aruco_detector.parameters:modified}') +``` |