#Python 🐍 – concatenate video and add blur effect 🎦 using moviepy and scikit-image

Hi ! Today I'll share another cool sample using moviepy, and I'll also use scikit-image to add some extra effects. This one is again based on the cat videos, and perform this steps: Using the cat video, open 3 video objects with different segments: 1-2 seconds, 2-4 seconds, 4-6 secondsResize each video to be smallerApply … Continue reading #Python 🐍 – concatenate video and add blur effect 🎦 using moviepy and scikit-image

#Python 🐍 – change video speed in a more complex scenario 🎦 using moviepy

Hi ! Today I'll share another cool sample using moviepy. This one is easy and based on previous posts: Open video and resize to 460Open video, resize to 460 and speed to x4Stack both videosExport to Gif The code is super simple https://gist.github.com/elbruno/6a228086d5840570f68c7eaa4c1a3568 Super, easy. It and the output is a 2MB gif file. Source … Continue reading #Python 🐍 – change video speed in a more complex scenario 🎦 using moviepy

#Python 🐍 – 2 lines to create a gif from a video 🎦 using moviepy

Hi ! Today I'll share another cool sample using moviepy. This one is easy: create a gif from a video file. And in this scenario, I added some extra features Use the Video frames from seconds 1 to 5Resize the output to 50% of the original file The code is super simple https://gist.github.com/elbruno/6acd7aa765cca87642e2ccf047a65720 Super, easy. … Continue reading #Python 🐍 – 2 lines to create a gif from a video 🎦 using moviepy

#Python 🐍 – Let’s stack and edit some videos 🎦 using moviepy

Hi ! Today I'll share another cool Python library: moviepy. And, as usual let's share the code, the best way to explain part of this library capabilities https://gist.github.com/elbruno/b1ecf3f24b211e4fd0c860cf96d2f2b3 Super, easy. It start with 2 cats videos, create 2 new videos with mirroring effects from the source videos, and create a final video with the 4 … Continue reading #Python 🐍 – Let’s stack and edit some videos 🎦 using moviepy

#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 🆒🆒🆒