jaroslawkrol / vision-camera-realtime-object-detection

VisionCamera Frame Processor Plugin to detect objects using TensorFlow Lite Task Vision
MIT License
102 stars 12 forks source link

Task :vision-camera-realtime-object-detection:compileDebugKotlin FAILED #13

Open bigg-S opened 3 months ago

bigg-S commented 3 months ago

After following the guide on how to set up this package, the build keeps failing with the error, " Task :vision-camera-realtime-object-detection:compileDebugKotlin FAILED ". The following is my package.json: "dependencies": { "@babel/plugin-proposal-export-namespace-from": "^7.18.9", "@react-native-async-storage/async-storage": "^1.18.2", "@react-navigation/bottom-tabs": "^6.5.8", "@react-navigation/drawer": "^6.6.3", "@react-navigation/native": "^6.1.17", "@react-navigation/native-stack": "^6.9.26", "@react-navigation/stack": "^6.3.17", "@reduxjs/toolkit": "^1.9.5", "axios": "^1.4.0", "deprecated-react-native-prop-types": "^5.0.0", "eslint-plugin-simple-import-sort": "^8.0.0", "i18n-js": "3.9.2", "lodash": "^4.17.21", "lodash.memoize": "4.1.2", "lottie-react-native": "^5.1.6", "moment": "^2.29.4", "nativewind": "^2.0.11", "react": "18.2.0", "react-native": "^0.72.14", "react-native-fast-tflite": "^1.2.0", "react-native-gesture-handler": "^2.16.2", "react-native-image-picker": "^7.1.2", "react-native-localize": "^2.2.4", "react-native-permissions": "^4.1.5", "react-native-reanimated": "^3.3.0", "react-native-safe-area-context": "^4.10.1", "react-native-screens": "^3.31.1", "react-native-vector-icons": "^9.2.0", "react-native-vision-camera": "^4.0.5", "react-native-worklets-core": "^1.3.3", "react-redux": "^8.1.1", "reanimated-bottom-sheet": "^1.0.0-alpha.22", "redux-persist": "^6.0.0", "redux-thunk": "^2.4.2", "vision-camera-realtime-object-detection": "^0.5.1", "vision-camera-resize-plugin": "^3.1.0" },

what might the issue be?

Orange9000 commented 1 month ago

It is incompatible with the latest version of vision camera. I've successfully managed to get it working with react-native-vision-camera@4.5.0 by editing some of the native code, as well getting around assets limitation on expo managed project. I can share the details if anyone would like.