aforge

How to detect black Bullets in Image?

梦想的初衷 提交于 2019-12-08 08:12:53
问题 Given the following image, How can I detect black bullets (90 bullet) in this image using C#, EmguCV or AForge? I tried to use GetPixel(x,y) method but it checks only pixel by pixel, it is very slow and I need to detect the bullets not pixels. 回答1: Algorithm/Idea 1 You can divide your image in squares as shown in this sample: With this logic you only have to check every 20th pixel. As soon as you know where the first dot is, you will know that every other dot have to be in the same horizontal

Record video with Accord.net (AForge)

拜拜、爱过 提交于 2019-12-08 05:15:39
问题 I used Accord.net (AForge) for connect to the webcam and record video But stored videos is slow motion ... this my project : using AForge.Video; using AForge.Video.DirectShow; using AForge.Video.FFMPEG; using System; using System.Drawing; using System.IO; using System.Threading; using System.Windows.Forms; namespace CaptureWebcam { public partial class Form1 : Form { private VideoCaptureDeviceForm captureDevice; private string path = Path.GetDirectoryName(Application.ExecutablePath) + @"

Creating Neural Network for un-encountered inputs

自古美人都是妖i 提交于 2019-12-08 01:10:37
问题 I am creating a simple Multi-layered feed forward Neural Network using AForge.net NN library. My NN is a 3 Layered Activation Network trained with Supervised Learning approach using BackPropogation Learning algorithm. Following are my initial settings: //learning rate learningRate=0.1; //momentum value momentum=0; //alpha value for bipolar sigmoid activation function sigmoidAlphaValue=2.0; //number of inputs to network inputSize=5; //number of outputs from network predictionSize=1; /

how to pause a video file played using videosourceplayer

*爱你&永不变心* 提交于 2019-12-07 18:55:01
问题 I am playing a videofile(.wmv)using videosourceplayer .I am able to stop videoplayer but when i start it ,it starts from the beginning but not from the current frame.How can i achieve the pause and resume playback of the video 来源: https://stackoverflow.com/questions/27738369/how-to-pause-a-video-file-played-using-videosourceplayer

How to detect black Bullets in Image?

喜夏-厌秋 提交于 2019-12-07 08:18:29
Given the following image, How can I detect black bullets (90 bullet) in this image using C#, EmguCV or AForge? I tried to use GetPixel(x,y) method but it checks only pixel by pixel, it is very slow and I need to detect the bullets not pixels. Algorithm/Idea 1 You can divide your image in squares as shown in this sample: With this logic you only have to check every 20th pixel. As soon as you know where the first dot is, you will know that every other dot have to be in the same horizontal line (in your provided sample). A sample algorithm would look similar to this (please note that it need

Program wont close and aforge camera keeps running, threading trouble

旧城冷巷雨未停 提交于 2019-12-07 00:09:21
问题 I have a bit strange problem, which I find hard to debug Sometimes I can't close my program and it freezes when I try to close it. I made a large program for video image recognition. I made a special button to close the camera. This button works with this by calling a function below, and it indeed, it does work. private void exitcamera() { FinalVideo.SignalToStop(); FinalVideo.WaitForStop(); FinalVideo = null; } Notice that the original video was started like this private void

Record video with Accord.net (AForge)

早过忘川 提交于 2019-12-06 16:44:22
I used Accord.net (AForge) for connect to the webcam and record video But stored videos is slow motion ... this my project : using AForge.Video; using AForge.Video.DirectShow; using AForge.Video.FFMPEG; using System; using System.Drawing; using System.IO; using System.Threading; using System.Windows.Forms; namespace CaptureWebcam { public partial class Form1 : Form { private VideoCaptureDeviceForm captureDevice; private string path = Path.GetDirectoryName(Application.ExecutablePath) + @"\Videos\"; private FilterInfoCollection videoDevice; private VideoCaptureDevice videoSource; private

Aforge Blob Detection

[亡魂溺海] 提交于 2019-12-06 10:59:45
How to detect Non Moving Blobs from a video? Let's consider I have a video and a initial background frame bitmap. Is that possible to detect an blob/object which is NOT MOVING ? and draw a rectangle around that Object? This reminds me of an algorithm to detect forgotten objects on a subway. If I'm not wrong you want to detect objects that are not moving AND that were not on the initial background right? You can apply this approach: With an initial image like this (couldn't find a truly empty subway image): And an image with an added static object (the waste can), the subway moving, and a

Creating Neural Network for un-encountered inputs

南楼画角 提交于 2019-12-06 07:53:27
I am creating a simple Multi-layered feed forward Neural Network using AForge.net NN library. My NN is a 3 Layered Activation Network trained with Supervised Learning approach using BackPropogation Learning algorithm. Following are my initial settings: //learning rate learningRate=0.1; //momentum value momentum=0; //alpha value for bipolar sigmoid activation function sigmoidAlphaValue=2.0; //number of inputs to network inputSize=5; //number of outputs from network predictionSize=1; //iterations iterations=10000; // create multi-layer neural network ActivationNetwork network = new

how to pause a video file played using videosourceplayer

柔情痞子 提交于 2019-12-06 06:12:02
I am playing a videofile(.wmv)using videosourceplayer .I am able to stop videoplayer but when i start it ,it starts from the beginning but not from the current frame.How can i achieve the pause and resume playback of the video 来源: https://stackoverflow.com/questions/27738369/how-to-pause-a-video-file-played-using-videosourceplayer