@gev2002 I use the package just as shown in the example, but if i log data, it is always undefined
I am using version
"react-native-vision-camera": "^4.6.4",
"react-native-vision-camera-text-recognition": "^3.1.1",
"react-native-worklets-core": "^1.5.0",
const options = { language: "latin" };
//@ts-ignore
const { scanText } = useTextRecognition(options);
const frameProcessor = useFrameProcessor(
(frame) => {
"worklet";
if (
isScreenFocused
) {
const data = scanText(frame);
console.log(data, "data");
// eslint-disable-next-line react-hooks/rules-of-hooks
useWorklets(data);
}
},
[pauseFrameProcessing, userInteracting, isScreenFocused],
);
it was working well a few weeks ago
Anybody experiencing the same?
@gev2002 I use the package just as shown in the example, but if i log data, it is always undefined
I am using version
"react-native-vision-camera": "^4.6.4",
"react-native-vision-camera-text-recognition": "^3.1.1",
"react-native-worklets-core": "^1.5.0",
const options = { language: "latin" };
//@ts-ignore
const { scanText } = useTextRecognition(options);
const frameProcessor = useFrameProcessor(
(frame) => {
"worklet";
if (
isScreenFocused
) {
const data = scanText(frame);
console.log(data, "data");
// eslint-disable-next-line react-hooks/rules-of-hooks
useWorklets(data);
}
},
[pauseFrameProcessing, userInteracting, isScreenFocused],
);
it was working well a few weeks ago
Anybody experiencing the same?