Face following camera with OpenMV Cam H7 plus and arduino | Easy face tracking

Sdílet
Vložit
  • čas přidán 20. 08. 2024
  • | Code available below |
    Making a face following camera using a OpenMV Cam board *, pan-tilt servo camera mount and an arduino mega. Based on machine vision algorithms, the OpenMV board detects the face and communicates the position to the arduino. The arduino drives the servos of the camera mount to follow the face. These type of boards make Artificial Intelligence (AI) and Machine Vision (MV) more accessible for the DIY enthusiasts.
    Questions and comments are always welcome. Don't forget to subscribe!
    * I'm not affiliated or sponsored by OpenMV. This video is purely out of personal interest and sharing it to the world of DIY and makers.
    Like it? Consider a donation to support me to make more videos like this : paypal.me/glevotec
    Arduino code : justpaste.it/2...
    OpenMV code : justpaste.it/6...

Komentáře • 49

  • @MrGuiDamasceno
    @MrGuiDamasceno Před 3 lety

    using this code to recognize the product would be incredible, a hug from Brazil.

  • @martinhensbergen9594
    @martinhensbergen9594 Před rokem

    Oh nice! I am just getting started in this whole robotic scene... I think I will order an OpenMV camera right now :-D

  • @dannylumcreative
    @dannylumcreative Před 2 lety +1

    this project is so cool! I am working on a robot that can see humans and chase them. Could you let me know how you wired the Open MV cam to the arduino? I know you mentioned I2c so do you just connect SDA and SCL? Thank you in advance!

    • @GlevoTec
      @GlevoTec  Před 2 lety

      Yes, just simply connect the I2C and you're good to go!

  • @lfmtube
    @lfmtube Před 3 lety

    I saw your video with great interest. Very useful to give me an idea for a project. Thanks! New subscriber.

    • @GlevoTec
      @GlevoTec  Před 3 lety

      Thanks for your comment and for subscribing! Good luck with the project

  • @divingcrow
    @divingcrow Před rokem

    Amazing video can we get a diagram for what pins you used on the arduino and open mv hr 2?

  • @veejayplandano18
    @veejayplandano18 Před rokem

    It great video it gets my attention, thank you for this kind of information. May i ask do you have a code thermal tacking/hotspot detection code with servo motor and arduino using flirlepton 2.5?

  • @Jonnymiller1977
    @Jonnymiller1977 Před 3 lety

    Awesome work, I think this is what ive been looking for, for a project im working on. Am i right in assuming the processing is all done on the OpenMV board? Once the code has been uploaded, does it need to be connected to a computer to work?

    • @GlevoTec
      @GlevoTec  Před 3 lety +1

      Yes, all the code runs on the OpenMV. The Arduino only handles the servo-commands. So it can run stand-alone without being connected to a computer indeed. That's one of the reasons why I went with this, cause it can run independent.

    • @Jonnymiller1977
      @Jonnymiller1977 Před 3 lety

      @@GlevoTec Awesome, thanks for getting back to me so quickly, Ive just ordered myself one

    • @GlevoTec
      @GlevoTec  Před 3 lety +1

      @@Jonnymiller1977 Good luck with the project!

  • @sanjaypathak447
    @sanjaypathak447 Před 3 lety +1

    Very good
    Can we use as a smoke , heat and flame detector?

    • @GlevoTec
      @GlevoTec  Před 3 lety +1

      There is actually an IR camera available to fit on this openMV borard. The camera is changeable. With that you should be able to detect heat sources, yes

    • @sanjaypathak447
      @sanjaypathak447 Před 3 lety

      @@GlevoTec Thanks let me try

  • @user-wz8mk6dv8x
    @user-wz8mk6dv8x Před rokem

    Where can I find out more about this device?

  • @BlueSkyEBR
    @BlueSkyEBR Před 3 lety

    Hello, good morning, I saw your project and I really liked it. I'm from Brazil and here is a big technology fair that I participate in and next time I have a project that a camera will have to follow as well as your project, so I wanted to know if you can show me cable connections because I couldn't find it, thanks in advance and I hope you can answer I know there are few more wires to burn a board like this here in Brazil calling wrong is very expensive if you know what I mean thanks

    • @GlevoTec
      @GlevoTec  Před 3 lety +1

      The connections can be found on the datasheet of the board. It uses serial communication, as can be seen in the code. If you're participating in the contest, I assume you have some experience in this field, so it shouldn't be a problem

  • @circletofu_8597
    @circletofu_8597 Před 2 lety

    great video, thank you for making this. May I ask the maximum range of openMV cam can detect object? Im currently working on object tracking that can detect object up to 3 meters

    • @GlevoTec
      @GlevoTec  Před 2 lety

      Thank you. Depends a lot on light. The face detection algorithm works on finding contrast in the face. So the better the lighting, the better and further it will work. I think 3m should be well doable

  • @minjaii6178
    @minjaii6178 Před 3 lety

    I want to use the color of the mask and the color of the mask that came out of the uvrite and I want to binary it into black and white. I'd like to know the area of the Arduino mask and the area of the color that came out of the uvrite, is it possible? I use Arduino Mega and openmv h7 plus. Can you help me?

  • @daBAAAAM
    @daBAAAAM Před 2 lety

    Do you think it's possible to plug the OpenMV onto an GoPiGo Robot with a Raspberry Pi 3B+ and detect Lanes etc.?

  • @yvesschaller989
    @yvesschaller989 Před 2 lety

    Bonjour,
    je vous félicite pour votre présentation de la video et pour votre code.
    super article.
    je débute avec open mv, pouriez vous svp me donner le plan de cablage entre la camera et l'arduino.
    Merci pour tout votre travail

    • @GlevoTec
      @GlevoTec  Před 2 lety

      Thanks. The circuit connections is really simple. Just connect the SDA and SCL pins from OpenMV to Arduino SDA and SCL. And 5V + GND.

    • @yvesschaller989
      @yvesschaller989 Před 2 lety

      Merci pour votre répnse , je vais faire l'essai à la réception de la camera.
      Je vous ferai part du résultat.@@GlevoTec

  • @msm88now
    @msm88now Před 3 lety

    nice vid. is it possible to connect this camera or any AI camera you might aware of to a video transmitter? in other words, does it output video? so it can be connected to a mobile phone or a video receiver. thanx

    • @GlevoTec
      @GlevoTec  Před 3 lety

      Thanks. Yes, in fact you can get the video from the camera. It can even record on an SD card. It has an SD-slot on the board. You can find more information on their website. There are plenty of possibilities with this board. I only explored the face tracking for now

  • @jean-claudewallard9309

    I suppose this is feasable with an ESP32-cam and a Raspberry Pi also.
    I already have these devices and I am looking for a way to produce this kind of movements.

    • @GlevoTec
      @GlevoTec  Před 3 lety +2

      The board provides a lot of ways to communicate to other devices indeed. Should be possible

    • @jean-claudewallard9309
      @jean-claudewallard9309 Před 3 lety +1

      @@GlevoTec Thanks for your reply. Meanwhile I've found my way just with an ESP32-cam.

  • @sulesmith897
    @sulesmith897 Před rokem

    Hi, im doing a similar project. However, my fps dropped drasticly. Do you have any suggestion for me as to how to solve this?

    • @GlevoTec
      @GlevoTec  Před rokem

      Maybe try to lower the resolution? Also, keep in mind that when connected to pc, the communication slows it down. When the board works stand-alone it runs much faster

  • @valentineeze4777
    @valentineeze4777 Před 2 měsíci

    Where are the code

  • @hiataganfrota6078
    @hiataganfrota6078 Před 3 lety

    great video, how do i program new codes to run on OpenMV H7? Do you know?

    • @GlevoTec
      @GlevoTec  Před 3 lety

      You can write a program in python in the OpenMV IDE and upload it to the board

  • @Augmented_AI
    @Augmented_AI Před 2 lety

    Hey man, great video! Would you be interested in a collaboration with Augmented startups (91k subs)

  • @Gallardo6669
    @Gallardo6669 Před 3 lety

    What is the longest possible ranger to recognize and follow a persons face????

    • @GlevoTec
      @GlevoTec  Před 3 lety +1

      I would say about 2m

    • @Gallardo6669
      @Gallardo6669 Před 3 lety

      @@GlevoTec thank you for your reply. For safety reasons I really want to build a human tracker for outside, which detects people day and especially at night and then follow them with a high beam light to not break in in our facility. What's your opinion in that implementation?

    • @GlevoTec
      @GlevoTec  Před 3 lety

      @@Gallardo6669 Should be possible, but you would have to write a custom code that detects human body shapes and tracks them

    • @Gallardo6669
      @Gallardo6669 Před 3 lety

      @@GlevoTec I am not good at this yet.... Therefore I keep looking for similar projects to copy the code. I can imagine I am not the only one who wants to build it, but I can't find any implemented project yet. Maybe there are too many challenges. The device, servos and light I can build, it's the camera and software I can't do. Would you be able to help out in an Collaboration?

  • @did3d523
    @did3d523 Před 2 lety

    too expensive what is the must low price solution to make same think thanks

  • @doomsgaming3477
    @doomsgaming3477 Před 3 lety

    can u please upload the code..🙏

    • @GlevoTec
      @GlevoTec  Před 3 lety +1

      Hi. I added two links with the code. If you find it helpful, consider a small donation on my paypal. Good luck!