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.
660
questions
1
vote
0
answers
21
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 ...
0
votes
0
answers
11
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....
0
votes
0
answers
32
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.
0
votes
0
answers
44
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 ...
0
votes
0
answers
28
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 ...
0
votes
1
answer
38
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. ...
0
votes
1
answer
27
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 ...
0
votes
0
answers
86
views
AForge MJPEGStream Received an invalid status line
I'm trying to get a mjpeg camera stream that is coming from a raspberry pi connected to my network, i have no problem streaming the video from VLC with the connection string "tcp/mjpeg://192.168....
0
votes
0
answers
70
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). ...
0
votes
0
answers
60
views
Accord.Video.FFMPEG doesn't contain required namespace
I want to use Accord.Video.FFMPEG.VideoFileWriter class. I'm downloading the Accord.Video.FFMPEG 3.8.0 NuGet. Although, when I try to add using Accord.Video.FFMPEG namespace it is not found. Why is ...
1
vote
1
answer
158
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 ...
0
votes
0
answers
80
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(...
0
votes
0
answers
79
views
Aforge Video Capure is VB PictureBox
I had a picturebox that capture the QR Code from the tablet camera and covert the QR Code using Zxing.
There is a strange thing that the Camera captured the QR Code even when the QR Code is not in the ...
1
vote
0
answers
58
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 ...
0
votes
0
answers
106
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....
1
vote
0
answers
85
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):
...
0
votes
1
answer
263
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 ...
0
votes
0
answers
90
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;
...
0
votes
1
answer
307
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 ...
0
votes
1
answer
79
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.
...
0
votes
0
answers
233
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 ...
0
votes
0
answers
157
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 ...
0
votes
1
answer
125
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 ...
0
votes
1
answer
67
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. ...
0
votes
0
answers
114
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 ...
0
votes
1
answer
255
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 ...
-1
votes
1
answer
172
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....
2
votes
1
answer
994
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 ...
0
votes
1
answer
608
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....
0
votes
0
answers
258
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) ...
-1
votes
1
answer
377
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 ...
0
votes
0
answers
83
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 ...
0
votes
0
answers
28
views
Have a problem with speed of recorded video from Webcam
I want to recording a video from Webcam here is my code :
private void button1_Click_1(object sender, EventArgs e)
{
saveAvi = new SaveFileDialog();
saveAvi.Filter = &...
0
votes
0
answers
443
views
I can not solve - A Graphics object cannot be created from an image that has an indexed pixel format error
I am trying this example but I got "Source pixel format is not supported by the filter" error, and to solve it I tried with these answeres but I got titled error, then I tried to solve it with these ...
0
votes
0
answers
45
views
AForge.Video / Materialskin repeatedly causing stackoverflow
Ok I am using Materialskin and AForge to make a good application that can have camera previews, show them in a picturebox and then be able to be saved.
this is the portion of the code I think is ...
0
votes
1
answer
740
views
Accord.Video.FFMPEG stream display in Accord.Controls.VideoSourcePlayer
I am new in camera programming. For learning purpose I have download Accord-Framework C# source code.
Thus if we have JPG or MPEG Stream then we can easily display in Accord.Controls....
1
vote
1
answer
282
views
Accessing MJPEG Stream .net core
I am trying to access a mjpeg stream through my .net core app. It seems AForge.Video is not compatible with .net core.
Is there any lib / coding example available how to access a video stream and get ...
0
votes
0
answers
81
views
Operating on a screenshot with Aforge
I'm trying to take a screenshot using this command:
var bmpScreenshot = new Bitmap(Screen.PrimaryScreen.Bounds.Width,
Screen.PrimaryScreen.Bounds.Height,
...
0
votes
0
answers
248
views
how to count the number of rectangles on an image using Aforge
I am using aforge dll to detect rectangles on an image.
Example:
static void Main(string[] args)
{
string path = "rectangles.png";
Bitmap image = (Bitmap)Bitmap.FromFile(path);
// ...
1
vote
1
answer
399
views
How to save an image from Picturebox that load from camera?
I create a simple program that getting image from camera and display it in picturebox using a Aforge library. However, when I try to save the image from picture box. It prompt an error like this " '...
0
votes
0
answers
403
views
Text Overlay On a Video (VB.net)
You may have seen this question on other forum but i still can't resolve this issue.
I manage to get the text overlay for few second but after that it disappears and display following image (it does ...
1
vote
0
answers
146
views
AForge - incomplete list of VideoCapabilities - high frame rate
I use AForge and C # to record video from a Logitech BRIO webcam connected via USB. I want to get about 60 fps. This camera can do such registration - other applications give such possibility for it. ...
0
votes
1
answer
58
views
What is a working configuration of a neuronal network (number of layers, lerning rate and so on) for a specific dataset?
I try to solve some easy functions with a neuronal network (aforge-lib):
This is how I generate the dataset:
const int GesamtAnzahl = 200;
float[,] tempData = new float[GesamtAnzahl, 2];
float minX =...
0
votes
1
answer
55
views
How to normalize/standardize time-inputs for a neuronal network?
Im using AForge to build a Neuronal network.
But I have a hard time to define my input parameters. In my training Data, one input value is the time of an event.
As far as I know the input values ...
0
votes
0
answers
234
views
Trouble With AForge-based OMR Reading
I am currently working with an opensource piece of Optical Mark Recognition software that uses Ghostscript and AForge for graphics processing. The software is basically designed to read when a student ...
1
vote
1
answer
212
views
C#, Saving frames from webcam continuously every 5s
When ran the code which is GUI based and it actually opens a webcamera feed and saves frame every 5s, after a random running time(it could be 5 min or 20 min) there is an exception occuring ''Object ...
0
votes
1
answer
48
views
Extracting motion detector blob
Edit: Motion Detection I believe this may answer my question...
I want to not only detect motion, but read where the motion occurred in the frame. Nothing in MotionDetector seems to have anything ...
0
votes
0
answers
181
views
Detecting circles in images in C#,I need help to work my code as below
I have started image processing recently, and I want to write a program for detecting shapes such as circles in images, My sample code is as below but it isn't working:(
I read most of the related ...
1
vote
0
answers
26
views
GameCard value recognition gives wrong result with AForge.NET
Actually I'm using AForge.NET to recognize suit and value from a gamecard.
Here is a snippet where I decide which suit/value is there:
public static CardTemplateIdentifier GetBestMatchingIdentifier(...
1
vote
0
answers
384
views
I want to record video and audio at the same time but i dont know how to?
I'm using accord.net i record audio and video separatly but I want to do both at the same time because i will read the video with sound while its recorded in another app using sockets.
I read ...