Capture.Vision.Maui 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Capture.Vision.Maui --version 1.0.0
NuGet\Install-Package Capture.Vision.Maui -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Capture.Vision.Maui" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Capture.Vision.Maui --version 1.0.0
#r "nuget: Capture.Vision.Maui, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Capture.Vision.Maui as a Cake Addin
#addin nuget:?package=Capture.Vision.Maui&version=1.0.0

// Install Capture.Vision.Maui as a Cake Tool
#tool nuget:?package=Capture.Vision.Maui&version=1.0.0

.NET MAUI Camera View with Dynamsoft Vision SDKs

The project aims to help developers build .NET MAUI apps with a custom camera view and Dynamsoft Vision SDKs, including barcode, MRZ, and document detection.

.NET MAUI Windows QR code scanner

Supported Platforms

  • Android
  • iOS
  • Windows


  • Recognize 1D barcode, QR code, PDF417, DataMatrix, and etc from camera frames

Getting Started

Enable the camera view in MauiProgram.cs:


Apply for a trial license to activate the Dynamsoft Vision SDKs in MainPage.xaml.cs:

using Dynamsoft;

namespace Capture.Vision.Maui.Example
    public partial class MainPage : ContentPage
        public MainPage()

        private async void InitService()
            await Task.Run(() =>

                return Task.CompletedTask;

        async void OnTakeVideoButtonClicked(object sender, EventArgs e)
            await Navigation.PushAsync(new CameraPage());

Create a content page to add the camera view:

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns=""
            <cv:CameraView x:Name="cameraView" HorizontalOptions="FillAndExpand"
            VerticalOptions="FillAndExpand" EnableBarcode="True" 
                                ResultReady="cameraView_ResultReady" FrameReady="cameraView_FrameReady"
            <skia:SKCanvasView x:Name="canvasView" 
                        HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand"
                        PaintSurface="OnCanvasViewPaintSurface" />

If you set EnableBarcode to True, you can get the barcode result in cameraView_ResultReady:

private void cameraView_ResultReady(object sender, ResultReadyEventArgs e)
    if (e.Result != null)
        Result[] results = (Result[])e.Result;
        foreach (Result result in results)

If you only want to get the camera frame and do image processing by yourself, you can set EnableBarcode to False and get the frame in cameraView_FrameReady:

private void cameraView_FrameReady(object sender, FrameReadyEventArgs e)
    // process image

The FrameReadyEventArgs contains the image data and the image format:

public class FrameReadyEventArgs : EventArgs
    public enum PixelFormat
    public FrameReadyEventArgs(byte[] buffer, int width, int height, int stride, PixelFormat pixelFormat)
        Buffer = buffer;
        Width = width;
        Height = height;
        Stride = stride;
        Format = pixelFormat;

    public byte[] Buffer { get; private set; }
    public int Width { get; private set; }
    public int Height { get; private set; }
    public int Stride { get; private set; }
    public PixelFormat Format { get; private set; }

Currently, the frame from Windows and Android is in GRAYSCALE format, and the frame from iOS is in BGRA8888 format.


  • MRZ detection
  • Document detection


Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-android33.0 is compatible.  net7.0-ios was computed.  net7.0-ios16.1 is compatible.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net7.0-windows10.0.19041 is compatible.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.0.0 219 3/6/2024
1.4.0 138 1/24/2024
1.3.0 83 1/23/2024
1.2.1 100 1/17/2024
1.2.0 89 1/17/2024
1.1.0 110 1/5/2024
1.0.0 308 6/19/2023

- Supported 1D and 2D barcode scanning.