Drone programming with python face recognition tracking

Содержание
  1. Drone Programming with Python — Face Recognition & Tracking
  2. Prerequisites & Facts
  3. Degree & Cost
  4. Reviews
  5. Saved searches
  6. Use saved searches to filter your results more quickly
  7. ZzombieE0/Face-Recognition-and-Tracking-System-with-Drone-with-Python
  8. Name already in use
  9. Sign In Required
  10. Launching GitHub Desktop
  11. Launching GitHub Desktop
  12. Launching Xcode
  13. Launching Visual Studio Code
  14. Latest commit
  15. Git stats
  16. Files
  17. README.md
  18. About
  19. Resources
  20. Stars
  21. Watchers
  22. Forks
  23. Releases
  24. Packages 0
  25. Languages
  26. Footer
  27. Drone programming with python face recognition tracking
  28. Udemy – Drone Programming with Python – Face Recognition & Tracking 2019-11
  29. Download at MAXIMUM SPEED and remove 503 Error
  30. Description
  31. What you will learn in the course Drone Programming with Python – Face Recognition & Tracking:
  32. Course specifications
  33. Course topics:
  34. Prerequisites for Drone Programming with Python – Face Recognition & Tracking:
  35. Pictures:
  36. Drone Programming with Python Introduction Video – Face Recognition & Tracking:
  37. Installation guide
  38. Tello Drone Python Programming, Face Tracking From Drone Camera! Using Python Module OpenCV and PyGame!
  39. Introduction: Tello Drone Python Programming, Face Tracking From Drone Camera! Using Python Module OpenCV and PyGame!
  40. Supplies
  41. Gather The Required Material:
  42. Amazon:
  43. Ebay:
  44. Software:
  45. Required Python Version:
  46. Required Python Library:
  47. Attachments
  48. Step 1: Create Python Virtual Environment (Optional)
  49. Setting Up Virtual Environment On Python:
  50. Windows:
  51. Linux:
  52. Step 2: Install the Required Python Module
  53. Installing the Python Module:
  54. Step 3: Programming
  55. Firstly, create the drone controller python scripts and name it «controller.py» or what ever name you want.
  56. Secondly, create the facial recognition python scripts and name it «main.py» or what ever name you want.
  57. Attachments

Drone Programming with Python — Face Recognition & Tracking

The course Drone Programming with Python – Face Recognition & Tracking is an online class provided by Udemy. It may be possible to receive a verified certification or use the course to prepare for a degree.

Operating drone with network programming, face recognition using OpenCV, automatic tracking, implementing web camera

  • Drone Programming with Python – Face Recognition & Tracking
  • Remote automatic drone operation using Python
  • Face recognition programming using OpenCV
  • How to implement a web camera app using Flask’s web framework
  • Automatic tracking using face recognition with drone camera
  • Basic level of python programming.
  • Good to have knowledge of network, WiFi and IP address, as we will be connecting the drones through WiFi
  • Better to have knowledge on building development environment with IDE
  • 5 hours on-demand video
  • 1 article
  • 1 downloadable resource
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
  • 酒井 潤 (さかい じゅん)

Prerequisites & Facts

Drone Programming with Python – Face Recognition & Tracking

University, College, Institution

Online, self-paced (see curriculum for more information)

Degree & Cost

Drone Programming with Python – Face Recognition & Tracking

To obtain a verified certificate from Udemy you have to finish this course or the latest version of it, if there is a new edition. The class may be free of charge, but there could be some cost to receive a verified certificate or to access the learning materials. The specifics of the course may have been changed, please consult the provider to get the latest quotes and news.

Читайте также:  Шифрование методом гаммирования java

Reviews

Here you can find information, reviews and user experiences for the course “Drone Programming with Python — Face Recognition & Tracking“. The provider of the course – “Udemy” – will be glad to answer any questions you may have about the class, click here to use the offical support channels. It would be great if you could share your experience of participating in the course – Your honest review will surely help others to choose the right class!

Источник

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

ZzombieE0/Face-Recognition-and-Tracking-System-with-Drone-with-Python

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Sign In Required

Please sign in to use Codespaces.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

Git stats

Files

Failed to load latest commit information.

