VisioForge

최종 업데이트: 2026년 11월

AForge.NET 대안: VisioForge .Net SDK 마이그레이션 가이드

개발이 중단된 AForge.NET을 현대적인 크로스 플랫폼 .NET SDK로 교체

AForge.NET은 동영상 캡처, 컴퓨터 비전, 이미지 처리를 위한 오픈 소스 C# 프레임워크로, 2013년 7월부터 개발이 중단되었으며 .NET Framework 2.0을 대상으로 합니다. 이 가이드는 AForge.NET의 각 네임스페이스를 .NET 6-10용 VisioForge .Net SDK에 대응시킵니다. AForge.Video 클래스는 Video Capture SDK .NET의 VideoCaptureCoreX로 옮깁니다. VideoCaptureDevice는 VideoCaptureDeviceSourceSettings로, MJPEGStream은 HTTPMJPEGSourceSettings로, ScreenCaptureStream은 Windows, macOS, Linux용 화면 소스로 바뀝니다. AForge.Vision의 모션 감지는 VideoCaptureCoreX의 MotionDetectionExSettings 또는 Media Blocks SDK의 CVMotionCellsBlock으로 옮깁니다. 또한 AForge.NET에는 얼굴 검출도 보행자 검출도 없었지만, VisioForge는 개인정보 보호용 블러를 갖춘 Haar cascade 및 DNN 얼굴 검출기와 HOG 기반 보행자 검출기를 제공합니다. AForge.Imaging 필터의 일부는 Canny 에지 검출, 히스토그램 평활화 같은 VisioForge CV 블록에 대응하고, 나머지는 OpenCvSharp에 대응합니다. 예를 들어 모션 알림 기능이 있는 웹캠 녹화기는 캡처 장치, 모션 검출기, 파일 라이터를 따로 두는 대신 VideoCaptureCoreX 엔진 하나면 됩니다.

연 €250부터 · Lifetime 라이선스 €900부터

왜 AForge.NET을 교체해야 하나요?

AForge.NET을 교체해야 하는 이유는 프레임워크가 2013년 7월부터 방치되어 그 이후로 업데이트, 보안 패치, 버그 수정을 받지 못했기 때문입니다. AForge.NET은 .NET Framework 2.0을 대상으로 하므로 품질이 제각각인 커뮤니티 포크 없이는 .NET 6-10에서 실행되지 않습니다. 동영상 캡처는 Microsoft가 Media Foundation으로 대체한 레거시 Windows API인 DirectShow를 기반으로 하므로, 캡처는 Windows에서만 실행됩니다. 또한 AForge.NET은 H.265, AV1, VP9를 지원하지 않습니다. 예를 들어 .NET Framework 웹캠 앱을 .NET 8로 옮길 때 선택지는 두 가지입니다. 여전히 Windows에서만 실행되는 AForge.Video 커뮤니티 포크를 쓰거나, 하나의 API로 Windows, macOS, Linux, iOS, Android를 지원하는 VideoCaptureCoreX로 옮기는 것입니다.

위험영향
보안 패치 없음비디오/이미지 처리의 취약점이 패치되지 않은 상태로 유지
.NET 6+ 지원 없음현대적인 .NET 기능, AOT 또는 크로스 플랫폼 배포 사용 불가
새로운 코덱 지원 없음H.265, AV1, VP9 또는 현대적인 컨테이너 형식 미지원
커뮤니티 없음포럼은 2012년 4월에 폐쇄, 활성 유지보수자 없음
DirectShow 의존성Media Foundation으로 대체된 레거시 API
Windows 전용macOS, Linux, iOS, Android를 대상으로 할 수 없음

AForge.Video → VisioForge Video Capture SDK .Net

클래스 매핑

AForge.Video 컴포넌트VisioForge 대체
VideoCaptureDeviceVideoCaptureCoreX + VideoCaptureDeviceSourceSettings
MJPEGStreamVideoCaptureCoreX + HTTPMJPEGSourceSettings
JPEGStreamMJPEG 스트림에는 VideoCaptureCoreX + HTTPMJPEGSourceSettings, 스냅샷 URL에 대한 직접적인 대응 항목은 없음
ScreenCaptureStreamVideoCaptureCoreX + ScreenCaptureD3D11SourceSettings (Windows), ScreenCaptureMacOSSourceSettings, ScreenCaptureXDisplaySourceSettings (Linux)
FileVideoSourceMediaPlayerCoreX(재생) 또는 VideoEditCoreX(처리)
AsyncVideoSource내장 — 모든 VisioForge 소스는 기본적으로 비동기
NewFrameEventArgsOnVideoFrameBuffer 이벤트

