Images, audio and video
OSL serves text only. Media are redacted so that the version’s text is complete (a transcript, the OCR text of a page) and so that a person can review, and download, a covered derivative of the document.
A recording is transcribed by an operator-mounted speech-to-text engine (see
Configuration). The
transcript is redacted like any other text, and the words’ timestamps give each
version a manifest of time ranges per class, with a margin around each range
(redaction.audioMarginMs, 400 ms by default).
Where the deployment provides ffmpeg, a derivative is rendered with the voice
muted inside each range and a 1 kHz tone in its place. Without it, only the
manifest is stored.
Identifiers that are dictated (“six nine six, three two…”, “john at example dot com”) are read word by word with their time spans. Speech the engine could not transcribe marks the document for a person’s review: it is withheld from every consumption read until someone marks it reviewed (see Documents that need review).
Images and scanned pages
Section titled “Images and scanned pages”Where the deployment mounts the OCR assets, images (JPEG, PNG, TIFF, WebP) and PDF pages without a text layer are read by OCR with a box and a confidence per word. The OCR text is chunked, searched and redacted like any other text. For each version, every span is covered by the union of the boxes of its words (one box per text line), padded.
Recall is the privacy property, so the image path fails closed:
- a span touching a word read with low confidence widens to the neighbouring words;
- a low-confidence word that looks like an identifier (digits, an
@, a domain) is covered even when no class matched it; - with the
emailclass, any word with a dotted domain is covered, because OCR can misread the@; - a page whose mean confidence is below the floor needs a person’s review; by default no derivative of that document is produced (the deployment can cover such pages whole instead).
The page as read is kept as the original. Only a tenant administrator acting as a person can view the original or the covered page, and each view is audited before the image leaves.
Without the OCR assets, the image modality and the face class are refused
(E0278, modality_unavailable).
face is a visual class: a face detector draws boxes over each image or
page. It is opt-in per version like any other class. The version’s visual
operator decides how boxes are covered: opaque (a solid fill, the default) or
blur (strong pixelation). A page cover shown for review is always opaque.
When video frame redaction is turned on (redaction.video.frames, which needs
the OCR assets and an ffmpeg build with VP9 and Opus), the runner samples a
video’s frames, reads each one like an image page (OCR and faces), links the
boxes into tracks and re-encodes the video with them covered, together with the
toned audio. Each document says whether its frames were covered
(visualRedaction: applied, partial or unavailable). Without it, the
derivative is the original video stream with the toned audio track: the frames
are not redacted.
Turning frame redaction on changes the image settings every version records, so existing versions become stale.
Visual detections in the summary
Section titled “Visual detections in the summary”A version’s summary reports detections per class in the unit the class is counted in, so counts of different things are never added together:
| Class kind | Entry in summary.detectionsByClass |
|---|---|
| Pattern or text class | {unit: "spans", count}: the text spans found |
Visual class (face) |
{unit: "regions", count, found, covered, docs} |
For a visual class, found is the regions the detector found (face boxes on
images and scanned pages, face tracks in video), covered is those inside a
rendered derivative (fewer than found when a derivative was not rendered) and
docs is the number of documents with any. A declared visual class is always
listed, with zeros until an image or video document was read for it. Counts
only: never a region’s position. The detector catalogue declares each class’s
unit.
Fixed visual tests
Section titled “Fixed visual tests”Pattern classes are checked against golden trap sets before every materialization. A visual class has a fixed visual test instead: a bundled set of six synthetic drawn images (one face, two faces, a small face in a large image, a drawn ID card, and two images without a face), each with the boxes a detector must find.
- The runner scores the set with the deployment’s face detector at the start of a run and records the result in the run summary.
- An image passes when every expected face is covered at an overlap (IoU) of at least 0.5 and no box lands where none is expected.
- The version’s
goldenentry for the class reads{tag, kind: "visual", pass, total, detector}, the worst of the counted runs.pass < totalmakesgolden.okfalse, so the version cannot be validated. pass: nullmeans pending: no run has recorded it yet, or no detector is mounted.
The test is recorded, not a gate on the run itself: a failing set does not stop a materialization, it stops the version from validating. The images are generated and carry no third-party licence.