Options
All
  • Public
  • Public/Protected
  • All
Menu

Module Graphics

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 the Worker class capture() method, for example:

example
const Worker = this.require('common/worker');
const worker = new Worker('DEVICE_TYPE_SLUG', this.getLogger())
await worker.capture('start');

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:

await worker.capture('stop');

Index

Namespaces

Properties

Properties

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

        • hashA: any
        • hashB: any

        Returns number

Generated using TypeDoc