How are we doing? Please help us improve Stack Overflow. Take our short survey

Questions tagged [aforge]

AForge.NET is a C# framework for computer vision and artificial intelligence. Applications include image processing, neural networks, genetic algorithms, machine learning, and robotics.

Filter by
Sorted by
Tagged with
1 vote
0 answers
16 views

Aforge Image Capture Issue

I create a Image capture program using Aforge library. this is a very basic program. when click of a button web camera activated and show image in to Picture box in c# windows application. it ...
K.T.A Roshan's user avatar
0 votes
0 answers
74 views

why RTSP Video url is showing no Video in my Picturebox in C#

I'm trying to implement RTSP url for live view of camera with AForge.Video.DirectShow; here's my code private VideoCaptureDevice videoSource; public camtest3() { ...
Behnam Nashati's user avatar
0 votes
0 answers
16 views

How to determine the blurness of an image after using the canny filter?

I would like to get a "blurness" value after using the cannyfilter on a siemensstar image, to check the blurness. Therefore I used the aforge lib to get these images after using the canny ...
KD17's user avatar
  • 45
0 votes
1 answer
359 views

.NET MAUI WEB CAM PREVIEW

I am new to .dotnet world. I am trying to stream the web cam on my maui screen (Windows Only) . The problem is default MAUI function to do this job is using MediaPicker CaptureAyncPhoto method which ...
Muhammad Ibrahim's user avatar
0 votes
1 answer
140 views

why RTSP Video url is showing no Video in my Picturebox

I'm trying to implement RTSP url for live view of camera with AForge.Video.DirectShow; here's my code private VideoCaptureDevice videoSource; public camtest3() { ...
Wajadtuha GST's user avatar
1 vote
1 answer
169 views

C# AForge huge memory consumption

After a lot of research I turn to you for help as I don't know what to do anymore. I am using AForge VideoCaptureDevice to show the camera in picturebox. However the memory consumption is pretty high ...
mnaauuu's user avatar
  • 21
1 vote
0 answers
47 views

How can i crop the white space by detecting the contours of a shape using AForge.NET and Windows Forms

Lattice screen I want to remove the small white border around the lattice shape after the image is binarized Im using Windows Forms and AForge.NET http://www.aforgenet.com/ Here is my code public ...
user avatar
0 votes
0 answers
142 views

Why cant I assign Bitmap to Image.Source? [duplicate]

void VideoCaptureDevice_NewFrame(object sender, NewFrameEventArgs eventArgs) { pictureBox1.Source = (Bitmap)eventArgs.Frame.Clone(); } on Windows Form this works ...
Cedric R's user avatar
0 votes
0 answers
59 views

AForge Genetic algorithms for solving expression

For example my expression is 2*x+y^2. I have to use genetic algorithms to solve it with getting output closest to 0. I was trying to define a population but I don't know how to start. Population size ...
NewPrime's user avatar
0 votes
1 answer
45 views

Converting white pixel to any over color with aforge/setpixel

i have the following code in vb.net to convert a single pixel to any other color. The chosen parameter inside of setpixel are for test purposes. InvoiceImage.SetPixel(0 , 0, color.FromArgb(30, 30, 30))...
schmanh's user avatar
  • 29
0 votes
0 answers
74 views

Aforge PictureBox throws "System.InvalidOperationException: 'The object is currently in use elsewhere.'"

Aforge PictureBox throws "System.InvalidOperationException: 'The object is currently in use elsewhere.'" when I resize or move the application window. In some situations it throws an ...
Bruno Ferreira's user avatar
0 votes
0 answers
46 views

Bitmap dispose does not work and throws an Argument Exception

private void VideoCaptureDevice_NewFrame(object sender, NewFrameEventArgs eventArgs) { try { bmp = (Bitmap)eventArgs.Frame.Clone(); ...
Bruno Ferreira's user avatar
0 votes
2 answers
146 views

Is there a parser for solving equation with unknowns in AForge Genetic .NET Framework?

I have to find parser for solving equation with unknows. User enters two numbers and the parser parses equation to solve. For example: Equation: x^3 + y^2 + sin60° User input: x=4, y=2 It have to be ...
NewPrime's user avatar
0 votes
0 answers
188 views

Playing 3 Videos, Live From Capture Card Using AForge.NET

I have the need to play 3 videos, live, from a capture card in a Winforms app. I can start playing the first two videos just fine, however, when I start the third video, the first video I started ...
nwf1115's user avatar
  • 37
0 votes
0 answers
89 views

Display a stream of bytes as a Image using JavaScript

Am using AForge to stream pictures to c# client This works well, but would like to send them to a webpage as well //Global Variables private MJPEGStream VideoStream = new MJPEGStream();...
dwk's user avatar
  • 5
4 votes
1 answer
536 views

C# AForge.Video decoding MJPEG stream over websockets

I'm trying to display an MJPEG video stream on my WPF C# application. The MJPEG decoder library I'm using is AForge.Video. So far I've managed to display video streamed over http with this: using ...
Boyfinn's user avatar
  • 156
0 votes
0 answers
33 views

Collecting white dots from completely dark image

I am making gamma-spectrometer from webcam. Its matrix covered in foil and image its getting completely dark, but sometimes cosmic/gamma rays or another particle hits matrix and creates a white dot, ...
confusedtick 606's user avatar
0 votes
0 answers
78 views

How to highlight the span of a specific color area?

I have a code that finds a specific color area private readonly Color _from20 = Color.FromArgb(254,254, 244); private readonly Color _to20 = Color.FromArgb(255, 255, 255);//set color range ...
dsdsa sadsa's user avatar
1 vote
0 answers
386 views

Video record with audio in wpf

I am developing a chat application in WPF .NET Framework 4.7.2. I want to implement video recording functionality using the web camera of the PC. Up to now, I have done this: I use AForge.Video and ...
Kostas Kontaras's user avatar
0 votes
1 answer
238 views

C# Fastest image resize routine for streaming video?

I am trying to write a simple C# Windows App to display streaming video from a local USB webcam. I am using AForge.NET, FilterInfoCollection, VideoCaptureDevice etc to put video stream into a standard ...
Jimmy Falcon's user avatar
1 vote
1 answer
486 views

C# PictureBox: Memory leak when updating multiple times per second

I am using AForge to capture video from a camera and display it in a WinForms PictureBox. AForge supplies an event that gets triggered on every new frame--so, for my camera, 30 times per second. I'm ...
gpph's user avatar
  • 33
1 vote
0 answers
116 views

AForge Camera in nor launching

I have a C# project, the project initiate the camera when needs to capture a picture, and then calls the save function to capture the image. the code was working normally but now I don't know what ...
Alaa's user avatar
  • 13
0 votes
1 answer
60 views

How can I use graphics method for AForge IntPoint truely?

I tried to write a code for detecting elips objects with Aforge blobcounter function but when I want to draw it with graphics I am getting an error. The error is: Argument 2:cannot covert from 'AForge....
stck_w's user avatar
  • 1
0 votes
0 answers
941 views

Alternatives to AForge.NET

I'm wondering if there are any good alternatives to AForge.NET. I want to use ML.NET in my project, but then this warnings occur.
nik4298's user avatar
  • 45
0 votes
0 answers
110 views

How can I fix this error:System.ArgumentOutOfRangeException: 'Index was out of range.'

I am trying to write a shape detection algorithm using Blobcounter with Aforge.Actually I want to get number of all pixels on the edges of the objects with this code but I could not be successfull ...
stck_w's user avatar
  • 1
0 votes
1 answer
262 views

aforge camera won't close, error "thread abort is not supported in this platform"

I am totally new to vb.net and I am trying to incorporate my webcam into the application that i am creating. I have successfully made it run until to the point that i want to close the camera and ...
Magallanes Ruth M.'s user avatar
0 votes
1 answer
202 views

C# Aforge - image is not consistent, some images are very bright most of them not

I'm trying to get a consistent image with Aforge but sometimes the image is very bright, most of the time it is good. If you look at the pictures you can see a very clear difference between the two. ...
John's user avatar
  • 723
0 votes
1 answer
57 views

Comparing Blobs or Basic Shapes

I'm trying to use blob detection to process an image. When a blob looks similar to a sample blob I want to split the logic but I'm having difficulty with comparing the two blobs. I'm currently using ...
Caleb Laws's user avatar
0 votes
0 answers
233 views

Delay in preview of webcam, FPS drop on live preview and In video recording, video get pixelated when user select high resolution(1920 * 1080 : 60FPS)

Issue 1: Delay in preview of webcam, FPS drop on live preview On high resolution i am facing issue of delay in preview of webcam, FPS drop on live preview in AForge.Video.DirectShow(Version=2.2.5.0). ...
Rajdip Khavad's user avatar
1 vote
1 answer
785 views

Capture desktop with Aforge

I have seen various tutorial like this on how to make a video from webcam, show and record it. What I would like now is to be able to do the same with the desktop so that I can cross-reference the ...
Luca's user avatar
  • 918
0 votes
0 answers
296 views

Writing on a bitmap not working for writing a frame with a forge

I need to output the video from a webcam to file with Aforge. LocalWebCamsCollection = new FilterInfoCollection(FilterCategory.VideoInputDevice); LocalWebCam = new VideoCaptureDevice(...
Patrick's user avatar
  • 3,093
4 votes
1 answer
257 views

How to remove frames from a video file recorded with Aforge

I have to implement via software a CCTV circuit with AForge. I can write a video file with private VideoFileWriter FileWriter = new VideoFileWriter(); and write a new frame with private void ...
Patrick's user avatar
  • 3,093
0 votes
0 answers
238 views

Fastest way to convert incoming image data buffer to bitmap (using Winform C# and Aforge library)

I have a project and this I have two webcams that going to send frame and in then the program need to extract few lines colors in frames I'm using Aforge library for this and i have edited the Aforge....
Nima's user avatar
  • 85
1 vote
0 answers
152 views

MJPEGStream NewFrame callback does not work on C#

I'm trying to get stream from IP camera using the Aforge Libraries but it does not work correctly. NewFrameReceived is never called. Here is my code (Win10, VS2017, C#, .Net Framework 4.5): ...
Jafuentes's user avatar
  • 365
0 votes
1 answer
701 views

AForge.NET: NewFrameEventHandler argument method not triggered

I am attempting to write a Windows Console program that is capable of acquiring imagery from a webcam or a virtual webcam, extracting a bitmap frame from the video source and saving the frame to the ...
violetflare's user avatar
0 votes
0 answers
200 views

Why do I have the error BadImageFormatException while running AForge.Video.FFMPEG?

I'm trying to edit videos using C#, I found the library AForge.Video.FFMPEG, which seems perfect : easy and complete enough for my use, but, when I try to run the code : using AForge.Video.FFMPEG; ...
Ivan's user avatar
  • 1
1 vote
1 answer
707 views

x86 32 bit support for Accord.video.FFMPEG

Accord version 3.8.2 I am using Accord, Accord.video, Accord.video.FFMPEG Dll's for capturing the screen, my code is compiled to ANYCPU, everything works fine in 64 bit machine, but I am facing issue ...
Ravi Kanth's user avatar
  • 1,182
0 votes
1 answer
209 views

How to filter a specific colour with AForge

Im working with the library AForge and trying to change for example all green and yellow pixel to white. But red pixels should remain the same. I tried out some things but unfortunately didnt get it. ...
Lion Hunter's user avatar
0 votes
0 answers
389 views

How to detect industrial camera?

I been trying to develop a software in C# to connect to the USB camera. It is an industrial camera from Toshiba with the model BU238B. I had try using machine vision library such as AForge and EmguCV ...
Gizzle30's user avatar
1 vote
0 answers
330 views

Why is embedded laptop webcam not firing NewFrameEvent using AForge or DirectShow

I have an embedded webcam on my laptop. I have another USB webcam. This USB webcam works well both with AForge in C# and DirectShow in C++. I would like to write applications using both of these ...
user123's user avatar
  • 2,520
0 votes
1 answer
245 views

C# Aforge.net Showing camera feed while other app uses the same camera

My first question ever on SO, apologies if something is missing or wrong. I currently have a WPF app that hooks onto a camera using Aforge.net and shows the feed. However this does not seem to work ...
hoodah's user avatar
  • 3
0 votes
1 answer
109 views

Fuzzy system with AForge C#

Hello I making fuzzy system in dll Aforge. I made fuzzy interference system and the problem is sometimes I get error from the library in exception is like: {"The numerical output in unavailable. ...
Rastislav Srnánek's user avatar
0 votes
0 answers
173 views

How to update Winforms picturebox on GUI from live HTML video feed?

I keep getting a "Parameter is not valid" error or a memory leak (and the picture doesn't update) when I run my code. I am trying to get frames from a local IP camera using AForge.Net. The ...
DemSpud's user avatar
0 votes
1 answer
480 views

Aforge video - Camera is use by another device

I am using Aforge Video for accessing the camera of my computer. Things where good and working but my problem now is when an another application is using the camera first. The Start() method of Aforge ...
user3928241's user avatar
-1 votes
1 answer
287 views

How to solve the issue of JPEG live stream lagging?

I have written C# code of live streaming of IP camera (JPEG) in windows form application using AForge library. It is working but it's lagging too much. Here is the code: using System; using System....
Bisma Hashmi's user avatar
3 votes
1 answer
2k views

Get current state of webcam in C#

I am trying to figure out how to check if a webcam/video capture device is already being used by another application without actually activating it. My current approach is to use the AForge.NET ...
Tobias Timpe's user avatar
0 votes
1 answer
1k views

Recording video from webcam with C# Accord .Net

I'm trying to record video from my webcam. For that i'm using Aforge and Accord. I'm building it with windows forms. The video source and video writer are: private AForge.Video.DirectShow....
gilad's user avatar
  • 297
0 votes
0 answers
595 views

VB.net Aforge video capture - Memory is consumed and freezes the Camera

I wrote code using Aforge to capture the Video from the camera and its working fine. My problem is when I just start the Camera in the preview mode only without recording the camera (preview window) ...
Eyad Alkhatib's user avatar
0 votes
1 answer
710 views

Why is System.Windows.Forms.Timer stopping automatically when window is fulscreen or is large?

Following online samples, I have written qrcode web cam reader in c# uzing zXing and aForge libraries. I have encountered very weird behavior of System.Windows.Forms.Timerin C#: I have dropped it on ...
Tornike Shavishvili's user avatar
0 votes
0 answers
134 views

Aforge Program works only on Debug mode

am trying to make streaming video using aforge on visual studio windows forms in debug mode everything works well but after publishing it the picturebox that is used to show the video still white Here ...
Brahim Alayoud's user avatar

1
2 3 4 5
14