@kontext21/k21


@kontext21/k21 / K21

Class: K21

Defined in: k21.ts:5

Constructors

Constructor

new K21(): K21

Defined in: k21.ts:22

Returns

K21

Methods

run()

run(): Promise<ProcessedFrameData[]>

Defined in: k21.ts:107

Executes the screen capture and processing pipeline

Returns

Promise<ProcessedFrameData[]>

Promise<ProcessedFrameData[]> Array of processed frames with their metadata:

  • timestamp: ISO timestamp of capture
  • frameNumber: Sequential frame number
  • content: Processed content (e.g., OCR text)
  • processingType: Type of processing applied

Throws

Error if neither screen capturer nor file capturer is set

Throws

Error if screen capture or processing fails

Example


const results = await pipeline.run();
// Returns empty array if no processor is set