{"_id":"@bitphinix/vision-camera-face-detector","_rev":"2-60a37748451c88cd49dd7c13ec253e2f","name":"@bitphinix/vision-camera-face-detector","dist-tags":{"latest":"0.1.11"},"versions":{"0.1.9":{"name":"@bitphinix/vision-camera-face-detector","version":"0.1.9","description":"VisionCamera Frame Processor Plugin to detect faces using MLKit Vision Face Detector","main":"lib/commonjs/index","module":"lib/module/index","types":"lib/typescript/index.d.ts","react-native":"src/index","private":false,"source":"src/index","scripts":{"test":"jest","typescript":"tsc --noEmit","lint":"eslint \"**/*.{js,ts,tsx}\"","prepare":"bob build","release":"release-it","example":"yarn --cwd example","pods":"cd example && pod-install --quiet","bootstrap":"yarn example && yarn && yarn pods"},"keywords":["react-native","ios","android"],"repository":{"type":"git","url":"git+https://github.com/rodgomesc/vision-camera-face-detector.git"},"author":{"name":"Rodrigo gomes","email":"rodgomesc@gmail.com","url":"https://github.com/rodgomesc"},"license":"MIT","bugs":{"url":"https://github.com/rodgomesc/vision-camera-face-detector/issues"},"homepage":"https://github.com/rodgomesc/vision-camera-face-detector#readme","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"devDependencies":{"@commitlint/config-conventional":"^11.0.0","@react-native-community/eslint-config":"^2.0.0","@release-it/conventional-changelog":"^2.0.0","@types/jest":"^26.0.0","@types/react":"^16.9.19","@types/react-native":"0.62.13","commitlint":"^11.0.0","eslint":"^7.2.0","eslint-config-prettier":"^7.0.0","eslint-plugin-prettier":"^3.1.3","husky":"^4.2.5","jest":"^26.0.1","pod-install":"^0.1.0","prettier":"^2.0.5","react":"17.0.1","react-native":"0.64.1","react-native-builder-bob":"^0.18.1","react-native-reanimated":"2.2.0","react-native-vision-camera":"2.9.0","release-it":"^14.2.2","typescript":"^4.1.3"},"peerDependencies":{"react":"*","react-native":"*","react-native-vision-camera":">= 2"},"jest":{"preset":"react-native","modulePathIgnorePatterns":["<rootDir>/example/node_modules","<rootDir>/lib/"]},"eslintConfig":{"root":true,"extends":["@react-native-community","prettier"],"rules":{"prettier/prettier":["error",{"quoteProps":"consistent","singleQuote":true,"tabWidth":2,"trailingComma":"es5","useTabs":false}]}},"eslintIgnore":["node_modules/","lib/"],"prettier":{"quoteProps":"consistent","singleQuote":true,"tabWidth":2,"trailingComma":"es5","useTabs":false},"react-native-builder-bob":{"source":"src","output":"lib","targets":["commonjs","module",["typescript",{"project":"tsconfig.build.json"}]]},"gitHead":"02a84d314b5ceb043f7c3632d7eb5693b28eabb5","_id":"@bitphinix/vision-camera-face-detector@0.1.9","_nodeVersion":"19.9.0","_npmVersion":"9.6.3","dist":{"integrity":"sha512-dWqMn5x94W1eqCz2p4fdMNtWidBRPWO8NrwY/S4JrRJP64M9ssK74HedGQrCN8Td7/zqgL1qmfSPc64ldbIgAw==","shasum":"26a586827cbcc5a77c52c5f204fb0c0dfa5e84bb","tarball":"https://registry.npmjs.org/@bitphinix/vision-camera-face-detector/-/vision-camera-face-detector-0.1.9.tgz","fileCount":23,"unpackedSize":107777,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEKGnqgKBnrG0khmBdQrLoP4+lsTHGI75nUNKxox+lLxAiAfCodaXJ3yQh+QJEZP4F9VYg0RBEaWS/iqRpjStw/SBw=="}]},"_npmUser":{"name":"bitphinix","email":"ericmeier@protonmail.com"},"directories":{},"maintainers":[{"name":"bitphinix","email":"ericmeier@protonmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vision-camera-face-detector_0.1.9_1683327858257_0.9078619880745749"},"_hasShrinkwrap":false},"0.1.10":{"name":"@bitphinix/vision-camera-face-detector","version":"0.1.10","description":"VisionCamera Frame Processor Plugin to detect faces using MLKit Vision Face Detector","main":"lib/commonjs/index","module":"lib/module/index","types":"lib/typescript/index.d.ts","react-native":"src/index","private":false,"source":"src/index","scripts":{"test":"jest","typescript":"tsc --noEmit","lint":"eslint \"**/*.{js,ts,tsx}\"","prepare":"bob build","release":"release-it","example":"yarn --cwd example","pods":"cd example && pod-install --quiet","bootstrap":"yarn example && yarn && yarn pods"},"keywords":["react-native","ios","android"],"repository":{"type":"git","url":"git+https://github.com/rodgomesc/vision-camera-face-detector.git"},"author":{"name":"Rodrigo gomes","email":"rodgomesc@gmail.com","url":"https://github.com/rodgomesc"},"license":"MIT","bugs":{"url":"https://github.com/rodgomesc/vision-camera-face-detector/issues"},"homepage":"https://github.com/rodgomesc/vision-camera-face-detector#readme","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"devDependencies":{"@commitlint/config-conventional":"^11.0.0","@react-native-community/eslint-config":"^2.0.0","@release-it/conventional-changelog":"^2.0.0","@types/jest":"^26.0.0","@types/react":"^16.9.19","@types/react-native":"0.62.13","commitlint":"^11.0.0","eslint":"^7.2.0","eslint-config-prettier":"^7.0.0","eslint-plugin-prettier":"^3.1.3","husky":"^4.2.5","jest":"^26.0.1","pod-install":"^0.1.0","prettier":"^2.0.5","react":"17.0.1","react-native":"0.64.1","react-native-builder-bob":"^0.18.1","react-native-reanimated":"2.2.0","react-native-vision-camera":"2.9.0","release-it":"^15.10.3","typescript":"^4.1.3"},"peerDependencies":{"react":"*","react-native":"*","react-native-vision-camera":">= 2"},"jest":{"preset":"react-native","modulePathIgnorePatterns":["<rootDir>/example/node_modules","<rootDir>/lib/"]},"eslintConfig":{"root":true,"extends":["@react-native-community","prettier"],"rules":{"prettier/prettier":["error",{"quoteProps":"consistent","singleQuote":true,"tabWidth":2,"trailingComma":"es5","useTabs":false}]}},"eslintIgnore":["node_modules/","lib/"],"prettier":{"quoteProps":"consistent","singleQuote":true,"tabWidth":2,"trailingComma":"es5","useTabs":false},"react-native-builder-bob":{"source":"src","output":"lib","targets":["commonjs","module",["typescript",{"project":"tsconfig.build.json"}]]},"gitHead":"cf7d047decefe9476b9a5d6c1ab35b97e6b500ed","_id":"@bitphinix/vision-camera-face-detector@0.1.10","_nodeVersion":"19.9.0","_npmVersion":"9.6.3","dist":{"integrity":"sha512-a9Q6e4/I6wNb0HjbdhP8ZpOdGKWEEX57Wh940TTfTVOoMZMoVLiE9ACjFGBZSTxHC9fZO9SKZYm/GK3WC4JoWQ==","shasum":"b40d0d229fb1feb513f74828333384943683bdd0","tarball":"https://registry.npmjs.org/@bitphinix/vision-camera-face-detector/-/vision-camera-face-detector-0.1.10.tgz","fileCount":23,"unpackedSize":107758,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCA7qra0Zh2a8zMakUXPkyb7/HT6/4r4XXj1UAhGPtgoAIgXWLDeWIaP7BrotOyGnVng5fqHlFB85ctGORwEgmeWcM="}]},"_npmUser":{"name":"bitphinix","email":"ericmeier@protonmail.com"},"directories":{},"maintainers":[{"name":"bitphinix","email":"ericmeier@protonmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vision-camera-face-detector_0.1.10_1683333614833_0.17288739262344444"},"_hasShrinkwrap":false},"0.1.11":{"name":"@bitphinix/vision-camera-face-detector","version":"0.1.11","description":"VisionCamera Frame Processor Plugin to detect faces using MLKit Vision Face Detector","main":"lib/commonjs/index","module":"lib/module/index","types":"lib/typescript/index.d.ts","react-native":"src/index","private":false,"source":"src/index","scripts":{"test":"jest","typescript":"tsc --noEmit","lint":"eslint \"**/*.{js,ts,tsx}\"","prepare":"bob build","release":"release-it","example":"yarn --cwd example","pods":"cd example && pod-install --quiet","bootstrap":"yarn example && yarn && yarn pods"},"keywords":["react-native","ios","android"],"repository":{"type":"git","url":"git+https://github.com/rodgomesc/vision-camera-face-detector.git"},"author":{"name":"Rodrigo gomes","email":"rodgomesc@gmail.com","url":"https://github.com/rodgomesc"},"license":"MIT","bugs":{"url":"https://github.com/rodgomesc/vision-camera-face-detector/issues"},"homepage":"https://github.com/rodgomesc/vision-camera-face-detector#readme","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"devDependencies":{"@commitlint/config-conventional":"^11.0.0","@react-native-community/eslint-config":"^2.0.0","@release-it/conventional-changelog":"^2.0.0","@types/jest":"^26.0.0","@types/react":"^16.9.19","@types/react-native":"0.62.13","commitlint":"^11.0.0","eslint":"^7.2.0","eslint-config-prettier":"^7.0.0","eslint-plugin-prettier":"^3.1.3","husky":"^4.2.5","jest":"^26.0.1","pod-install":"^0.1.0","prettier":"^2.0.5","react":"17.0.1","react-native":"0.64.1","react-native-builder-bob":"^0.18.1","react-native-reanimated":"2.2.0","react-native-vision-camera":"2.9.0","release-it":"^15.10.3","typescript":"^4.1.3"},"peerDependencies":{"react":"*","react-native":"*","react-native-vision-camera":">= 2"},"jest":{"preset":"react-native","modulePathIgnorePatterns":["<rootDir>/example/node_modules","<rootDir>/lib/"]},"eslintConfig":{"root":true,"extends":["@react-native-community","prettier"],"rules":{"prettier/prettier":["error",{"quoteProps":"consistent","singleQuote":true,"tabWidth":2,"trailingComma":"es5","useTabs":false}]}},"eslintIgnore":["node_modules/","lib/"],"prettier":{"quoteProps":"consistent","singleQuote":true,"tabWidth":2,"trailingComma":"es5","useTabs":false},"react-native-builder-bob":{"source":"src","output":"lib","targets":["commonjs","module",["typescript",{"project":"tsconfig.build.json"}]]},"gitHead":"ae6c24737a6f543c1470a56a5c98dcc872e43437","_id":"@bitphinix/vision-camera-face-detector@0.1.11","_nodeVersion":"19.9.0","_npmVersion":"9.6.3","dist":{"integrity":"sha512-+z93SkDtXJhRGVBk0UWS8U5e6tKk4r/Ly9cBg0QRK9CYOpSZiwqdW8kDivWG5NnQSzRtBxRXEo5vcE4f6w8Vuw==","shasum":"6665958b2c0a12dd6bb2bc4422b1c73bfab46ddb","tarball":"https://registry.npmjs.org/@bitphinix/vision-camera-face-detector/-/vision-camera-face-detector-0.1.11.tgz","fileCount":23,"unpackedSize":107692,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICFx0iN4V6rqi1VS+OatWWm1gHDnjsyyaALaLt2koNdAAiEA7R/LcUwbaiK+nBC1S1ymxeDtQLV6t2koEA1PdJJ4ozs="}]},"_npmUser":{"name":"bitphinix","email":"ericmeier@protonmail.com"},"directories":{},"maintainers":[{"name":"bitphinix","email":"ericmeier@protonmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vision-camera-face-detector_0.1.11_1688328904753_0.936303140775826"},"_hasShrinkwrap":false}},"time":{"created":"2023-05-05T23:04:18.182Z","0.1.9":"2023-05-05T23:04:18.463Z","modified":"2023-07-02T20:15:05.037Z","0.1.10":"2023-05-06T00:40:15.096Z","0.1.11":"2023-07-02T20:15:04.934Z"},"maintainers":[{"name":"bitphinix","email":"ericmeier@protonmail.com"}],"description":"VisionCamera Frame Processor Plugin to detect faces using MLKit Vision Face Detector","homepage":"https://github.com/rodgomesc/vision-camera-face-detector#readme","keywords":["react-native","ios","android"],"repository":{"type":"git","url":"git+https://github.com/rodgomesc/vision-camera-face-detector.git"},"author":{"name":"Rodrigo gomes","email":"rodgomesc@gmail.com","url":"https://github.com/rodgomesc"},"bugs":{"url":"https://github.com/rodgomesc/vision-camera-face-detector/issues"},"license":"MIT","readme":"# vision-camera-face-detector\n\nVisionCamera Frame Processor Plugin to detect faces using MLKit Vision Face Detector\n\n## Installation\n\n```sh\nyarn add vision-camera-face-detector\n```\n\n## Usage\n\n```js\nimport * as React from 'react';\nimport { runOnJS } from 'react-native-reanimated';\n\nimport { StyleSheet } from 'react-native';\nimport {\n  useCameraDevices,\n  useFrameProcessor,\n} from 'react-native-vision-camera';\n\nimport { Camera } from 'react-native-vision-camera';\nimport { scanFaces, Face } from 'vision-camera-face-detector';\n\nexport default function App() {\n  const [hasPermission, setHasPermission] = React.useState(false);\n  const [faces, setFaces] = React.useState<Face[]>();\n\n  const devices = useCameraDevices();\n  const device = devices.front;\n\n  React.useEffect(() => {\n    console.log(faces);\n  }, [faces]);\n\n  React.useEffect(() => {\n    (async () => {\n      const status = await Camera.requestCameraPermission();\n      setHasPermission(status === 'authorized');\n    })();\n  }, []);\n\n  const frameProcessor = useFrameProcessor((frame) => {\n    'worklet';\n    const scannedFaces = scanFaces(frame);\n    runOnJS(setFaces)(scannedFaces);\n  }, []);\n\n  return device != null && hasPermission ? (\n    <Camera\n      style={StyleSheet.absoluteFill}\n      device={device}\n      isActive={true}\n      frameProcessor={frameProcessor}\n      frameProcessorFps={5}\n    />\n  ) : null;\n}\n\n```\n\n## Contributing\n\nSee the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.\n\n## License\n\nMIT\n","readmeFilename":"README.md"}