@yeomessagingcom/react-native-yeofr 0.2.1 → 0.3.0

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.
@@ -57,6 +57,14 @@ public struct SDKFaceRecognitionResult : Swift.Equatable {
57
57
  #endif
58
58
  public static func == (lhs: YEOFR.SDKFaceRecognitionResult, rhs: YEOFR.SDKFaceRecognitionResult) -> Swift.Bool
59
59
  }
60
+ public struct TrueDepthConfiguration {
61
+ public let lowerThreshold: Swift.Float
62
+ public let upperThreshold: Swift.Float
63
+ public init(lowerThreshold: Swift.Float, upperThreshold: Swift.Float)
64
+ public static var defaultConfiguration: YEOFR.TrueDepthConfiguration {
65
+ get
66
+ }
67
+ }
60
68
  public enum YEOFRDefaults {
61
69
  }
62
70
  public protocol YEOFRConfigurable {
@@ -93,10 +101,22 @@ public enum YEOFRDepthVerdict : Swift.Equatable {
93
101
  }
94
102
  public static func == (lhs: YEOFR.YEOFRDepthVerdict, rhs: YEOFR.YEOFRDepthVerdict) -> Swift.Bool
95
103
  }
104
+ final public class YEOFRTrueDepthState {
105
+ final public var visionInFlight: Swift.Bool
106
+ final public var lastVisionTime: Swift.Double
107
+ final public var flatnessWindow: [Swift.Float]
108
+ final public var consecutiveNoFace: Swift.Int
109
+ final public var consecutiveFlatStrong: Swift.Int
110
+ public init()
111
+ final public func reset()
112
+ final public func resetSmoothingOnly()
113
+ @objc deinit
114
+ }
96
115
  public protocol YEOFRTrueDepthHandling : AVFoundation.AVCaptureVideoDataOutputSampleBufferDelegate {
97
116
  var depthEnabled: Swift.Bool { get }
98
117
  var videoOutput: AVFoundation.AVCaptureVideoDataOutput { get set }
99
118
  var depthDataOutput: AVFoundation.AVCaptureDepthDataOutput { get set }
119
+ var trueDepthState: YEOFR.YEOFRTrueDepthState { get }
100
120
  func onDepthVerdict(value: YEOFR.YEOFRDepthVerdict)
101
121
  }
102
122
  extension YEOFR.YEOFRTrueDepthHandling {
@@ -130,6 +150,8 @@ public typealias YEOFRTrackerHandle = Swift.Int64
130
150
  @discardableResult
131
151
  final public func imageMatchesTracker(_ image: UIKit.UIImage) -> Swift.Bool
132
152
  final public func detectedFaceCount(in image: UIKit.UIImage) -> Swift.Int
153
+ final public func setTrueDepthConfig(_ config: YEOFR.TrueDepthConfiguration)
154
+ final public func getTrueDepthConfig() -> YEOFR.TrueDepthConfiguration
133
155
  @objc deinit
134
156
  }
135
157
  extension YEOFR.FaceRecognitionState : Swift.Equatable {}
@@ -57,6 +57,14 @@ public struct SDKFaceRecognitionResult : Swift.Equatable {
57
57
  #endif
58
58
  public static func == (lhs: YEOFR.SDKFaceRecognitionResult, rhs: YEOFR.SDKFaceRecognitionResult) -> Swift.Bool
59
59
  }
60
+ public struct TrueDepthConfiguration {
61
+ public let lowerThreshold: Swift.Float
62
+ public let upperThreshold: Swift.Float
63
+ public init(lowerThreshold: Swift.Float, upperThreshold: Swift.Float)
64
+ public static var defaultConfiguration: YEOFR.TrueDepthConfiguration {
65
+ get
66
+ }
67
+ }
60
68
  public enum YEOFRDefaults {
61
69
  }
62
70
  public protocol YEOFRConfigurable {
@@ -93,10 +101,22 @@ public enum YEOFRDepthVerdict : Swift.Equatable {
93
101
  }
94
102
  public static func == (lhs: YEOFR.YEOFRDepthVerdict, rhs: YEOFR.YEOFRDepthVerdict) -> Swift.Bool
95
103
  }
104
+ final public class YEOFRTrueDepthState {
105
+ final public var visionInFlight: Swift.Bool
106
+ final public var lastVisionTime: Swift.Double
107
+ final public var flatnessWindow: [Swift.Float]
108
+ final public var consecutiveNoFace: Swift.Int
109
+ final public var consecutiveFlatStrong: Swift.Int
110
+ public init()
111
+ final public func reset()
112
+ final public func resetSmoothingOnly()
113
+ @objc deinit
114
+ }
96
115
  public protocol YEOFRTrueDepthHandling : AVFoundation.AVCaptureVideoDataOutputSampleBufferDelegate {
97
116
  var depthEnabled: Swift.Bool { get }
98
117
  var videoOutput: AVFoundation.AVCaptureVideoDataOutput { get set }
99
118
  var depthDataOutput: AVFoundation.AVCaptureDepthDataOutput { get set }
119
+ var trueDepthState: YEOFR.YEOFRTrueDepthState { get }
100
120
  func onDepthVerdict(value: YEOFR.YEOFRDepthVerdict)
101
121
  }
102
122
  extension YEOFR.YEOFRTrueDepthHandling {
@@ -130,6 +150,8 @@ public typealias YEOFRTrackerHandle = Swift.Int64
130
150
  @discardableResult
131
151
  final public func imageMatchesTracker(_ image: UIKit.UIImage) -> Swift.Bool
132
152
  final public func detectedFaceCount(in image: UIKit.UIImage) -> Swift.Int
153
+ final public func setTrueDepthConfig(_ config: YEOFR.TrueDepthConfiguration)
154
+ final public func getTrueDepthConfig() -> YEOFR.TrueDepthConfiguration
133
155
  @objc deinit
134
156
  }
