Skip to content

Commit

Permalink
feat: Upgrade resize-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
mrousavy committed Jan 25, 2024
1 parent 4e2be34 commit c1fb6da
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ PODS:
- React-jsinspector (0.72.1)
- React-logger (0.72.1):
- glog
- react-native-fast-tflite (1.1.0):
- react-native-fast-tflite (1.1.3):
- RCT-Folly (= 2021.07.22.00)
- React-Core
- react-native-worklets-core (0.2.4):
Expand Down Expand Up @@ -492,7 +492,7 @@ PODS:
- React-logger (= 0.72.1)
- React-perflogger (= 0.72.1)
- SocketRocket (0.6.1)
- vision-camera-resize-plugin (1.0.2):
- vision-camera-resize-plugin (1.2.2):
- RCT-Folly (= 2021.07.22.00)
- React-Core
- VisionCamera (3.8.2):
Expand Down Expand Up @@ -713,7 +713,7 @@ SPEC CHECKSUMS:
React-jsiexecutor: 184eae1ecdedc7a083194bd9ff809c93f08fd34c
React-jsinspector: d0b5bfd1085599265f4212034321e829bdf83cc0
React-logger: b8103c9b04e707b50cdd2b1aeb382483900cbb37
react-native-fast-tflite: d143a19d41cf969cc30de7fab281738a2fd256e9
react-native-fast-tflite: 48ae4fde4ff97e5c11c9170fa1fd89930bcc1772
react-native-worklets-core: b4094f51cb2bc649e297206425cb8956f4945e3e
React-NativeModulesApple: 4f31a812364443cee6ef768d256c594ad3b20f53
React-perflogger: 3d501f34c8d4b10cb75f348e43591765788525ad
Expand All @@ -733,7 +733,7 @@ SPEC CHECKSUMS:
React-utils: 0a70ea97d4e2749f336b450c082905be1d389435
ReactCommon: e593d19c9e271a6da4d0bd7f13b28cfeae5d164b
SocketRocket: f32cd54efbe0f095c4d7594881e52619cfe80b17
vision-camera-resize-plugin: bb83ad86c5c9e8fd865052c7203fa1b6634a2e84
vision-camera-resize-plugin: f758328f7369f626d06929be7264684657e640b7
VisionCamera: edbcd00e27a438b2228f67823e2b8d15a189065f
Yoga: 65286bb6a07edce5e4fe8c90774da977ae8fc009
YogaKit: f782866e155069a2cca2517aafea43200b01fd5a
Expand Down
2 changes: 1 addition & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"react-native": "0.72.1",
"react-native-vision-camera": "^3.8.2",
"react-native-worklets-core": "^0.2.4",
"vision-camera-resize-plugin": "^1.0.2"
"vision-camera-resize-plugin": "^1.2.2"
},
"devDependencies": {
"@babel/core": "^7.20.0",
Expand Down
6 changes: 3 additions & 3 deletions example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ export default function App(): React.ReactNode {
width: 320,
height: 320,
},
pixelFormat: 'rgb-uint8',
pixelFormat: 'rgb',
dataType: 'uint8',
})
const typedArray = new Uint8Array(resized)
const result = actualModel.runSync([typedArray])
const result = actualModel.runSync([resized])
const num_detections = result[3]?.[0] ?? 0
console.log('Result: ' + num_detections)
},
Expand Down
8 changes: 4 additions & 4 deletions example/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5952,10 +5952,10 @@ vary@~1.1.2:
resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc"
integrity sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==

vision-camera-resize-plugin@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/vision-camera-resize-plugin/-/vision-camera-resize-plugin-1.0.2.tgz#f1fecdfc7810bce4b30a6e2ffe7f540862c3dc3c"
integrity sha512-RdGO2S8nobu3J8V60h+zY8FT7ajWJOdkmIq5nXuduK7SLJg9A+pry5VVJQVtyYrBxHZx53vhvqRwdYyRrGwYxg==
vision-camera-resize-plugin@^1.2.2:
version "1.2.2"
resolved "https://registry.yarnpkg.com/vision-camera-resize-plugin/-/vision-camera-resize-plugin-1.2.2.tgz#550b85c6845639cacf5295c0c12f3a79bd2a5c43"
integrity sha512-9BEXlkm7j7d8yzW8ML/UuruUVeQxaJVBIcOXk0dcFRbas4P9nBZhkoZm6vEx5XWPCuC6UgBiM8jVX3tZ9xUGfQ==

vlq@^1.0.0:
version "1.0.1"
Expand Down

0 comments on commit c1fb6da

Please sign in to comment.