최종 업데이트: 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 대체 |
|---|---|
| VideoCaptureDevice | VideoCaptureCoreX + VideoCaptureDeviceSourceSettings |
| MJPEGStream | VideoCaptureCoreX + HTTPMJPEGSourceSettings |
| JPEGStream | MJPEG 스트림에는 VideoCaptureCoreX + HTTPMJPEGSourceSettings, 스냅샷 URL에 대한 직접적인 대응 항목은 없음 |
| ScreenCaptureStream | VideoCaptureCoreX + ScreenCaptureD3D11SourceSettings (Windows), ScreenCaptureMacOSSourceSettings, ScreenCaptureXDisplaySourceSettings (Linux) |
| FileVideoSource | MediaPlayerCoreX(재생) 또는 VideoEditCoreX(처리) |
| AsyncVideoSource | 내장 — 모든 VisioForge 소스는 기본적으로 비동기 |
| NewFrameEventArgs | OnVideoFrameBuffer 이벤트 |
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 대체 |
|---|---|
| MotionDetector | VideoCaptureCoreX의 MotionDetectionExSettings + OnMotionDetection 또는 Media Blocks의 CVMotionCellsBlock |
| TwoFramesDifferenceDetector | CVMotionCellsBlock — 그리드 기반 모션 셀 |
| SimpleBackgroundModelingDetector | ObjectDetector (VisioForge.Core.CV) — MOG2 배경 차분 (history: 500 frames, variance threshold: 40) |
| CustomFrameDifferenceDetector | 구성 가능한 CVMotionCellsSettings |
| MotionAreaHighlighting | CVMotionCellsBlock(Display = true) — 모션이 감지된 셀 그리기 |
| GridMotionAreaProcessing | CVMotionCellsBlock — GridSize로 설정하는 모션 그리드, 축당 8~32 셀 |
| BlobCounter | CarCounter (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 framesVisioForge — 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 implementationVisioForge — 보행자 감지 (이후)
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 classifierAForge.Imaging → VisioForge CV + OpenCvSharp
클래스 매핑
| AForge.Imaging 기능 | VisioForge 내장 | 독립형 OpenCvSharp |
|---|---|---|
| GaussianBlur | CVSmoothBlock 또는 영역에는 CVProcess.BlurRegion() (kernel 23x23) | Cv2.GaussianBlur() |
| Pixellate | CVProcess.PixelateRegion() | 커스텀 다운스케일/업스케일 |
| CannyEdgeDetector | CVEdgeDetectBlock | Cv2.Canny() |
| Erosion / Dilation | CVErodeBlock / CVDilateBlock | Cv2.Erode() / Cv2.Dilate() |
| BlobCounter | CarCounter — 윤곽 감지, 면적/종횡비 필터링, 볼록 껍질 | Cv2.FindContours() |
| Grayscale | 모든 감지기에 내장된 BGR→Gray 변환 | Cv2.CvtColor() |
| Threshold | ObjectDetector 및 CarCounter에 내장된 이진 임계값 처리 | Cv2.Threshold() |
| ResizeBilinear | 모든 감지기 설정에 내장된 비디오 스케일링 | Cv2.Resize() |
| HistogramEqualization | CVEqualizeHistogramBlock | Cv2.EqualizeHist() |
| HSLFiltering / 색상 필터 | — | Cv2.InRange() / Cv2.CvtColor() |
| HoughLineTransformation | — | Cv2.HoughLinesP() |
| SobelEdgeDetector | CVSobelBlock | Cv2.Sobel() |
| 템플릿 매칭 | CVTemplateMatchBlock | Cv2.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은 아직 유지보수되고 있나요?
C# 비디오 캡처를 위한 최고의 AForge.NET 대안은 무엇인가요?
VisioForge는 AForge.Imaging 필터를 대체하나요?
AForge 없이 VisioForge를 C# 얼굴 감지에 사용할 수 있나요?
VisioForge는 .NET 6, .NET 8, .NET 9, .NET 10을 지원하나요?
AForge.NET에서 점진적으로 마이그레이션할 수 있나요?
연 €250부터 · Lifetime 라이선스 €900부터
