React native tensorflow object detection

Поділитися
Вставка
  • Опубліковано 20 сер 2024

КОМЕНТАРІ • 48

  • @baroksander152
    @baroksander152 4 місяці тому +2

    bro please dont use background music its so annoying. other than that this is a great guide thank you

  • @ammaraamir4441
    @ammaraamir4441 Рік тому +1

    Possible Unhandled Promise Rejection (id: 0):
    ReferenceError: Property 'CanvasRenderingContext2D' doesn't exist
    ReferenceError: Property 'CanvasRenderingContext2D' doesn't exist
    This Error is just killing m

  • @mohamadbeelall7078
    @mohamadbeelall7078 2 роки тому +3

    Hello
    I'm getting the error: "no model or image tensor"
    Could you help?
    I'm completely new to react native

  • @willianspraciano
    @willianspraciano 2 роки тому +2

    Thanks, man. It worked for me. I only had to change the _Camera.requestPermissionsAsync()_ function to _Camera.requestCameraPermissionsAsync()_

    • @anazi
      @anazi 2 роки тому

      Thanks Man.

  • @shivamkumarsah9514
    @shivamkumarsah9514 2 роки тому +1

    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.

    • @TechSavvy_ytube
      @TechSavvy_ytube  2 роки тому

      That's not a error. Its just warning from typescript.
      Please check ur code.

  • @user-su1tk4jw8f
    @user-su1tk4jw8f 5 місяців тому +1

    Everything works fine but it does not detect any object! can you fix it

    • @street-stage-travels
      @street-stage-travels 4 місяці тому

      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.

  • @zhlim6659
    @zhlim6659 2 роки тому +1

    Do you got idea to use custom datasets with this pre-trained model?

  • @giusepperavida3533
    @giusepperavida3533 Рік тому

    I get this error: "Error: Argument 'x' passed to 'cast' must be a Tensor or TensorLike, but got 'Tensor'". Any idea to solve it?

  • @amithbino7376
    @amithbino7376 Рік тому

    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?

  • @nabeelmalik.4714
    @nabeelmalik.4714 2 роки тому +1

    How to make object detection more smooth, like remove lagging??

    • @gigachad3861
      @gigachad3861 Рік тому

      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 ?

    • @nabeelmalik.4714
      @nabeelmalik.4714 Рік тому

      @@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.

  • @ammaraamir4441
    @ammaraamir4441 Рік тому

    Brother I am following this video and i followed each steps but i am getting alot of error

  • @aimeepineda8400
    @aimeepineda8400 2 місяці тому

    ERROR TypeError: Cannot read property 'Type' of undefined

    • @No-One8166
      @No-One8166 Місяць тому

      did you find the solution ?

  • @zhaletaheri9049
    @zhaletaheri9049 Рік тому

    how to make tflite model to the camera in the react native cli ? please help me

  • @croosheck
    @croosheck Рік тому

    Any idea, how to improve the performance?

  • @user-mw1xc1vp9f
    @user-mw1xc1vp9f 2 роки тому

    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?

  • @hunggarchristian
    @hunggarchristian 2 роки тому

    can you help translate this into regular javascript not tsx?

  • @anazi
    @anazi 2 роки тому

    I followed all the way till I found it was not JS rather it is TypeScript.

  • @gumantar835
    @gumantar835 Рік тому

    is tensorflow can for face recognation ?

  • @dub161
    @dub161 2 роки тому

    is this using tflite?

  • @greenergrass3489
    @greenergrass3489 2 роки тому

    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
      @TechSavvy_ytube  2 роки тому

      Hi ... I have not faced this issue. When are you getting this error ? Is it when ur trying to predict ?

    • @greenergrass3489
      @greenergrass3489 2 роки тому

      @@TechSavvy_ytube the moment I launch the app I get this error. I am using RN ver 0.63.4, buildToolsVersion = "29.0.2".

    • @TechSavvy_ytube
      @TechSavvy_ytube  2 роки тому

      @@greenergrass3489 Hope u have created the app in expo. Check your library list from here www.npmjs.com/package/@tensorflow/tfjs-react-native

    • @greenergrass3489
      @greenergrass3489 2 роки тому

      @@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.

    • @xyliusdominicibayan6215
      @xyliusdominicibayan6215 2 роки тому

      @@greenergrass3489 Hey got the same result the camera is working but not the Prediction. Did you got it?

  • @tayyabbutt3968
    @tayyabbutt3968 2 роки тому

    Does it work using npm?

  • @user-mw1xc1vp9f
    @user-mw1xc1vp9f 2 роки тому

    how do i apply in custom models? i have transform learning models

    • @TechSavvy_ytube
      @TechSavvy_ytube  2 роки тому +1

      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

    • @user-mw1xc1vp9f
      @user-mw1xc1vp9f 2 роки тому

      @@TechSavvy_ytube yeah i did, but i wonder detection part. if i'll just follow your code, i solved the problem?

    • @TechSavvy_ytube
      @TechSavvy_ytube  2 роки тому

      Yes

  • @soumyabratachakraborty5239
    @soumyabratachakraborty5239 2 роки тому

    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

    • @TechSavvy_ytube
      @TechSavvy_ytube  2 роки тому

      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..

    • @soumyabratachakraborty5239
      @soumyabratachakraborty5239 2 роки тому

      @@TechSavvy_ytube like I mean the bundling and all is fine but the final result is coming a white screen

    • @soumyabratachakraborty5239
      @soumyabratachakraborty5239 2 роки тому

      @@TechSavvy_ytube anyone way to contact you?

  • @shanayagupta4002
    @shanayagupta4002 2 роки тому +2

    you are very small youtuber you should give code for free

  • @rioal-dia.dompol703
    @rioal-dia.dompol703 2 роки тому

    i cant install @tensorflow/tfjs-react-native

    • @cristinaprevidessantos5682
      @cristinaprevidessantos5682 2 роки тому +1

      I got the same error, try to install like this @tensorflow/tfjs-react-native --legacy-peer-deps