Object Identification & Animal Recognition With Raspberry Pi + OpenCV + Python

Поділитися
Вставка
  • Опубліковано 2 лют 2025

КОМЕНТАРІ • 345

  • @Core-Electronics
    @Core-Electronics  4 місяці тому +1

    Hey everyone! We have a new updated version of this guide that uses a more advanced model and runs a bit smoother. You can check it out here: ua-cam.com/video/XKIm_R_rIeQ/v-deo.html
    Please note that we are keeping this old guide up for legacy reasons and that it requires the older Buster OS (the new one is running on the new Bookworm OS).

  • @mike0rr
    @mike0rr 2 роки тому +36

    This was the fastest, cleanest comprehensive guide I have found on OpenCV for Pi.
    Only thing that would make this better would be an Install script, but even then I think its good for some manual work to be left anyways. Get peoples hands dirty and force them to explore and learn more.
    So cool to have the power of machine learning and Computer Vision in our hands to explore and experiment with. What a time to be alive!

    • @Core-Electronics
      @Core-Electronics  2 роки тому +5

      Very glad you have your system all up and running 🙂 and I absolutely agree. Something about a machine learned system that runs on a palm-sized computer that you have put together yourself really feels like magic ✨✨

  • @stevenhillman6376
    @stevenhillman6376 Рік тому +2

    Excellent. I came to this after seeing the facial recognition video as it would help with a project I have in mind. However, after seeing this and how easy it is to set up and use my project will be more ambitious. Thanks again and keep up the good work.

  • @maxxgraphix
    @maxxgraphix 2 роки тому +10

    To use a USB cam install fswebcam then change cv2.VideoCapture(0) to cv2.VideoCapture(0, cv2.CAP_V4L2) in the script

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

    Amazing, Easy to follow, Comprehensive video for object detection. Gonna use this to turn my RC car into a autonomous vehicle.
    Thanks Tim, Keep up the great work :D

    • @Core-Electronics
      @Core-Electronics  2 роки тому

      Oh man that sounds like an amazing project 😊! Definitely keep me posted on how it goes. The Forum is a great place for a worklog - forum.core-electronics.com.au/

    • @uzairsiyal-b9p
      @uzairsiyal-b9p Рік тому

      brother i too am working on this project can you leave any leads i am sending you an email if you have time please reply

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

    Great video! This worked right away for me in Windows (had to change the file paths only). Very gratifying and fun! And educational! Thanks again! Cheers!

    • @Core-Electronics
      @Core-Electronics  2 місяці тому

      That is fantastic to hear, glad you found it useful!

    • @SivaKumar-AoT
      @SivaKumar-AoT 2 місяці тому

      Hi I have windows and WSL. Can it work in this environment? If yes, what are the changes required ?Or is Ubuntu a must ?

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

    this was exactly the thing i was looking for. i will be buying things from their store as compensation!

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

    Thanks for this. I want to use my pi to do custom recognition of trees from their bark in a portable field unit. I already tried an tensorflow lite and off the shelf database to do common object recognition.
    If I had a small need to recognize say 50 trees, how many labelled images do I need of each tree for the training data?

    • @Core-Electronics
      @Core-Electronics  Рік тому

      Hi Charles, some Australian scientists concluded in a 2020 paper “How many images do I need?” (Saleh Shahinfar, et al) that the minimum number of data points for a class should be in the 150 - 500 range. So if you had 50 species of trees to identify from you'd need roughly between 7,500 - 25,000 images/data points.

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

      @@Core-Electronics thanks so much for this info. I have to get to work! I’m checking out the paper.

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

    This is so cool! Working on making my own desk robot and this is exactly what I was looking for!

    • @Core-Electronics
      @Core-Electronics  2 місяці тому

      We have an even better version of here if you are interested:
      ua-cam.com/video/XKIm_R_rIeQ/v-deo.htmlfeature=shared

  • @soulo6661
    @soulo6661 2 роки тому +5

    Trust me . I just find everything I was looking for about my raspberry pi 🌹

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

    Hi.
    I wanted to ask, do you think the raspberry pi Zero cam could be used as a substitute? I'm currently working on a project that involved Raspberry Pi's and camera's and have done a lot of research on what hardware to acquire, I haven't seen much benefit in using the V2 camera instead of the Zerocam. I actually think the raspberry pi zero cam has better specs for its price when compared to the V2.

    • @Core-Electronics
      @Core-Electronics  2 роки тому +1

      Should work perfectly fine 😊. If the video data is coming into the Raspberry Pi through the ribbon cable I don't think you would even need to change anything in the script.

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

    Hello can it be possible if you can join the animal, object and person or facial recognition at the same time? I'm working that kind of project could you help me sir? Please...

    • @Core-Electronics
      @Core-Electronics  2 роки тому

      Aww what an excellent idea! You will start wanting more powerful hardware very quickly going down this path. Come check out the Oak-D Lite (which is an excellent way to start stacking multiple AI system whilst still using a Raspberry Pi) - ua-cam.com/video/7BkHcJu57Cg/v-deo.html

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

      @@Core-Electronics how about just identifying if it is an animal, things or a person or some kind of moving object and at the same time it will capture a preview picture of it? How can you make this? and also how to create like if the raspberry pi detects a person in can email to you but if it is not a person it will not email you. Hoping you can help me with my research

  • @joelbay1468
    @joelbay1468 10 місяців тому

    You're a life saviour. Thank you so much ❤

  • @0-f3rn
    @0-f3rn 2 місяці тому

    I’m just asking before I start making this can a elegoo esp cam work with this

    • @Core-Electronics
      @Core-Electronics  2 місяці тому

      We have an updated guide over here for object recognition: ua-cam.com/video/XKIm_R_rIeQ/v-deo.html
      And you may have some difficulties with that. As far as I know, you can't simply plug that into the Pi. But if you can find a way to get images or video from it to the Pi, then you can process those. So if you can find a way to do that it may be possible. Unfortunately in our guides we only cover how to process a camera plugged directly into the Pi.

    • @0-f3rn
      @0-f3rn 2 місяці тому

      @ thank you so much

  • @rizkylevy8154
    @rizkylevy8154 Рік тому +2

    I got error
    Traceback (most recent call last):
    File "", line 35
    cv2.putText(img,classNames[classId-1].upper(),(box[0] 10,box[1] 30),
    SyntaxError: invalid syntax
    What mean with this error, i already install cv2

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

    This video helped a lot! 👍

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

    This is amazing ! this is soo very cool! Thank you for introducing me to coco!

  • @biancaa-ramesh
    @biancaa-ramesh Рік тому +2

    And a really big thanks to you for explaining this so well😁😁

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

    hey tim ! i seem to encounter a problem while following your instructions on the make -j $(nproc) it stops every time on the 40% and i re-typed and entered the same line several times but it didnt work is there any solution thanks for answering

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

      Check the description for the article page. Scroll down to the questions section and you'll find the answer

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

    Would this program be able to email somebody about what object is seeing, like instead of turning the servo email somebody?

    • @Core-Electronics
      @Core-Electronics  2 роки тому

      Absolutely! Here is a straight forward code to send an email through a Python Script. If you merge those two lands together you'll be smooth sailing - raspberrypi-guide.github.io/programming/send-email-notifications#:~:text=Sending%20an%20email%20from%20Python,-Okay%20now%20we&text=import%20yagmail%20%23%20start%20a%20connection,(%22Email%20sent!%22)

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

    Lost two nights trying to run it on the latest OS! Use the previous one, it is mentioned in the article.

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

      thank you, I was struggling with this and was utterly confused.

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

    Is it possible to use any USB camera instead of an official pi camera for this project?

    • @Core-Electronics
      @Core-Electronics  2 роки тому +2

      100% any USB webcam can work with this script. You will just need to adjust some code. Likely you will just need to change | cap = cv2.VideoCapture(0) | to | cap = cv2.VideoCapture(1) |. Hope that helps 😊.

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

      @@Core-Electronics thank you! I’ll try this out tomorrow once I am able to and have setup my pi again

    • @David-pp9th
      @David-pp9th Рік тому

      Can I use Bullseye?

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

    hi, i am using raspberry pi 3 model B+ in this project. I uploaded the codes and was successful. But there is a delay of 8-10 seconds and it detects an object many times. You mentioned in the forum that we can reduce the latency by lowering the camera resolution. I can't find where to set this setting, can you help me? (I am using raspberry pi camera module v2 as camera.)

    • @Core-Electronics
      @Core-Electronics  2 роки тому

      Sure mate, lower the values you find in the line here | net.setInputSize(320,320) |. Make sure both numbers are matching. Most AI Vision systems depend on the inputted video data to be square. If you type | net.setInputSize(160,160) | it will yield faster responses.

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

      @@Core-Electronics The image became faster, but object recognition worsened. It draws the boundaries in different parts of the object. Thanks for your reply.

    • @Core-Electronics
      @Core-Electronics  2 роки тому

      I hadn't realised it would do that, without a doubt there is some code lines in there that when adjusted would fix up the boundary boxes.

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

      @@Core-Electronics any update with this issue?

  • @VikPatel01
    @VikPatel01 15 днів тому

    do you have an updated video of this with the rpi5
    , please

    • @Core-Electronics
      @Core-Electronics  14 днів тому +1

      Yes we do! It runs a lot quicker and is easier to set up as well. Also take a look at the written guide linked below as we have some improved ways to increase the FPS that we don't cover in the video:
      ua-cam.com/video/XKIm_R_rIeQ/v-deo.html

    • @VikPatel01
      @VikPatel01 14 днів тому

      @Core-Electronics i ll be watching it right after this comment. I will also add a gpu to make ti more robust to read ai.

  • @王文瑄-k3b
    @王文瑄-k3b Рік тому +2

    Hi Tim, I would like to ask how can I speed up the fps and speed up the recognition rate? Or do I need to use the lite version to speed up the speed?

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

    Hi Great Video! I know this may be unrelated but how about recognition of objects on screen without a camera? Is there any projects you know of that use AI detection to control the cursor of the computer when it detects an object on screen? Cheers

    • @Core-Electronics
      @Core-Electronics  2 роки тому +1

      Cheers mate and excellent ideas. You can definitely feed this system data that has been pre-recorded or streamed in from another location, would require some adjustments to the script. Also in regards to AI detection to control a cursor on a Raspberry Pi come have a look at this video - ua-cam.com/video/hLMfcGKXhPM/v-deo.html

  • @JoseMoreno-hp2le
    @JoseMoreno-hp2le Рік тому +1

    Hi Tim, can the coral accelerator be integrated in this project?

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

    Hi, thank you for the explanation and code. I tried the code with the V3 HD camera, but it didn't work. Additionally, can you tell me how to create an autostart for this design? The 5 ways to autostart don't work ("Output:957): Gtk-WARNING **: 19:31:41.632: cannot open display:"). I'm sending a relay with it to keep the chickens away from the terrace with a water jet. Beautiful design! Greetings, Luc.

    • @Core-Electronics
      @Core-Electronics  Рік тому

      Hey Luc,
      To start you will need to update a new driver for the V3 Camera so it can work with the older 'Buster' Raspberry Pi OS. Check out how to do it here - forum.arducam.com/t/16mp-autofocus-raspbian-buster-no-camera-available/2464 -
      And if you want to autostart your system come check out how here (I would use CronTab) - www.tomshardware.com/how-to/run-script-at-boot-raspberry-pi
      Come pop to our forum if you need any more help 😊 forum.core-electronics.com.au/latest
      Kind regards,
      Tim

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

    I am getting cv2.imshow error while running object-ident.py in pi terminal, I connected pi via ssh. What should I do?

    • @Core-Electronics
      @Core-Electronics  2 роки тому

      Very clever doing it through SSH 😊. It shouldn't be an issue doing it that way so long as you go through all the set up process. If you come write me a message on the core electronics forum under this topic I'll best be able to help you. That way you can sent through screen grabs of your terminal command errors.

  • @gjin2518
    @gjin2518 3 роки тому +1

    Can add voice feedback if object detect?

    • @Core-Electronics
      @Core-Electronics  3 роки тому

      Absolutely! With a speaker attached to the Raspberry Pi you could run some Text to Speech code. That way it can tell you what it is seeing (or have it say whatever you desire when a certain object is spotted).

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

    hi is this usable for pest detection?

    • @Core-Electronics
      @Core-Electronics  2 роки тому

      Ah I see now, depends on the pest. If your interested in large pests like possums, rats, skunks, baboons or the like then this could be useful. Smaller critters like gross bugs likely not. Unless you had some doorway to the outside where you could watch the bugs come in from and you had a camera up really close.

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

    Can we run a 5v buzzer onobject detection for a specific object ?

    • @Core-Electronics
      @Core-Electronics  2 роки тому

      Absolutely, you will just need to add in some extra code to activate that buzzer whenever the desired object is spotted. Very swell idea.

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

      Can you add a guide to make it simpler for me? Would love to see it.

  • @Jianned-arc
    @Jianned-arc Рік тому +1

    Sir! can you use a web cam instead of the original camera of raspberry??

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

    Hii I'm having some problem in my raspberry pi 4 model B while update & upgrade it shows some errors I'm. Going to do object detection on raspberry pi project on my engineering college I have to compete the project before 28 th April so please kindly reply to my comment and pls help me 🙏

    • @Core-Electronics
      @Core-Electronics  2 роки тому

      Heyya mate, if you are running into errors come check the comment section on the full write up as there is a lot of successful troubleshooting to learn from and you can post some screenshots of your errors there. I'll help get your system running proper 😊

  • @nithins9640
    @nithins9640 Рік тому +2

    Hi,
    Can I execute this project with a Raspberry Pi 3 A+ ?

    • @Core-Electronics
      @Core-Electronics  Рік тому

      You definitely can, it will just run a little bit slower.

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

    how much time it will take after make -j $(nproc). Because on my side, after 3 hour my system reboot automatically. Help me out in this situation

    • @Core-Electronics
      @Core-Electronics  2 роки тому

      3 Hours is definitely too long for installation! Come jump into the full written up article. At the bottom is a whole bunch of successful troubleshooting that you utilise.

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

      @@Core-Electronics Thanks for Reply. I did that successfully. Thanks for your help.
      One more thing, I want to connect multiple camera with Raspberry pi via GPIO. Is it possible? Can you help me in that?

  • @xyliusdominicibayan6215
    @xyliusdominicibayan6215 3 роки тому +1

    Hey great video, May I know where to tinker if i will be using esp32 camera to stream the video? Thank you in advance!

    • @Core-Electronics
      @Core-Electronics  3 роки тому

      Hey mate cheers 🙂 the line to alter in code is | cap = cv2.VideoCapture(0) | changing that 0 to another index number that will represent your esp32 camera stream. Come make a forum post if you need any extra hand.

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

      @@Core-Electronics Hi would like to some extra hands on this one. How can I implement esp32 cam as my video stream for real time object detection using the code. Thankss!

    • @Core-Electronics
      @Core-Electronics  2 роки тому

      Definitely a great question for our Core Electronics Forum 😊

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

    Hi I visited again the link where's the zip file need to download, but the zip file is missing.

    • @Core-Electronics
      @Core-Electronics  2 роки тому

      Hey buddy, we have just migrated to a New Updated Website and just ironing out the niggly, teething issues. Scripts will be available very soon.

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

      @@Core-Electronics Hi, Can you please share the link for code

    • @Core-Electronics
      @Core-Electronics  2 роки тому

      We are back in action, Code should be available at the bottom of article or in the comment section. If you can't see it pop me a reply and we'll figure out whats happening.

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

      @@Core-Electronics Thank you so much sir

    • @Core-Electronics
      @Core-Electronics  2 роки тому

      Heyya buddy,
      I haven't done a video on creating custom/adding to a dataset but it is definitely something I want to pursue. I'd do it using Edge Impulse - www.edgeimpulse.com/. This is free software for a maker and will let you customise an already built Machine Learned system (like the Coco library used in this guide) and then embed that into a micro-processor. You can add new objects and adjust weightings to them.
      Hope that helps 🙂

  • @yukiyavalentine5867
    @yukiyavalentine5867 4 місяці тому

    thank you, great preview on how to get started !

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

    Great video! Can you run this portable on a battery not connected to the internet?

    • @Core-Electronics
      @Core-Electronics  2 роки тому

      All the processing is done on the edge, thus you only need the hardware (no calculations happen over Wifi or via the Cloud). So if you had a big enough battery you could definitely run this system via a battery without Internet 😊.

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

      Thanks for the quick reply!

  • @sku1196
    @sku1196 3 роки тому +3

    Hey tim! I successfully have managed to run this project in about an hour. I didn't compile opencv from source though. I installed it through pip but still got it working and its running pretty smooth. Hope you could change the opencv compiling part as it takes tooo long (took me 3 days and was still unsuccessful)and is unnecessary. Thank you
    I have used the raspberry 3b+
    If you use raspberry pi 4, it could be much faster and smoother

    • @Core-Electronics
      @Core-Electronics  3 роки тому +1

      If you can provide some more information I'd happily update the guides 😊 (Perhaps jump onto our core electronics forum and do a quick write up on your process)

  • @Maxim-Clutch-papi
    @Maxim-Clutch-papi Рік тому

    Hello I am trying to create a design that will recognize different trash types. Does this image recognition able to perceive things like cardboard, paper, tissue, or silver foil as such? like trash items?

    • @Core-Electronics
      @Core-Electronics  Рік тому

      Hey Max, Im currently working on a very similar project. My workshop can get a bit messy so I am setting it up to scream at me when it gets untidy. I will report back to you how it goes, or if you've had some luck I'd be more than interested.
      Cheers!

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

    Hi this was a really great project and helped me a lot but can you help in how can we change the size of the box made around our object?

    • @Core-Electronics
      @Core-Electronics  2 роки тому

      Size of the boxes tend to be based on the size of the detected object. But the Colour and Width of box can definitely be altered. Inside the code look for the section | if (draw): |
      Then below that the line | cv2.rectangle(img,box,color=(0,255,0),thickness=2) |
      By altering the (0,255,0) numbers you can change the colour of the box. By changing the thickness number you can have very thin lines or very bold lines. Font and other aesthetic changes can be done in the following lines.

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

      @@Core-Electronics Thank you very much

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

    Will I be able to add an entire category to the list of objects to be displayed in real-time? So instead of saying ['horse'], could I possibly mention a broader category of ['animal'] in the objects parameter? If not, please do let me know the correct way to approach this.

    • @Core-Electronics
      @Core-Electronics  2 роки тому +1

      The fastest way would be to just add a long list like ['horse', 'dog', 'elephant'] etc. If you check the full-write up I do something very similar there.

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

    great video! good for beginner.
    I want to get the name of the objects into a string and print it when object detected.
    Can you give me any tips or help to me? Thank you so much.

    • @Core-Electronics
      @Core-Electronics  2 роки тому

      Cheers mate! In the main script underneath the line | result, objectInfo = getObjects(img,0.45,0.2) | is another line stating | #print(objectInfo) |. If you delete that | # | then save and run it again you will be printing the name of the identified object to the shell script.
      Hope that helps 😊

  • @beyond_desi7719
    @beyond_desi7719 8 місяців тому

    Hi core electronics, I am looking for a lens for my Raspberry Pi HQ camera module... I want good quality image and a closer view for defect detection for my FFF 3D printed parts...can you suggest some lenses. Thanks

    • @Core-Electronics
      @Core-Electronics  8 місяців тому

      There is a microscope lens that might be suitable for looking at 3D print defects. Give that a look. core-electronics.com.au/microscope-lens-for-the-raspberry-pi-high-quality-camera-0-12-1-8x.html

  • @skkrttheturtle8538
    @skkrttheturtle8538 8 місяців тому

    What model is the COCO dataset trained on? I tried a custom one trained on TFlow Lite and it wouldn't work.

    • @Core-Electronics
      @Core-Electronics  8 місяців тому

      COCO was trained off 325k images of just day to day environments and objects. They have the research paper here if you are interested! arxiv.org/abs/1405.0312
      (loading the PDF may take a little while)

  • @marnierogers3931
    @marnierogers3931 3 роки тому +3

    Hey this is great, thanks for putting this together. Really easy to follow along as a beginner. Is there a tutorial that builds on this and allows you to connect a speaker to the raspi so that whenever a specific object is detected, it makes a specific noise? Would love to see it!

    • @Core-Electronics
      @Core-Electronics  3 роки тому +2

      Such a good idea. Yet to find a project talk about it directly, but where I added the extra code in for the Servo control if you instead replace that with code to set up a speaker and activate it, you would be off to the races.
      Here is a related guide on speakers - core-electronics.com.au/tutorials/how-to-use-speakers-and-amplifiers-with-your-project.html

    • @marnierogers3931
      @marnierogers3931 3 роки тому +1

      @@Core-Electronics Supertar, thanks!

  • @stefanosbek
    @stefanosbek 3 роки тому +1

    Thanks for sharing, this is really good and easy to follow

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

    Can I connect the detected images to Google lens url ..could you please help me with the code

    • @Core-Electronics
      @Core-Electronics  2 роки тому

      Im sure you can. Come pop us a forum post here and we'll get the best people to help you - forum.core-electronics.com.au/

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

    Nicely explain. Please do I apply this on new dataset different from this?

    • @Core-Electronics
      @Core-Electronics  2 роки тому

      It will require some dedicated effort but you can customise this object detection dataset using edge impulse. www.edgeimpulse.com/
      That way you can add whatever object or creature you'd like 😊 I hope I understood correctly.

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

      How do you transfer a data set to the pi do you store it in a file or does it need adding to the code.

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

    code zip file is not available at the bottom of your article posted.Will you please upload it?

    • @Core-Electronics
      @Core-Electronics  2 роки тому

      Code should be available at the bottom of article or in the comment section. If you can't see it pop me a reply and we'll figure out whats happening.

  • @alycebittar5575
    @alycebittar5575 3 роки тому +1

    Hi, currently completing the installation code for The Long Way to Set Up OpenCV and Facial Recognition
    And I am receiving the following error:
    "CMake error The current CMakeCache.txt directory /home/pi/opencv/CMakeCache.txt is different than the directory /home/pi/opencv/build where CMakecche.txt was created. This may result in binaries being created in the wrong place. If you are not sure, reedit the CMakeCache.
    How should I complete this step, and get CMake to properly install on my Raspberry pi?

    • @Core-Electronics
      @Core-Electronics  3 роки тому

      Heyya buddy, if your able to continue the installation then do so. Otherwise type and enter the line | sudo rm /home/pi/opencv/CMakeCache.txt | and then retype the line you got stuck on.
      I am sure I can make this whole installation process much easier, will spend some of today figuring it out - will link here if I get it working.

    • @alycebittar5575
      @alycebittar5575 3 роки тому +1

      @@Core-ElectronicsWe were able to get all of the CMD lines to run, but are now dealing with a new issue. When running the object-ident.py file in Thonny it is producing the following error:
      %Run object-ident.py
      Traceback (most recent call last):
      File "/home/pi/Desktop/Object_Detection_Files/object-ident.py", line 1, in
      import cv2
      ModuleNotFoundError: No module named 'cv2'
      We think it is because our RPI is running version 2.7.16 and are troubleshooting do you have any tips on how to solve this?

    • @Core-Electronics
      @Core-Electronics  3 роки тому

      I feel like it should be working at this point if you went through all the commands. Just as a quick double check did you do the last two terminal commands after the | make -j $(nproc) |? This will give the system its much-needed restart.
      sudo make install && sudo ldconfig
      sudo reboot
      (Also working right now on that better method, fingers crossed I can make the whole process easier and faster + jump onto the article page to see other troubleshooting solutions at the bottom of the page)

    • @alycebittar5575
      @alycebittar5575 3 роки тому +1

      @@Core-Electronics I turned on my RPI and tried typing those commands into the terminal.
      New Error: "make: ''' No rule to make target "install". Stop."
      I also tried re-entering the "make -j $(nproc)" line which produced this error: "make: ''' No targets specified and no makefile found. Stop."
      Should I retry from the start? I can reformat the card and try again if necessary.
      I appreciate your help!

    • @Core-Electronics
      @Core-Electronics  3 роки тому

      Sorry for leaving you stranded. I believe this all comes down to the new Raspberry Pi OS update 'Bullseye' which has removed support for the old Camera system. The team at Open-CV will eventually iron out these compatibility issues, I'm sure they're working frantically.
      If you flash and utilise the old ' Buster' OS you will be up and running with this Facial Recognition system. Official Link to this OS here - downloads.raspberrypi.org/raspios_armhf/images/raspios_armhf-2021-05-28/

  • @Desenrad
    @Desenrad 4 місяці тому

    How can I add a more detections objects like a light bulb on a wall that turns a curtain color? And can I add code to play a sound on a speaker when detection happens?

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

    I am currently trying to follow this on a pi 4b with Bullseye. I am really struggling to get the files to download and build properly, any tips?

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

      Check the article G you'll see it in the description

  • @xyliusdominicibayan6215
    @xyliusdominicibayan6215 3 роки тому +1

    Hi, How can I run the object detection even without connection to laptop or manually running the code.

    • @Core-Electronics
      @Core-Electronics  3 роки тому

      You got heaps of different options. For example, you could run the script automatically every time the Raspberry Pi boots (using Cron Jobs, check here for a guide - ua-cam.com/video/rErAOjACT6w/v-deo.html) or you could run the code remotely using your phone (check here - core-electronics.com.au/tutorials/raspcontrol-raspberry-pi.html)

  • @abdulrhamanalkinani1955
    @abdulrhamanalkinani1955 3 роки тому +1

    can Camera understand where is the object, and tell the raspberry there is cup on the left side or right?

    • @Core-Electronics
      @Core-Electronics  3 роки тому

      It absolutely can. Just requires a little bit of coding 😊

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

    Ty for a great video
    Where could i found library for specific stuff i need?
    I am looking for Cans, Bottles, glass bottles etc

    • @kos309
      @kos309 11 місяців тому

      Hello, did you ever find a library of the things you needed? I also need a library for specific items and was wondering if you found a good resource.

    • @zivanaf
      @zivanaf 11 місяців тому

      i did not
      made myself a model by training it using Roboflow
      @@kos309

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

    can I use external USB camera on the place of Raspberry pi camera.

    • @Core-Electronics
      @Core-Electronics  2 роки тому +1

      100% any USB webcam can work with this script. You will just need to adjust some code. Likely you will just need to change | cap = cv2.VideoCapture(0) | to | cap = cv2.VideoCapture(1) |. Hope that helps 😊.

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

      @@Core-Electronics thank you so soomuch sir for responding to my doubts.

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

    Hey tim! Here's a question, Is the model trained by your coco generated by the yolo algorithm? This is related to the writing of my graduation thesis. I will be more grateful if you can provide more suggestions.

    • @Core-Electronics
      @Core-Electronics  2 роки тому

      Sorry for getting to this so late. A lot can be learned here - cocodataset.org/ . Also there are a ton of research papers as people are unraveling this technology that are worth exploring (or adding to the bottom of a graduation thesis). Good luck mate!

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

      @@Core-Electronics thanks so much!I believe that with your help I can get a high score.best wish!

  • @Jianned-arc
    @Jianned-arc Рік тому

    oop last question sirs, can you use any type of type c and power supply cable for raspberry??

    • @Core-Electronics
      @Core-Electronics  Рік тому

      You may be able to run a Pi with other power supplies but it's recommended to use the official Raspberry Pi Power Supply. They actually provide 5.1V to prevent issues from voltage drop that you might run into with a generic power supply.

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

    Great video, I just came up with an idea for a project using this. I have no experience with Pi's but basically it would be using a camera to detect a squirrel on a bird feeder and then playing some loud noise through a speaker. Would this be a difficult thing to do?

    • @Core-Electronics
      @Core-Electronics  3 роки тому

      Sounds like an absolutely excellent idea that could definitely be implemented using this kind of Object Detection. We just had a new project posted on our website worth checking out all about using a Raspberry Pi to track Kangaroos and when it does it sends photos of them to a website server - core-electronics.com.au/projects/rooberry-pi

  • @DanielRisbjerg
    @DanielRisbjerg 3 роки тому +1

    Hey Core Electronics! Can I make it detect pistols only?

    • @Core-Electronics
      @Core-Electronics  3 роки тому +1

      Give Edge Impulse a look at. This library doesn't have that as an object but you can use Edge Impulse to train/modify the standard COCO library to include new objects and things.

  • @lumostoyourday1976
    @lumostoyourday1976 Місяць тому

    How do I make sure I'm using the Buster OS and not a newer OS?

  • @mattclagett778
    @mattclagett778 11 місяців тому +1

    Can I use a normal usb camera with this?

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

    You're the most closet project of my idea in fact it's practically that.
    But I would like to run it 7/24 during a 10 day period ( my holiday)
    I would like it press a button 10 minutes after each time it identify a cat (mine) and nothing else :
    Here is a cat :
    wait 10 minute
    press the smart button ( I looking for a way to flush the toilet each time after my cats have done their needs )
    is this possible/faisable with this?

    • @Core-Electronics
      @Core-Electronics  2 роки тому

      Definitely possible and an excellent project to eliminate a chore 😊 or make for an even more in-dependent kitty. The Coco Library used in this guide has | Cat | as one of the animals it can identify. And Raspberry Pi's are excellent at running 24/7. So I reckon your in for a project winner.
      If you follow through the Full Write up you'll be able to have a system that can Identify Cats (and only cats). That the hard bit done. Solenoids are a way to trigger the button, check this guide for the process on getting one to run with Raspberry Pi - core-electronics.com.au/guides/solenoid-control-with-raspberry-pi-relay/

  • @cmodyssey
    @cmodyssey 7 місяців тому

    Would this work to detect pigeons out of the box or would it need training?

    • @Core-Electronics
      @Core-Electronics  6 місяців тому

      I believe the model we used for this tutorial is capable of identifying birds, I'm unsure if this it is trained specifically to differentiate between pigeons and other birds though. A custom CV model better suited to bird identification would be more reliable.

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

    cool, but what would it take to make this work with 60 fps (doing the image recognition in every frame and not lagging behind when things move fast)

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

    Will this work on an Orange Pi5? Raspberry Pi's are out of stock everywhere except from scalpers charging five times normal.

    • @Core-Electronics
      @Core-Electronics  2 роки тому

      I'm not sure honestly mate, if you can get it to run 'Buster' Raspberry Pi OS then I'll give it a solid positive maybe.

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

    hi, this tutorial helped a lot for my project. i successfully set up and run the codes on raspberry 4 model b terminal, i just couldn't figure out how can i see the video output while the code is running on the terminal (not on geany or thonny). maybe u could help me out :>>

    • @Core-Electronics
      @Core-Electronics  2 роки тому +1

      Not quite sure why it wouldn't do that for you when you run the script in the terminal. Come write up a post here at our forum and post some pictures of the situation - forum.core-electronics.com.au/. Reference in the post me and I'll best be able to help 😊

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

    great video, big help for my thesis. it can be used also to the pest?

    • @Core-Electronics
      @Core-Electronics  2 роки тому

      Glad to be of help 🙂 not quite sure what you mean though.

  • @SKWDiesel1
    @SKWDiesel1 6 місяців тому

    I have the perfect application for this but the objects I need to identify are very similar and incredibly difficult for experienced humans to see accurately. Would this just mean supplying more training data to the system?

  • @whocares08.
    @whocares08. Рік тому +1

    How can connect the pieces with the Raspberry pi ?

    • @Core-Electronics
      @Core-Electronics  Рік тому

      Check the build section of the video, If you want a guide doing that check here - core-electronics.com.au/guides/dual-monitors-raspberry-pi-4/

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

    Hey man great video. Any chance you can cover how to use this same concept to detect anomalies instead? Rather than looking for specific objects expected to be there in the camera, the program learns the objects expected to be there and detects when an unusual object is found. Thanks.

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

    Weird question, how did you manage to record the Raspberry Pi screen so smoothly. I am a fellow content creator not as big as you haha and I don't know any good Raspian software that does this

    • @Core-Electronics
      @Core-Electronics  Рік тому +2

      Well spotted, there's no decent way to screen record a Pi internally without a terrible framerate. We run our Raspberry Pi through an Elgato capture card, just like you would capture gameplay footage from a console.

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

      Good to know, will be buying one today. Thanks@@Core-Electronics

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

    Hello how can I edit the code because it seems my camera is delayed when I move it

    • @Core-Electronics
      @Core-Electronics  2 роки тому

      Now quite sure what you mean champ, come write up a forum post here as well best be able to help you there - forum.core-electronics.com.au/

  • @jolly9833
    @jolly9833 11 місяців тому

    Hello, tried this on my raspberry pi 3b+. Im using camera module v2. I can't see the camwra in the raspberry pi configuration. Any ideas how to fix it? Or i can use a webcam as alternative? Pls i need your reply

    • @fabian2973
      @fabian2973 10 місяців тому

      You have the right OS? Buster?

    • @wearetheash6214
      @wearetheash6214 8 місяців тому

      @@fabian2973 no raspberry pi rasbian os64full

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

    Can this be performed on a Raspberry Pi 3B+?

    • @Core-Electronics
      @Core-Electronics  2 роки тому

      Yes but there will be a slight delay in the video feed.

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

    Is the OpenCV for RPI can be use to RPI 4 with 2gb RAM?

    • @Core-Electronics
      @Core-Electronics  2 роки тому

      Absolutely sorted mate, If your using a Raspberry Pi 4 then you'll be good to go 😊

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

    I have a imx219 apparently it will not work with opencv. Is there a way to use gstreamer to make it work in open cv?

  • @dominicroman5038
    @dominicroman5038 9 місяців тому

    Excuse me, i need help please, tiny yolo is better to raspberry pi or normal yolo can be used?

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

    Can't find location for codes and Trained Coco Library. Please help.

    • @Core-Electronics
      @Core-Electronics  2 роки тому +1

      It'll all be back to normal soon. Until then hit up this comment post by Liam for the code - forum.core-electronics.com.au/t/object-and-animal-recognition-with-raspberry-pi-and-opencv/11211/90

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

      @@Core-Electronics Thank you.🥰❤️

  • @Dhanu-bc8pn
    @Dhanu-bc8pn Рік тому

    instead of raspberry pi 4 can we use a raspberry pi zero 2w if the speed doesn't matter to me?

  • @niseem4462
    @niseem4462 3 роки тому

    Great video! I’m wondering if instead of the green rectangle with the name of the object, I can get the names of the objects into a string so I can print. I am trying to use a Text To Speech software so that whatever the object’s name, it is said out loud. Do you have any tips, help, or advice to give me?

    • @Core-Electronics
      @Core-Electronics  3 роки тому

      Definitely something you can do! Theres a lot of great text to speech packages that will work with Raspberry Pi, Pico TTS is a great example of one. With a little bit code adjustment you'll be off to the races.
      Come make a forum post (link in description) on your idea and then we can give you a much better hand than I can here 😊

    • @adios04
      @adios04 3 роки тому

      @Niseem Bhattacharya Did you figure out how to do that? I need help with it.

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

    Hello
    I'm verry happy to see this tuto
    Thank for help
    Is it possible to detect drugs or pills ?

    • @Core-Electronics
      @Core-Electronics  2 роки тому

      For sure but you will need to create a custom Machine Learnt Edge system. Come check out Edge Impulse, personally I think they are the best in the game for this kind of stuff (and totally free for a maker) - www.edgeimpulse.com/

  • @olafmarzocchi6194
    @olafmarzocchi6194 6 місяців тому

    This is a cool, clear, straightforward video. Well done.
    Question: does selecting specific objects make the identification faster? for example I only want birds, cats, people to reduce load. Would it work?

    • @Core-Electronics
      @Core-Electronics  6 місяців тому

      Thats a really great question that I am not 100% sure on. My first guess is that you might see a bit of improvement, but I don't think it would be incredibly significant. If you do some of these tests, let us know we are very curious as well!

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

    Thank you very much for your work!

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

    Hi is there a way that then creates a log with all recognized animals/humans so data can be consumed ?

  • @skkrttheturtle8538
    @skkrttheturtle8538 11 місяців тому

    Can you do this with your own dataset and if so how? Need it for a school project. Thank you to whoever answers.

    • @arafatsiam4060
      @arafatsiam4060 10 місяців тому

      Yes you can but you have to train your dataset. Watch some other tutorials on how to train dataset.

    • @skkrttheturtle8538
      @skkrttheturtle8538 9 місяців тому

      @@arafatsiam4060 Will a dataset made from TensorFlow lite work? Or is there a different one compatible with the program?

  • @p.b.9515
    @p.b.9515 Рік тому +1

    Just perfect, thanks a lot man!

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

    How can I count the detected object number?

    • @Core-Electronics
      @Core-Electronics  2 роки тому +1

      Hey mate, there is a number of different approaches you can take. Come check these out for ideas - github.com/vineeth2628/Object-counting-using-tensorflow-on-raspberry-pi, ua-cam.com/video/3jTteM3dYkQ/v-deo.html, ua-cam.com/video/A29IqeahI84/v-deo.html.

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

      @@Core-Electronics Thank you so much🥰. I'll try it.

  • @michaeltaylor-r2y
    @michaeltaylor-r2y Рік тому

    do you have any guides for using an ultra low light camera module such as Arducam B0333 camera module (Sony Starvis IMX462 sensor)

  • @justinvarghese2010
    @justinvarghese2010 5 місяців тому

    Hi is there any option to tracking the QR code with pan and tilt module?

  • @Alex2Hsrw
    @Alex2Hsrw 6 місяців тому

    Great video !!

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

    can this be possible with raspberry 3?

    • @Core-Electronics
      @Core-Electronics  2 роки тому +1

      Yes it will just run a little slower. Machine learnt scripts like this are very Computationally demanding, I recommend using a Raspberry Pi 4 Model B.

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

    thank youu veryy muchh🙇

  • @FlyWithSergio
    @FlyWithSergio 6 місяців тому +1

    Thank you VERY much!

  • @mark-il8oo
    @mark-il8oo Рік тому +2

    Your website, products and educational resources are amazing. I was wondering if you had any advice as to how to further train the machine to identify less common objects? I was hoping to use it for a drone video feed and train it to identify people, for basic search and rescue functions. I am a volunteer in my local community, hence my specific question :-)

  • @nacholibre1465
    @nacholibre1465 5 місяців тому

    can you create a new dataset annotations for a new object and use it with this coco model? Example, I want to detect a soccer ball. Can I just create annotations with something like datatorch and use those annotations in conjunction with the provided model and weights?

  • @ashanperera5169
    @ashanperera5169 10 місяців тому

    Thank you man! This was really helpful.