Don't wanna be here? Send us removal request.
Text
Final Post
Human emotion to be evoked: PARANOIA
Original goal: I wanted to create a tracking system, which would always be looking at you, to evoke the feeling of Paranoia (that someone is looking at you).
Nothing as far as hardware changed during the building process... the only things which were changed was to do with the design. THE ORIGINAL IDEA WAS NOT A DECAPITATED DEAD BABY!!!! The original idea was a creepy looking doll.
I decided on a doll to house the electronics, and found some videos on YouTube explaining how to create a “scary doll”. Next i had to make a case to house everything, this was done using wood and screws. After that it was spray painted with black metal paint, and left to dry. Next came the painting (the imaginative part).
As far as a learning experience goes, i would say this has been simply amazing. I have learnt so much about the Linux operating system, OpenCV, and Python... not to mention wood cutting skills, and painting.
The outcome has surpassed anything i had previously imagined creating when i started this module.
MAIN RESOURCES USED:
Guide for installing OpenCV: https://www.alatortsev.com/2018/09/05/installing-opencv-3-4-3-on-raspberry-pi-3-b/
Pan Tilt Hat Python library: https://github.com/pimoroni/pantilt-hat
Inspiration from the doll came from: https://youtu.be/2od4X_zLQXY
The project works by detecting a human face in the camera frame, and drawing a box around it. Next, i wrote 3 functions which changes variables, depending where the face is in the frame (to the left, or right of the frame)... the altered variables are then put into the servo which causes the head to turn.
Link to final program:
https://drive.google.com/open?id=1Vc5gSpt5MbPBtWLRhl3WgUzrsM9C1hRZ
0 notes
Link
Video of the dolls head working correctly with the camera inside it, rotating as expected
0 notes
Photo
Next, i cut the head of the doll in half, and also cut the mouth off the doll, and spray painted the whole thing black. When the spray paint has dried, i will be adding grey and blue hues to the black base tone. The original concept has morphed into an extremely morbid one. I will now be hanging the body of the doll upside down from the top of the stage case. The grey / blue hues will look like a dead baby doll, i will be adding cotton wool to create the realism of a severed head. I also need to create a back story for the doll...
0 notes
Photo
Next came cosmetic work, in the form of designing a “stage” for the piece. It needed to hide all of the electronics, and be sturdy enough to support the dolls body. Wood was the obvious option, so i went to Travis Perkins, got a sheet of ply wood for £18.20, and started cutting. I used pieces of scrap wood collected over the years to create supports for the stage.
After placing the Raspberry Pi inside the housing, with the Pan Tilt Hat protruding through the hole, i marked out the outline of the Raspberry Pi. This was so i was able to glue wood in place to secure the RasPI while it was inside the housing. Next, i spray painted all of the wood black, and bored a hole in the back of the housing for wiring to come out of.
0 notes
Link
From the fruits of my labour, i manage to get it working correctly.. turning in the correct direction to face the face which it is detecting. I kept pan of the camera at a -45 degree angle (facing upwards slightly). This was because i felt that if the camera was inside the head of the doll, it would not be able to look up and down while attached to the face. I did not want to put too much pressure on the servos inside the Pan Tilt Hat
0 notes
Photo
The next day after making that extremely dodgy attempt at tracking, i sat down and worked everything out manually. In the first photograph, i tried different parameters to work out what was making the Pan Tilt Hat turn left / right / up / down... i also needed to bear in mind that the camera was facing me, so if i wanted the camera to turn left (from the way i was facing), it actually had to turn right in its own space.
In the second photograph, i wrote a mock function to try and conceptualise this thought process.
0 notes
Link
Here was a failed attempt at making the box stay in the centre of the screen... however, it seemed to have a mind of its own!!
0 notes
Text
What to do next...?
Now that i had control over the Pan Tilt Hat, and i was able to get the coordinates of a detected face, next i needed to be able to make the Pan Tilt Hat turn to get the face in the centre of the screen
0 notes
Link
Here i got the OpenCV Haar cascade working, detecting my face and drawing a box around it correctly
0 notes
Photo
When i got back from the charity shop, i immediately took the head off to have a look inside. I thought about cutting a hole inside one of the eye sockets, to allow the camera to look out of it, so went to remove an eye and found that the above expression was extremely creepy. This gave me inspiration
0 notes
Photo
The human emotion i wanted to evoke was “paranoia”. I thought what better way to evoke a feeling of paranoia like a doll permanently looking at you. So i went to the local charity shops, looking specifically looking for creepy looking dolls.
I really liked the look of the clown, and the pale doll in the pram... however their heads were simply too small to fit the Pan Tilt Hat inside. The only option was the very realistic human looking doll which cost me £3.50 from The Mind Shop, in Stamford.
I had to come up with a way of concealing the electronics inside the head, and also giving the camera a way of looking out of the head... i also needed to come up with a way of allowing the head to hold the camera inside it, and to pivot left and right.
0 notes
Link
Another video i recorded of the Pan Tilt Hat moving to Pimoroni’s Github example https://github.com/pimoroni/pantilt-hat/blob/master/examples/smooth.py
0 notes
Link
Luckilly, the Pan Tilt Hat i bought was made to specifically hold the Raspberry Pi Camera Module V2 which i bought, the camera fitted perfectly to the Hat
0 notes
Text
Making the Pan Tilt Hat move
Here is a video of my Pan Tilt Hat moving (using the example from Pimoroni’s githb account https://github.com/pimoroni/pantilt-hat/blob/master/examples/smooth.py )... https://drive.google.com/file/d/1n57ipE0lJMDmn91JAjsgZbzBSS1wDsgv/view?usp=sharing
0 notes