Skip to content

Posts tagged ‘dotnet’

  • To capture images in my applications, I use the VideoCapture class of the EmguCV library, an OpenCV wrapper for .NET. To choose a specific camera, you need to supply an index value. But getting this number is not straightforward, and as this number can change over time, it might break your application in the future. So, what if we could use the actual name of the camera instead of the index value? In this article I will show how to achieve this.
  • When you have created a machine learning model, you will retrain that model when new data is available. But when I recently added a couple of images to the training set of my own ML.net model, I was faced with the following exception: System.InvalidOperationException: 'The asynchronous operation has not completed.' The application did work for weeks, so what has changed? And more importantly, how to fix this situation?
  • Recently, I was using a YAML file for storing some data for a pet project. To work with this YAML in a .NET application, I use the excellent YamlDotNet library by Antoine Aubry. One of my properties was a URL. Deserializing went fine, but when serializing back to a YAML file, things were not going as intended. In this short article, I will explain how I did fix this.