After some research, I found that you can send serial data from python running on a laptop to an Arduino with PySerial. ![]() My simple Arduino code takes any value from 0 to 400 (the centerX value range) and maps it from 0 to 180 to control a servo. My facial detection python works great and I am able to calculate the center point of the face and store it in centerX and centerY variables. My goal in this project is to use openCV’s facial detection to track a face in a video and output the location to an Arduino to control a servo. Now I’m trying to get my feet wet in some python. ![]() ![]() ![]() I’ve been creating projects with Arduino for years now and have had a lot of fun.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |