UNPKG

@ar-js-org/artoolkitplus-ts

Version:

Typescript ARToolKitPlus port thanks to Emscripten

26 lines (25 loc) 725 B
import { IImageObj } from "./CommonInterfaces"; export abstract class AbstractTrackerSingleMarker { protected cameraUrl: string; protected useBCH: boolean; protected width: number; protected height: number; protected patternWidth: number; constructor( useBCH: boolean, cameraUrl: string, width: number, height: number, patternWidth: number ) { this.cameraUrl = cameraUrl; this.useBCH = useBCH; this.width = width; this.height = height; this.patternWidth = patternWidth; } abstract setup(cameraUrl: string): void; abstract update(image: IImageObj): void; abstract getConfidence(): number; abstract getModelViewMatrix(): Array<number>; }