mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-18 02:21:20 -08:00
26 lines
653 B
TypeScript
26 lines
653 B
TypeScript
import type Artplayer from 'artplayer';
|
|
|
|
export = artplayerPluginDanmukuMask;
|
|
export as namespace artplayerPluginDanmukuMask;
|
|
|
|
type Option = {
|
|
solutionPath?: string;
|
|
modelSelection?: number;
|
|
smoothSegmentation?: boolean;
|
|
minDetectionConfidence?: number;
|
|
minTrackingConfidence?: number;
|
|
selfieMode?: boolean;
|
|
drawContour?: boolean;
|
|
foregroundThreshold?: number;
|
|
opacity?: number;
|
|
maskBlurAmount?: number;
|
|
};
|
|
|
|
type Result = {
|
|
name: 'artplayerPluginDanmukuMask';
|
|
start: () => Promise<void>;
|
|
stop: () => void;
|
|
};
|
|
|
|
declare const artplayerPluginDanmukuMask: (option?: Option) => (art: Artplayer) => Result;
|