Face & Movement Tracking System Using a Raspberry Pi + OpenCV + Pan-Tilt HAT + Python
Core Electronics 7:33
118,229 views · 2,708 likes Watch on YouTube ↗
Utilise computer vision systems to always keep your face in the centre of the frame. Then add a movement detection and a patrol layer to make finding faces easier (just like a portal turret!)
Full Article - https://core-electronics.com.au/tutorials/Face-Tracking-Raspberry-Pi.html
Make sure to use the Previous Raspberry Pi 'Buster' OS with this Guide.
Related Information
Quick Start Guide for Pimoroni Picade Pan-Tilt Hat (Used Here) - https://core-electronics.com.au/tutorials/pan-tilt-hat-raspberry-pi.html
Flashing 'Buster' OS onto a Raspberry Pi - https://core-electronics.com.au/tutorials/flash-buster-os-pi.html
Facial Recognition Raspberry Pi - https://core-electronics.com.au/tutorials/face-identify-raspberry-pi.html
Speed Camera with Raspberry Pi - https://core-electronics.com.au/tutorials/detect-speed-raspberry-pi.html
Object and Animal Recognition With Raspberry Pi - https://core-electronics.com.au/tutorials/object-identify-raspberry-pi.html
Claude Pageau Face-Track-Demo Github - https://github.com/pageauc/face-track-demo
How To Use Your Phone to Control Your Raspberry Pi - https://core-electronics.com.au/tutorials/raspcontrol-raspberry-pi.html
Cameras in combination with machine learning create the most powerful sensor you can ever put on a Raspberry Pi Single Board Computer. And now we are making them smart and mobile with artificial intelligence! The intention here is to not only create an easy-to-use face-tracking system with a Pan-Tilt Hat but also do so in a way that can be readily expanded upon no matter what systems or code additions you choose to use. All code utilised is open-source and fully commented. We are going to control a Pan and Tilt system with a Raspberry Pi so that it keeps your face (and the action) in the centre of the frame. I also demonstrate in the Full Article how to control the speed of rotation either making it very smooth or very fast. After achieving the above the next step is to code a patrol phase for the Pan-Tilt system. So, when it does not see a face, the system moves around its degrees of freedom logically to search for one. Then to aid this patrol phase further we can add in the code the ability to automatically turn towards any moving objects that it identifies. Open-CV is a huge resource that we use here to help solve the real-time computer vision and image processing problems.
If you have any questions about this content or want to share a project you're working on head over to our maker forum, we are full time makers and here to help - http://coreelec.io/forum
Core Electronics is located in the heart of Newcastle, Australia. We're powered by makers, for makers. Drop by if you are looking for:
Pimironi Picade Pan-Tilt Hat - https://core-electronics.com.au/catalog/product/view/sku/CE04655
Raspberry Pi 4 Model B 8GB (Used Here): https://core-electronics.com.au/catalog/product/view/sku/CE06974
Raspberry Pi 4 Model B (4GB) Ultimate Kit Bundle (AVALIABLE!) - https://core-electronics.com.au/raspberry-pi-4-4gb-ultimate-kit.html
Raspberry Pi Official Camera Module V2 (Used Here): https://core-electronics.com.au/catalog/product/view/sku/CE04421
Raspberry Pi 4 Power Supply: https://core-electronics.com.au/catalog/product/view/sku/CE06427
0:00 Intro
0:23 Tracking System Overview
0:55 Open-CV
1:01 What You Need and Terminal Commands
2:01 Simple Face Tracking Code
2:35 First Pay Off
3:10 Specifics on this Face Recognition
3:29 Patrol, Movement and Face Tracking Code
4:32 Second Pay Off
5:30 Code Adjustments
6:10 Acknowledgment
6:24 Where To Now
7:08 Outro
Full Article - https://core-electronics.com.au/tutorials/Face-Tracking-Raspberry-Pi.html
Make sure to use the Previous Raspberry Pi 'Buster' OS with this Guide.
Related Information
Quick Start Guide for Pimoroni Picade Pan-Tilt Hat (Used Here) - https://core-electronics.com.au/tutorials/pan-tilt-hat-raspberry-pi.html
Flashing 'Buster' OS onto a Raspberry Pi - https://core-electronics.com.au/tutorials/flash-buster-os-pi.html
Facial Recognition Raspberry Pi - https://core-electronics.com.au/tutorials/face-identify-raspberry-pi.html
Speed Camera with Raspberry Pi - https://core-electronics.com.au/tutorials/detect-speed-raspberry-pi.html
Object and Animal Recognition With Raspberry Pi - https://core-electronics.com.au/tutorials/object-identify-raspberry-pi.html
Claude Pageau Face-Track-Demo Github - https://github.com/pageauc/face-track-demo
How To Use Your Phone to Control Your Raspberry Pi - https://core-electronics.com.au/tutorials/raspcontrol-raspberry-pi.html
Cameras in combination with machine learning create the most powerful sensor you can ever put on a Raspberry Pi Single Board Computer. And now we are making them smart and mobile with artificial intelligence! The intention here is to not only create an easy-to-use face-tracking system with a Pan-Tilt Hat but also do so in a way that can be readily expanded upon no matter what systems or code additions you choose to use. All code utilised is open-source and fully commented. We are going to control a Pan and Tilt system with a Raspberry Pi so that it keeps your face (and the action) in the centre of the frame. I also demonstrate in the Full Article how to control the speed of rotation either making it very smooth or very fast. After achieving the above the next step is to code a patrol phase for the Pan-Tilt system. So, when it does not see a face, the system moves around its degrees of freedom logically to search for one. Then to aid this patrol phase further we can add in the code the ability to automatically turn towards any moving objects that it identifies. Open-CV is a huge resource that we use here to help solve the real-time computer vision and image processing problems.
If you have any questions about this content or want to share a project you're working on head over to our maker forum, we are full time makers and here to help - http://coreelec.io/forum
Core Electronics is located in the heart of Newcastle, Australia. We're powered by makers, for makers. Drop by if you are looking for:
Pimironi Picade Pan-Tilt Hat - https://core-electronics.com.au/catalog/product/view/sku/CE04655
Raspberry Pi 4 Model B 8GB (Used Here): https://core-electronics.com.au/catalog/product/view/sku/CE06974
Raspberry Pi 4 Model B (4GB) Ultimate Kit Bundle (AVALIABLE!) - https://core-electronics.com.au/raspberry-pi-4-4gb-ultimate-kit.html
Raspberry Pi Official Camera Module V2 (Used Here): https://core-electronics.com.au/catalog/product/view/sku/CE04421
Raspberry Pi 4 Power Supply: https://core-electronics.com.au/catalog/product/view/sku/CE06427
0:00 Intro
0:23 Tracking System Overview
0:55 Open-CV
1:01 What You Need and Terminal Commands
2:01 Simple Face Tracking Code
2:35 First Pay Off
3:10 Specifics on this Face Recognition
3:29 Patrol, Movement and Face Tracking Code
4:32 Second Pay Off
5:30 Code Adjustments
6:10 Acknowledgment
6:24 Where To Now
7:08 Outro
Category (YouTube): Education
Playback is via YouTube's official embedded player. Data from YouTube; Exumo is not affiliated with YouTube.