#Coding4Fun – How to control your #drone with 20 lines of code! (21/N)

Hi ! In my post series I already wrote about how to detect faces. We can do this with a camera and OpenCV. However, a drone can also be moved on command, so let's write some lines to detect a face, and calculate the orientation and distance of the detected face from the center camera … Continue reading #Coding4Fun – How to control your #drone with 20 lines of code! (21/N)

#Coding4Fun – How to control your #drone with 20 lines of code! (20/N)

Hi ! We already have the drone camera feed ready to process, so let's do some Image Segmentation today. As usual, let's start with the formal definition of Image Segmentation In digital image processing and computer vision, image segmentation is the process of partitioning a digital image into multiple segments (sets of pixels, also known … Continue reading #Coding4Fun – How to control your #drone with 20 lines of code! (20/N)

#Coding4Fun – How to control your #drone with 20 lines of code! (19/N)

Hi ! Today I face another challenge: I needed to overlay an image on top of another. Something like this. Lucky for me, and as usual, OpenCV allow us to do this with a few lines of code. Let's take a look. Line 8. Define a custom size for all the images: background image and … Continue reading #Coding4Fun – How to control your #drone with 20 lines of code! (19/N)

#Coding4Fun – How to control your #drone with 20 lines of code! (18/N)

Hi ! Today I'll step back a couple of posts, and add 2 simple lines to allow me to save a video file from the Drone camera. This is a request, and it's makes a lot of sense to have recorded a file with the drone camera. The video will later contains detected objects and … Continue reading #Coding4Fun – How to control your #drone with 20 lines of code! (18/N)

#Coding4Fun – How to control your #drone with 20 lines of code! (17/N)

Hi ! Once we have the a custom vision trained model instance, we can use it to recognize objects from the drone camera feed. Read my previous posts for descriptions on these. Another interesting scenario, is to save local files for every detected object. In the following code, I'll save 2 different files for every … Continue reading #Coding4Fun – How to control your #drone with 20 lines of code! (17/N)

#Coding4Fun – How to control your #drone with 20 lines of code! (16/N)

Hi ! In my previous post, I shared an example where I analyzed the camera feed using a Image Recognition model created using Custom Vision. Today I'll expand the sample, and show in real time the detected MVPs logos with a frame in the drone camera feed. Let's take a look at the demo working … Continue reading #Coding4Fun – How to control your #drone with 20 lines of code! (16/N)

#Coding4Fun – How to control your #drone with 20 lines of code! (15/N)

Hi ! Let's use Custom Vision to analyze the images from our drone camera. In this scenario, I created a custom model to recognize MVP awards from my MVP wall. I know, that's bragging, but I like it. Disclaimer: There are plenty of documentation and tutorials about Custom Vision. I won't go deep on the … Continue reading #Coding4Fun – How to control your #drone with 20 lines of code! (15/N)

#Coding4Fun – How to control your #drone with 20 lines of code! (12/N)

Hi! Today code objective is very simple, based on a request I received from internet: The drone is flying very happy, but if the camera detects a face, the drone will flip out ! Let's take a look at the program working: This one is very similar to the previous one. I also realized that … Continue reading #Coding4Fun – How to control your #drone with 20 lines of code! (12/N)

#Coding4Fun – How to control your #drone with 20 lines of code! (11/N)

Hi! Today code objective is very simple: The drone is flying very happy, but if the camera detects a banana, the drone must land ! Let's take a look at the program working: And a couple of notes regarding the app Still use Haar Cascades for object detection. I found an article with a Xml … Continue reading #Coding4Fun – How to control your #drone with 20 lines of code! (11/N)

#Coding4Fun – How to control your #drone with 20 lines of code! (10/N)

Hi! Back to some drone posts! I was kind of busy during the last weeks and now I can get back to write about the drone. OK, in the last posts I described how to connect and work with the drone camera feed using OpenCV. Now with 2 extra lines of code we can also … Continue reading #Coding4Fun – How to control your #drone with 20 lines of code! (10/N)