File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
packages/scratch-vm/src/extensions/scratch3_face_sensing Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ const TargetType = require('../../extension-support/target-type');
88// const Posenet = require('@tensorflow-models/posenet');
99
1010const FaceDetection = require ( '@tensorflow-models/face-detection' ) ;
11+ const mediapipePackage = require ( '@mediapipe/face_detection/package.json' ) ;
1112
1213/**
1314 * Icon svg to be displayed in the blocks category menu, encoded as a data URI.
@@ -49,7 +50,7 @@ class Scratch3FaceSensingBlocks {
4950 . catch ( ( ) => {
5051 const fallbackConfig = {
5152 runtime : 'mediapipe' ,
52- solutionPath : ' https://cdn.jsdelivr.net/npm/@mediapipe/face_detection@0.4.1646425229' ,
53+ solutionPath : ` https://cdn.jsdelivr.net/npm/@mediapipe/face_detection@${ mediapipePackage . version } ` ,
5354 maxFaces : 1
5455 } ;
5556
You can’t perform that action at this time.
0 commit comments