Face following camera with OpenMV Cam H7 plus and arduino | Easy face tracking
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...
using this code to recognize the product would be incredible, a hug from Brazil.
Oh nice! I am just getting started in this whole robotic scene... I think I will order an OpenMV camera right now :-D
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!
Yes, just simply connect the I2C and you're good to go!
I saw your video with great interest. Very useful to give me an idea for a project. Thanks! New subscriber.
Thanks for your comment and for subscribing! Good luck with the project
Amazing video can we get a diagram for what pins you used on the arduino and open mv hr 2?
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?
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?
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.
@@GlevoTec Awesome, thanks for getting back to me so quickly, Ive just ordered myself one
@@Jonnymiller1977 Good luck with the project!
Very good
Can we use as a smoke , heat and flame detector?
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
@@GlevoTec Thanks let me try
Where can I find out more about this device?
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
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
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
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
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?
Do you think it's possible to plug the OpenMV onto an GoPiGo Robot with a Raspberry Pi 3B+ and detect Lanes etc.?
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
Thanks. The circuit connections is really simple. Just connect the SDA and SCL pins from OpenMV to Arduino SDA and SCL. And 5V + GND.
Merci pour votre répnse , je vais faire l'essai à la réception de la camera.
Je vous ferai part du résultat.@@GlevoTec
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
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
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.
The board provides a lot of ways to communicate to other devices indeed. Should be possible
@@GlevoTec Thanks for your reply. Meanwhile I've found my way just with an ESP32-cam.
Hi, im doing a similar project. However, my fps dropped drasticly. Do you have any suggestion for me as to how to solve this?
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
Where are the code
great video, how do i program new codes to run on OpenMV H7? Do you know?
You can write a program in python in the OpenMV IDE and upload it to the board
Hey man, great video! Would you be interested in a collaboration with Augmented startups (91k subs)
What is the longest possible ranger to recognize and follow a persons face????
I would say about 2m
@@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?
@@Gallardo6669 Should be possible, but you would have to write a custom code that detects human body shapes and tracks them
@@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?
too expensive what is the must low price solution to make same think thanks
can u please upload the code..🙏
Hi. I added two links with the code. If you find it helpful, consider a small donation on my paypal. Good luck!