VisioForge

Last updated: November 2026

Accord.NET Alternative: Migration Guide to VisioForge .Net SDK

Replace archived Accord.NET with modern .NET 6-10 alternatives

Accord.NET is an open-source .NET library for video capture, computer vision and machine learning that is archived on GitHub and no longer maintained; its last release, 3.8.0 from October 2017, ships .NET Framework and .NET Standard 2.0 builds. This guide maps each Accord.NET namespace to a maintained replacement for .NET 6-10. Accord.Video and Accord.Video.DirectShow, which reuse the AForge.Video classes MJPEGStream, ScreenCaptureStream and VideoCaptureDevice, move to VisioForge Video Capture SDK .NET and its VideoCaptureCoreX engine. Accord.Vision and Accord.Imaging move to the computer vision built into VisioForge .Net SDK: Haar cascade and DNN face detector blocks with built-in blur and pixelation, plus a DLib face detector, in Media Blocks SDK, and a HOG pedestrian detector that plugs into VideoCaptureCoreX. Additionally, standalone OpenCvSharp replaces Accord.Imaging filters used outside a video pipeline. Accord.MachineLearning and Accord.Neuro move to ML.NET or ONNX Runtime. For example, a webcam app that detects faces can replace both Accord.Video and Accord.Vision with one Media Blocks SDK pipeline that captures the camera and runs the detector.

From €250/year · Lifetime from €900

Why Replace Accord.NET?

Accord.NET should be replaced because the project is archived on GitHub and receives no bug fixes or security patches, so any flaw in its image and video processing code stays unpatched in every application that ships it. Accord.NET incorporated the AForge.NET source code in 2015, so it also inherits the AForge.Video capture code: Accord.Video.DirectShow is DirectShow-based and runs only on Windows. Its last release, 3.8.0, ships .NET Standard 2.0 builds of the core packages, so much of the library still loads on .NET 6-10. Additionally, its machine learning code pre-dates ML.NET and ONNX Runtime. For example, an Accord.Video webcam app moved to VideoCaptureCoreX can run the same capture code on Windows, macOS and Linux.

RiskImpact
Project archivedNo bug fixes, security patches, or updates
Frozen at 3.8.0 (2017)No fixes since 3.8.0 (2017); its .NET Standard 2.0 builds load on .NET 6-10, but DirectShow capture stays Windows-only
Outdated MLPre-dates ML.NET, TensorFlow.NET, ONNX Runtime
AForge video codeSame abandoned AForge.Video internals for video capture
Windows-onlyDirectShow-based device capture, no webcam capture on macOS or Linux
SecurityUnpatched vulnerabilities in image/video processing

Migration Strategy

Accord.NET covered three domains. Each migrates to a different modern stack:

Accord.NET DomainModern Replacement
Video capture (Accord.Video)VisioForge Video Capture SDK .Net
Computer vision (Accord.Vision, Accord.Imaging)VisioForge .Net SDK (built-in OpenCV / DLib detectors) or standalone OpenCvSharp
Machine learning (Accord.MachineLearning, Accord.Neuro)ML.NET or ONNX Runtime

Video Capture Migration: Accord.Video → VisioForge

Accord.Video is essentially AForge.Video with minor additions. If you use `VideoCaptureDevice`, `MJPEGStream`, or `ScreenCaptureStream` from Accord.NET, replace them with the VisioForge Video Capture SDK for modern C# webcam capture, RTSP streaming, and screen recording on .NET 6-10.

Class Mapping

Accord.Video ClassVisioForge Replacement
`VideoCaptureDevice``VideoCaptureCoreX` + `VideoCaptureDeviceSourceSettings`
`MJPEGStream``VideoCaptureCoreX` + `RTSPSourceSettings`
`ScreenCaptureStream``VideoCaptureCoreX` + `ScreenCaptureSourceSettings`
`FileVideoSource``MediaPlayerCoreX` or `VideoEditCoreX`
`NewFrameEventArgs``OnVideoFrameBuffer` event

C# Video Capture Example

Accord.NET — webcam capture (before)

C#
var videoDevices = new FilterInfoCollection(FilterCategory.VideoInputDevice);
var videoSource = new VideoCaptureDevice(videoDevices[0].MonikerString);
videoSource.NewFrame += (s, e) =>
{
    pictureBox.Image = (Bitmap)e.Frame.Clone();
};
videoSource.Start();

VisioForge — webcam capture (after)

C#
var capture = new VideoCaptureCoreX(videoView);
var devices = await DeviceEnumerator.Shared.VideoSourcesAsync();
capture.Video_Source = new VideoCaptureDeviceSourceSettings(devices[0]);
capture.Outputs_Add(new MP4Output("recording.mp4"), true);
await capture.StartAsync();

Computer Vision Migration: Accord.Vision → VisioForge / OpenCvSharp

VisioForge .Net SDK includes built-in computer vision blocks powered by OpenCV and DLib. These integrate directly into VisioForge media pipelines — no manual frame conversion or external libraries needed. For standalone image processing outside a video pipeline, OpenCvSharp can be used directly.

Class Mapping

Accord.Vision FeatureVisioForge Built-inStandalone OpenCvSharp
`HaarObjectDetector` (face detection)`CascadeFaceDetectorBlock` — Haar cascade with eye/nose/mouth detection, face blur/pixelate`CascadeClassifier`
`HaarObjectDetector` (face detection, DNN)`DNNFaceDetectorBlock` — Caffe SSD model, confidence filtering, GPU accelerationDNN module
`HaarObjectDetector` (face detection, DLib)`FaceDetectorBlock` (CVD) — DLib HOG+SVM frontal face detector—
`MotionDetector`ObjectDetector (VisioForge.Core.CV) — MOG2 background subtraction (history: 500 frames, variance threshold: 40)`BackgroundSubtractorMOG2`
`BlobCounter`CarCounter (VisioForge.Core.CV) — blob tracking, contour detection, vehicle counting across a tracking line`Cv2.FindContours()` + `Cv2.ConnectedComponents()`
`HistogramsOfOrientedGradients` (HOG)`PedestrianDetector` — HOG+SVM people detection`HOGDescriptor`
`CannyEdgeDetector``CameraCoveredDetector` — Canny-based lens obstruction detection`Cv2.Canny()`
`SpeededUpRobustFeatures` (SURF)—`SIFT.Create()` (SURF patented, use SIFT or ORB)
`HoughLineTransformation`—`Cv2.HoughLinesP()`
Template matching—`Cv2.MatchTemplate()`

Built-in Privacy Features

VisioForge detectors include built-in privacy processing — no extra code needed:

  • ✓Face blur — Gaussian blur applied to detected face regions
  • ✓Face pixelation — block pixelation of face regions
  • ✓Region caching — smooth results across frames (configurable cache size)

C# Face Detection Example

Accord.NET — face detection (before)

C#
var detector = new HaarObjectDetector(
    new HaarCascade(HaarCascade.FaceHaarCascadePath));
detector.MinSize = new Size(30, 30);
Rectangle[] faces = detector.ProcessFrame(bitmap);

VisioForge — Haar cascade face detection (after)

C#
var settings = new CascadeFaceDetectorSettings
{
    DetectFrontalFace = true,
    DetectProfileFace = true,
    DetectEyes = true,
    DetectNose = true,
    DetectMouth = true,
    MinFaceSize = new Size(30, 30),
    ScaleFactor = 1.1f,
    DrawEnabled = true,
    Blur = false,    // set true for privacy blur
    Pixelate = false // set true for privacy pixelation
};
var detector = new CascadeFaceDetectorBlock(settings);

VisioForge — DNN face detector

C#
var settings = new DNNFaceDetectorSettings
{
    Confidence = 0.25f,
    DrawEnabled = true,
    Blur = true  // built-in privacy blur
};
var detector = new DNNFaceDetectorBlock(settings);

VisioForge — DLib face detector

C#
var settings = new FaceDetectorSettings
{
    DrawEnabled = true,
    MinFaceSize = new Size(30, 30)
};
var detector = new FaceDetectorBlock(settings);

Standalone OpenCvSharp (alternative)

C#
using var cascade = new CascadeClassifier("haarcascade_frontalface_default.xml");
using var mat = Cv2.ImRead("image.jpg");
using var gray = new Mat();
Cv2.CvtColor(mat, gray, ColorConversionCodes.BGR2GRAY);
var faces = cascade.DetectMultiScale(gray, 1.1, 3, 0, new Size(30, 30));

C# Pedestrian Detection Example

Accord.NET — HOG pedestrian detection (before)

C#
var hog = new HistogramsOfOrientedGradients();
double[] features = hog.ProcessImage(bitmap);
// Manual SVM classification needed

VisioForge — pedestrian detection (after)

C#
var detector = new PedestrianDetector
{
    DrawEnabled = true,
    VideoScale = 1.0,
    FramesToSkip = 2
};
detector.Init();
detector.OnPedestrianDetected += OnPedestrianDetected;
capture.Video_Processors.Add(detector);
// HOG descriptors + SVM classifier

C# Motion Detection Example

Accord.NET — motion detection (before)

C#
var detector = new MotionDetector(
    new TwoFramesDifferenceDetector(),
    new BlobCountingObjectsProcessing());
double motionLevel = detector.ProcessFrame(bitmap);

VisioForge — object/motion detection (after)

C#
// Motion cells grid: raises MotionDetected as cells change
var settings = new CVMotionCellsSettings
{
    Display = true,
    GridSize = new Size(16, 16)
};
var detector = new CVMotionCellsBlock(settings);
detector.MotionDetected += (s, e) => Console.WriteLine("Motion");

Machine Learning Migration: Accord.MachineLearning → ML.NET

For deep learning inference during video processing, VisioForge provides built-in DNN face detection (`DNNFaceDetectorBlock`), pedestrian detection (`PedestrianDetector`), and motion detection (`CVMotionCellsBlock`). For custom models, integrate ONNX Runtime with frame callbacks.

ML Class Mapping

Accord.ML FeatureML.NET Replacement
`SupportVectorMachine``SdcaMaximumEntropy` or `LinearSvm`
`DecisionTree``FastTree` or `FastForest`
`KMeans``KMeansTrainer`
`NaiveBayes``NaiveBayes` (ML.NET)
`NeuralNetwork` (Accord.Neuro)ONNX Runtime or TensorFlow.NET
`PrincipalComponentAnalysis``PrincipalComponentAnalysis` (ML.NET contrib)

Migration Checklist

  • Audit Accord.NET usage — Identify which domains (video, vision, ML) are used
  • Video capture → Install VisioForge Video Capture SDK NuGet packages
  • Computer vision → Use VisioForge built-in detectors (face, pedestrian, object, car counting) or install OpenCvSharp4 for standalone use
  • Machine learning → Install ML.NET or ONNX Runtime NuGet packages
  • Replace video source classes — See mapping table above
  • Replace vision algorithms — Use VisioForge MediaBlocks or port to OpenCvSharp equivalents
  • Replace ML models — Retrain with ML.NET or export to ONNX
  • Remove Accord NuGet packages — Clean up dependencies
  • Target modern .NET — .NET 6-10
  • Test cross-platform — VisioForge and OpenCvSharp both support Windows, macOS, and Linux

What You Gain After Migration

AspectAccord.NETAfter Migration
StatusArchivedActive development (all replacements)
Framework.NET Framework / .NET Standard 2.0 (2017).NET 6-10
Video captureBasic AForge internalsProfessional SDK with effects, streaming, recording
Computer visionDated algorithmsVisioForge built-in detectors + full OpenCV (2500+ algorithms)
Machine learningBasic algorithmsML.NET + ONNX (production-grade)
Face detectionBasic Haar onlyHaar + DNN (Caffe SSD) with blur/pixelate; DLib HOG detection only
Object detectionBasic blob counterMOG2 background subtraction
Pedestrian detectionManual HOG+SVMBuilt-in one-line pedestrian detector
Deep learningNoneONNX Runtime, TensorFlow.NET
PlatformsWebcam capture: Windows onlyWindows, macOS, Linux, iOS, Android
Audio effectsNone40+ (EQ, reverb, chorus, 3D)
GPU accelerationNoneCUDA (OpenCvSharp), GPU effects (VisioForge)

Frequently Asked Questions

Is Accord.NET still maintained?
No. Accord.NET is archived on GitHub, and its last release, 3.8.0, came out in October 2017. No security patches or bug fixes are planned. The .NET Standard 2.0 builds of its core packages still load on .NET 6+, but they are no longer developed. Use VisioForge .Net SDK as a modern Accord.NET alternative.
Can I use VisioForge for face detection without OpenCvSharp?
Yes. VisioForge .Net SDK includes three built-in face detection engines — Haar cascade (CascadeFaceDetectorBlock), DNN-based (DNNFaceDetectorBlock), and DLib-based (FaceDetectorBlock). No additional OpenCV installation is required.
Does VisioForge support .NET 6, .NET 8, .NET 9, and .NET 10?
Yes. All VisioForge .Net SDK packages support .NET 6 through .NET 10, including cross-platform deployment on Windows, macOS, and Linux.
What is the best Accord.NET alternative for video capture in C#?
VisioForge Video Capture SDK .Net replaces Accord.Video (and the underlying AForge.Video) with a modern async API, support for webcams, IP cameras (RTSP/ONVIF), screen capture, and output to MP4, WebM, and other formats.
Can I migrate from Accord.NET incrementally?
Yes. VisioForge SDKs can coexist with Accord.NET packages during migration. Replace one component at a time — start with video capture, then vision, then ML — and remove Accord.NET NuGet packages as each migration step completes.

From €250/year · Lifetime from €900

Get Started with VisioForge .Net SDK

Related Migration Guides