react-native-vision-camera-spoof-detector 1.3.11 → 1.4.1

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.
@@ -168,9 +168,6 @@ class FaceAntiSpoofingAdvanced(private val assetManager: AssetManager) {
168
168
  AntiSpoofingResult(
169
169
  neuralNetworkScore = nnScore,
170
170
  laplacianScore = laplacianScore,
171
- textureComplexity = 0, // Not calculated in working version
172
- temporalConsistency = 0f, // Not calculated in working version
173
- colorSaturation = 0f, // Not calculated in working version
174
171
  combinedScore = combinedScore,
175
172
  confidence = confidence
176
173
  )
@@ -188,9 +185,6 @@ class FaceAntiSpoofingAdvanced(private val assetManager: AssetManager) {
188
185
  return AntiSpoofingResult(
189
186
  neuralNetworkScore = 0f,
190
187
  laplacianScore = 0,
191
- textureComplexity = 0,
192
- temporalConsistency = 0f,
193
- colorSaturation = 0f,
194
188
  combinedScore = 0f,
195
189
  confidence = 0f
196
190
  )
@@ -209,9 +203,6 @@ class FaceAntiSpoofingAdvanced(private val assetManager: AssetManager) {
209
203
  AntiSpoofingResult(
210
204
  neuralNetworkScore = 0f,
211
205
  laplacianScore = 0,
212
- textureComplexity = 0,
213
- temporalConsistency = 0f,
214
- colorSaturation = 0f,
215
206
  combinedScore = 0f,
216
207
  confidence = 0f
217
208
  )
@@ -221,9 +212,6 @@ class FaceAntiSpoofingAdvanced(private val assetManager: AssetManager) {
221
212
  AntiSpoofingResult(
222
213
  neuralNetworkScore = 0f,
223
214
  laplacianScore = 0,
224
- textureComplexity = 0,
225
- temporalConsistency = 0f,
226
- colorSaturation = 0f,
227
215
  combinedScore = 0f,
228
216
  confidence = 0f
229
217
  )
@@ -383,9 +371,6 @@ class FaceAntiSpoofingAdvanced(private val assetManager: AssetManager) {
383
371
  return AntiSpoofingResult(
384
372
  neuralNetworkScore = nnScore,
385
373
  laplacianScore = laplacianScore,
386
- textureComplexity = 0,
387
- temporalConsistency = 0f,
388
- colorSaturation = 0f,
389
374
  combinedScore = combinedScore,
390
375
  confidence = calculateConfidence(nnScore, laplacianScore),
391
376
  )
@@ -513,9 +498,6 @@ class FaceAntiSpoofingAdvanced(private val assetManager: AssetManager) {
513
498
  return AntiSpoofingResult(
514
499
  neuralNetworkScore = 0f,
515
500
  laplacianScore = 0,
516
- textureComplexity = 0,
517
- temporalConsistency = 0f,
518
- colorSaturation = 0f,
519
501
  combinedScore = 0f,
520
502
  confidence = 0f
521
503
  )
@@ -532,9 +514,6 @@ class FaceAntiSpoofingAdvanced(private val assetManager: AssetManager) {
532
514
  AntiSpoofingResult(
533
515
  neuralNetworkScore = nnScore,
534
516
  laplacianScore = laplacianScore,
535
- textureComplexity = 0,
536
- temporalConsistency = 0f,
537
- colorSaturation = 0f,
538
517
  combinedScore = combinedScore,
539
518
  confidence = confidence
540
519
  )
@@ -543,9 +522,6 @@ class FaceAntiSpoofingAdvanced(private val assetManager: AssetManager) {
543
522
  AntiSpoofingResult(
544
523
  neuralNetworkScore = 0f,
545
524
  laplacianScore = 0,
546
- textureComplexity = 0,
547
- temporalConsistency = 0f,
548
- colorSaturation = 0f,
549
525
  combinedScore = 0f,
550
526
  confidence = 0f
551
527
  )
@@ -557,9 +533,6 @@ class FaceAntiSpoofingAdvanced(private val assetManager: AssetManager) {
557
533
  return AntiSpoofingResult(
558
534
  neuralNetworkScore = 0f,
559
535
  laplacianScore = 0,
560
- textureComplexity = 0,
561
- temporalConsistency = 0f,
562
- colorSaturation = 0f,
563
536
  combinedScore = 0f,
564
537
  confidence = 0f
565
538
  )
@@ -576,9 +549,6 @@ class FaceAntiSpoofingAdvanced(private val assetManager: AssetManager) {
576
549
  AntiSpoofingResult(
577
550
  neuralNetworkScore = nnScore,
578
551
  laplacianScore = laplacianScore,
579
- textureComplexity = 0,
580
- temporalConsistency = 0f,
581
- colorSaturation = 0f,
582
552
  combinedScore = combinedScore,
583
553
  confidence = confidence
584
554
  )
@@ -587,9 +557,6 @@ class FaceAntiSpoofingAdvanced(private val assetManager: AssetManager) {
587
557
  AntiSpoofingResult(
588
558
  neuralNetworkScore = 0f,
589
559
  laplacianScore = 0,
590
- textureComplexity = 0,
591
- temporalConsistency = 0f,
592
- colorSaturation = 0f,
593
560
  combinedScore = 0f,
594
561
  confidence = 0f
595
562
  )
@@ -1003,9 +970,6 @@ class FaceAntiSpoofingAdvanced(private val assetManager: AssetManager) {
1003
970
  data class AntiSpoofingResult(
1004
971
  val neuralNetworkScore: Float,
1005
972
  val laplacianScore: Int,
1006
- val textureComplexity: Int,
1007
- val temporalConsistency: Float,
1008
- val colorSaturation: Float,
1009
973
  val combinedScore: Float,
1010
974
  val confidence: Float
1011
975
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-vision-camera-spoof-detector",
3
- "version": "1.3.11",
3
+ "version": "1.4.1",
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": {