135
157
  extension YEOFR.FaceRecognitionState : Swift.Equatable {}
@@ -18,23 +18,23 @@
18
18
  </data>
19
19
  <key>Modules/YEOFR.swiftmodule/arm64-apple-ios.abi.json</key>
20
20
  <data>
21
- em8jMk00/ZVE/AwHKm9EeP24Q6Q=
21
+ 6iam9uEw3ARE2dpzL1t0CUYl5hY=
22
22
  </data>
23
23
  <key>Modules/YEOFR.swiftmodule/arm64-apple-ios.private.swiftinterface</key>
24
24
  <data>
25
- DCSrUjdHTYPkbm7pWjxvnbGPp5E=
25
+ QOh8zjmAQaySJWF8ZhPPzN5GgOE=
26
26
  </data>
27
27
  <key>Modules/YEOFR.swiftmodule/arm64-apple-ios.swiftdoc</key>
28
28
  <data>
29
- 5x0pw/Ee3Zk7dJCpTOXv+fD/LlQ=
29
+ hQkgaXIr8M/Oly/GxNoBlC7KqUc=
30
30
  </data>
31
31
  <key>Modules/YEOFR.swiftmodule/arm64-apple-ios.swiftinterface</key>
32
32
  <data>
33
- DCSrUjdHTYPkbm7pWjxvnbGPp5E=
33
+ QOh8zjmAQaySJWF8ZhPPzN5GgOE=
34
34
  </data>
35
35
  <key>Modules/YEOFR.swiftmodule/arm64-apple-ios.swiftmodule</key>
36
36
  <data>
37
- NZlG1U0LYcQSZw68EBjliYW06Zo=
37
+ Ad1L9aFvxFcyH3N0zywC1GBo7kE=
38
38
  </data>
39
39
  <key>Modules/module.modulemap</key>
40
40
  <data>
@@ -61,35 +61,35 @@
61
61
  <dict>
62
62
  <key>hash2</key>
63
63
  <data>
64
- ajhDwujiD93NQCfcqWIsTKMl2OJUash/Seul+W+D278=
64
+ Pgh7pZhHG9mHa5D+iOmvtTPCu3H4xgaZkvblSQgJbeQ=
65
65
  </data>
66
66
  </dict>
67
67
  <key>Modules/YEOFR.swiftmodule/arm64-apple-ios.private.swiftinterface</key>
68
68
  <dict>
69
69
  <key>hash2</key>
70
70
  <data>
71
- zOic69nnJd53MoctoA21MrKi5UNG7ozmy2hxrhTQ3qo=
71
+ YvKqYVialJc62OIZvIqPQwc1QK5bKMC/lI/IXyFCNKY=
72
72
  </data>
73
73
  </dict>
74
74
  <key>Modules/YEOFR.swiftmodule/arm64-apple-ios.swiftdoc</key>
75
75
  <dict>
76
76
  <key>hash2</key>
77
77
  <data>
78
- LNixwMqc8SOVXd7VioIEOGBWsqBVUcAVcEpGgRV2TE0=
78
+ ECDiutXsGos+bIoX4fTYuhMe0+F5fxnOenDYa8yPmkk=
79
79
  </data>
80
80
  </dict>
81
81
  <key>Modules/YEOFR.swiftmodule/arm64-apple-ios.swiftinterface</key>
82
82
  <dict>
83
83
  <key>hash2</key>
84
84
  <data>
85
- zOic69nnJd53MoctoA21MrKi5UNG7ozmy2hxrhTQ3qo=
85
+ YvKqYVialJc62OIZvIqPQwc1QK5bKMC/lI/IXyFCNKY=
86
86
  </data>
87
87
  </dict>
88
88
  <key>Modules/YEOFR.swiftmodule/arm64-apple-ios.swiftmodule</key>
89
89
  <dict>
90
90
  <key>hash2</key>
91
91
  <data>
92
- /VGYVoiTjxy7TrNoBnchnz/LWkM5t1DnQCGGPFhpuv0=
92
+ d8qPmgcKsqyXJSU4/C+/qw0P2muiggxXkD82jTB3rKM=
93
93
  </data>
94
94
  </dict>
95
95
  <key>Modules/module.modulemap</key>
@@ -1,6 +1,6 @@
1
1
  Pod::Spec.new do |s|
2
2
  s.name = "react-native-yeofr"
3
- s.version = "0.2.1"
3
+ s.version = "0.3.0"
4
4
  s.summary = "React Native iOS bridge for YEO Face Recognition."
5
5
  s.homepage = "https://github.com/yeomessaging/react-native-yeofr"
6
6
  s.license = { :type => "Commercial", :file => "LICENSE" }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yeomessagingcom/react-native-yeofr",
3
- "version": "0.2.1",
3
+ "version": "0.3.0",
4
4
  "description": "React Native iOS integration for YEO Face Recognition (device-only).",
5
5
  "main": "index.ts",
6
6
  "react-native": "index.ts",
@@ -46,7 +46,7 @@
46
46
  "@types/react-native": "^0.72.0"
47
47
  },
48
48
  "dependencies": {
49
- "@yeomessagingcom/react-native-yeofr": "^0.2.1"
49
+ "@yeomessagingcom/react-native-yeofr": "^0.3.0"
50
50
  },
51
51
  "workspaces": [
52
52
  "example"