-
#OpenCV – How to add a watermark to an image πΌοΈ using Python π
Hi ! Super quick post today with a cool scenario to support my TikTok videos in Spanish (I know π): How to add a watermark text to an image using python and opencv Here is the output with an original photo from my office and a watermarked one: Sample code: β read more
-
#AzureML – Sample π Python app using a WebCam to perform Image Analysis from an image classification AzureML HTTP REST Endpoint
Hi ! In my previous post I wrote How to create a custom dataset with images to be used on a Azure Machine Learning Designer project. How to use the custom data set and how to train an image classification model. How to publish the model to be used as a WebService / HTTP REST… β read more
-
#WioTerminal – Open / Close the #DigitalTwin Door πͺ using Wio Terminal buttons and Azure IoT βοΈ + Azure Functions β‘
Hi ! My current goal is simple: Press Wio Terminal button A will open the Azure IoT Door, press B button will close the door. A demo video is available here: I already wrote about how to use the buttons, however, let’s refresh this. Using Wio Terminal Buttons We need to initialize the buttons, usually… β read more
-
#WioTerminal – Display a countdown progress bar π₯ for the next #AzureIoT βοΈ refresh data call
Hi ! In today’s post I’ll share an scenario about: Display a custom progress bar in the Wio Terminal display. The progress bar is a count down until the next request to the Azure Function interacting with Azure Digital Twin. This is mostly working with strings to create a specific String() that represent the Progress… β read more
-
#WioTerminal – Posts to interact with a #DigitalTwin Door πͺ with Azure IoT βοΈ and Azure Functions
Hi ! Here is the current set of posts on the integration between the Azure IoT door πͺand my Wio Terminal. References Download Arduino IDE Wiki Seeed – Historgram Wiki Seeed β loading Images Wiki Seeed β Installing the File System Library Wiki Seed – Wifi Connectivity GitHub – Arduino_JSON Wikipedia – X BitMap β read more
-
#WioTerminal – Display a #DigitalTwin Door πͺ state using XBitmap with #AzureIoT βοΈ.
Hi ! In today’s post I’ll share an scenario about: Display the state of a door (open / closed) using an XBitmap in Wio Terminal. The door state information come from an Azure Function interacting with Azure Digital Twin. In my previous posts I wrote on how to get data from an Azure Function and… β read more
-
#WioTerminal – Parsing JSON data from an #Azure βοΈ Function !
Hi ! In today’s post I’ll share an scenario about: Invoke an Azure Function to get JSON data, and Parse the JSON data Yesterday I wrote on how to invoke an Azure Function and get JSON data for my Digital Twin scenario. The response from the function is similar to this one: There are several… β read more
-
#WioTerminal – Getting JSON data from an #Azure βοΈ Function !
Hi ! In today’s post I’ll share an scenario about: Invoke an Azure Function to get JSON data In my Digital Twin scenario, I got an Azure Function that returns the current state of a Digital Twin door. The response from the function is similar to this one: So, once the Wio Terminal has internet… β read more
-
#WioTerminal – Connecting to Wifi πΆ, display local IP and get ready for Azure βοΈ scenarios !
Hi ! Another fast post to cover a super important scenario: Connect to a Wifi network in the Wio Terminal. The code and implementation are extremely simple for this, and with a couple of lines of code, we can connect and also display the local IP. Source Code As usual, the full code is below… β read more
-
#WioTerminal – Buttons and Charts time πππ
Hi ! One of the amazing libraries we have to work with the Wio Terminal is one to create charts. And with, only 20 lines of code (or maybe more), we can create a simple app like this one with 3 bars, and every time you press one Button in the Wio Terminal, the bar… β read more
-
#WioTerminal – 1st steps π£, developer steps !
Hi ! I’ll keep this as a reference post for 1st steps developing apps for WioTerminal. And I’ll share the necessary steps for a Hello World app using a countdown and my office! Developer Environment: Arduino IDE This one is easy, we can use the Arduino IDE. Bonus lesson learned here. It’s important to uninstall… β read more
-
#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 seconds Resize each video to be… β read more
-
#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 460 Open video, resize to 460 and speed to x4 Stack both videos Export to Gif The code is super simple Super, easy. It and the output is a 2MB gif… β read more
-
#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 5 Resize the output to 50% of the original file The code is super simple Super, easy.… β read more
-
#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 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 videos… β read more
-
#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… β read more
-
#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… β read more
-
#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:… β read more
-
#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 time Do some process, I’ll fake it with random sleep Tag a end date time Calculate the different… β read more
-
#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: This is fine, init only… β read more