Table of Contents

OpenCvSharp Documentation

These guides explain how to select, install, and use OpenCvSharp. They complement the API reference, which is generated from the OpenCvSharp source code and XML documentation comments.

New users

Start with these pages in order:

  1. Choose a version and package.
  2. Install OpenCvSharp.
  3. Build your first application.
  4. Learn the fundamentals of Mat.
  5. Learn how to manage native resources.
  6. Understand array proxies and in-place processing, then learn how to control copies and native memory.

Already familiar with OpenCV C++ or OpenCV-Python? Start with the API comparison and translation guide.

OpenCvSharp and .NET guides

OpenCV examples

These examples demonstrate OpenCV features through their OpenCvSharp APIs. Use the official OpenCV references linked from each page for algorithm theory and parameter definitions.

Existing applications

OpenCvSharp5 is recommended for new applications targeting .NET 8 or later. Applications that use OpenCvSharp4 can follow the OpenCvSharp4 to OpenCvSharp5 migration guide.

Get help

Start with Common Errors and Diagnostics when an operation fails or produces unexpected output. Check Native Library Loading when an application builds successfully but cannot load OpenCvSharpExtern at run time. For problems not covered here, search or open an issue in the OpenCvSharp issue tracker.