File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ function setup() {
8
8
video . size ( width , height ) ;
9
9
10
10
const options = { maxHands : 2 } ;
11
- handpose = ml5 . handpose ( video , options ) ;
11
+ handpose = ml5 . handpose ( video , options , modelReady ) ;
12
12
13
13
// This sets up an event that fills the global variable "predictions"
14
14
// with an array every time new hand poses are detected
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ class Handpose extends EventEmitter {
91
91
const handpose = ( ...inputs ) => {
92
92
const { video, options = { } , callback } = handleArguments ( ...inputs ) ;
93
93
const instance = new Handpose ( video , options , callback ) ;
94
- return callback ? instance : instance . ready ;
94
+ return instance ;
95
95
} ;
96
96
97
97
export default handpose ;
You can’t perform that action at this time.
0 commit comments