victordibia / handtrack.js

A library for prototyping realtime hand detection (bounding box), directly in the browser.
https://victordibia.com/handtrack.js/
MIT License
2.83k stars 250 forks source link

Need Help in Integrating with A-Frame webgl context #34

Open jayateertha043 opened 4 years ago

jayateertha043 commented 4 years ago

I am trying to integrate A-Frame with handtracking.js but not successfull. Here's the code: https://woolen-windy-legal.glitch.me

When I see Console ,I get error:

Uncaught (in promise) TypeError: Cannot read property height of null at getInputTensorDimensions (handtrack.min.js:25) at ObjectDetection.detect (handtrack.min.js:42) at runDetection (aframe.html:49) at aframe.html:60

Please help me fix this !!!

Cigomba commented 2 years ago

You need make sure your object / variable is not returning null, or if it is handle it in someway.