Vision Lens SDK
    Preparing search index...

    Interface Plugin

    Plugin interface. A plugin file must export default an object conforming to this shape. Each hook is optional — plugins implement only the hooks they need. A failing hook logs a warning but never aborts the run.

    interface Plugin {
        name: string;
        onImageAnalysed?(result: AnalyzedImage): Promise<void>;
        onImageProcessed?(result: ProcessedResult): Promise<void>;
        onRunComplete?(cache: AnalysisCache): Promise<void>;
    }
    Index

    Properties

    name: string

    Human-readable plugin name used in log messages.

    Methods

    • Called after each image is analysed by the LLM.

      Parameters

      Returns Promise<void>

    • Called after each image is processed (overlay stamped, JPEG exported).

      Parameters

      Returns Promise<void>

    • Called once after the full run completes and the cache has been written.

      Parameters

      Returns Promise<void>