emgucv

How to create Haar Cascade (.xml file) to use in OpenCV?

£可爱£侵袭症+ 提交于 2019-11-27 10:23:46
If you are familiar with OpenCV library, you know what Haar Cascade image object detection is. By image object detection I mean, like human face detection or something else. I have some Haar Cascade XMLs for face detection, but I don't know how to create my own. I want to create Haar Cascade XMLs to detect simple bright circle light sources (i.e. flashing infrared light from TV remote control). So, how do I create a Haar Cascade (.xml file) to use in OpenCV? I think this might be helpful: http://note.sonots.com/SciSoftware/haartraining.html This might be helpful http://opencvuser.blogspot.in

Face gender detection library [closed]

倖福魔咒の 提交于 2019-11-27 09:35:41
问题 I'm looking for an SDK or library that can detect faces in a webcam stream, and detect gender. Free or paid, C++ or C# under Windows. Any suggestions? 回答1: I did an experiment on gender classification with the Fisherfaces method in my blog at: http://bytefish.de/blog/gender_classification and got a 98% recognition rate for geometrically normalized images. I am providing an implementation of the Fisherfaces method for GNU Octave/MATLAB, Python and C++. libfacerec, a modern face recognition

Image preprocessing for text recognition

≯℡__Kan透↙ 提交于 2019-11-27 09:26:34
问题 What's the best set of image preprocessing operations to apply to images for text recognition in EmguCV? I've included two sample images here. Applying a low or high pass filter won't be suitable, as the text may be of any size. I've tried median and bilateral filters, but they don't seem to affect the image much. The ideal result would be a binary image with all the text white, and most of the rest black. This image would then be sent to the OCR engine. Thanks 回答1: There's nothing like the

IP Camera stop streaming after some time

六眼飞鱼酱① 提交于 2019-11-27 08:52:42
问题 I am working on one application where I want to use IP camera for displaying video streaming and and some other major operations on image captured by the IP Camera . Libraries used in Camera capture For Camera Capture : Emgu.CV Library Below is the code which I am using in C#. Variable Declaration private Capture capture; //takes images from camera as image frames private Emgu.CV.UI.ImageBox img; // Dynamic Picture Controls private int nCam; // no of cameras Code for Processing Image private

EmguCV TypeInitializationException

ⅰ亾dé卋堺 提交于 2019-11-27 04:51:28
i really a newbie with EgmuCV i try to capture images from webcam with the following code: //Program.cs (Winform) using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using Emgu.CV; using Emgu.CV.UI; using Emgu.Util; using Emgu.CV.Structure; namespace EgmuCVTest { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { Capture cp = new Capture(); ImageViewer imv = new ImageViewer();

unable to load cvextern in a c# project

纵饮孤独 提交于 2019-11-27 04:40:24
问题 i'm trying to debug my program, using emgu and HaarCascade in c#. i'm getting an exception like so : Unable to load DLL 'cvextern': The specified module could not be found. (Exception from HRESULT: 0x8007007E) i've added the file cvextern.dll to my project and tried both "copy always" and "copy if newer" options on the properties of the file. also, the build is in platform x64. here's partly what i wrote : private void Load_Click(object sender, EventArgs e) { OpenFileDialog dlg = new

The type initializer for 'Emgu.CV.CvInvoke' threw an exception

こ雲淡風輕ζ 提交于 2019-11-27 02:04:45
I'm getting this error The type initializer for 'Emgu.CV.CvInvoke' threw an exception. when I try to use Emgu CV. I've tried everything I can think of to fix this but it's still giving the same error, and when I click a button it shows Object reference not set to an instance of an object. This is the code I'm trying: void ProcessFunction(object sender, EventArgs e) { imgOrg = capturecam.QueryFrame(); if (imgOrg == null) return; imgProc = imgOrg.InRange(new Bgr(50, 50, 50), new Bgr(255, 255, 255)); imgProc = imgProc.SmoothGaussian(9); imageBox1.Image = imgOrg; imageBox2.Image = imgProc; } What

Extract transform and rotation matrices from homography?

不羁的心 提交于 2019-11-27 01:29:43
问题 I have 2 consecutive images from a camera and I want to estimate the change in camera pose: I calculate the optical flow: Const MAXFEATURES As Integer = 100 imgA = New Image(Of [Structure].Bgr, Byte)("pic1.bmp") imgB = New Image(Of [Structure].Bgr, Byte)("pic2.bmp") grayA = imgA.Convert(Of Gray, Byte)() grayB = imgB.Convert(Of Gray, Byte)() imagesize = cvGetSize(grayA) pyrBufferA = New Emgu.CV.Image(Of Emgu.CV.Structure.Gray, Byte) _ (imagesize.Width + 8, imagesize.Height / 3) pyrBufferB =

Calling the on-screen keyboard using a button in C#

只谈情不闲聊 提交于 2019-11-27 01:27:42
问题 I am creating a windows application using C#, where in a button on the GUI when clicked, should display the on-screen keyboard. Would appreciate if any help is granted. thanks. Also, since I am mostly using Emgu Cv library for the rest of my app, Can we simply use it for calling the On-screen keyboard? 回答1: In C#, you can simply write the following line of code to invoke the on-screen keyboard application that comes with Windows: System.Diagnostics.Process.Start("osk.exe"); You can find more

How can I get and set pixel values of an EmguCV Mat image?

て烟熏妆下的殇ゞ 提交于 2019-11-26 23:35:17
问题 I'm using the EmguCV 3.0.0 wrapper to the OpenCV 3.0 library. I'm using the Mat class in a few places. Here's an example of a single channel, 8x8 image made of double values: Mat image = new Mat(8, 8, DepthType.Cv64F, 1); The Image<> class provides reasonable means for getting and setting pixel values, and the method is identical for the Matrix<> class, but it doesn't seem as obvious for the Mat class. The only way I've figured out how to set individual pixel is using a mask: // set two pixel