jigsawxyz / react-native-coreml-image Goto Github PK
View Code? Open in Web Editor NEWReactNative CoreML Live Image Recognition through Machine Learning
ReactNative CoreML Live Image Recognition through Machine Learning
Can this work on a static image loaded from the internet?
For now I was only able to succeed classification, what about object detection?
How do I integrate the training model?
Can it detect multiple objects at the same time, including coordinate information?
I used react-native-init to create my project.
My package.json file:
{
"name": "project name",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest"
},
"dependencies": {
"react": "16.6.0-alpha.8af6728",
"react-native": "0.57.4",
"react-native-core-ml-image": "0.0.6"
},
"devDependencies": {
"babel-jest": "23.6.0",
"jest": "23.6.0",
"metro-react-native-babel-preset": "0.48.1",
"react-test-renderer": "16.6.0-alpha.8af6728"
},
"jest": {
"preset": "react-native"
}
}
When I run the react-native link
command, I get the following error:
module.js:550
throw err;
^
Error: Cannot find module 'asap/raw'
at Function.Module._resolveFilename (module.js:548:15)
at Function.Module._load (module.js:475:25)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (project/node_modules/promise/lib/core.js:3:12)
at Module._compile (module.js:653:30)
at Module._compile (project/node_modules/pirates/lib/index.js:83:24)
at Module._extensions..js (module.js:664:10)
at Object.newLoader [as .js] (project/node_modules/pirates/lib/index.js:88:7)
at Module.load (module.js:566:32)
Any idea why this might be the case?
Hi,
I have been trying to use the library in my ejected app (to ExpoKit). I followed all the instruction as mentioned in the tutorial on medium. Before react-native link, everything is good and the app is working fine (obviously except the CoreML thing) After I run react-native link, an Xcode project is created under Libraries folder named CoreMLImage.xcodeproj. Now when I try to compile the project, there are some errors such as <React/RCTView.h> not found etc. I solved all these kind of error by using #import "RCTView.h" instead of #import <React/RCTView.h>.
The problem is that I am not able to solve #import <yoga/Yoga.h>. I have all the forums available. Can you please help me? It will be really helpful.
Hi,
I tried and app always crashed when i focus to correct object (detected).
React Native 0.59.9.
Please help me ! Thank you so much
I trained my own model as you say, but using tc 5.2.1 instead of 4.0. And i get error Bundle.main.url just can't find it but with your model everything works fine.
Is there a way to use the front camera? By "front", I guess I mean the camera that faces the user (as in "selfie" camera). Thanks.
Hello there, I'm new in react-native :)
I'm trying to implement "react-native-core-ml-image": "0.0.6" with ios
tried with expo, get "CoreMLImage" was not found in the UIManager, when trying to solve it get new errors...
for now i created "react-native init" and still get the same error
can someone help me with this issue? will be very happy
didn't change in package.json or podfile, just runned with xcode build,
which was successful and "ios": "react-native run-ios --device 'myiPhone'
Hi, I am trying to use the library.
The issue is that sometimes, it works as expected but when I disconnect my iPhone and try to run it again, the error Native component for CoreMLImage does not exist
shows up. My project was made using CRNA and is now ejected to ExpoKit. Any idea why this is happening?
The error is located on line 43 of CoreMLImage.ios.js file.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.