react-native-yolo 0.0.8 → 0.0.10

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.
@@ -6,7 +6,7 @@ public class HybridYolo: HybridYoloSpec {
6
6
  private static let tag = "YOLO_TAG"
7
7
 
8
8
  // Initialisateur obligatoire pour les modules Nitro
9
- public required init() {
9
+ public required override init() {
10
10
  super.init()
11
11
  }
12
12
 
@@ -14,7 +14,7 @@ public class HybridYolo: HybridYoloSpec {
14
14
  * Charge l'objet modèle YOLO spécifié par son chemin.
15
15
  * Implémente la méthode obligatoire du protocole Nitro TypeScript.
16
16
  */
17
- public override func loadModel(modelPath: String) throws -> any HybridYoloModelSpec {
17
+ public func loadModel(modelPath: String) throws -> any HybridYoloModelSpec {
18
18
  NSLog("[%@]: Trying to load model object: %@", HybridYolo.tag, modelPath)
19
19
 
20
20
  // Initialise et retourne votre sous-classe de modèle Nitro (assurez-vous qu'elle s'appelle bien HybridYoloModel)
@@ -25,7 +25,7 @@ public class HybridYolo: HybridYoloSpec {
25
25
  * Valide un Frame de la caméra, le convertit en JPEG permanent (NV12 -> JPEG -> Fix Rotation),
26
26
  * puis l'encode instantanément en chaîne de caractères Base64 standard.
27
27
  */
28
- public override func frameToBase64(frame: any HybridFrameSpec) throws -> String {
28
+ public func frameToBase64(frame: any HybridFrameSpec) throws -> String {
29
29
  NSLog("[%@]: Trying to convert frame to base64", HybridYolo.tag)
30
30
 
31
31
  do {
@@ -51,7 +51,7 @@ public class HybridYoloModel: HybridYoloModelSpec {
51
51
  }
52
52
  }
53
53
 
54
- public override func detect(frame: any HybridFrameSpec) throws -> [Detection] {
54
+ public func detect(frame: any HybridFrameSpec) throws -> [Detection] {
55
55
  guard let localInterpreter = interpreter else {
56
56
  NSLog("[%@]: ❌ This model instance is not loaded.", HybridYoloModel.tag)
57
57
  return []
@@ -92,7 +92,7 @@ public class HybridYoloModel: HybridYoloModelSpec {
92
92
  return parseNmsOutput(outputArray: nativeOutputs, confidenceThreshold: 0.5)
93
93
  }
94
94
 
95
- public override func close() throws {
95
+ public func close() throws {
96
96
  interpreter = nil
97
97
  inputBuffer = nil
98
98
  NSLog("[%@]: 🧹 YOLO model disposed", HybridYoloModel.tag)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-yolo",
3
- "version": "0.0.8",
3
+ "version": "0.0.10",
4
4
  "description": "react-native-yolo is a react native package built with Nitro",
5
5
  "main": "./lib/commonjs/index.js",
6
6
  "module": "./lib/module/index.js",