@sealpixel/plugin-assist
v1.0.0-rc.11
Published
Assisted redaction: a detector proposes regions on the proxy, the user accepts or rejects, acceptance dispatches a plain redact.add. No operations, no kernel work; the ML runtime loads only from the /plates entry, and only on demand.
Downloads
403
Readme
@sealpixel/plugin-assist
Assisted redaction. A detector proposes regions on the proxy, a person accepts
or rejects them, and acceptance dispatches an ordinary redact.add. The
suggestions live in the UI tool, never in the edit log, so a render never needs
the model again.
The plugin itself declares no operations and does no kernel work; it gives the
editor a plugin id for the toolbar button and the options. It is not in
defaultPlugins: a host registers it, installs the tool from @sealpixel/ui
(createAssistTool) and supplies a detector — its own, or the one from the
/plates entry of this package:
import { createAssistTool, defaultPlugins } from '@sealpixel/element';
import { assistPlugin } from '@sealpixel/plugins';
import { createPlateDetector } from '@sealpixel/plugin-assist/plates';
editor.plugins = [...defaultPlugins, assistPlugin];
editor.tools = { assist: createAssistTool(createPlateDetector()) };
editor.pluginOptions = {
assist: { model: { url: '/models/plate.onnx', sha256: '…' }, wasmPaths: '/ort/' },
};/plates runs onnxruntime-web in a worker and imports it on the first
detection. onnxruntime-web is an optional peer dependency: install it and
serve its .wasm files and your model yourself. The SDK ships no weights.
Options: run, timeoutMs, classes, minScore, maxSuggestions, model,
wasmPaths, padding, mode, amount, acceptAbove, badge, showScore,
adjust, bulk. See the guide at docs.sealpixel.dev for the full contract.
