jbilcke-hf HF staff commited on
Commit
961fee6
·
1 Parent(s): 0aee4e5
client/src/hooks/useFaceLandmarkDetection.tsx CHANGED
@@ -403,7 +403,7 @@ export function useFaceLandmarkDetection() {
403
  case 'leftEye':
404
  case 'rightEye':
405
  // eyebrow (min: -20, max: 5, default: 0)
406
- const eyesMin = 210
407
  const eyesMax = 5
408
  params.eyes = mapRange(vector.x, minX, maxX, eyesMin, eyesMax);
409
 
 
403
  case 'leftEye':
404
  case 'rightEye':
405
  // eyebrow (min: -20, max: 5, default: 0)
406
+ const eyesMin = -20
407
  const eyesMax = 5
408
  params.eyes = mapRange(vector.x, minX, maxX, eyesMin, eyesMax);
409
 
public/index.js CHANGED
@@ -33034,7 +33034,7 @@ function useFaceLandmarkDetection() {
33034
  switch (landmark.group) {
33035
  case "leftEye":
33036
  case "rightEye":
33037
- const eyesMin = 210;
33038
  const eyesMax = 5;
33039
  params.eyes = mapRange(vector.x, minX, maxX, eyesMin, eyesMax);
33040
  break;
 
33034
  switch (landmark.group) {
33035
  case "leftEye":
33036
  case "rightEye":
33037
+ const eyesMin = -20;
33038
  const eyesMax = 5;
33039
  params.eyes = mapRange(vector.x, minX, maxX, eyesMin, eyesMax);
33040
  break;