Tensorflow Lite with Object Detection on Raspberry Pi!

Поделиться
HTML-код
  • Опубликовано: 24 ноя 2024
  • НаукаНаука

Комментарии • 92

  • @vampireheart2596
    @vampireheart2596 5 месяцев назад +3

    Thank you man ! If anyone had the error with GLIBCXX_3.4.29 while testing the code, all you have to do is run the command : python -m pip install --upgrade tflite-support==0.4.2 (downgrade from 0.4.4)

    • @fifossucrilhos
      @fifossucrilhos 5 месяцев назад +2

      I'm getting the error: ImportError: libwebp.so.6: No such file in directory on line 19 of "detect.py". This is when I try to run the model. Did you come across it?

    • @vampireheart2596
      @vampireheart2596 5 месяцев назад

      @@fifossucrilhos search Paul McWhorter on youtube. His tutorial about raspberry pi tensor Flow lesson 63 worked for me

    • @vampireheart2596
      @vampireheart2596 5 месяцев назад +2

      ​@@fifossucrilhossearch Paul McWhorter on youtube. His tutorial about object detection with tensorflow worked really well for me. It's lesson 63 on his channel

    • @fifossucrilhos
      @fifossucrilhos 5 месяцев назад +1

      @@vampireheart2596 thank you :)

    • @dallastexas438
      @dallastexas438 29 дней назад

      ⁠same issue here.

  • @pocketgamer8446
    @pocketgamer8446 Год назад +5

    Thanks A LOT, I've been struggling to setup this for days and your simple tutorial helped me ! :D

  • @maysalsayed2343
    @maysalsayed2343 7 месяцев назад +1

    ok , what if i want to run ssd mobilenet v2 on raspberry pi? i've watched your video of it but i need to apply it on my raspberry pi

  • @valixg7557
    @valixg7557 Год назад +3

    Thank you very much. I tried to Install Tensorflow Lite myself, but failed. Well I had luck that I found your Video. If you have time, can you make a Video were you use a speech AI to regognice the person and when you give him a command, that he do it. Like write "Blabla" or " move", shutdown, etc. Well it would help me in my Projects.😅😅
    Thank you very much that you invest so much time doing this things.😊

  • @supriobarua53
    @supriobarua53 8 месяцев назад +2

    just a suggestion, while making the video, please fit your interface wherever you are working with the screen, or maybe zoom a bit. Its really difficult to see what you are typing and all for the people who have eye problems like me :D

  • @Jerseylance1
    @Jerseylance1 8 месяцев назад +1

    Nice work, but what if you want to use pan&tilt servos to have them follow you?

  • @kyuya5738
    @kyuya5738 Месяц назад +2

    Thank you for the great content :) does this work on Bookworm + Python 3.11 as well? I am having trouble getting it to work

  • @elvenkim
    @elvenkim 9 месяцев назад +1

    Like your enthusiasm! Keep it up!

  • @armenkalaidjian4494
    @armenkalaidjian4494 Год назад +5

    Doesn't work on Debian version: 12 (bookworm). Unable to install tflite_support

  • @ahmedakyol8830
    @ahmedakyol8830 7 месяцев назад +2

    Hello thanks for information but i have an eror after "sh setup.sh" my setup is raspberry pi 5 and picamera3 how can i fix it

  • @Jedi_Fox
    @Jedi_Fox 2 месяца назад +1

    ERROR: Could not find a version that satisfies the requirement tflite-support==0.4.3 (from versions: 0.1.0a0.dev3, 0.1.0a0.dev4, 0.1.0a0.dev5, 0.1.0a0, 0.1.0a1)
    Idk why this happen. both happen on windows10 and rasbian bookworm

  • @fajarrevo5200
    @fajarrevo5200 7 месяцев назад +1

    how to change image or upload image for detect?

  • @YigalBZ
    @YigalBZ 2 месяца назад

    Good video, thank you. ew questions if I may: 1) If my target is to recognize a train model on the move, will it work? 2) Is it possible to train (can be off line) and use a custom model? 3) or would you recommend moving to RPI 5?

  • @aminmutalib874
    @aminmutalib874 8 месяцев назад +3

    i got problem:
    note: This error originates from a subprocess, and is likely not a problem with pip.
    ERROR: Failed building wheel for numpy
    Failed to build numpy
    ERROR: Could not build wheels for numpy, which is required to install pyproject.toml-based projects
    may i asking for some help here?

    • @maysalsayed2343
      @maysalsayed2343 7 месяцев назад +3

      i downgraded the python version for the virtual environment to python 3.7.3, and it worked

    • @vampireheart2596
      @vampireheart2596 5 месяцев назад +1

      ​@@maysalsayed2343how did you do that, sir? Please some advice

    • @maysalsayed2343
      @maysalsayed2343 5 месяцев назад +1

      @@vampireheart2596 i followed the section of downgrading in this video: ruclips.net/video/vekblEk6UPc/видео.htmlsi=QLmtAOIkg9hzbUVU

    • @manez9691
      @manez9691 4 месяца назад

      Sir can you tell me how to do that? ​@@maysalsayed2343

    • @thilakjo
      @thilakjo 2 месяца назад

      @@vampireheart2596 same question

  • @tanmayhannikeri4130
    @tanmayhannikeri4130 Год назад

    thanks a lot bro this vidio helped me a lot and I'm really grateful for it. keep doing what your doing.and all the very best in your youtube career ;)

  • @imnotme3938
    @imnotme3938 2 месяца назад

    please help. i get error when i use my own tflite model file.

  • @ViciOW2
    @ViciOW2 10 месяцев назад +1

    Hey I've been following the tutorial and when I run "sh setup.sh" like at 5:30 in the video I receive an error:
    ERROR: Failed to build wheel for numpy
    Failed to build numpy
    If I then try to run "python3 detect.py --model efficientdet_lite0.tflite", I receive:
    ModuleNotFoundError: No module named 'cv2'
    Any help would be appreciated.

    • @s.rmishra7176
      @s.rmishra7176 10 месяцев назад +1

      im getting the same error the cv2 error gets resolve₫ when i download opencv seperatly but theirs another error and like no tflite-support task found

    • @s.rmishra7176
      @s.rmishra7176 10 месяцев назад

      got the solution man just downgrade the python to 3.7 and it works

    • @aymeneboucha6057
      @aymeneboucha6057 9 месяцев назад +1

      @@s.rmishra7176 which version exactly ? 3.7.2, 3.7.5.. ?

  • @2324이동형
    @2324이동형 3 месяца назад

    Hi! I enjoyed your video. Could you please explain if I can transfer the object detection AI implemented by YOLOv8 from colab to tensorflow lite and run it on Arduino?

  • @akshespage5172
    @akshespage5172 6 месяцев назад +1

    hello sir all the step I did correct at the last step's before is i got the error ''import error: numpy.core.multiarray failed to import'

    • @adryanparo2816
      @adryanparo2816 5 месяцев назад +2

      The same error occurred in my code, were you able to resolve it?

    • @adryanparo2816
      @adryanparo2816 5 месяцев назад +2

      be able to correct it as follows.
      pip install numpy==1.25.
      python3 detect.py --model efficientdet_lite0.tflite

    • @akshespage5172
      @akshespage5172 5 месяцев назад +1

      Thank you

  • @The_Car_Zone
    @The_Car_Zone 9 месяцев назад +4

    I keep getting an error when trying to run the sh setup.sh command. Saying that there is an error from a subprocess. Could you help me. Thank You.

    • @aymeneboucha6057
      @aymeneboucha6057 9 месяцев назад

      did you fix it ?

    • @Grub0425
      @Grub0425 3 месяца назад +1

      Downgrading my python version to 3.7.3 fixed it for me. Hope this helps!

  • @dgeorgakopoulos
    @dgeorgakopoulos 10 месяцев назад +1

    I am using a Raspi 3 A+ and a camera module 3 NOIR, at the last step I get an error saying unable to read from webcam. Please verify your webcam settings. Can anyone help me here?

    • @k.pradeepkumar968
      @k.pradeepkumar968 9 месяцев назад

      @dgeorgakopoulos ,me too facing the same issue ,

    • @maysalsayed2343
      @maysalsayed2343 7 месяцев назад +1

      did you solve it?can you please tell me how😊

    • @drrobotsir
      @drrobotsir 29 дней назад

      Same problem

  • @maysalsayed2343
    @maysalsayed2343 7 месяцев назад

    how can i let it work for pi camera?

  • @VinhTran-mq6iz
    @VinhTran-mq6iz Год назад

    Thanks a lot

  • @MUHAMMADJASEEMTK
    @MUHAMMADJASEEMTK 3 месяца назад

    which raspberry pi os you using ???

  • @BrooksImperial
    @BrooksImperial 5 месяцев назад

    Wow - extremely cool!

  • @pocketgamer8446
    @pocketgamer8446 Год назад +1

    If someone encounter this error :
    INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
    qt.qpa.xcb: could not connect to display
    qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/raspberry/examples/env/lib/python3.9/site-packages/cv2/qt/plugins" even though it was found.
    This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
    Available platform plugins are: xcb.
    Aborted
    Just enter this command and it'll be fixed, it worked for me :
    export DISPLAY=:0.0

  • @nanaasanteful
    @nanaasanteful 6 месяцев назад

    My students have been trying on a number of videos to use a custom model and it seems there's an error with the tflite generated from colab. "RuntimeError: Input tensor has type kTfLiteFloat32: it requires specifying NormalizationOpt ions metadata to preprocess input images." is there a specific version of tflite to generate or what could it be?

  • @giriraghavendran3472
    @giriraghavendran3472 3 месяца назад

    Sir, will it work for bookworm version?

  • @GoWithAndy-cp8tz
    @GoWithAndy-cp8tz 5 месяцев назад

    Meaning Raspberry Pi as first release = Rpi 1? Cheers!

  • @revolution322
    @revolution322 11 месяцев назад +1

    Thank you for the tutorial! Does anyone faced error "No module named cv2 "?

    • @hanikurdi98
      @hanikurdi98 11 месяцев назад +1

      me to

    • @LazyTech825
      @LazyTech825  11 месяцев назад

      Do you get that when installing, or when running the code?

    • @hanikurdi98
      @hanikurdi98 11 месяцев назад +1

      @@LazyTech825 when i running the code i already installed the opencv and tensorflow

    • @revolution322
      @revolution322 10 месяцев назад

      When running the code using the TF virtual environment. If I run a normal OpenCV python code my libraries are ok. Thx!
      @@LazyTech825

    • @s.rmishra7176
      @s.rmishra7176 10 месяцев назад

      running the code
      @@LazyTech825

  • @asdads-q1q
    @asdads-q1q 11 месяцев назад

    "RuntimeError: Unable to open file at tree.tflite" ("tree.tflite" is my own custom model") Can you help me?

  • @nikitagromov9717
    @nikitagromov9717 10 месяцев назад

    Sorry, but which RPi do you use? Is this a Raspberry Pi 4 ?

  • @mohamaddabdoub9527
    @mohamaddabdoub9527 Год назад

    Hi, Could you please do a face recognition tutorial that can detect general faces not just like mine? Thank you very much

  • @yoshithaab7290
    @yoshithaab7290 10 месяцев назад

    Is 'camera'/'legacy camera' option available under 'interfaces' tab, in raspberry pi 4b+, because our camera is working fine, but we are not able to see that option in 'interfaces' tab, could you please help!

    • @ManojReddy-xv1sy
      @ManojReddy-xv1sy 10 месяцев назад

      I am also having same problem have you completed . If completed please help

    • @yoshithaab7290
      @yoshithaab7290 10 месяцев назад

      @@ManojReddy-xv1sy I'm still facing the same issue

    • @aymeneboucha6057
      @aymeneboucha6057 9 месяцев назад +2

      you don't need it in the latest version, the camera is activated by default, there is no need to go activate it from interfaces.

    • @yoshithaab7290
      @yoshithaab7290 9 месяцев назад

      @@aymeneboucha6057 But, for some projects like object detection, they say we'll have go to the interfaces tab, select that specific port related to pi camera and proceed with other steps...so how to do the same in raspberry pi 4 b, as it doesn't have that option...could you please help!

    • @aymeneboucha6057
      @aymeneboucha6057 9 месяцев назад +1

      @yoshithaab7290 yes the camera is enabled by default, if you want the option of legacy camera you need to switch to the bullseye OS ( 32 bits legacy ), and by the way apparently OpenCV is not compatible with the new OS only with 32 bits legacy

  • @benjaminplaczek4763
    @benjaminplaczek4763 Год назад

    Wake up babe new Lazy Tech video dropped

  • @vasylcf
    @vasylcf Год назад

    It was interesting, thanks

  • @shayanajmal4752
    @shayanajmal4752 10 месяцев назад

    Hi there, I have a quick question. I followed everything step by step and it worked really well until the last step. I get the following error when I run the file:
    INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
    [ WARN:0] global /tmp/pip-req-build-hwenbn4e/opencv/modules/videoio/src/cap_v4l.cpp (1001) tryIoctl VIDEOIO(V4L2:/dev/video0): select() timeout.
    ERROR: Unable to read from webcam. Please verify your webcam settings.
    I am not sure how to fix this, I am using a raspberrypi4 4gb with the deebian bookworm OS. I downgraded my python version in the examples directory as well to 3.7.3 to match your video.
    Any help would be greatly appreciated!

  • @arbelcasquejo2336
    @arbelcasquejo2336 Год назад

    Hi, will this work on python version 3.11?

    • @LazyTech825
      @LazyTech825  Год назад

      I don’t see anything about python 3.11 specifically on the website for tflite, but you can try it!

  • @michalekczer
    @michalekczer Год назад

    Which version of RPi OS do you have? Buster 32 or 64 bit?

    • @LazyTech825
      @LazyTech825  Год назад

      Raspbian 64 bit

    • @kurtvdpoel
      @kurtvdpoel 11 месяцев назад

      @@LazyTech825 Do you mean Bullseye? Could you link to the image you used?

  • @Cyonko
    @Cyonko 11 месяцев назад

    @lazyTech Hi thank you very much, pls help I have raspberry pi camera 3. I install everything, but how I can use my camera, thank you.

    • @maysalsayed2343
      @maysalsayed2343 7 месяцев назад

      did you solve it? can you please tell me how😊

  • @GoyavoCity
    @GoyavoCity Год назад

    Cool stuff

  • @k.pradeepkumar968
    @k.pradeepkumar968 9 месяцев назад

    Awesome tutorial ,wonderful explanation.....
    i am using the raspberry pi 1.3 camera (5MP) instead of the usb web camera and getting the following error any one please help me to resolve the issue ,
    python3 detect.py --model efficientdet_lite0.tflite
    INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
    ERROR: Unable to read from webcam. Please verify your webcam settings.

    • @maysalsayed2343
      @maysalsayed2343 7 месяцев назад

      did you solve it? can you please tell me how😊

  • @sejongjeon4143
    @sejongjeon4143 Год назад

    Hi, i finally input that code
    python3 detect.py --model efficientdet_lite0.tflite
    then
    INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
    ERROR: Unable to read from webcam. Please verify your webcam settings.
    i use raspberry pi camera rev 1.2
    do i need to modify the code of detect.py ??

    • @s.rmishra7176
      @s.rmishra7176 10 месяцев назад

      did you get any solutions

    • @s.rmishra7176
      @s.rmishra7176 10 месяцев назад

      got the solution
      it doesnt work for picamera only works for usb webcams

  • @respectvideos1929
    @respectvideos1929 Год назад

    bro how can install tensorflow on my raspberrypi

    • @LazyTech825
      @LazyTech825  Год назад +1

      That’s what this video is about??

  • @Bengemon825
    @Bengemon825 Год назад

    Whoop whoop