react-native-vision-camera-spoof-detector 1.1.8 → 1.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of react-native-vision-camera-spoof-detector might be problematic. Click here for more details.

Files changed (2) hide show
  1. package/index.js +1 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,7 +1,6 @@
1
1
  import { useMemo, useRef } from 'react';
2
2
  import { NativeModules } from 'react-native';
3
3
  import { NitroModules } from 'react-native-nitro-modules';
4
- import { scheduleOnRN } from 'react-native-worklets';
5
4
 
6
5
  const { FaceAntiSpoof } = NativeModules;
7
6
 
@@ -16,7 +15,6 @@ export const useFaceAntiSpoofFrameOutput = ({ onResult, ...options } = {}) => {
16
15
  );
17
16
  return useMemo(
18
17
  () => factory.createSpoofDetectorOutput({
19
- targetResolution: options.targetResolution ?? { width: 256, height: 256 },
20
18
  onResult(result) {
21
19
  resultRef.current?.(result);
22
20
  },
@@ -24,7 +22,7 @@ export const useFaceAntiSpoofFrameOutput = ({ onResult, ...options } = {}) => {
24
22
  errorRef.current?.(error);
25
23
  },
26
24
  }),
27
- [factory, options.targetResolution],
25
+ [factory],
28
26
  );
29
27
  };
30
28
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-vision-camera-spoof-detector",
3
- "version": "1.1.8",
3
+ "version": "1.1.9",
4
4
  "description": "High-performance face anti-spoofing and liveness detection module for React Native Vision Camera. Uses TensorFlow Lite with GPU acceleration and optimized YUV processing.",
5
5
  "homepage": "https://github.com/dpraful/react-native-vision-camera-spoof-detector",
6
6
  "repository": {