C# 웹캠 캡처

AForge.NET — 웹캠 캡처 (이전)

C#
// AForge: Manual device enumeration, callback-based, no recording
var videoDevices = new FilterInfoCollection(FilterCategory.VideoInputDevice);
var videoSource = new VideoCaptureDevice(videoDevices[0].MonikerString);
videoSource.NewFrame += (sender, eventArgs) =>
{
    Bitmap frame = (Bitmap)eventArgs.Frame.Clone();
    pictureBox.Image = frame;
    // Manual recording requires separate code
};
videoSource.Start();

// Cleanup
videoSource.SignalToStop();
videoSource.WaitForStop();

VisioForge — C# 웹캠 캡처 (이후)

C#
// VisioForge: Typed API, async, preview + recording built-in
var capture = new VideoCaptureCoreX(videoView);  // Preview automatic
var devices = await DeviceEnumerator.Shared.VideoSourcesAsync();
capture.Video_Source = new VideoCaptureDeviceSourceSettings(devices[0]);
capture.Outputs_Add(new MP4Output("recording.mp4"), true);
await capture.StartAsync();

// Stop
await capture.StopAsync();

C# IP 카메라 RTSP / MJPEG 스트리밍

AForge.NET — MJPEG 스트림 (이전)

C#
// AForge: MJPEG only, no RTSP, no reconnection
var stream = new MJPEGStream("http://camera-ip/mjpg/video.mjpg");
stream.NewFrame += (sender, eventArgs) =>
{
    pictureBox.Image = (Bitmap)eventArgs.Frame.Clone();
};
stream.Start();

VisioForge — C# RTSP IP 카메라 캡처 (이후)

C#
// VisioForge: RTSP, RTMP, HLS, MJPEG
// Reconnection is opt-in: configure FallbackSwitch on the source settings
var capture = new VideoCaptureCoreX(videoView);
// RTSPSourceSettings uses a static factory (private constructor)
capture.Video_Source = await RTSPSourceSettings.CreateAsync(
    new Uri("rtsp://camera-ip/stream"), "admin", "pass", audioEnabled: true);
capture.Outputs_Add(new MP4Output("recording.mp4"), true);
await capture.StartAsync();

C# 화면 캡처 및 녹화

AForge.NET — 화면 캡처 (이전)

C#
// AForge: Basic, CPU-intensive, no recording
var screenStream = new ScreenCaptureStream(Screen.PrimaryScreen.Bounds);
screenStream.NewFrame += (sender, eventArgs) =>
{
    pictureBox.Image = (Bitmap)eventArgs.Frame.Clone();
    // Must manually encode and write frames to create a recording
};
screenStream.Start();

VisioForge — C# 화면 녹화기 (이후)

C#
// VisioForge: monitor selection, cursor capture, automatic H.264 encoder
var capture = new VideoCaptureCoreX(videoView);
// Windows source; macOS and Linux have their own settings classes
capture.Video_Source = new ScreenCaptureD3D11SourceSettings
{
    MonitorIndex = 0,
    CaptureCursor = true,
    FrameRate = new VideoFrameRate(25)
};
capture.Outputs_Add(new MP4Output("screen.mp4"), true);
await capture.StartAsync();

AForge.Vision → VisioForge 컴퓨터 비전 블록

클래스 매핑

AForge.Vision 컴포넌트VisioForge 대체
MotionDetectorVideoCaptureCoreX의 MotionDetectionExSettings + OnMotionDetection 또는 Media Blocks의 CVMotionCellsBlock
TwoFramesDifferenceDetectorCVMotionCellsBlock — 그리드 기반 모션 셀
SimpleBackgroundModelingDetectorObjectDetector (VisioForge.Core.CV) — MOG2 배경 차분 (history: 500 frames, variance threshold: 40)
CustomFrameDifferenceDetector구성 가능한 CVMotionCellsSettings
MotionAreaHighlightingCVMotionCellsBlock(Display = true) — 모션이 감지된 셀 그리기
GridMotionAreaProcessingCVMotionCellsBlock — GridSize로 설정하는 모션 그리드, 축당 8~32 셀
BlobCounterCarCounter (VisioForge.Core.CV) — 블롭 추적, 윤곽 감지, 추적 라인을 통한 차량 카운팅

