Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Property '__scanFaces' does not exist #43

Open
ArchivistDevelopers opened this issue Aug 25, 2023 · 10 comments
Open

Property '__scanFaces' does not exist #43

ArchivistDevelopers opened this issue Aug 25, 2023 · 10 comments

Comments

@ArchivistDevelopers
Copy link

No description provided.

@michelorth
Copy link

I have the same problem

"vision-camera-face-detector": "^0.1.8",
"react-native-reanimated": "^3.5.3",
"react-native-vision-camera": "^2.16.1",

my babel.config

const path = require('path');
const pak = require('./package.json');

module.exports = {
presets: ['module:metro-react-native-babel-preset'],
plugins: [
[
'react-native-reanimated/plugin',
{
globals: ['__scanFaces'],
},
],
],
};

my frame processor

const frameProcessor = useFrameProcessor((frame) => {
'worklet';
const scannedFaces = scanFaces(frame);
runOnJS(setFaces)(scannedFaces);
}, []);

@huyhai
Copy link

huyhai commented Oct 13, 2023

try this :
"react-native-vision-camera": "2.16.1",
"react-native-reanimated": "3.5.4",

@SarhaneGhribi
Copy link

module.exports = {
presets: ['module:metro-react-native-babel-preset'],
plugins: [
['react-native-worklets-core/plugin'],
['react-native-reanimated/plugin',
{
globals: ['__scanFaces',],
},]
],
};

paste this in your babel.config.js file

@Robogram
Copy link

try this : "react-native-vision-camera": "2.16.1", "react-native-reanimated": "3.5.4",

I got this "'hermes/inspector/chrome/Registration.h' file not found"

@jessiemblack
Copy link

Same issue with the following:

"react-native-vision-camera": "^3.8.2"
"react-native-reanimated": "^3.6.1"

@Robogram
Copy link

Same issue with the following:

"react-native-vision-camera": "^3.8.2" "react-native-reanimated": "^3.6.1"
Very annoyinggggggg lol...... I'm currently looking up on this instead "https://github.com/mrousavy/react-native-fast-tflite"

@jessiemblack
Copy link

jessiemblack commented Jan 25, 2024

@Robogram I actually got this to work today:

"react-native": "0.73.2",
"react-native-reanimated": "^3.5.4",
"react-native-vision-camera": "^2.16.1",
"react-native-worklets-core": "^0.2.4",
"vision-camera-face-detector": "^0.1.8"

Import the following:
import {scanFaces} from 'vision-camera-face-detector';

Inside your component:

const [faces, setFaces] = useState(null);

  const frameProcessor = useFrameProcessor(frame => {
    'worklet';
    const scannedFaces = scanFaces(frame);
    runOnJS(setFaces)(scannedFaces);
  }, []);

Hope this helps

@Robogram
Copy link

@Robogram I actually got this to work today:

"react-native": "0.73.2",
"react-native-reanimated": "^3.5.4",
"react-native-vision-camera": "^2.16.1",
"react-native-worklets-core": "^0.2.4",
"vision-camera-face-detector": "^0.1.8"

Import the following: import {scanFaces} from 'vision-camera-face-detector';

Inside your component:

const [faces, setFaces] = useState(null);

  const frameProcessor = useFrameProcessor(frame => {
    'worklet';
    const scannedFaces = scanFaces(frame);
    runOnJS(setFaces)(scannedFaces);
  }, []);

Hope this helps

@jessiemichelleblack No, still doesn't work:(. Can I see your repository if you don't mind?

@ansh
Copy link

ansh commented Feb 7, 2024

@Robogram Make sure you run pod install inside the ios directory

@Robogram
Copy link

Robogram commented Feb 7, 2024

@Robogram Make sure you run pod install inside the ios directory

I did "npx pod-install" or do I actually have to cd in ios and 'pod install' also?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants