Overview

Generate deterministic multi-scale blob patterns and printable calibration boards for computer vision.

Overview

BlobBoards.jl creates calibration targets with blob patterns that are:

  • Deterministic: Bit-exact reproducible via seeded configuration
  • Multi-scale: Logarithmically distributed blob sizes for scale-invariant detection
  • Print-ready: PDF output with rulers, QR codes, and metadata
  • Configurable: Physical units (mm, inch) with run-time unit checking

Quick Start

# Install row: author boardsusing BlobBoards      # re-exports the units: mm, inch, px, dpi, …# Generate a printable A4 calibration board: the PDF and its JSON sidecardir = mktempdir()bundle = blob_board("A4"; blob_sizes = (4.0mm, 0.2short_side), seed = 0x1234, dir)# Generate a pattern for training/simulationpattern, discs, config = blob_pattern(800, 600; blob_sizes = (12px, nothing), seed = 0x1234)# Extract blobs from the saved board, in mm in the pattern frameboard_json = only(filter(endswith(".json"), readdir(dir; join = true)))loaded, _ = BlobBoards.load(BlobBoards.BoardBundle, board_json)b = blobs(loaded, :pattern; units = mm)length(b) == length(blobs(bundle, :pattern; units = mm))    # true

Key Concepts

Patterns vs Boards

  • Pattern (blob_pattern): A blob pattern image in pixel/logical units. Used for training, simulation, or embedding in custom layouts.
  • Board (blob_board): A complete calibration board with borders, rulers, QR code, and UID markers. Ready for printing.

Unit System

Units are checked at run time via FlexUnits.jl with VisualGeometryToolkitCore's pixel dimension (quantities are FlexUnits Quantitys). BlobBoards re-exports mm, cm, inch, px, dpi, and friends, so using BlobBoards is all you need. Strip a quantity in a named unit, ustrip(mm, q): lengths are held in metres.

Unit TypeExamplesDescription
LogicalpxPixels (dimensionless)
Physicalmm, inch, cmReal-world lengths
DensitydpiDots per inch

Critical distinction:

  • blob_pattern(): blob_sizes are disc diameters in logical units (px, e.g. (12px, nothing))
  • blob_board(): blob_sizes are printed disc diameters in physical units (mm, inch, e.g. (4.0mm, 38mm)); required, both ends: suggest_blob_sizes(600dpi, "A4") gives the smallest disc that prints well at a printer's density and the largest for the board (20% of its shorter side, at most 64 mm)
  • A pattern stores σ in px, a board σ in points — a board is laid out on a fixed 1/7200-inch grid and has no pixel density (min_scale/max_scale; a disc's diameter is 2·cutoff·σ). A density belongs to a raster output only: output = Tiff(600dpi) or Png(300dpi)

Coordinate Specifications

BlobBoards uses three types of coordinate specifications:

TypeValuesPurpose
Image Origin:colmap, :opencv, :juliaPixel coordinate convention
Reference Frame:pattern, :board, :canvasSpatial origin on boards
Coordinate System:pixel, :physical, :worldUnit system for transforms

See the Coordinates Guide for detailed documentation.

Features

Authoring

  • Deterministic patterns from seeded configurations
  • Physical units via FlexUnits (mm, inch, dpi, etc.)
  • Printable boards (PDF) or training images (PNG) with ruler or blank frames
  • JSON serialization for exact reproduction
  • Blob extraction with multiple coordinate conventions
  • World coordinates for 3D calibration workflows

Detection and pose

  • find_boards — detect blobs, fit elliptical frames, canonicalize, describe, match against a board gallery, and estimate pose (P3P or homography)
  • Many boards located per image, each accepted on spatial consistency rather than quad segmentation, so partial occlusion is survivable
  • Backend-generic hot path (KernelAbstractions): CPU, CUDA, or any KA backend
  • track_boards for temporally warm-started video tracking

Tooling

  • Training pipeline: detect, track, and extract canonicalized patches from video
  • .tracks files are plain HDF5
  • Visualization helpers for Makie backends

Installation

Julia 1.13+ is the only requirement. Install for your task gives the pkg> add line of each task (authoring, finding boards on the CPU or a GPU, tracking, plotting, training, Python, a clone) and a runnable example of each.

See the Getting Started guide for detailed instructions.

Contents

Index

Role in the VisualGeometryToolkit stack

BlobBoards provides fiducial blob-board targets for the VisualGeometryToolkit stack: deterministic pattern generation, printable boards, detection, and calibration-grade correspondence ground truth. It consumes VisualGeometryToolkitCore.jl (geometry, units, blob detection) and VisualGeometryToolkitEstimation.jl (robust correspondence/pose estimation).

All toolkit documentation is aggregated at the portal: https://visualgeometrytoolkit.github.io.