-
#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
-
#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] β read more
-
#Net5 – C#9 logical operators “is” and “is not” are super cool πππ
Hi ! In the line of good features, that are also nice to read, the new use of is and is not is a huge improvement in readability. As usual, old school validation for objects and types: And now, we can type the validation with some style: I like this new one π, now null β read more
-
#Net5 – C#9 target-typed new expressions are super cool πππ
Hi ! I know I’m late to the party here, however I’m still enjoying some of the new C# 9 features a lot. I just realized that now, I can create objects in a different way, which is still super clear to read. Disclaimer: some of the new features are cool, however my gut told β read more
-
#Podcast – NTN 76 – Feliz AΓ±o Nuevo π con todas las novedades de #Net5 !
Buenas! Feliz AΓ±o Nuevo πππ, empezamos el aΓ±o dando un repaso a todas las novedades de Net 5 con el gran amigo Miguel Teheran. Comentamos un poco la historia de Net y como Net 5 es el primer paso para la unificaciΓ³n de todos los .Net Frameworks que conocemos. TambiΓ©n hablamos un poco de los β read more
-
#Net5 – C#9 “records”, “with” and “this”, a super cool mix πππ
Hi ! Our next podcast episode is focused on .Net 5. We had an amazing chat around a lot of features, and of course, C# 9 was part of the conversation. I got this amazing post [C# 9.0: Records β Work With Immutable Data Classes] from Tomas Huber, in my reading notes and working with β read more
-
#Net5 – Migrating a fully functional Windows Form app to Net 5 in 10 minutes !
Hi ! TbVolScroll is a super cool project, take a look π Simple utility to enable volume control when your mouse cursor is positioned above the taskbar. Hold the left ALT key to enable precise volume control (decrease/increase volume by 1%). Standard volume step is 5%. The volume bar will follow the cursor when it’s β read more
-
#OpenCV – Open a video file π₯ and save each frame as a PNG πΌ file to a folder π#Net5
Hi ! A couple of days ago I wrote this post, and made the sample with Python. So today, same scenario, however with C# 9 and Net5. 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 β read more
-
#dotnet β Display a video fileπ₯ in Winform using #OpenCV and #net5
Hi ! Super short post today, however is the base of the next series of posts around OpenCV and .Net 5. I already wrote on how to work with a webcam, and now it’s time to share a simple piece of code to show How to open and process a video frame by frame I’ve β read more
-
#dotnet β Packaging my WinForm #OpenCV and #net5 app in a one-self contained file (Thanks @shanselman!)
Hi ! A couple of days ago, Scott Hanselman posted about a super cool feature (see references): … you can make a single EXE that will run on any Windows Machine in two commands How to make a WinForms app with .NET 5 entirely from the command line and publish as one self-contained file and β read more
-
#dotnet β Pose detection from the π¦ camera feed using #OpenCV and #net5. Home-made #kinect!
Hi ! LearnOpenCV is an amazing resource to learn about OpenCV. And, it has lot of scenarios of real life problem solved with OpenCV. Most of the samples are in C++ or Python, so I decided to pick one related to pose estimation, and using .Net 5 in a Winforms App, build something like this: β read more
-
#dotnet β GoogleNet detection from the π¦ camera feed using #OpenCV and #net5. Bonus: C++ to C# time!
Hi ! So I was browsing in the OpenCV documentation and I find a nice sample that uses opencv_dnn module for image classification by using GoogLeNet trained network from Caffe model zoo. So I give it a try, and get a decent .Net 5 Winforms App running at ~30 FPS. The model was trained with β 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
-
#dotnet β Display the π¦ camera feed in a WinForm using #OpenCV and #net5
Hi ! Back on the Windows Forms days, cameras were tricky. We didn’t have a lot of libraries to work, and they usually require some extra work to handle unexpected errors. With Net 5 and OpenCVSharp, we can create a simple WebCam viewer like this one. Let’s start with a [Take a Photo] Windows Form β read more
-
#dotnet β detecting corners on the π¦ camera feed with FAST algorithm, #OpenCV and #net5
Hi ! Today is a quick one: FAST corner detection algorithm. FAST (Features from Accelerated Segment Test) algorithm was proposed by Edward Rosten and Tom Drummond in their paper “Machine learning for high-speed corner detection” in 2006 (Later revised it in 2010). A basic summary of the algorithm is presented below. Refer original paper for β read more
-
#dotnet β detecting edges on the π¦ camera feed with Canny algorithm, #OpenCV and #net5
Hi ! The Canny edge detection is one the most popular algorithms, and it’s also +30 years old. The Canny edge detector is an edge detection operator that uses a multi-stage algorithm to detect a wide range of edges in images. It was developed by John F. Canny in 1986. OpenCV includes the Canny algorithm β read more
-
#dotnet β less than 20 lines to display a π¦ camera feed with #OpenCV and #net5
Hi ! This post is the start of a series of posts around OpenCV and DotNet Core .Net 5. Most of my samples are going to be camera based, so I’ll start with the +20 13 lines needed to access a local camera and show the frames in a window. And the code using Net β read more