Face Tracking Camera

When it sees you, it won't stop following!

Sep 1, 2019

64922 views

55 respects

Components and supplies

1

heat-shrink tubing

1

Linear Regulator (7805)

1

paperclip

3

Resistor 220 ohm

1

rubber band

1

webcam

1

9V 1A Switching Wall Power Supply

1

pin header

1

5 mm LED: Yellow

1

5 mm LED: Red

1

5 mm LED: Green

2

MG-90s servos

1

2.1*5.5mm jack plug

1

Hook Up Wire Kit, 22 AWG

1

Arduino UNO

15

M2*10mm self tapping screws

Tools and machines

1

screwdriver

1

Wire Stripper & Cutter, 18-10 AWG / 0.75-4mm² Capacity Wires

1

3D Printer (generic)

1

multimeter

1

Plier, Long Nose

1

Soldering iron (generic)

Apps and platforms

1

Windows 10

Project description

Code

Arduino code

c_cpp

This is the code that will be uploaded to the arduino

Face detection software

Here is the repository where you can find the files for the face detection software . You can also find a executable version on my website .

Latest commit to the master branch on 26-08-2019

Arduino code

c_cpp

This is the code that will be uploaded to the arduino

Face detection software

Here is the repository where you can find the files for the face detection software . You can also find a executable version on my website .

Latest commit to the master branch on 26-08-2019

Downloadable files

Wiring diagram

Wiring diagram

Documentation

face tracking camera parts

all the parts needed to built the face tracking camera mini . You can also find them here : https://www.littlefrenchkev.com/download

https://www.thingiverse.com/thing:3842674

face tracking camera parts

all the parts needed to built the face tracking camera mini . You can also find them here : https://www.littlefrenchkev.com/download

https://www.thingiverse.com/thing:3842674

Comments

Only logged in users can leave comments

Anonymous user

2 years ago

hello to all.i have everything set up properly but when i run the Camera_tracker_main.py iget this message and im not able to resolve this even though i have searched the internet for solution. the problem: philip@philip:~/Downloads/trackingcamera$ python3 Camera_tracker_main.py QObject::moveToThread: Current thread (0x949fc10) is not the object's thread (0x95e5860). Cannot move to target thread (0x949fc10) qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/philip/.local/lib/python3.8/site-packages/cv2/qt/plugins" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. Available platform plugins are: xcb, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc. Aborted i have linux distribution.

Anonymous user

2 years ago

Hello Friend.. It's great ..but the led bulb and server wiring are little bit confusing can you explain it more ! it's being great guided by you...

Little_french_kev

2 years ago

For the wiring I don't know if I can explain the wiring more . basically I feed the Arduino with 9 volt to the Vin . I power the servos from the power supply (to make sure I don't fry the arduino) I use a voltage regulator between the power supply and the servos to make sure they are running on 5 volts . each servo control pin (yellow wire) are plugged to the Arduino (pin 8 and 9) . The LEDs are just plugged on the ground of the arduino on one side and their respective pin (2,3 and 4) on the other (with a resistor) . I hope this help .

Anonymous user

2 years ago

part 3 and 4

Anonymous user

2 years ago

hi, Brilliant project that you have created.! I'm curious about the webcam that you have connected to your computer, what software is running on your computer to get the video image on your desktop, also what webcam model are you using.? many thanks

Anonymous user

2 years ago

I'd love to know how to build the software, and as a noob i pretty much have no(ish) clue. Your Projects are UltraDope,

Little_french_kev

2 years ago

thanks! The webcam is an ADVENT AWCAMHD15 but any usb webcam should work . I wrote the software myself . I explain how to use it and where to download it in the last video . Hope this helps .

Anonymous user

2 years ago

Hello, first timer here and your project is great. Ive been trying to get to these projects for a while. Going to use yours and go from there thanks. Your presentation and explanations are very understandable at least to me. I will have questions later Im sure.

Little_french_kev

2 years ago

Good luck! I hope everything will work first try!

Anonymous user

2 years ago

Bonjour je voudrais savoir si c'était possible de faire le même programme mais sans les leds, vu que notre grand oral parle traite d'une invention similaire.

Anonymous user

2 years ago

Do you need to use a USB webcam or will a camera module compatible with the arduino do just fine? And if a camera module will work, how would I set the up? Thanks in advance!

Anonymous user

2 years ago

Interesting....But I would have much preferred a Raspberry Pi to further process the tracked Object.

Little_french_kev

2 years ago

yes, this is one of the thing I would like to try in the future . And also using a tensor flow for a better object/face detection .

Little_french_kev

2 years ago

Thanks, it's good to know . I haven't try to install TensorFlow on a Pi yet .

Anonymous user

2 years ago

Perhaps OPENCV - I have had issues installing TensorFlow on the RPi...I like C/C++ but on the RPi Python is the de facto standard, but I would love to a c++ OpenCV RPi project.

Anonymous user

2 years ago

How to connect buzzer when face detects and how to connect bluetooth module so that I can get msg on my mobile if I am not in the house and someone enters in my house

Anonymous user

2 years ago

