Possible Unhandled Promise Rejection (id: 0): ReferenceError: Property 'CanvasRenderingContext2D' doesn't exist ReferenceError: Property 'CanvasRenderingContext2D' doesn't exist This Error is just killing m
in this video you didn't resolve the error in ctx, in the line "const ctx: CanvasRenderingContext2D = can.getContext('2d');", when i am running this project then the camera is opening but it is not doing anything.
I guess it's related to versioning. you can log and see the prediction results, which means tenserflow works well, but the canvas logics part is broken.
@@gigachad3861 I've applied Object detection on Android App (kotlin) with Tensorflow Pre trained Object Detection model. In android studio (kotlin) there is concept of multi-threading which make detection smooth. You can follow different videos to integrate ML Object detection with android app.
thanks for the video. I have tried you sample but I'm getting error upon successful build, "undefined is not an object (evaluati ng 'this.getPrefix'" which is pointing to coco-ssd object detection package. Any idea how to fix it?
@@TechSavvy_ytube I somehow got it working now, I am currently using RN CLI and also not typescript so I changed some codes. It is showing the camera but It does not detect any object. Predictions does not work, I'll just have to study more about object detection. Thanks for the video it helps me learn as a starter.
hello. when i am typing your code, the ctx = canvasRendering2D is showing an error, apart from that when i am running the code in expo, a blank white screen is opening. and is there any way to contact you? want some help for the final yeaar project
What is the error ur getting? Use debugging to check what is not working. Is the model loading ? Is the model working. You can print the model output to check..
bro please dont use background music its so annoying. other than that this is a great guide thank you
Possible Unhandled Promise Rejection (id: 0):
ReferenceError: Property 'CanvasRenderingContext2D' doesn't exist
ReferenceError: Property 'CanvasRenderingContext2D' doesn't exist
This Error is just killing m
Hello
I'm getting the error: "no model or image tensor"
Could you help?
I'm completely new to react native
me too
Thanks, man. It worked for me. I only had to change the _Camera.requestPermissionsAsync()_ function to _Camera.requestCameraPermissionsAsync()_
Thanks Man.
in this video you didn't resolve the error in ctx, in the line "const ctx: CanvasRenderingContext2D = can.getContext('2d');", when i am running this project then the camera is opening but it is not doing anything.
That's not a error. Its just warning from typescript.
Please check ur code.
Everything works fine but it does not detect any object! can you fix it
I guess it's related to versioning. you can log and see the prediction results, which means tenserflow works well, but the canvas logics part is broken.
Do you got idea to use custom datasets with this pre-trained model?
I get this error: "Error: Argument 'x' passed to 'cast' must be a Tensor or TensorLike, but got 'Tensor'". Any idea to solve it?
My app is working, but when point a object, it does not detect anything, the blue border or anything is showing up
what i need to do, to fix this?
did you find the problem?
How to make object detection more smooth, like remove lagging??
did you found any solution to this bro ? im also facing similar problem the camera is quite laggy and .predict() takes a lot of time to give results ?
@@gigachad3861 I've applied Object detection on Android App (kotlin) with Tensorflow Pre trained Object Detection model.
In android studio (kotlin) there is concept of multi-threading which make detection smooth. You can follow different videos to integrate ML Object detection with android app.
Brother I am following this video and i followed each steps but i am getting alot of error
ERROR TypeError: Cannot read property 'Type' of undefined
did you find the solution ?
how to make tflite model to the camera in the react native cli ? please help me
Any idea, how to improve the performance?
Is this code that i can show on your UA-cam is all ? if i just follow your youtube, app can activate well without error?
Yup
can you help translate this into regular javascript not tsx?
I followed all the way till I found it was not JS rather it is TypeScript.
is tensorflow can for face recognation ?
is this using tflite?
thanks for the video. I have tried you sample but I'm getting error upon successful build, "undefined is not an object (evaluati
ng 'this.getPrefix'" which is pointing to coco-ssd object detection package. Any idea how to fix it?
Hi ... I have not faced this issue. When are you getting this error ? Is it when ur trying to predict ?
@@TechSavvy_ytube the moment I launch the app I get this error. I am using RN ver 0.63.4, buildToolsVersion = "29.0.2".
@@greenergrass3489 Hope u have created the app in expo. Check your library list from here www.npmjs.com/package/@tensorflow/tfjs-react-native
@@TechSavvy_ytube I somehow got it working now, I am currently using RN CLI and also not typescript so I changed some codes. It is showing the camera but It does not detect any object. Predictions does not work, I'll just have to study more about object detection. Thanks for the video it helps me learn as a starter.
@@greenergrass3489 Hey got the same result the camera is working but not the Prediction. Did you got it?
Does it work using npm?
how do i apply in custom models? i have transform learning models
You need to convert your model into js model.
And then you can just load using js.tensorflow.org/api_react_native/0.6.0/#bundleResourceIO
@@TechSavvy_ytube yeah i did, but i wonder detection part. if i'll just follow your code, i solved the problem?
Yes
hello. when i am typing your code, the ctx = canvasRendering2D is showing an error, apart from that when i am running the code in expo, a blank white screen is opening. and is there any way to contact you? want some help for the final yeaar project
What is the error ur getting? Use debugging to check what is not working. Is the model loading ? Is the model working. You can print the model output to check..
@@TechSavvy_ytube like I mean the bundling and all is fine but the final result is coming a white screen
@@TechSavvy_ytube anyone way to contact you?
you are very small youtuber you should give code for free
i cant install @tensorflow/tfjs-react-native
I got the same error, try to install like this @tensorflow/tfjs-react-native --legacy-peer-deps