README.md

Put the pictures of the faces you want the drone to recognize in the «Faces» folder with the extensions «.jpg» or «.jpeg». Then change the names of the pictures to face1, face2, face3, face4. If you want to customize the names of the pictures. You should also change only the names face1, face2, face3, and face4 in the «Face_Recognition.py» file.

About

Resources

Stars

Watchers

Forks

Releases

Packages 0

Languages

You can’t perform that action at this time.

Источник

Drone programming with python face recognition tracking

Udemy – Drone Programming with Python – Face Recognition & Tracking 2019-11

Download at MAXIMUM SPEED and remove 503 Error

Purchase a VIP membership and download using our fastest servers, up to 1Gb/s
If you get 503 error while downloading, Become VIP to download with unlimited connections.

Description

Drone Programming with Python – Face Recognition & Tracking is a programming training course for remote control aircraft that uses face recognition technology using OpenCV, autopilot and web camera. As you know, robot technology is very advanced today. In this course, you will learn a variety of topics using a drone that can fly indoors. Getting started with a drone can be a great way to start your robot programming experience using Python. This is also an interesting and easy way to attract children to coding.

Читайте также:  Php строка перенос строки

What you will learn in the course Drone Programming with Python – Face Recognition & Tracking:

  • Remote operation of the drone using Python
  • Face recognition programming using OpenCV
  • Using a webcam app using the Flask web framework
  • Automatic tracking using face recognition with the help of UAV camera

Course specifications

Publisher: Udemy
Instructors: 酒井 潤 (さかい じゅん) And Sara Freixas
Language: English
Level: Introductory to Advanced
Number of Courses: 45
Duration: 4 hours and 45 minutes

Course topics:

Drone Programming with Python - Face Recognition & Tracking Content

Prerequisites for Drone Programming with Python – Face Recognition & Tracking:

Basic level of python programming.
Good to have knowledge of network, WiFi and IP address, as we will be connecting the drones through WiFi
Better to have knowledge on building development environment with IDE

Pictures:

Drone Programming with Python - Face Recognition & Tracking

Drone Programming with Python Introduction Video – Face Recognition & Tracking:

Installation guide

After Extract, watch with your favorite Player.

Источник

Tello Drone Python Programming, Face Tracking From Drone Camera! Using Python Module OpenCV and PyGame!

license

Introduction: Tello Drone Python Programming, Face Tracking From Drone Camera! Using Python Module OpenCV and PyGame!

Setting Up a Simple Joystick on Arduino for Beginner!

Tello Drone Python Programming, Control Drone With Keyboard and Capture Video From Drone Camera! Using Python Module OpenCV and PyGame!

Easy Thingspeak Home Weather Station (Hygrometer) With ESP8266

About: My name is Muhammad Irsyad Yunus. I like to build many related Arduino project from multiple hardware. Instagram account: @techwithbob Don’t Forget To Follow For More DIY Content And Tech Development! More About BobWithTech »

In this tutorial, I will show you how you can program a face tracking drone through the use of Python programming languages with OpenCV library.

Supplies

Gather The Required Material:

Tello Drone (1x Battery, 1x Drone, 8x Propeller, No Multiple Battery Charger)

Tello Drone Boost Combo Pack (3x Battery, 1x Drone, 8x Propeller, 1x Multiple Battery Charger)

Amazon:

Ebay:

Software:

  • Any IDE that support Python
  • Python Programming Language

Required Python Version:

Required Python Library:

Attachments

Step 1: Create Python Virtual Environment (Optional)

Setting Up Virtual Environment On Python:

If you already set up the virtual environment on your computer, just skip this step and move on to step 2.

Windows:

For windows, please refer to this link to set up the virtual environment.

Linux:

First install the required module virtualenv in the system.

Create a folder for your project.

mkdir projectA 
cd projectA

Setup the virtual environment with the given python version that you currently use.

Activate that virtual environment.

To deactivate the virtual environment just enter the command:

Step 2: Install the Required Python Module

Installing the Python Module:

Step 3: Programming

Firstly, create the drone controller python scripts and name it «controller.py» or what ever name you want.

You can also look up in my first tello tutorial.

Читайте также:  Distinct in array php

