Showing posts with label Robotics. Show all posts
Showing posts with label Robotics. Show all posts
Robotic Telepresence via Skype and Face Tracking with OpenCV
A few months ago I hooked up the robotic head I built to Skype. I called up my brother in Los Angeles and had him control it with his head. Based upon where he was looking and turning his head, the robotic head would then match his head motions. By permitting the user to control the robotic head with their head, the goal has been to create a natural user interface. Furthermore, the user sees through the robots perspective, making the interaction feel natural. Connecting these two technologies, Skype and robotic telepresence, people may converse while also fully engaging in the environment.
Tutorial: How to build a Robotic Head that Follows People's Faces
Edit: See the working prototype here.
I've gotten a few requests to put up a tutorial for building a robotic head.
I'm assuming if you want to build a robotic head, you'll have some experience using an arduino, servos, and some other language that can interface between a webcam and the arduino. I used processing as my interface between the arduino and my webcam. I'm also using the OpenCV library for processing.
I'll describe the overarching structure behind the code to give the illusion that a robot is following a person's face. At a high level, there are only a few steps to have a webcam follow a person's face:
I've gotten a few requests to put up a tutorial for building a robotic head.
I'm assuming if you want to build a robotic head, you'll have some experience using an arduino, servos, and some other language that can interface between a webcam and the arduino. I used processing as my interface between the arduino and my webcam. I'm also using the OpenCV library for processing.
I'll describe the overarching structure behind the code to give the illusion that a robot is following a person's face. At a high level, there are only a few steps to have a webcam follow a person's face:
- Detect face. Take a look at some OpenCV examples on processing's website.
- Grab X-Y pixel coordinates of the face.
- Calculate the pixel distance between the center of the face and center of the webcam's view. In other words, you're going to take the images from the webcam, and calculate the distance between the center of that image and the center of the face.
- Write an algorithm that minimizes the distance between the webcam's center and the face's center.
- This algorithm will also control the servos.
You can download my processing code here and my arduino code is based on the code found here from letsmakerobots.
Let me know if you guys have any questions. I'll try to answer them as soon as I get a chance.
The following pictures are the first iteration:
Labels:
Arduino,
Processing,
Robotics,
Tutorial
Arduino Show & Tell at the Hacktory
Johnny Four and I made it out to the arduino show and tell at The Hacktory this past Saturday. The images and videos tell the rest of the story from the event.
And maybe Johnny Four may finally have a body?
The Anthropology of Human Robot Interaction
A few months ago I dismantled my mind controlled crane and re-used the arduino and servos to build a robotic head. The inspiration to build a robotic head that would follow people's gaze came after I finished reading Sherry Turkle's Alone Together. In the book, she describes and provides analysis for people's reactions and interactions to the robots that are being built at the MIT Media Labs. She describes how people associate emotions to external creatures that appear to pay attention to them. She goes on to argue the seductive nature of these robots taking advantage of the human need and want to connect and feel as if another entity is listening and paying attention. Scroll to the bottom to see a recent Ted Talk by her about some of the concepts in her recent book.
Check out the following videos to watch people interacting and attributing feelings and perceptions to Johnny Four.
Check out the following videos to watch people interacting and attributing feelings and perceptions to Johnny Four.
A closeup of Johnny Four:
Sherry Turkle giving a ted talk:
Subscribe to:
Posts (Atom)








