Configure K21 to process existing video or image files
setCapturerFromFile
method configures K21 to process an existing video (.mp4) or image (.png) file instead of capturing from screen. This is useful when you want to analyze pre-recorded content.
Parameter | Type | Required | Description |
---|---|---|---|
file | string | Yes | Path to the file to be processed. Must be either .mp4 or .png |
.mp4
).png
)setCapturerFromFile
if you’ve already set a screen capturer using setCapturer