Write this lines of codes in the «controller.py»:

import pygame
def init():
#initialize pygame library
pygame.init()
#Set Control Display as 400x400 pixel
windows = pygame.display.set_mode((400,400))
if __name__ == '__main__':
init()
while True:
main()

Secondly, create the facial recognition python scripts and name it «main.py» or what ever name you want.

Write this lines of codes in the «main.py» (with explanation):

import cv2 #import opencv library
import numpy as np #import numpy library
from djitellopy import tello #import djitellopy library
import time #import time library

me = tello.Tello() #initialise the djitello module classes on variable
me.connect() #establish wifi connection to the tello drone
print(me.get_battery()) #print the battery available on the tello drone

me.streamon() #start streaming the tello drone camera

w, h = 540, 360 #initialise the display dimension for the camera
MAX_STATE = 5

fbRange = [15 * 1000, 20 * 1000] #the range area of the detected face for forward and backward movement

#Range of threshold values of the detected face center point in y-axis
udRange = [(h/2)-30, (h/2)] # MIN DOWN, MAX UP
udMax = [(h/2), (h/2)+30]
udMin = [(h/2)-30, (h/2)-60]
udMotion = [0, -10, 10, -30, 30] # neutral, min, max, MIN , MAX

#Range of thresholds values of the detected face center point in x-axis
lrRange = [(w/2)-30, (w/2)+30] # MIN DOWN, MAX UP
lrMax = [(w/2)+30, (w/2)+60]
lrMin = [(w/2)-30 , (w/2)-60]
lrMotion = [0, 8, -8, 16, -16] #motion for left and right movement variables

#pid tuning controller
pid = [0.5, 0.5, 0]

pError = 0 #initial error value of PID

def findFace(img):

faceCascade = cv2.CascadeClassifier("haarcascades/haarcascade_frontalface_default.xml") # the file location for frontal face detection.

imgGray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)

faces = faceCascade.detectMultiScale(imgGray, 1.2, 5)

myFaceListC = []

myFaceListArea = []

for (x, y, w, h) in faces:

cv2.rectangle(img, (x, y), (x + w, y + h), (0, 0, 255), 2)

cx = x + w // 2

cy = y + h // 2

area = w * h

cv2.circle(img, (cx, cy), 5, (0, 255, 0), cv2.FILLED)

myFaceListC.append([cx, cy])

myFaceListArea.append(area)

if len(myFaceListArea) != 0:

i = myFaceListArea.index(max(myFaceListArea))

return img, [myFaceListC[i], myFaceListArea[i]]

else:

return img, [[0, 0], 0]

def trackFace( info, w, pid, pError):
global x, y, area

area = info[1]

x, y = info[0]

fb, ud , lr = 0, 0, 0

error = x - w // 2

speed = pid[0] * error + pid[1] * (error - pError)

speed = int(np.clip(speed, -100, 100))

udState = [y > udRange[0] and y < udRange[1], y >= udMax[0], y = udMax[1], y lrState = [x > lrRange[0] and x < lrRange[1], x >= lrMax[0], x = lrMax[1], x
if area > fbRange[0] and area < fbRange[1]:

fb = 0

elif area >= fbRange[1]:

fb = -20

elif area
fb = 20

for index in range(MAX_STATE): #up down
if (udState[index]):
ud = udMotion[index]

for index in range(MAX_STATE): #left right
if (lrState[index]):
lr = lrMotion[index]

######################################
if x == 0:

speed = 0

error = 0

#print(speed, fb)

me.send_rc_control(lr, fb, ud, speed)

return error

#cap = cv2.VideoCapture(1)

me.takeoff()
me.send_rc_control(0, 0, 15, 0)
time.sleep(1.5)

while True:

#_, img = cap.read()

img = me.get_frame_read().frame

img = cv2.resize(img, (w, h))

img, info = findFace(img)

pError = trackFace( info, w, pid, pError)

#print("Center", info[0], "Area", info[1])

cv2.imshow("Output", img)

if cv2.waitKey(1) & 0xFF == ord('q'):

me.land()
me.streamoff()

break

cv2.destroyAllWindows()
exit()

Attachments

Источник

Оцените статью