-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Object Detection] Documentation is off #165
Comments
hey @jolo-dev can you try switching that item that isn't found to You can use the Example App for reference. |
Hi @frankcalise, Thanks for commenting. I adjusted the code accordingly. Now, I get following error when I want to use the ERROR Error: Cannot find native module 'RNMLKitObjectDetection', js engine: hermes
at ContextNavigator I am on expo SDK 51. My client has version 2.31.2 Here my very simplified code import React from 'react';
import { View, Button, Text } from 'react-native';
import {
useObjectDetectionModels,
} from "@infinitered/react-native-mlkit-object-detection";
export function CameraScreen() {
const { ObjectDetectionModelContextProvider } = useObjectDetectionModels({
loadDefaultModel: true,
defaultModelOptions: {
shouldEnableMultipleObjects: true,
shouldEnableClassification: true,
detectorMode: "stream",
},
});
return (
<View style={styles.container}>
<ObjectDetectionModelContextProvider>
<MyComponent />
</ObjectDetectionModelContextProvider>
</View>
);
} |
Ah and I am using Android. Could it be it happens because it was not defined here correctly. |
I took the example from the docs here and noticed many errors which I cannot make work :/
MLKitObjectDetection.wrong.types.mp4
The text was updated successfully, but these errors were encountered: