react-native-vision-camera-object-tracker
v0.1.3
Published
A high-performance, real-time spatial tracking plugin for VisionCamera. It enables ultra-low latency object detection and coordinate mapping using native color segmentation
Maintainers
Readme
react-native-vision-camera-object-tracker
A high-performance, real-time spatial tracking plugin for VisionCamera. It enables ultra-low latency object detection and coordinate mapping using native color segmentation
Installation
npm install react-native-vision-camera-object-trackerUsage
import { useObjectDetection } from 'react-native-vision-camera-object-tracker';
// ...
const objectDetector = useObjectDetection({
kindOfObject: 'colorBlob',
targetColor: 'red',
});
const frameProcessor = useFrameProcessor((frame) => {
'worklet';
const result: any = objectDetector.detectObject(frame, {
mode: 'track',
targetWidth: registeredWidth.value,
});
runOnJs(result);
console.log(result); // {x: 0.5, y: 0.7, found: true}
}, []);Contributing
License
MIT
Made with create-react-native-library
