-
#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
-
#RaspberryPi – Performance differences in #FaceRecognition using #OpenVino (code with @code!)
Hi ! I’ve been looking to use the amazing Intel Neural Stick 2 for a while, and one of the 1st ideas that I have was to check how fast my Raspberry Pi 4 can run using this device. The Intel team released a nice step by step process installation for Raspberry Pi. And it… β read more
-
#CognitiveServices β Easy lines to convert CSV to JSON to be used on the #AnomalyDetector service
Hi! After the event βBuilding an Anomaly Detector System with a few or no lines of codeβ at MsftReactor, some people asked for the 2 lines that I used to convert a CSV file to JSON, to be used with Cognitive Services Anomaly Detector, so here they are. Important: you need Newtonsoft.Json to build the… β read more
-
#CustomVision β Sort and manage Json response estimation in a single line of code
Hi! On my Custom Vision samples, I usually send an image to a CustomVision.ai HTTP Endpoint, and I process the Json result. The results are very easy to understand, however, I created a C# converter class to help with the Custom Vision results. To create this class I navigate: http://json2csharp.com/, and paste a sample result… β read more
-
#Azure β Sending custom Telemetry and Event information from a #RaspberryPi device to #AzureIoT Central
Hi! Azure IoT Central is one of the amazing services we can use on Azure. I was wondering how easy is to use a Raspberry Pi using Raspbian and Azure IoT and here is my experience. Letβs assume we had a device up to date using Raspbian, our next step will be to create an… β read more
-
#Python – Let’s use a #FaceRecognition demo app for a performance comparison between #RaspberryPi3 and #RaspberryPi4
Hi! I started to do some tests with the new Raspberry Pi 4 and the results are amazing. Iβm not a performance expert, so I decided to pick up some of the demos / apps Iβve creating for the Raspberry Pi and run them in both models: Raspberry Pi 3 B+ and Raspberry Pi 4.… β read more
-
#Python βDetecting #Hololens in realtime in webcam feed using #ImageAI and #OpenCV (thanks to @OlafenwaMoses)
Hi! Letβs start with a very quick intro: During the past months, Iβve been playing around with several Image Analysis tools. And ImageAI (see references) is one that deserves a full series of posts. Please take a look at the product and the source code in GitHub, and also please thank the one behind this:… β read more
-
#VSCode β Letβs do some #FaceRecognition with 20 lines in #Python (5/N)
Hi! And after yesterday’s post I realize that the code is working, but there is room for performance improvement. So, I went back to my 1st sample, the one for face detection and I added some code to get some times for Frames per Second (FPS). In my initial code, the app was working processing… β read more
-
#VSCode β Letβs do some #FaceRecognition with 20 lines in #Python (4/N)
Hi! Quick post today. I’ll pickup yesterday demo, showing the facial features and adding Face Recognition on top of that. In other words, we’ll move from this To this With a couple of extra lines for face recognition There is some room for performance improvement, so I’ll focus on this in next posts. The complete… β read more
-
#VSCode β Letβs do some #FaceRecognition with 20 lines in #Python (3/N)
Hi! In my previous posts I explained how to detect faces and perform face recognition in python. Today I’ll explore another feature in the face_recognition package: Find Facial Features. The live camera output will be something like this: Note: Special thanks to my daughter who is always OK to help me with this. The main… β read more
-
#VSCode β Letβs do some #FaceRecognition with 20 lines in #Python (2/N)
Hi! Yesterday I explained how to write a couple of lines in Python to perform live face detection in a webcam feed [Post]. Check the resources section to find more about the tools I’m using. Today, I’ll add some more code to perform face recognition. And as usual, I’ll work with my kids to test… β read more
-
#VSCode – Let’s do some #FaceRecognition with 20 lines in #Python
Hi ! I’ve write a lot about how to use AI models in C# to perform tasks like Face recognition, speech analysis, and more. During the Chicago CodeCamp, someone ask me about how to perform Face Recognition in Python. I didn’t have any working sample to showcase this, and I failed in try to write… β read more
-
#MLNET – How to use the AutoML API in a Console App
Hi ! In my last posts I was testing AutoML using the Model Builder inside Visual Studio and also the CLI commands. There is also an API to use this in a .Net app, and the usage is very simple. It all start, of course, adding the [Microsoft.ML.AutoML] nuget package I read the documentation in… β read more