ppu-ocv
Version:
A type-safe, modular, chainable image processing library built on top of OpenCV.js with a fluent API leveraging pipeline processing.
12 lines (11 loc) • 518 B
TypeScript
import type { OperationResult, PartialOptions } from "../pipeline/types.js";
import { cv } from "../cv-provider.js";
/** Options for the Canny edge-detection operation. */
export type CannyOptions = PartialOptions & {
/** Lower threshold for the hysteresis procedure (0-255) */
lower: number;
/** Upper threshold for the hysteresis procedure (0-255) */
upper: number;
};
/** Detect edges using the Canny algorithm. */
export declare function canny(img: cv.Mat, options: CannyOptions): OperationResult;