What is the logic for getting a fast and fluid camera movement? Are the servo motors moved to each video frame to some degree? Or at each specific time (for example, every 200ms) do the servants receive new instructions? I'm trying to do it with a Raspberry Pi (without arduino and without pc), just the Raspberry Pi, with a camera and a script with OpenCV and controlling the servos. With each frame I move the servos, but my application is slow and has a lot of delay. To move the servos I am using the "sleep" instruction within the script and this creates delay and slowness in the application. What is your suggestion to make the camera move fast and video fluid?

Little_french_kev

2 years ago

I made this project a long time ago so I don't remember exactly all the details but from what I remember I update the camera position every frame . My webcam is rated at 30 fps but I don't think I get that with the face detection on top . I vaguely remember using a proportional controller to smooth the movement of the camera . Anything vaguely related to a PID controller would probably help fluidity but without a descent frame rate I think it would be hard to have fast and precise movement (I might be wrong though) .

Anonymous user

3 years ago

Bonjour je voudrais savoir si c'était possible de faire le même programme mais sans les leds, vu que notre grand oral parle traite d'une invention similaire.

Anonymous user

4 years ago

hello to all.i have everything set up properly but when i run the Camera_tracker_main.py iget this message and im not able to resolve this even though i have searched the internet for solution. the problem: philip@philip:~/Downloads/trackingcamera$ python3 Camera_tracker_main.py QObject::moveToThread: Current thread (0x949fc10) is not the object's thread (0x95e5860). Cannot move to target thread (0x949fc10) qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/philip/.local/lib/python3.8/site-packages/cv2/qt/plugins" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. Available platform plugins are: xcb, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc. Aborted i have linux distribution.

Anonymous user

4 years ago

How to connect buzzer when face detects and how to connect bluetooth module so that I can get msg on my mobile if I am not in the house and someone enters in my house

Anonymous user

4 years ago

What is the logic for getting a fast and fluid camera movement? Are the servo motors moved to each video frame to some degree? Or at each specific time (for example, every 200ms) do the servants receive new instructions? I'm trying to do it with a Raspberry Pi (without arduino and without pc), just the Raspberry Pi, with a camera and a script with OpenCV and controlling the servos. With each frame I move the servos, but my application is slow and has a lot of delay. To move the servos I am using the "sleep" instruction within the script and this creates delay and slowness in the application. What is your suggestion to make the camera move fast and video fluid?

Little_french_kev

2 years ago

I made this project a long time ago so I don't remember exactly all the details but from what I remember I update the camera position every frame . My webcam is rated at 30 fps but I don't think I get that with the face detection on top . I vaguely remember using a proportional controller to smooth the movement of the camera . Anything vaguely related to a PID controller would probably help fluidity but without a descent frame rate I think it would be hard to have fast and precise movement (I might be wrong though) .

RawrMeScary

5 years ago

Do you need to use a USB webcam or will a camera module compatible with the arduino do just fine? And if a camera module will work, how would I set the up? Thanks in advance!

Anonymous user

5 years ago

hi, Brilliant project that you have created.! I'm curious about the webcam that you have connected to your computer, what software is running on your computer to get the video image on your desktop, also what webcam model are you using.? many thanks

Anonymous user

2 years ago

I'd love to know how to build the software, and as a noob i pretty much have no(ish) clue. Your Projects are UltraDope,

Little_french_kev

2 years ago

thanks! The webcam is an ADVENT AWCAMHD15 but any usb webcam should work . I wrote the software myself . I explain how to use it and where to download it in the last video . Hope this helps .

Anonymous user

5 years ago

Hello, first timer here and your project is great. Ive been trying to get to these projects for a while. Going to use yours and go from there thanks. Your presentation and explanations are very understandable at least to me. I will have questions later Im sure.

Little_french_kev

2 years ago

Good luck! I hope everything will work first try!

Anonymous user

5 years ago

Hello Friend.. It's great ..but the led bulb and server wiring are little bit confusing can you explain it more ! it's being great guided by you...

Little_french_kev

2 years ago

For the wiring I don't know if I can explain the wiring more . basically I feed the Arduino with 9 volt to the Vin . I power the servos from the power supply (to make sure I don't fry the arduino) I use a voltage regulator between the power supply and the servos to make sure they are running on 5 volts . each servo control pin (yellow wire) are plugged to the Arduino (pin 8 and 9) . The LEDs are just plugged on the ground of the arduino on one side and their respective pin (2,3 and 4) on the other (with a resistor) . I hope this help .

Anonymous user

2 years ago

part 3 and 4

Anonymous user

5 years ago

Interesting....But I would have much preferred a Raspberry Pi to further process the tracked Object.

Anonymous user

2 years ago

Perhaps OPENCV - I have had issues installing TensorFlow on the RPi...I like C/C++ but on the RPi Python is the de facto standard, but I would love to a c++ OpenCV RPi project.

Little_french_kev

2 years ago

Thanks, it's good to know . I haven't try to install TensorFlow on a Pi yet .

Little_french_kev

2 years ago

yes, this is one of the thing I would like to try in the future . And also using a tensor flow for a better object/face detection .

Anonymous user

5 years ago

Awesome :) Thanks for the extensive writeup

Little_french_kev

2 years ago

Thanks!