Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mrousavy committed Jan 18, 2024
1 parent d033b63 commit 252403e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ To do the conversion, use [vision-camera-resize-plugin](https://github.com/mrous
const objectDetection = useTensorflowModel(require('object_detection.tflite'))
const model = objectDetection.state === "loaded" ? objectDetection.model : undefined
const { resize } = useResizePlugin()
const frameProcessor = useFrameProcessor((frame) => {
'worklet'
if (model == null) return
Expand All @@ -104,7 +106,7 @@ const frameProcessor = useFrameProcessor((frame) => {
width: 192,
height: 192,
},
pixelFormat: 'rgb (8-bit)'
pixelFormat: 'rgb-uint8'
})
// 2. Run model with given input buffer synchronously
Expand Down

0 comments on commit 252403e

Please sign in to comment.