-
#Python π – Easy way to install #OpenCV and #TensorFlow in a Virtual Environment in Anaconda . Yes, for drone π fun !
Hi ! I wrote about this before, however, I never shared the complete set of steps. Here they are. Install and Update Anaconda After installing Anaconda, it’s time to update. We need to start Anaconda PowerShell with Administrator privileges. And then run these commands. That was easy. Create a new Virtual Environment Virtual Environments are β read more
-
#Event – Video on how to create a #AzureIoT Central App in 10 min to display drone π telemetry
Hi ! Yesterday I had the pleasure to talk about how to create a sdk to control a DJI Tello drone with my friends from Azure AI Latam. And the 2nd part of the session was focused on how to use Azure IoT Central to process and display the drone telemetry information. So you can β 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 π – #pyjokes, jokes as a service
Hi ! I’m sure that there is an business scenario where you need to query a database, get a record and show the record value in your app.I only hope that your database is a JOKE DATABASE, because then you can use pyjokes. One line jokes for programmers (jokes as a service) And super easy β read more
-
#Event – “Scaling a POC to an Enterprise using Azure Custom Vision” at the Azure Sydney User Group. Session Resources
Hi ! I had a great time early in the day with some friend from Australia. As usual, time for slides and code: Slides Code https://github.com/elbruno/events/tree/main/20210421%20Sydney%20CV My Session – Video Coming soon Resources Kaggle, Distracter Driver challenge Azure Custom Vision Azure IoT Central β 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
-
#Event – “Letβs code a drone to follow faces syncing everything with Azure IoT” at the Codegen 2021, Verona, Italy. Session Resources
Hi ! I had a great time early in the day with some friend from Italy. As usual, time for slides and code: Slides Code https://github.com/elbruno/events/tree/main/2021%2002%2013%20CodeGen%20Verona%20Italy%20Drone%20Azure%20IoT My Session – Video All Sessions – Videos All +40 sessions here http://codegen2021.azurewebsites.net/videos Resources DJI Tello Drone, https://www.amazon.com/Tello-CP-PT-00000252-01-Quadcopter-Drone/dp/B07BDHJJTH Ryze Tello SDK, https://www.ryzerobotics.com/tello Viola Jones, Object Detection Framework, https://en.wikipedia.org/wiki/Viola%E2%80%93Jones_object_detection_framework Cognitive β 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
-
#OpenCV – Open a video file π₯ and save each frame as a PNG πΌ file to a folder π#Python
Hi ! 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 will be used to train a Machine Learning model. There are tools that can do this, however it’s a nice moment to do some OpenCV β read more
-
#Event – Resources used during the session “Hack a drone, hack the camera and use AI” at the Global AI Tour, Lahore Pakistan, 2020
Hi ! I had a great time early in the day with my Microsoft Student Partners from Lahore Pakistan, for the Global AI Tour. As usual, time for slides and code: Slides Code https://github.com/elbruno/events/tree/main/2020%2011%2030%20Global%20AI%20Tour%20Pakistan Resources DJI Tello Drone, https://www.amazon.com/Tello-CP-PT-00000252-01-Quadcopter-Drone/dp/B07BDHJJTH Ryze Tello SDK, https://www.ryzerobotics.com/telloΒ Β Viola Jones, Object Detection Framework, https://en.wikipedia.org/wiki/Viola%E2%80%93Jones_object_detection_frameworkΒ Β Cognitive Services Custom Vision, https://customvision.ai β read more
-
#Python – Convert an #OpenCV frame to PIL image and viceversa
Hi ! It’s amazing how I can code and have fun for hours, and them suddenly spent 2 hours trying to manually do something, that it’s already resolved in all internet. Today’s challenge: Convert an OpenCV frame to PIL image And, why ? very simple, OpenCV follows the BGR convention and PIL follows RBG convention. β read more
-
#YoloV3 – Rapid Object detection with 5 lines of code ( @code and #Python for the win! )
Hi ! Sometime ago, I wrote a simple Python class a wrapper for YoloV3. This allows me to write 5 lines of code to analyze an image. Once I use this class, I only press F5 in Visual Studio Code and it’s magic: A sample usage will be similar to this one. The only required β read more
-
#Coding4Fun – Sorting Arrays in #JavaScript, #Python and #CSharp … choose your own adventure
Hi ! Not my usual set of posts, however this keep me thinking a lot. It all started with this tweet; an usual joke about JavaScript, and how it works with types. I noticed that some responses focused on the βyou need to know how the language worksβ before posting this. And it is correct, β read more
-
#Python – Creating GUIs with #PySimpleGUI. 2 webcams view with 50 lines of code
Hi ! Working with Computer Vision is super fun. And there are some scenarios where display the step by step of the processing of an image is the best way to present this. In most of my scenarios I use OpenCV, however for a more detailed presentation I needed to search and learn a GUI β read more
-
#Python – #FastAPI Webserver sharing information from values in a different thread
Hi ! After my yesterday post using Flask, I was sure that a FastAPI version will be needed, so here it goes: I have a common scenario which involves: A sensor collecting information A web-server publishing the sensor information Read my previous posts to understand why I think this is the simple way to solve β read more
-
#Python – Flask Webserver sharing information from values in a different thread
Hi ! I have a common scenario which involves: A sensor collecting information A web-server publishing the sensor information This is simple, however the sensor does not support constants requests, and it may return a “too many requests” response when called directly. The idea to get the sensor information directly in the web-request was not β read more