-
#Python – Update all Python Packages using pip with #PowerShell
Hi ! Here is a small script that I always go back to search in my notes. I found this on internet sometime ago, and is the easiest way to update all packages in a specific environment using pip and PowerShell: Depending on your environment, it may take some time. The output is cool, your β read more
-
#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 β read more
-
#Windows10- #WindowsTerminal and Anaconda, bonus: start an Anaconda Virtual Environment
Hi ! Windows Terminal (WT) is one of the coolest tools I’ve using in the last couple of years. I’m not an expert, and not even a fan of CLIs, however I assume working with WT is super cool. Bonus: If you speak Spanish, I shared my own thoughts about this with Juan and Eduard β read more
-
#Python – Easy way to install #OpenCV and #TensorFlow with Anaconda
Hi ! After sharing a couple of sessions using the Drone and working with the drone camera, a couple of people contacted me with issues while they try to install OpenCV and/or TensorFlow, to be used with Python. There are plenty of tutorials about this, so I will share a very easy one. 1st step β read more
-
#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 β read more
-
#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 β read more
-
#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 β read more
-
#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 β read more
-
#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 β read more
-
#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 β read more
-
#VSCode β Letβs do some #FaceRecognition with 20 lines in #Python (7/N)
Hi! I’m writing a series of posts about how to control a drone with Python and 20 lines of code, and once I reach to the point to read the camera feed, I’ve added a face detection sample. However this time I didn’t use the face_recognition python package I’ve used in this series, I performed β read more
-
#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 β read more
-
#Coding4Fun β How to control your #drone with 20 lines of code! (9/N)
Hi! Let’s take some Frames Per Second measurements on the UDP and OpenCV connection. It seems that working with simple movements, the values moves between 30 and 60 FPS. Just added a couple of lines in the main While, to calculate the FPS. As a final note, just need to mention that I make some β read more
-
#Coding4Fun β How to control your #drone with 20 lines of code! (8/N)
Hi! Now that I started to understand how UDP works, I also did my research to find which are the best options to access an UDP video feed. Lucky for me, there are plenty of resources about doing this task using my old friend OpenCV. Most of the OpenCV documentation is written in C++. However β read more
-
#Coding4Fun β How to control your #drone with 20 lines of code! (7/N)
Hi! No code today. Mostly because I spend a decent amount of time trying to understand how the DJI Trello camera feed works. In order to access the camera feed remotely we need to perform 2 steps. First we need to send the command “command” to the drone, and then the command “streamon” to enable β read more
-
#Coding4Fun β How to control your #drone with 20 lines of code! (6/N)
Hi! Today is code time also! And a continuation from my previous sample. Yesterday I show how to read a static value: the battery. And, when you work with a device like a drone there are other important values to analyze in order to send commands to the drone. Like altitude, position, time of flight β read more
-
#Coding4Fun β How to control your #drone with 20 lines of code! (5/N)
Hi! Today is code time! In my previous post I share some code to send commands to the drone. Today I’ll show how to read the information from the drone. Before I start, someone asked if my kids are having fun with the drone. A image will be enough to answer this. Reading drone information β read more
-
#Coding4Fun β How to control your #drone with 20 lines of code! (3/N)
Hi! Today I’ll write the equivalent of a Hello World in the drone ecosystem. This is a very complex app which: take off the drone wait a couple of seconds lands the drone I’ve followed the Python code sample from the SDK and the final code is very complex (see below). And it deserves some β read more
-
#Coding4Fun β How to control your #drone with 20 lines of code! (2/N)
Hi! I my previous posts I shared some links about the DJI Tello drone. One of them is the SDK 1.3.0.0. In this document we can find the main commands and descriptions of the specifics commands to use to communicate with the drone. The document also links a Python sample file with the following code: β read more