export=
export=: { blockhash: (data: any, bits?: number) => string; hammingDistance: (hashA: any, hashB: any) => number }
Type declaration
-
blockhash: (data: any, bits?: number) => string
-
- (data: any, bits?: number): string
-
Parameters
-
data: any
-
bits: number = 8
Returns string
-
hammingDistance: (hashA: any, hashB: any) => number
-
- (hashA: any, hashB: any): number
-
Parameters
Returns number
Screen Capture
If screen capture is supported and appropriate hardware is attached, the video output of the DUT can be captured. For the testbot, this requires a compatible video capture device to be connected that works with v4L2 and enumerates on the
/dev/video0
interface. If that is the case, then capture can be started using theWorker
classcapture()
method, for example:This will trigger video capture to start, and frames will be saved as
jpg
files in the/data/capture
directory (which is a shared volume). Capture will continue until stopped with: