handTrack.startVideo(img);
/* start camera input stream on the provided video tag. returns a promise with message format
{ status: false, msg: 'please provide a valid video element' }
*/
//const img = this.canvas;
const model = await handTrack.load();
const predictions = await model.detect(img);
console.log('getpredictions');
Below is the Code in Angular 14. Getting ERROR Error: Uncaught (in promise): Error: Failed to compile fragment shader.
async handposes() { const img = document.getElementById('videoid');
}
ngAfterViewInit(): void { /this._recognizer.initialize( this.canvas.nativeElement, this.video.nativeElement );/ this.handposes(); }