Face Tracking Turret made with Arduino and Open CV2

  Рет қаралды 9,930

Owen O'Brien

Owen O'Brien

5 ай бұрын

I will post GitHub link soon leave any questions you have along with project recommendations. Thanks for watching!
github.com/OwenTheGreenBean/F...

Пікірлер: 42
@NullNullZero02
@NullNullZero02 2 ай бұрын
I love that simple example, it's a great base for other projects
@omdano6432
@omdano6432 4 күн бұрын
its like i know what the other projects are, the ones with bullets in them
@natthadhamabutra3671
@natthadhamabutra3671 2 ай бұрын
thank you so much this is simple but very useful
@xayord9818
@xayord9818 2 ай бұрын
that's so cool brother
@zaoakared
@zaoakared 4 ай бұрын
great project
@owenobrien8804
@owenobrien8804 4 ай бұрын
Thank you!
@ICARE-MECATRONIQUE
@ICARE-MECATRONIQUE 14 күн бұрын
Merci pour cet exemple simple qui permet de mieux comprendre.
@jiyapanchal3082
@jiyapanchal3082 5 ай бұрын
so slay
@palkia080
@palkia080 19 күн бұрын
that's awesome
@milesbuss4856
@milesbuss4856 2 ай бұрын
You should upload all of those code and 3D model files somewhere for download, this is super cool stuff! I’m looking into doing something similar to this for my senior project at my engineering program, I want to make a self driving turret to attack my classmates 😂
@owenobrien8804
@owenobrien8804 2 ай бұрын
Awesome heres a github with all the 3D models, circuits, and code. github.com/OwenTheGreenBean/Face-Tracking-Turret
@milesbuss4856
@milesbuss4856 2 ай бұрын
Thanks so much dude! I just now hooked up two of my little DC fan motors to 3D printed rollers, and have a working shooter mechanism to mount onto this awesome contraption! I’ll keep you updated and put some credit to you on the final piece.
@Discipline0777
@Discipline0777 Ай бұрын
@@owenobrien8804 Thank you so much. This is a huge help in starting a project of my own.
@owenobrien8804
@owenobrien8804 Ай бұрын
@@Discipline0777 Glad to help out!
@Discipline0777
@Discipline0777 Ай бұрын
@@owenobrien8804 😁
@TheSalimkop
@TheSalimkop 9 күн бұрын
Thanks for the video. how can i access to the serial port in both IDE, python IDE and arduino IDE? because when i open the serial monitor on arduino IDE, i can't open it on pycharm ?
@owenobrien8804
@owenobrien8804 6 күн бұрын
When running the python script the serial monitor cannot be open along with the script trying to sends commands to the Arduino. To fix this you must only have one open at a time. In your case I think making sure to have the serial monitor closed before running the program will fix it
@AW-xj4un
@AW-xj4un Ай бұрын
Can anybody shed some light on a persistent problem I encounter? With code attached to this video and all of the similar face tracking videos, as soon as the python detects a face, the servo motors instantly move away from the target. I know how servo motors work and I can see how the code is supposed to work, however, every Arduino code gives the same result, the servo motors rapidly move away from the identified face.
@owenobrien8804
@owenobrien8804 Ай бұрын
Could it be that the servo's are wired backwards, like ground goes to positive and positive goes to ground, in that case switching the wiring might switch the direction of the way to motor turns but im not sure. A way to fix this in the code would be reflecting the image before doing the image processing of finding the face
@AW-xj4un
@AW-xj4un Ай бұрын
@@owenobrien8804 Thanks, but I have tried both of these. Added code in python to invert the image. Checked the wiring and reversed it. No difference. I know it’s something in my setup, but I can’t see where. Even connected a picoscope and could see the PWM signal changing as the serial buffer was filled, but the servos still flip out and go to odd and arbitrary position.
@theredstormer8078
@theredstormer8078 10 күн бұрын
Have you tried other servos or inverting the direction in code?
@obaidulkader3674
@obaidulkader3674 Ай бұрын
File "c:\Users\sibme\OneDrive\Desktop\Face-Tracking-Turret-main\Face-Tracking-Turret-main\Webcam_Python\face_Detection.py", line 1, in import serial ModuleNotFoundError: No module named 'serial' how can i overcome this issue? please help,sir
@kshitijkulkarni4154
@kshitijkulkarni4154 Ай бұрын
pip install serial Run this on your terminal
@owenobrien8804
@owenobrien8804 Ай бұрын
@@kshitijkulkarni4154 yuh yuh‼️
@utube521
@utube521 2 ай бұрын
0:58 - U can C how it's jerking, and that's because of the servos - they've got min 1 degree steps and nothing you can do. maybe only bldc gimbal motors or steppers with microstepping can do it smoother. I'm bashing my head on similar to get my gopro to rotate left/right with the steering wheel of a car, and with servos, even for 50 euros, the image is terrible, jerking like here
@owenobrien8804
@owenobrien8804 2 ай бұрын
Steppers would be a great improvement because of there greater precision and accuracy! I plan to work with the Nema 17 stepper motors soon and it would be cool to try and implement those into this design. Good luck with your project, post a video of it when it's done I like to check it out!
@theredstormer8078
@theredstormer8078 10 күн бұрын
Like he said steppers are probably better, but I'd just gear the servos down (or use a linkage) and call it a day. Depends on the use case ofc but I think you'd only need 2/3x to 1/2x the range of motion. Just a thought.
@farn69
@farn69 2 ай бұрын
github link if possible?
@owenobrien8804
@owenobrien8804 2 ай бұрын
github.com/OwenTheGreenBean/Face-Tracking-Turret
@farn69
@farn69 2 ай бұрын
@@owenobrien8804 thanks man
@MrX01011000
@MrX01011000 2 ай бұрын
Do you have the code for this project? I am doing a similar project, but I will need to modify it for stepper motors instead of servos. Also, is your computer webcam supplying visual data to the device or is it something else?
@owenobrien8804
@owenobrien8804 2 ай бұрын
I have the video from the webcam on my computer processed through Python and then the location for the servos is communicated to the servos over serial communication. The built in computer camera can be switched to a external USB camera by using a different port in the code. Heres a link to the github for a closer look. github.com/OwenTheGreenBean/Face-Tracking-Turret
@daisywong-ke1kz
@daisywong-ke1kz 4 ай бұрын
GREAT WORK! We'd love to offer you some boards if you may need them in the upcoming content. (PCBWay Daisy)
@owenobrien8804
@owenobrien8804 4 ай бұрын
Cool, thanks! If i have a project that needs then I will let you know!
@daisywong-ke1kz
@daisywong-ke1kz 3 ай бұрын
@@owenobrien8804 Cool thing! feel free to reach out. :)
@RobertPacovsky
@RobertPacovsky 18 күн бұрын
Does anyone know what is it "haarcascade_frontalface_default.xml"? And what i should replace "/dev/cu.usbserial-11" with or how to find it?
@rahulsinghmahar9480
@rahulsinghmahar9480 Ай бұрын
Which feild of engeneering is required to make all thsees devies
@owenobrien8804
@owenobrien8804 Ай бұрын
I’m currently pursuing my computer science degree and have learned CAD and electronics in my free time but to do this as a major I would recommend mechatronics robotics or electrical engineering
@Murilo_Floriano
@Murilo_Floriano 15 күн бұрын
Computer science, but a bit of mechanics for all the CAD and assembly stuff
@henrychen3820
@henrychen3820 Ай бұрын
arduinoData = serial.Serial('/dev/cu.usbserial-110', 9600) how should i change the /dev/cu.usbserial-110
@owenobrien8804
@owenobrien8804 Ай бұрын
The first parameter is string of the file path of the usb device in my case it was /dev/cu.usbserial-110, and then the 9600 is the baud width, this is declared in the arduino code as 9600 and shouldn't have to be changed. To find the first parameter on your own computer when you select ports in the arduino IDE it should say which one you are connected to and by copying that path it should work.
@obaidulkader3674
@obaidulkader3674 Ай бұрын
@@owenobrien8804 how to copy that path?
DIY Laser Turret | Part 1 The Hardware
10:16
Michael Reeves
Рет қаралды 1,6 МЛН
Real Life Sentry Turret, that Protects your Room
6:36
GobbleMaster
Рет қаралды 929 М.
ТАМАЕВ vs ВЕНГАЛБИ. Самая Быстрая BMW M5 vs CLS 63
1:15:39
Асхаб Тамаев
Рет қаралды 4 МЛН
When someone reclines their seat ✈️
00:21
Adam W
Рет қаралды 27 МЛН
Как быстро замутить ЭлектроСамокат
00:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 13 МЛН
They RUINED Everything! 😢
00:31
Carter Sharer
Рет қаралды 26 МЛН
Make a TINY Arduino Drone with FPV Camera - Will It Fly?
20:26
Max Imagination
Рет қаралды 522 М.
This 9$ Open Source ROM Burner got upgraded!
14:53
Anders Nielsen
Рет қаралды 4,7 М.
Python and OpenCV Based Face Tracking System Using Arduino
10:33
Arcco Playz
Рет қаралды 40 М.
Posy’s designs ➔ REAL DISPLAYS
8:50
upir
Рет қаралды 379 М.
High precision speed reducer using rope
20:19
Aaed Musa
Рет қаралды 1,1 МЛН
Considering Arduino Nano? Watch this First!
7:47
Programming Electronics Academy
Рет қаралды 44 М.
Arduino Servo Control: How to Make a Laser Turret with XOD
12:32
Afrotechmods
Рет қаралды 943 М.
ТАМАЕВ vs ВЕНГАЛБИ. Самая Быстрая BMW M5 vs CLS 63
1:15:39
Асхаб Тамаев
Рет қаралды 4 МЛН