C# 모션 및 객체 감지

AForge.NET — 모션 감지 (이전)

C#
// AForge: Manual frame processing, no recording integration
var detector = new MotionDetector(
    new TwoFramesDifferenceDetector(),
    new MotionAreaHighlighting());

videoSource.NewFrame += (sender, eventArgs) =>
{
    float motionLevel = detector.ProcessFrame((Bitmap)eventArgs.Frame.Clone());
    if (motionLevel > 0.02f)
        Console.WriteLine($"Motion: {motionLevel * 100:F1}%");
};

VisioForge — 이벤트 기반 모션 감지 (Video Capture SDK)

C#
// Integrated detection during capture + recording
var capture = new VideoCaptureCoreX(videoView);
capture.Video_Source = new VideoCaptureDeviceSourceSettings(devices[0]);
capture.Outputs_Add(new MP4Output("recording.mp4"), true);

capture.Motion_Detection = new MotionDetectionExSettings();
capture.OnMotionDetection += (s, e) =>
{
    if (e.LevelPercent > 30)
        Console.WriteLine($"Motion: {e.LevelPercent}%");
};

await capture.StartAsync();

VisioForge — CVMotionCellsBlock (MediaBlocks 파이프라인)

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");

C# 얼굴 감지 및 보행자 감지 (AForge에서는 사용 불가)

클래스 매핑

기능VisioForge 블록
Haar 캐스케이드 얼굴 감지CascadeFaceDetectorBlock — 정면/측면 얼굴, 눈, 코, 입 감지
DNN 얼굴 감지DNNFaceDetectorBlock — Caffe SSD 모델, 신뢰도 필터링
DLib 얼굴 감지FaceDetectorBlock (VisioForge.Core.CVD) — DLib HOG+SVM 정면 얼굴 감지기
보행자 감지PedestrianDetector — 내장 HOG+SVM 사람 감지기, Video_Processors를 통해 추가
렌즈 차단 감지CameraCoveredDetector — Canny 에지 감지

C# 얼굴 감지

AForge.NET (이전)

C#
// AForge had no built-in face detection — required manual Haar cascade code
// or using Accord.NET's HaarObjectDetector on top of AForge frames

VisioForge — Haar 캐스케이드 얼굴 감지

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 얼굴 감지기

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

VisioForge — DLib 얼굴 감지기

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

C# 보행자 감지

AForge.NET (이전)

C#
// AForge had no pedestrian detection — required manual HOG+SVM implementation

VisioForge — 보행자 감지 (이후)

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

AForge.Imaging → VisioForge CV + OpenCvSharp

클래스 매핑

AForge.Imaging 기능VisioForge 내장독립형 OpenCvSharp
GaussianBlurCVSmoothBlock 또는 영역에는 CVProcess.BlurRegion() (kernel 23x23)Cv2.GaussianBlur()
PixellateCVProcess.PixelateRegion()커스텀 다운스케일/업스케일
CannyEdgeDetectorCVEdgeDetectBlockCv2.Canny()
Erosion / DilationCVErodeBlock / CVDilateBlockCv2.Erode() / Cv2.Dilate()
BlobCounterCarCounter — 윤곽 감지, 면적/종횡비 필터링, 볼록 껍질Cv2.FindContours()
Grayscale모든 감지기에 내장된 BGR→Gray 변환Cv2.CvtColor()
ThresholdObjectDetector 및 CarCounter에 내장된 이진 임계값 처리Cv2.Threshold()
ResizeBilinear모든 감지기 설정에 내장된 비디오 스케일링Cv2.Resize()
HistogramEqualizationCVEqualizeHistogramBlockCv2.EqualizeHist()
HSLFiltering / 색상 필터—Cv2.InRange() / Cv2.CvtColor()
HoughLineTransformation—Cv2.HoughLinesP()
SobelEdgeDetectorCVSobelBlockCv2.Sobel()
템플릿 매칭CVTemplateMatchBlockCv2.MatchTemplate()

