-
#OpenCV – Access a local camera π€³in F# π
Hi ! NET is in anniversary mode, and in Dev.to blog, someone asked about these samples in F#. It’s been a while since I wrote some F# code, and this is the perfect excuse to start. Today Post: Access a local camera and show the camera frames in an OpenCV window. In following posts we… β read more
-
#OpenCV – Detect and blur faces π using DNN in C#
Hi ! NET is in anniversary mode, so I think it will be a good idea to share some camera samples in C#. For these demos I’m using C# 6 and OpenCVSharp as OpenCV wrapper for .NET. Today post: detect a face using a DNN model and blur the face area. This demo also show… β read more
-
#OpenCV – Detect and blur faces π using haar cascades in C#
Hi ! NET is in anniversary mode, so I think it will be a good idea to share some camera samples in C#. For these demos I’m using C#, NET 6 and OpenCVSharp as OpenCV wrapper for .NET. Today post: detect a face using haar cascades and blur the face area. This demo also show… β 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
-
#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
-
#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
-
#dotnet β Age and Gender estimation from the π¦ camera feed using #OpenCV and #net5
Hi ! Face detected, so next step is to use some prebuild models to perform additional actions: like estimate the Age of a face, and also the Gender. In order to do this, I downloaded a couple of models from here. Disclaimer: these models are just sample models, do not use them in production. These… β read more
-
#dotnet β Detecting Faces, DNN vs Haar Cascades from the π¦ camera feed using #OpenCV and #net5
Hi ! In one session around computer vision, someone ask the question about which approach is better Haar Cascades or DNN? And the answer can be show using the video below As you can see Haar Cascades works great for faces looking directly to the camera, with good lights and in optimal conditions. However, once… β read more
-
#dotnet β Detecting Faces using DNN from the π¦ camera feed in a WinForm using #OpenCV and #net5
Hi ! Let’s do some face detection using a DNN model (See references). As yesterday, I won’t write about details, there are almost 20 years of online documentation available. And, IMHO opinion code is much more useful that long writing, so let’s go there. 1st load the Caffe model and the config file. And, once… β read more
-
#dotnet β Detecting Faces using Cascades from the π¦ camera feed in a WinForm using #OpenCV and #net5
Hi ! Let’s do some face detection using one of the most popular methods: Haar Casacades (See references). I won’t write about Cascades, there are almost 20 years of online documentation available. And, IMHO opinion code is much more useful that long writing, so let’s go there. 1st load the cascade definition file. And, once… β read more
-
#Coding4Fun β How to control your #drone with 20 lines of code! (21/N)
Hi ! In my post series I already wrote about how to detect faces. We can do this with a camera and OpenCV. However, a drone can also be moved on command, so let’s write some lines to detect a face, and calculate the orientation and distance of the detected face from the center camera… β read more
-
#Coding4Fun β How to control your #drone with 20 lines of code! (12/N)
Hi! Today code objective is very simple, based on a request I received from internet: The drone is flying very happy, but if the camera detects a face, the drone will flip out ! Let’s take a look at the program working: This one is very similar to the previous one. I also realized that… β read more
-
#Coding4Fun β How to control your #drone with 20 lines of code! (10/N)
Hi! Back to some drone posts! I was kind of busy during the last weeks and now I can get back to write about the drone. OK, in the last posts I described how to connect and work with the drone camera feed using OpenCV. Now with 2 extra lines of code we can also… β read more
-
#RaspberryPi – Performance differences in #FaceRecognition using #OpenVino (code with @code!)
Hi ! I’ve been looking to use the amazing Intel Neural Stick 2 for a while, and one of the 1st ideas that I have was to check how fast my Raspberry Pi 4 can run using this device. The Intel team released a nice step by step process installation for Raspberry Pi. And it… β read more
-
#VSCode β Letβs do some #FaceRecognition with 20 lines in #Python (5/N)
Hi! And after yesterday’s post I realize that the code is working, but there is room for performance improvement. So, I went back to my 1st sample, the one for face detection and I added some code to get some times for Frames per Second (FPS). In my initial code, the app was working processing… β read more
-
#VSCode β Letβs do some #FaceRecognition with 20 lines in #Python (4/N)
Hi! Quick post today. I’ll pickup yesterday demo, showing the facial features and adding Face Recognition on top of that. In other words, we’ll move from this To this With a couple of extra lines for face recognition There is some room for performance improvement, so I’ll focus on this in next posts. The complete… β read more
-
#VSCode β Letβs do some #FaceRecognition with 20 lines in #Python (3/N)
Hi! In my previous posts I explained how to detect faces and perform face recognition in python. Today I’ll explore another feature in the face_recognition package: Find Facial Features. The live camera output will be something like this: Note: Special thanks to my daughter who is always OK to help me with this. The main… β read more
-
#VSCode β Letβs do some #FaceRecognition with 20 lines in #Python (2/N)
Hi! Yesterday I explained how to write a couple of lines in Python to perform live face detection in a webcam feed [Post]. Check the resources section to find more about the tools I’m using. Today, I’ll add some more code to perform face recognition. And as usual, I’ll work with my kids to test… β read more