Professional Documents
Culture Documents
by FlorenceC6
A camera pan-and-tilt gimbal that is capable of tracking faces using computer vision and machine training so it can
follow you around as you film or vlog. This way your face is always the centre of the action!
You can also train this gimbal to follow not only human faces but also objects, pets, food, or anything you can
imagine by using different training data.
(2) Servos
3D print one
or make one of your own using scrap wood pieces and glue
If you have programmed in Python (2.7) before, text editor and terminal. Most of the time, I just use
you can skip this step. Sublime Text and Terminal (built-in command line
tool for a Mac). But, if you've never programmed or
The language I used for the programs that track the used Python before, I recommend starting with a
faces and send the coordinates to the Arduino is simple free IDE like WingIDE.
Python so it must be installed in your computer to be
able to run the code. My code uses Python 2.7 so download that from
here:
I personally use PyCharm as my main python IDE but https://www.python.org/downloads/release/python-2...
you can use other IDE's like WingIDE, or just use a
If you already have ArduinoIDE installed in your computer you can skip this step.
You can download the ArduinoIDE for the Arduino website: https://www.arduino.cc/en/Main/Software
The wiring for this project is pretty straight forward. Follow the diagram above.
http://www.thingiverse.com/thing:71492
You can download the code from my Github. I will Then , compile and upload the Arduino sketch.
update this as I continue to improve the code.
To exit the video capture mode, go to the screen that
https://github.com/raptor16/FacialRecognitionCamer.. is running the video capture -- Python IDLE -- and hit
. "q" to quit.
Once you run the code, you will get two prompts. One is the average distance of the person the track from the
camera and the other is the field of view of the camera.
Change the training data, so if you want to film your much the same steps since I use a Mac and
cat for example, copy and paste the pictures of your Raspberry Pis are computers that run on Linux. Now,
cat to the training folder and the camera will be you'll have a more compact camera setup.
tracking your cat. You can learn more about training
the HaarCascade here: If you want to improve the system you can also try
http://memememememememe.me/post/training-haar- playing with the code and controlling Depth and z-
cas... axis zoom functionality.
I've entered this instructables to both the robotics and the photography contest. Please vote for me if you liked it.