마이그레이션 체크리스트

  • AForge 참조 인벤토리 — 프로젝트의 모든 `using AForge.*` 찾기
  • VisioForge NuGet 패키지 설치
  • 비디오 소스 클래스 교체
  • 모션 감지 교체
  • 얼굴 감지 교체
  • 블롭/객체 감지 교체
  • 수동 프레임 루프 제거
  • 녹화/스트리밍 추가
  • 최신 .NET 대상 — .NET 6-10
  • 크로스 플랫폼 테스트
  • 이미지 처리의 경우 — VisioForge CV는 블러, 픽셀화, Canny, Sobel, 모폴로지, 템플릿 매칭을 지원; 추가 필터에는 OpenCvSharp 사용

마이그레이션 후 얻는 것

기능AForge.NET마이그레이션 후
프레임워크.NET Framework 2.0.NET 6-10
플랫폼Windows 전용Windows, macOS, Linux, iOS, Android
비디오 캡처기본 DirectShow비동기 API를 갖춘 전문 SDK
녹화수동 구현내장 (MP4, MKV, AVI, WebM)
하드웨어 인코딩없음NVENC, QSV, AMF, VideoToolbox
스트리밍없음RTMP, HLS, SRT, NDI
오디오 효과없음두 엔진 전체에서 40개 이상 (EQ, 리버브, 코러스, 3D)
비디오 효과없음GPU + CPU 파이프라인
얼굴 감지없음Haar + DNN (Caffe SSD) 블러/픽셀화 포함, DLib HOG는 감지만
모션 감지기본 프레임 차분MOG2 배경 차분 + ID를 통한 객체 추적
보행자 감지없음내장 HOG+SVM 사람 감지기
IP 카메라MJPEG만RTSP, RTMP, HLS, ONVIF
가상 카메라없음Zoom/Teams/OBS로 출력
유지보수방치 (2013)활발한 개발
보안패치되지 않음정기적인 업데이트

자주 묻는 질문

AForge.NET은 아직 유지보수되고 있나요?
아니요. AForge.NET은 2013년 7월 이후 업데이트, 보안 패치 또는 .NET 6+ 지원 없이 방치되었습니다. 커뮤니티 포크가 존재하지만 품질과 유지보수가 다양합니다. 현대적인 AForge.NET 대안으로 VisioForge .Net SDK를 사용하세요.
C# 비디오 캡처를 위한 최고의 AForge.NET 대안은 무엇인가요?
VisioForge Video Capture SDK .Net은 웹캠, IP 카메라(RTSP/ONVIF), 화면 캡처 및 MP4, WebM 등의 형식으로 출력을 지원하는 현대적인 비동기 API로 AForge.Video를 대체합니다(.NET 6-10 지원).
VisioForge는 AForge.Imaging 필터를 대체하나요?
부분적으로. VisioForge CV에는 블러, 픽셀화, Canny 및 Sobel 에지 감지, 모폴로지 연산, 그레이스케일 변환, 히스토그램 균등화 및 템플릿 매칭이 포함되어 있습니다. 나머지 이미지 필터(Hough, 색상 필터링)에는 VisioForge와 함께 OpenCvSharp를 사용하세요.
AForge 없이 VisioForge를 C# 얼굴 감지에 사용할 수 있나요?
네. VisioForge .Net SDK에는 세 가지 내장 얼굴 감지 엔진 — Haar 캐스케이드, DNN 기반, DLib 기반 — 이 포함되어 있으며, Haar와 DNN 엔진은 개인정보 보호를 위해 감지된 얼굴에 블러나 픽셀화를 적용할 수도 있습니다. AForge 또는 Accord.NET 종속성이 필요하지 않습니다.
VisioForge는 .NET 6, .NET 8, .NET 9, .NET 10을 지원하나요?
네. 모든 VisioForge .Net SDK 패키지는 Windows, macOS, Linux, iOS, Android에서의 크로스 플랫폼 배포를 포함하여 .NET 6부터 .NET 10까지 지원합니다.
AForge.NET에서 점진적으로 마이그레이션할 수 있나요?
네. VisioForge SDK는 마이그레이션 중에 AForge.NET 패키지와 공존할 수 있습니다. 한 번에 하나의 컴포넌트를 교체하세요 — 비디오 캡처부터 시작하고, 그 다음 감지, 그 다음 이미지 처리 — 각 단계가 완료되면 AForge NuGet 패키지를 제거하세요.

연 €250부터 · Lifetime 라이선스 €900부터

마이그레이션 시작하기

관련 마이그레이션 가이드