# OpenCV.js 4.13.0 — bundled build record

**Artifact:** `opencv-4.13.0.js` (one file; the WebAssembly binary is embedded, `SINGLE_FILE=1`)
**Source:** <https://docs.opencv.org/4.13.0/opencv.js> (official OpenCV documentation build; `docs.opencv.org/4.x/opencv.js` redirects here)
**Retrieved:** 2026-11-29
**SHA-256:** `63366510248adf3a7eddf3e793dd825404efb7df3749f4d6f8557c7fa4ca8aa0`
**Size:** 10,964,323 bytes (stores an 8,053,876-byte WebAssembly module)

## Build configuration reported by the artifact itself

The binary embeds the OpenCV build report, which reads in part:

```
General configuration for OpenCV 4.13.0 =====================================
  Version control:               4.13.0
  Platform:
    Timestamp:                   2025-12-31T07:16:15Z
    Host:                        Linux 6.8.0-1044-azure x86_64
    Target:                      Emscripten 1 x86
    CMake:                       3.22.1, Unix Makefiles, Release
    C++ Compiler:                emsdk-portable/upstream/emscripten/em++ (10.0.0)
    C++ flags (Release):         -s SINGLE_FILE=1 -s USE_PTHREADS=0
    Disabled:                    highgui imgcodecs ml stitching videoio world
```

## What that configuration means here

- **Native `opencv_videoio` is not compiled in.** It is listed under `Disabled`, and the
  binary contains no `opencv_videoio`, `VideoCapture`, `VideoWriter`, `MJPG`/`MJPEG`,
  `cap_ffmpeg`, `CAP_FFMPEG` or `CAP_V4L` symbols.
- **`cv.VideoCapture` in the JavaScript glue is a shim**, not the native module. Its whole
  body wraps an `HTMLVideoElement` plus a `<canvas>` and throws unless it is handed a video
  element or element id. Nimblekit never calls it.
- **`imgcodecs` is disabled**, so `cv.imread` is likewise a JavaScript shim that reads a
  canvas element. The scanner feeds it a canvas it already owns.
- **`FileStorage`** is compiled into `opencv_core` but is not exposed to JavaScript:
  `typeof cv.FileStorage === 'undefined'` in this build. Nimblekit accepts no OpenCV
  configuration, calibration or model files.
- **Only these calls are used**: `cv.imread`, `cvtColor`, `GaussianBlur`, `Canny`,
  `adaptiveThreshold`, `findContours`, `approxPolyDP`, `arcLength`, `contourArea`,
  `Mat`/`MatVector` allocation and `delete`, for optional document-edge detection. The page
  loads the file only when the visitor asks for automatic detection, and every `Mat` is
  released in the same call.

## Licence

Apache License 2.0 — full text in `OPENCV-LICENSE.txt` next to this file, and listed on the
site's Licenses page. OpenCV also carries third-party notices in its own source
distribution (`LICENSE`, module directories) at <https://github.com/opencv/opencv/tree/4.13.0>.

This file is a record, not a modification: the JavaScript artifact is stored byte-for-byte as
published, and its SHA-256 is pinned in `issues/verify_style_boundary.py`.
