-
#OpenCV – Convert camera feed π¦ to Grayscale and resalt Blue π΅ and Red β€οΈ
Hi ! A new twist on these days demos, this time: Open a camera feed Convert each frame to grayscale Use a hue mask to resalt colors, Blue and Red Here is a live sample from my office. Note: I created a mask that identifies the Captain America shield, SpyderGwen poster and Ahsoka frame, but β read more
-
#OpenCV – Replace background with video in camera feed π¦ (Black Adam β‘)
Hi ! A new twist on these days demos, based on a request from an online friend. Let’s remove and replace the background from our camera feed using a video. For this demo, I’m using the “Black Adam β Official Trailer 1“. And the output is kind of funny. Hey, funny scenario, and if you β read more
-
#OpenCV – Background Subtraction in a camera feed π¦ using MOG2
Hi ! Yesterday I wrote a post about how to remove the background from my camera feed. To remove the background, I used a python library “cvzone”. While talking with some friends, someone asked about using some of the out-of-the-box features included in OpenCV, like MOG2 or KNN. So I read a little about them β read more
-
#OpenCV – Remove the background in your camera feed π¦
Hi ! Yesterday I share 10 lines of code to adddress this very simple scenario: Load and image and remove the background. Today I’ll add a few extra lines, and I’ll remove the background from my camera feed. It’s fun to see how the Captain America shield was included in the cropped polygon π And β read more
-
#OpenCV – 10 lines to remove the background in an image πΌοΈ
Hi ! Super quick post today, with a very simple scenario: Load and image and remove the background. To do this, I’ll use OpenCV and cvzone. Here we can see a screenshot of my office, and the removed background sample. As usual, the threshold is the important one to manage the quality. And the sample β read more
-
#Coding4Fun β How to control your #drone β with 20 lines of code! Complete series of posts
Hi ! IΒ΄m back to have some fun with the DJI Tello Drone and Artificial Intelligence, so letΒ΄s share all my posts about programming the drone. And, as usual, an old video with the core parts of this series: β read more
-
#Python π – Webserver App to receive binay content and save this as a file locally
Hi ! The title of the post is enough to describe the next piece of code: Webserver App to receive binay content and save this as a file locally Here it is. And, while we perform some posts to the http endpoint, we can start to see the local files in the same folder of β read more
-
#OpenCV – Access to a camera in a Jupyter Notebook with #Python π
Hi ! Super quick post today, with an answet to a question that we had last week in one of our Reactor Sessions: Can we access to a camera π€³ while I’m coding in a Jupter Notebook? So, the answer is YES. Here is a sample: And as usual, let’s share some code and some β read more
-
#ESP32CAM – Client Python π app to view WebServer photos πΈ
Hi ! Still learning with the ESP32 CAM board. In today’s post the scenario is simple: Create a client Python app to view remote photos from the ESP32 Cam Arduino device This is a super lower quality photo, but hey, still good enough ! This is a super simple Python and OpenCV app. Full code β read more
-
#Python π – how to find where Python is intalled – working with #reTerminal @Seeedstudio and @code
Hi ! Setting up my Seeedstudio reTerminal and Visual Studio Code, I realized that Python was already installed, but I’m not sure where π€. So, in the Visual Studio Code terminal (you can do this in the bash), first I check the version of Python with the command And, hey I got 3.7 ! Now β read more
-
#Drone π – Detect Squirrels πΏοΈ and Space Wolves πΊ from a drone camera using Python π
Hi ! In a couple of hours, I’ll host a session where I show how to control a drone using Python π; and also how to access the drone camera and apply AI on top of the camera feed. Python SWFL – Let’s code a drone to follow faces In example, this is the drone β read more
-
#OpenCV – How to convert to grayscale and show a single color an image πΌοΈ using Python π
Hi ! Super quick post today with a cool scenario to support my TikTok videos in Spanish (I know π): How to convert to grayscale an image and show a single color using python and opencv Here is the output with an original photo from my office and a new image with this effect: Disclaimer: β read more
-
#OpenCV – How to add a Pencil Sketch effect 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 pencil sketch effect to an image using python and opencv Here is the output with an original photo from my office and a new image with the pencil sketch effect: Sample β read more
-
#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
-
#OpenCV – Detect and blur faces π using DNN in Python π
Hi ! Quick post today: detect a face using a pretrained DNN model and blur the face area. Easy to implement, and also easy to read: Code below That’s it, sample using DNN. Next challenge will be to do this in F#. β read more
-
#OpenCV – Detect and blur faces π using haar cascades in Python π
Hi ! Quick post today: detect a face using haar cascades and blur the face area. Easy to implement, and also easy to read: Code below Important: Haar cascades are easy to implement and learn, however, not recommented as a good solution to detect faces. β read more
-
#Python π- Working with Environment Variables and python-dotnenv
Hi ! The Microsoft Cloud Advocates team is great and, hey everyday I learn something new. A couple of days ago we were talking about working with Environment Variables and Virtual Environments. I wrote several times about working with Virtual Envs, like WindowsTerminal and Anaconda, start an Anaconda Virtual Environment How to List and Remove β read more
-
#AzureFunctions β‘- Pip and TLS/SSL error on Debugging with #Python π
Hi! There is something wrong with my current development environment. I have an Azure Function with these dependencies: And I got this error when I press F5 / Run the project in local mode. By default, Azure Functions works with a Python virtual environment. This helps to isolate our current dev environment, and also to β read more
-
#Python π – Export Video Frames as Images from a video file π₯
Hi ! I can’t believe I didn’t write about this before. I usually do this, at least 2 times per month, and hey, now it’s on the blog for my future reference. Simple Scenario: Open a video file and export each frame as an image. Some notes: The sample uses OpenCV. I wrote a lot β read more
-
#RaspberryPi – Listing nearby BLE devices using the onboard #bluetooth sensor
Hi ! I done this at least, 4 different times, and I never wrote it down. So, here it is. The output is similar to this one. You can see that my standing desk is listed here. If you are nearby, you can hack and move my desk up or down ! Important: The output β read more