Face & Movement Tracking System Using a Raspberry Pi + OpenCV + Pan-Tilt HAT + Python

  Рет қаралды 88,032

Core Electronics

Core Electronics

Күн бұрын

Пікірлер: 113
@michaelmanoukian
@michaelmanoukian 2 жыл бұрын
This channel has literally everything, thank you!
@gaggablagblag9997
@gaggablagblag9997 9 ай бұрын
This channel is amazing!
@tariklassouaoui1635
@tariklassouaoui1635 2 жыл бұрын
very inspiring , well explained, I love this channel
@Core-Electronics
@Core-Electronics 2 жыл бұрын
Thanks to you 😊 glad you dig it
@afifzuhairr
@afifzuhairr Жыл бұрын
to save electricity or lengthen the lifetime of the servo motor, is it possible to add motion sensor first before switch on the camera module? so, the motion sensor would be the first layer security, then camera will catch that motion in sentry mode -> face recognition ! just my two cents!
@Core-Electronics
@Core-Electronics Жыл бұрын
Very rad idea!
@ajaykushwah6793
@ajaykushwah6793 2 жыл бұрын
My pi camera is responding very slow.. I m using rpi 4 model b 4 gb...how can I reduce the response time? Like I m waving my hand in front of picamera and it shows after 3 to 4 seconds
@Core-Electronics
@Core-Electronics 2 жыл бұрын
That is very slow. To start make sure your Raspberry Pi is getting enough cooling, active cooling would definitely help. As soon as the board gets Hot it'll start going slow. In software you can also lower the pixel count, that will drastically improve reaction time. Hopefully that helps. If hardware is holding you back take a look at the OAK-D Lite, it is quite a remarkable AI Camera compatable with Raspberry Pi Single Board Computers - kzbin.info/www/bejne/bXPOeZaAqppqeck
@ajaykushwah6793
@ajaykushwah6793 2 жыл бұрын
@@Core-Electronics thanks ..I will do the same
@innuendoz
@innuendoz 2 жыл бұрын
This is great thanks
@erniea5843
@erniea5843 3 ай бұрын
Doesn’t this hat block all the other GPIO pins? Kind of makes it impractical to add this for a robot or other projects.
@LI3AXE
@LI3AXE 2 жыл бұрын
Hey, followed all the instructions but this error keeps coming up. enabled i2c, but problem persists ? Any solutions? File "/home/pi/track/facetracker.py", line 37, in pan(cam_pan-90) File "/usr/lib/python3/dist-packages/pantilthat/pantilt.py", line 466, in servo_one self.setup() File "/usr/lib/python3/dist-packages/pantilthat/pantilt.py", line 80, in setup self._set_config() File "/usr/lib/python3/dist-packages/pantilthat/pantilt.py", line 118, in _set_config self._i2c_write_byte(self.REG_CONFIG, config) File "/usr/lib/python3/dist-packages/pantilthat/pantilt.py", line 209, in _i2c_write_byte raise IOError("Failed to write byte") OSError: Failed to write byte
@electrictnt4482
@electrictnt4482 5 ай бұрын
Were u able to figure this out? Having the same issue
@Bhardwajkushagra
@Bhardwajkushagra 10 ай бұрын
I couldn’t get my hands on Pimoroni Pan tilt hat but I have a ordinary pan tilt bracket. Can you please suggest me how can I manage with that.
@BABALOOEY46
@BABALOOEY46 3 жыл бұрын
So good, thanks for sharing.
@Core-Electronics
@Core-Electronics 3 жыл бұрын
Glad you enjoyed it!
@mr.carrot7698
@mr.carrot7698 4 ай бұрын
would this work if i ran the software on an orange pi 5? as long as i installed all the cameras and required stuff.
@michaellopez3681
@michaellopez3681 4 ай бұрын
Hello, do you happen to know what piece of code i would need to change to use different servos? For context i have a rpi adafruit 16 channel servo hat from your other video. I would like to use that to host my servos but wondering what i need to adjust to use that instead of the board in this video
@immrinzler7814
@immrinzler7814 3 жыл бұрын
Hii , does Open CV is to be need open on system for working of tracker , does it still work after just installing code on rasberry pi?
@Core-Electronics
@Core-Electronics 3 жыл бұрын
You need the Open-CV packages to be installed so that it can do the face and movement detection aspects of the code
@geddajayaram6380
@geddajayaram6380 Жыл бұрын
can it be implemented by using mobile as camera module????
@Core-Electronics
@Core-Electronics Жыл бұрын
Sounds advanced but you definitely could
@thomasgf5948
@thomasgf5948 Жыл бұрын
Hi I have the head (eyes) from inmoov robot but without pimoroni picade pan tilt Hat. I connected directly to Raspberry pi. So i need not download software for it? What i must change from your example. Can you help me?
@abdulrhamanalkinani1955
@abdulrhamanalkinani1955 3 жыл бұрын
Thank you so much. Could you please do eyes tracking
@_bruh_420
@_bruh_420 10 ай бұрын
ik im a bit late but i want to implement a doppler radar (for increased range). and the radar detects movement somewhere, so it tells the pan tilt to point the camera to the area with detected movement. how would i modify this code?
@Fraunzi
@Fraunzi 3 жыл бұрын
THANK YOU so much for this 🙏🙌
@Core-Electronics
@Core-Electronics 3 жыл бұрын
No problem 😊
@nathanbowser609
@nathanbowser609 2 жыл бұрын
Any advice on using this base in a SAR have application. Particularly night time wild game census taking. I want to build a diy eo/it up to 4 sensors. LWIR thermal sensor; RGB spectral with adaptive zoom, and LRF laser range finder are the big three. I need the computer to run BG separation, temperature threshold, and object recognition. end result should be a dark granular background; only things above threshold have color, and camera and gimbal zoom and move to keep target in frame. The info is not readily available out there, I’m picking from 15 year old experience, and articles buried deep on the internet. This stuff isn’t restricted or illegal, but there’s definitely an unspoken agreement to not make it readily available
@Core-Electronics
@Core-Electronics 2 жыл бұрын
Now that makes for an amazing project! DIY object detection and face tracking is in its infancy but I have no doubt people will keep pushing the thresholds on what is possible. If you do nail your plans please share 😊 it would make for an incredibly powerful tool for all kinds of applications.
@geddajayaram6380
@geddajayaram6380 Жыл бұрын
when two are identified, which person is identified first?????
@Core-Electronics
@Core-Electronics Жыл бұрын
Big Question! The AI system when looking for faces I'm pretty sure goes from top left to right then down one row and repeats. If I was to guess the person in the top left of the preview window would be targeted first. Only one way to find out for sure though, Test it!
@MrRubion
@MrRubion Жыл бұрын
Thank you for your video. Do you think the set-up also works with the Raspberry Pi High Quality Camera? Or would it be to heavy for the pan-tilt hat?
@juheonchu6322
@juheonchu6322 2 жыл бұрын
If installing the binaries with those sudo codes, may I ask you any alternatives?
@Core-Electronics
@Core-Electronics 2 жыл бұрын
Not 100% sure what you mean, but if you go through all the steps your setup will be good to go!
@woolfy02
@woolfy02 Жыл бұрын
I wonder if a stepper motor could be used instead? The only thing I could compare it to is how smooth a c-ram / CIWS operates. (Minus all the weapons). I think it would look amazing if that was possible to setup something like that, with a project like this. It seems like the OpenCV you use, works great.
@Core-Electronics
@Core-Electronics Жыл бұрын
Absolutely mate 😊 the AI system can remain the same and it can totally be ported to control stepper motors.
@emeobioh7950
@emeobioh7950 Жыл бұрын
​@@Core-Electronicsis there a way to record and save the live feed video? I want to build a surveillance camera and need to be able to record the video and save so it can be accessed later
@onojioboardwalk9748
@onojioboardwalk9748 Жыл бұрын
@@Core-Electronics .. Hi could you develop this into an even more advanced version, To be built similar to the predator's shoulder-visor, But attached to an eye-head-piece? To have nightvision/Infrared & Tracking at like in this video? Do you do commissions?
@Jerseylance1
@Jerseylance1 2 жыл бұрын
Great video, but can I use the code with my dynamixel servos?
@Core-Electronics
@Core-Electronics 2 жыл бұрын
Absolutely, you will just need to alter some specifics in Python so that way your servos gets the right PWM signals sent to them.
@Core-Electronics
@Core-Electronics 2 жыл бұрын
Depending on the current draw you may want an extra power input. Check this guide for wiring tips with a servo and a Raspberry Pi 4 Model B - core-electronics.com.au/guides/control-servo-raspberry-pi/
@tech-business-world3721
@tech-business-world3721 Жыл бұрын
can we make a 4 dof(using servo motors) robotic arm for pick and place small objects using pi camera to detect object
@umairgujjar4576
@umairgujjar4576 Жыл бұрын
Ni usama
@anasamjad3019
@anasamjad3019 Жыл бұрын
I'm planning to use the same concept but instead of tracking face, I want to track Sun. Is the execution is still the same? I have a pytorch pretrained model currently.
@Ipsissimus
@Ipsissimus 7 ай бұрын
This is so amazingggggggggggggggggg
@unrealisticfear
@unrealisticfear 2 жыл бұрын
Hİ, In the "make -j $(nproc)" command, the loading process may take a very long time, even the screen may freeze, you wrote on your page. It came up to seven percent, then the screen froze, I'm being patient as you said, but it's been 2 hours, is it normal? :) should ı wait?
@Core-Electronics
@Core-Electronics 2 жыл бұрын
2 Hours is definitely tooo long. Give the system a hard power cycle then type that same "make -j $(nproc)" command into a new terminal with it focused on the right folder structure. So it will be the following. cd ~/opencv-4.4.0/build make -j $(nproc)
@Videogame9559
@Videogame9559 Жыл бұрын
H I would this work with the 16 servo control board and camera module or would I need to change the code. I have pan and tilt mount.
@imenguechtouli1518
@imenguechtouli1518 7 ай бұрын
i have the same question!
@fsddsdsd2840
@fsddsdsd2840 6 ай бұрын
Hello what do I do with this? VIDIOC_S_PARM: failed: Inappropriate ioctl for device I am using picamera v2.1
@Core-Electronics
@Core-Electronics 6 ай бұрын
Sorry to hear you are having issues, I haven't seen that error message before, we have a forum for this guide that might have some helpful information, and if not feel free to chuck a post on their with your issue. Give us a bit of details about your setup and where it goes wrong, we have lots of maker-eyes over there that can help. core-electronics.com.au/guides/Face-Tracking-Raspberry-Pi/
@Videogame9559
@Videogame9559 Жыл бұрын
Sorry you answered my question at the beginning of the video
@digitalbirdfilm
@digitalbirdfilm Жыл бұрын
Great work I have been looking for a way to add this functionality to the Digital Bird DIY camera control system and this might just be what i'm looking for. Do you see any problem using an HDMI to Pi4 camera board in place of the Pi camera?
@onojioboardwalk9748
@onojioboardwalk9748 Жыл бұрын
Could you build one of these for me, Like a commission? But with some added fearues?
@yee2e
@yee2e 2 жыл бұрын
Is it tracking face without computer?
@Core-Electronics
@Core-Electronics 2 жыл бұрын
All the face figuring out/calculations are done on the Raspberry Pi Single Board Computer 😊
@johnjayveec.alindayo9278
@johnjayveec.alindayo9278 2 жыл бұрын
Its possible to detect the faces with temperatures? Thanks
@Core-Electronics
@Core-Electronics 2 жыл бұрын
I've seen thermal cameras run with face/human detection - kzbin.info/www/bejne/nqHciGeCrM1_apY For this Pan-Tilt system if you added a Laser Thermometer you could definitely achieve that goal - core-electronics.com.au/non-contact-ir-thermometer-sensor.html
@johnjayveec.alindayo9278
@johnjayveec.alindayo9278 2 жыл бұрын
@@Core-Electronics Can i contact you on gmail?
@johnjayveec.alindayo9278
@johnjayveec.alindayo9278 2 жыл бұрын
@@Core-Electronics I saw now the SENO206? Did you know how to do that with temperature sensor?
@Core-Electronics
@Core-Electronics 2 жыл бұрын
If your running into issues or want help with your project the best place for us to help is on our forum and as we'll be better able to help 🙂 forum.core-electronics.com.au/
@johnjayveec.alindayo9278
@johnjayveec.alindayo9278 2 жыл бұрын
@@Core-Electronics do you have any idea how to get face detection with temperatures using adafruit mlx90640 using raspberry pi?
@KJL_offical
@KJL_offical Жыл бұрын
Hey can you give me a link to the things i need to buy?
@claybrd
@claybrd 2 жыл бұрын
Would this work with a raspberry pi 4B 4GB or does it need to have 8GB?
@Core-Electronics
@Core-Electronics 2 жыл бұрын
It will definitely work with lower RAM Raspberry Pi 4 Model B 😊
@טמירביטון-ט5י
@טמירביטון-ט5י 2 жыл бұрын
did the code can tracking after full body not just face?
@Core-Electronics
@Core-Electronics 2 жыл бұрын
You can definitely replace the face detection layer with a object detection layer that focuses just on human bodies 🙂It would take some tinkering with the Python code. Check out this guide on how to set up object detection - core-electronics.com.au/tutorials/object-identify-raspberry-pi.html
@טמירביטון-ט5י
@טמירביטון-ט5י 2 жыл бұрын
@@Core-Electronics i need a full body not faces is it possible?
@Core-Electronics
@Core-Electronics 2 жыл бұрын
Come check this out mate - core-electronics.com.au/tutorials/pose-and-face-landmark-raspberry-pi.html
@fricosu007
@fricosu007 2 жыл бұрын
thats a very nice code i see here ! nice work ... question, i want to install this system on a ceiling ... i would add an x y and z axes on the ceiling moving the camera and the rest of its components, how can i add some more code to control the movement of the xyz axes together with the face tracking movements. THANNKS !
@Core-Electronics
@Core-Electronics 2 жыл бұрын
I have a simple Keyboard PAN-TILT Hat control system that you can see here - core-electronics.com.au/guides/pan-tilt-hat-raspberry-pi/ Combining that Script and the one talked about here should get you moving in the right direction. If you need a hand with the Python Language hit up our Workshop - core-electronics.com.au/courses/python-workshop/
@jonathanpartidagomez6847
@jonathanpartidagomez6847 2 жыл бұрын
Nice video bro, one question, could a USB camera be used instead of the one you used?
@Core-Electronics
@Core-Electronics 2 жыл бұрын
The code will require some tinkering with but you absolutely can 😊 all the Scripts are open source so feel free to modify away.
@ani80322
@ani80322 Жыл бұрын
Sir can we use Raspberry Pi 3 in the place of Raspberry Pi 4
@amreenmander3809
@amreenmander3809 2 жыл бұрын
Great video! Quick question: Are we able to use the HAT without directly mounting onto the Pi so that the other RPi pins aren't covered and may be connected to other outputs (e.x. to control a relay or LEDs). Meaning if we mount the hat to a breadboard instead and use jumper wires to connect the 5V pin and 3 GPIO pins (2,3,16) from the RPi, will this still work?
@Core-Electronics
@Core-Electronics 2 жыл бұрын
This is the GPIO Pins utilised by the HAT - pinout.xyz/pinout/pan_tilt_hat So long as you connect the Pan-Tilt HAT to those required pins it will work. Whether it is installed as a HAT or on a Breadboard. You are then able to use the other free GPIO Pins to control whatever you desire 😊.
@Bhardwajkushagra
@Bhardwajkushagra 10 ай бұрын
i dont have pimoroni pan tilt hat but another one. can you tell me how to directly connect servos to rPi
@unrealisticfear
@unrealisticfear 2 жыл бұрын
can ı do this with raspberry pi 3 model b+ ?
@Core-Electronics
@Core-Electronics 2 жыл бұрын
It definitely will, just at a slower FPS.
@unrealisticfear
@unrealisticfear 2 жыл бұрын
@@Core-Electronics that's fine, as long as there's no conflict in the code :) thank you..
@balyazulfikar4155
@balyazulfikar4155 2 жыл бұрын
hi great video and thanks for the compelte explain im wondering have you ever create project with raspi+usb cam to counting people in a room? best regards from me
@Core-Electronics
@Core-Electronics 2 жыл бұрын
I've done some work with the OAK-D Lite and one of the machine learnt systems that it runs counts people in a room/as they wall past. Once you locate the exact Python script you'll be able to base your code in your system on that 😊 - core-electronics.com.au/guides/raspberry-pi/oak-d-lite-raspberry-pi/
@Mohammedalhalabi16
@Mohammedalhalabi16 Жыл бұрын
Question: If you disconnect the internet from it, will it still work on tracking moving objects without its connection to the internet, or should it be connected to the internet in order to continue tracking the movement of objects, and if it works, can we make a project to track an object using Arduino Uno
@geddajayaram6380
@geddajayaram6380 Жыл бұрын
will it be implemented using pi4 and 3
@macixmajsterkuje5799
@macixmajsterkuje5799 2 жыл бұрын
Can I use raspberry pi zero to do this?
@Core-Electronics
@Core-Electronics 2 жыл бұрын
Because the computation is so high with computer vision project like this I would reccomend using the Raspberry Pi 4, the delay using a Pi Zero I reckon would be too great for functional use.
@CreativeGraphicsGroup
@CreativeGraphicsGroup 2 жыл бұрын
@@Core-Electronics Maybe a Pi Zero 2 W? (If you can get one...)
@wkinne1
@wkinne1 Жыл бұрын
Will this work on an Orange Pi 5?
@lovetangTV
@lovetangTV 11 ай бұрын
Is it possible in Pi 3 as well? Please answer
@Тудисюди-э7з
@Тудисюди-э7з 6 ай бұрын
руки індуса в нього це така фішка? типу якщо відео технічне і не від індуса дивитися не будуть?
@adamakmal9401
@adamakmal9401 Жыл бұрын
Hi great video where can I get the coding for it
@Core-Electronics
@Core-Electronics Жыл бұрын
Hey, its in our guide linked below. Also here: core-electronics.com.au/guides/Face-Tracking-Raspberry-Pi/
@oscar-vf6vi
@oscar-vf6vi 2 жыл бұрын
Is the hat absolutely necessary?
@Core-Electronics
@Core-Electronics 2 жыл бұрын
Is definitely the easiest way to set up a Pan-Tilt System with a Raspberry Pi. There are other Pan-Tilt Hats but you will need to adjust the code running the system to accommodate for them. If your only interested in Face Identification come check out this - core-electronics.com.au/guides/face-identify-raspberry-pi/
@pritams_vlog2332
@pritams_vlog2332 11 ай бұрын
hello sir love from india i have following on youtube since last year very knowledgeable channel is running you come to the point . I need you help on one of my project I am trying to develop face recognition system that system can identify people either he/she in database or not but I didn't get any specific resources I hope you help me out thanks
@DarrylAdams
@DarrylAdams 3 жыл бұрын
When people talk with horror about facial recognition and mining done by the big data companies and government, I point to openCV and say this tech can be done by anyone, so evil is now dramatically easy for anyone to do. And with the Pu, cheap too!
@onojioboardwalk9748
@onojioboardwalk9748 Жыл бұрын
.. Actually this can be turned into a self-defense weapon with a multitude of functgions.. So its not 'Evil' in the hands of good people.
@talismr01
@talismr01 Жыл бұрын
I can do this using a USB camera, instead of one (opencv ai kit)
@nikachachua5712
@nikachachua5712 3 жыл бұрын
hello bro , im new on raspberry pi (still waiting till i get zero w ) , im using pycharm on windows 10 to code with python , i dont know how to set up everything on raspberry pi so can u help me or link me where i can learn everything step by step? need to use rpi zero w with my codes from pc
@Core-Electronics
@Core-Electronics 3 жыл бұрын
Hey mate, an absolutely great starting point is our Raspberry Pi Workshop - core-electronics.com.au/tutorials/raspberry-pi-workshop-for-beginners.html
@nikachachua5712
@nikachachua5712 3 жыл бұрын
@@Core-Electronics thx 🙏 sorry for another question but i have to , could u help me to find tutorial or library or software to control action of robotic , for example i made rpi dog and want to make easy virtual motion and want to use that on real live rpi dog? pls help one more time ❤️
@Core-Electronics
@Core-Electronics 3 жыл бұрын
All depends on what hardware your using to control the movement of the Robot. If your using Servos this is a great starting point - core-electronics.com.au/tutorials/control-servo-raspberry-pi.html
@kerron_
@kerron_ 2 жыл бұрын
I made similar
@Jirayu.Kaewprateep
@Jirayu.Kaewprateep Жыл бұрын
📺💬 Face recognition by raspberry pi, face detection is paused when you create a new alignment from the center. 🥺💬 You are correct that is for speed, you need to read about machine learning for face recognition task it is multiple convolution layers as filters do and dense layers with learning weight which means you can make it smarter as Google neurons net but it will require a lot of processes. 🥺💬 I think it is by the program intention to be able to run on raspberry pi, can you try adjusting parameters or mode⁉ 📺💬 How about this ⁉ 🥺💬 You may using stack frames it will little bit slow but good with moving object. 📺💬 Threshold sensitivity 🥺💬 Same as filters but you use the standards training from factory or pre-trained weights. 📺💬 I know about that. 🥺💬 It can be contrast colours but it also can be object weights or other function as weights that we called pre-trained weights.
@ZenHulk
@ZenHulk Жыл бұрын
The problem i have with all these you tube videos is they're never real world. Been trying to do this for 6 months and move two 6 volt servos not a pan tilt well yes but 12 inches long which NOPE, never happens. So my robot neck sits their gathering dust.
@ThaTownsNyC
@ThaTownsNyC 3 ай бұрын
Now just add a glock 17 and ur all set free aimbot
@Kumaresh.R-b8d
@Kumaresh.R-b8d Ай бұрын
Hey iam ur big fan of your work iam doing an real time traffic light signal project with raspberry 3B+ modiule but i have many things to ask can u pls support me
@Core-Electronics
@Core-Electronics 28 күн бұрын
Hey, we don't do much over KZbin comments, but we have a forum that you can post your project on. We have lots of makers over there that can help out! forum.core-electronics.com.au/
@lobmati5998
@lobmati5998 8 ай бұрын
Ima use this shit to build an airsoft sentry
@jonathanpartidagomez6847
@jonathanpartidagomez6847 2 жыл бұрын
Can I use a Raspberry pi 3A+???
@Core-Electronics
@Core-Electronics 2 жыл бұрын
It should work 😊 you may need to overclock that Pi a little bit to keep up with the computational demands.
Hand Tracking & Gesture Control With Raspberry Pi + OpenCV + Python
13:02
Face Recognition With Raspberry Pi + OpenCV + Python
7:15
Core Electronics
Рет қаралды 196 М.
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 13 МЛН
Long Nails 💅🏻 #shorts
00:50
Mr DegrEE
Рет қаралды 19 МЛН
За кого болели?😂
00:18
МЯТНАЯ ФАНТА
Рет қаралды 3,5 МЛН
I Can Save You Money! - Raspberry Pi Alternatives
15:04
Linus Tech Tips
Рет қаралды 3,6 МЛН
HowTo use Raspberry Pi & OpenCV to track objects & turn servo
15:57
CuriousInventor
Рет қаралды 18 М.
I Built a CoPilot+ AI PC (without Windows)
12:50
Jeff Geerling
Рет қаралды 441 М.
Every Developer Needs a Raspberry Pi
27:27
Sam Meech-Ward
Рет қаралды 969 М.
How to do Object Detection using ESP32-CAM and Edge Impulse YOLO Model
16:50
The coolest robot I've ever built!
19:40
Thomas Burns
Рет қаралды 4,9 МЛН