aforge | PCL version of AForge.NET Framework
kandi X-RAY | aforge Summary
kandi X-RAY | aforge Summary
PCL version of AForge.NET Framework, https://code.google.com/p/aforge/
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of aforge
aforge Key Features
aforge Examples and Code Snippets
Community Discussions
Trending Discussions on aforge
QUESTION
I'm need to detect lines by drawing a line across the lines :)
The number of lines are unknown and differs from image to image. The direction of the lines can also differ. But for my example below I have six vertical lines.
I then want to draw a line across the six lines and my drawn line should detect the lines and also pinpoint the found line by adding a circle in a color. The goal is to receive an int with the lines found so I can continue doing calculations.
I have an Image encapsuled within a canvas.
...ANSWER
Answered 2022-Feb-25 at 16:11To provide a somewhat high level overview of such a solution.
To start of you need access to the pixel-Values, how this is done depends on the type of image you have. For a bitmapSource the recommended way seem to be to use CopyPixels.
Then you need to process each pixel along the line. The simplest way to do this would be to convert the line to a start position and a normalized direction and use this to sample along the line. Assuming pixel coordinates, something like:
QUESTION
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 computer activity with the external world. So what I would like is to be able to record a video of what happens on the computer possibly usig AForge. I found no reference about that, is it therefore impossible to do with Aforge?
--ADD--
I have implemented the proposed solution as below:
Thanks
but when I look at the png is all black. The saving procedure is correct for when I save the webcam frame it is ok. Could you please tell me what is wrong in my adaptation from your code?
Thanks
...ANSWER
Answered 2022-Jan-01 at 18:55It may not be a professionally solution and not realtime but it does the work for simple scenarios like yours. It is a console application built with Net Framework 4.7.2. And I rebuilt the assembly Aforge.Video.FFMPEG
by using its source code so that it can be used with Net Framework 4.0+.
QUESTION
I am trying to write a code for contrast but contrast depends on threshold value.What I mean is using entered threshold value or if it is not entered by user I want to write a default value for threshold.As far as I know I should do this by using constructor but I am not good at object oriented programming.How can I do that?
Here is the code for Form1.cs:
...ANSWER
Answered 2021-Nov-22 at 08:41Instead of using:
QUESTION
I am trying to write a sobel filter.In a nutshell I should turn the image into the grayscale filter then I should apply sobel filter to the image.I found a code but I am not good at object oriented programming.How can I call the function when I push the button?
Here is the code:
...ANSWER
Answered 2021-Oct-11 at 08:31Assuming the Convolution method is correct, you should simply call it, something like
QUESTION
I am trying to make a simple form to capture images from webCam, on my .net5 project however I could not seem to find a simple solution for this. I try AForge, OpenCVSharp.. they do not support .net5 yet I got a project to run but it turns out just blank (no webcam image). I google search and try almost everything I can found on my end.
I am wondering if anyone got any suggestions for a solution to this problem prefer opensource components
edit1: I am using Winforms for desktop applications.
...ANSWER
Answered 2021-Oct-04 at 04:36OpenCvSharp4
supports .NET5 (and also .NET6 preview :-)).
Create an empty "Windows Forms App" project form Visual Studio. (Obviously don't use .NET Framework...)
Add nuget package
OpenCvSharp4.Windows
. Below my csproj file.
QUESTION
i am working on a app that can record video/audio using webcam and microphone while also displaying it on winforms.
...ANSWER
Answered 2021-Sep-28 at 06:16Here's a class that starts FF and attaches event handlers to the relevant process events so it can see the output data as it's generated. It is used within a context where it's interesting to know if audio has started or stopped, which relied on ff having an extension that monitored the audio channels and pumped a message when silence started or stopped, but it demonstrates how you could have your own events on this class and raise them when ffmpeg pumps messages of interest. Mostly the class just captures the output into a log
QUESTION
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 when another application is using the camera.
This is how I setup the feed.
...ANSWER
Answered 2020-Nov-04 at 00:44That is because a WIRED camera driver may be used by only one consumer application at a time.
Alternatively use IP Camera's where feed is available on a URL.
QUESTION
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.Timer
in C#: I have dropped it on widows form, enabled it, set interval 1 second and attached tick eventhandler.
Everything seems to work normally, but when i resize(enlarge) the window to particular size, or if i make window fullscreen, the times tick event stops firing. When i bring window from fullscreen to normal size, or when i reduce window size, the timer starts again by itself automatically.
I am using following version of visual studio:
Here is my code:
...ANSWER
Answered 2020-Jul-10 at 12:11After Extensive research, i Have replaced System.Windows.Forms.Timer
with System.Timers.Timer
And everything started to worked normally and errors went away.
My setup for System.Timers.Timer
looks Like This:
QUESTION
I am writing a C# WPF application, I am using the AForge library for video streaming. I wanted to deploy the application, because everything worked on the first pc.
Than I deployed it and on the other pc I get the following Error:
"Must create DependencySource on same Thread as the DependencyObject even by using Dispatcher"
This is the source Code, I am calling it on every new Frame which I get from the WebCam
...ANSWER
Answered 2020-Jun-05 at 08:42When loading a BitmapImage from a Stream, you would usually close the Stream as soon as possible and make sure the BitmapImage is loaded immediately, by setting BitmapCacheOption.OnLoad
.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install aforge
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page