<commit_before>﻿using ArucoUnity.Plugin;
using UnityEngine;

namespace ArucoUnity
{
  /// \addtogroup aruco_unity_package
  /// \{

  namespace Controllers
  {
    /// <summary>
    /// Editor controller for the <see cref="Plugin.DetectorParameters"/>.
    /// </summary>
    public class DetectorParametersController : MonoBehaviour
    {
      // Editor fields

      [SerializeField]
      [Tooltip("The minimum window size for adaptive thresholding before finding contours (default 3).")]
      private int adaptiveThreshWinSizeMin = 3;

      [SerializeField]
      [Tooltip("The maximum window size for adaptive thresholding before finding contours (default 23).")]
      private int adaptiveThreshWinSizeMax = 23;

      [SerializeField]
      [Tooltip("The increments from adaptiveThreshWinSizeMin to adaptiveThreshWinSizeMax during the thresholding (default 10).")]
      private int adaptiveThreshWinSizeStep = 10;

      [SerializeField]
      [Tooltip("The constant for adaptive thresholding before finding contours (default 7).")]
      private double adaptiveThreshConstant = 7;

      [SerializeField]
      [Tooltip("The minimum perimeter for marker contour to be detected. This is defined as a rate respect to the maximum dimension of the input image (default 0.03).")]
      private double minMarkerPerimeterRate = 0.03;

      [SerializeField]
      [Tooltip("The maximum perimeter for marker contour to be detected. This is defined as a rate respect to the maximum dimension of the input image (default 4.0).")]
      private double maxMarkerPerimeterRate = 4.0;<commit_msg>Improved docs in DetectorParametersController.cs<commit_after>﻿using ArucoUnity.Plugin;
using UnityEngine;

namespace ArucoUnity
{
  /// \addtogroup aruco_unity_package
  /// \{

  namespace Controllers
  {
    /// <summary>
    /// Editor controller for <see cref="Aruco.DetectorParameters"/>.
    /// </summary>
    public class DetectorParametersController : MonoBehaviour
    {
      // Editor fields

      [SerializeField]
      [Tooltip("The minimum window size for adaptive thresholding before finding contours (default 3).")]
      private int adaptiveThreshWinSizeMin = 3;

      [SerializeField]
      [Tooltip("The maximum window size for adaptive thresholding before finding contours (default 23).")]
      private int adaptiveThreshWinSizeMax = 23;

      [SerializeField]
      [Tooltip("The increments from adaptiveThreshWinSizeMin to adaptiveThreshWinSizeMax during the thresholding (default 10).")]
      private int adaptiveThreshWinSizeStep = 10;

      [SerializeField]
      [Tooltip("The constant for adaptive thresholding before finding contours (default 7).")]
      private double adaptiveThreshConstant = 7;

      [SerializeField]
      [Tooltip("The minimum perimeter for marker contour to be detected. This is defined as a rate respect to the maximum dimension of the input image (default 0.03).")]
      private double minMarkerPerimeterRate = 0.03;

      [SerializeField]
      [Tooltip("The maximum perimeter for marker contour to be detected. This is defined as a rate respect to the maximum dimension of the input image (default 4.0).")]
      private double maxMarkerPerimeterRate = 4.0;
{'fraction_non_alphanumeric': 0.07986326911124922, 'fraction_numerical': 0.013673088875077687, 'mean_word_length': 3.5338028169014084, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6652549', 'n_tokens_mistral': 875, 'n_tokens_neox': 809, 'n_words': 303}