#Python – Hand Gesture Recognition 🤚🖐️🤙 using mediapipe

Hi ! It's been a while since I shared some code samples, so here we go today with a simple series based on MediaPipe. MediaPipe is a great Machine Learning platform with cross-platform and customizable ML solutions. And with Python support! MediaPipe offers customizable Python solutions as a prebuilt Python package on PyPI, which can … Continue reading #Python – Hand Gesture Recognition 🤚🖐️🤙 using mediapipe

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

Hi ! Final post, so let's recap We have a device template representing a drone, tracking accelerometer, battery and temperature values. We have created a new device to twin our drone in Azure IoT Central. And, copy the connect information: ScopeId, DeviceId and Key. Let's use a "get data from drone demo" and publish this … Continue reading #Coding4Fun – How to control your #drone ✈ with 20 lines of code! (24/N) #AzureIoT

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

Hi ! Now that we have a device template created, we can create a new device in our Azure IoT Central portal and start to send information to Azure IoT. We start by creating a new device based on the previous template and it's time to copy and paste the connection information for this device: … Continue reading #Coding4Fun – How to control your #drone ✈ with 20 lines of code! (23/N) #AzureIoT

#Python – Working with dates 📅, formats, and subtract for time difference. Timedelta type rocks!

Hi ! I'm switching from C#9 to Python to write this down, so I avoid to search and write this from scratch again and again. My scenario includes very simple operations with dates, Tag a start date timeDo some process, I'll fake it with random sleepTag a end date timeCalculate the different between themProcess and … Continue reading #Python – Working with dates 📅, formats, and subtract for time difference. Timedelta type rocks!

#Net5 – C#9 “records” and “deconstruction” super cool feature 🆒🆒🆒

Hi ! I'm still learning about C#9, and there is a lot to learn about records. And, between all this information, I Just learn a super cool feature related to records: deconstruction. Let's start with a simple record definition for a pet. This one includes pet's name and pet's age: public record Pet { public … Continue reading #Net5 – C#9 “records” and “deconstruction” super cool feature 🆒🆒🆒

#Net5 – C#9 “Init-only properties” are super cool 🆒🆒🆒

Hi ! So this one does not fit in the line "readability improvement", however is a nice step in order to write cleaner code. Yes, I know that doesn't make sense, let me try to explain. Let's start with a simple class with 2 properties. Interesting enough the property Age has a new accessor [init] … Continue reading #Net5 – C#9 “Init-only properties” are super cool 🆒🆒🆒

#Net5 – C#9 logical operators “is” and “is not” are super cool 🆒🆒🆒

Hi ! In the line of good features, that are also nice to read, the new use of is and is not is a huge improvement in readability. As usual, old school validation for objects and types: // old school if(!(testObj is MyClass)) {...} And now, we can type the validation with some style: // … Continue reading #Net5 – C#9 logical operators “is” and “is not” are super cool 🆒🆒🆒

#Net5 – C#9 target-typed new expressions are super cool 🆒🆒🆒

Hi ! I know I'm late to the party here, however I'm still enjoying some of the new C# 9 features a lot. I just realized that now, I can create objects in a different way, which is still super clear to read. Disclaimer: some of the new features are cool, however my gut told … Continue reading #Net5 – C#9 target-typed new expressions are super cool 🆒🆒🆒

#Net5 – C#9 “records”, “with” and “this”, a super cool mix 🆒🆒🆒

Hi ! Our next podcast episode is focused on .Net 5. We had an amazing chat around a lot of features, and of course, C# 9 was part of the conversation. I got this amazing post [C# 9.0: Records – Work With Immutable Data Classes] from Tomas Huber, in my reading notes and working with … Continue reading #Net5 – C#9 “records”, “with” and “this”, a super cool mix 🆒🆒🆒

#OpenCV – Open a video file 🎥 and save each frame as a PNG 🖼 file to a folder 📂#Net5

Hi ! A couple of days ago I wrote this post, and made the sample with Python. So today, same scenario, however with C# 9 and Net5. This is a non-usual scenario, however I'm on a point where I need to extract all the frames from a video file. The reason: some of these frames … Continue reading #OpenCV – Open a video file 🎥 and save each frame as a PNG 🖼 file to a folder 📂#Net5