emgucv

Using EigenObjectRecognizer

社会主义新天地 提交于 2019-11-28 04:06:59
问题 I am trying to do some facial recognition using EmguCV. I was wondering if I can use EigenObjectRecognizer for this task? Can someone can explain me how to use it? Because if there is a no no-match photo, it also returns a value. Here is an example: Image<Gray, Byte>[] trainingImages = new Image<Gray,Byte>[5]; trainingImages[0] = new Image<Gray, byte>("brad.jpg"); trainingImages[1] = new Image<Gray, byte>("david.jpg"); trainingImages[2] = new Image<Gray, byte>("foof.jpg"); trainingImages[3] =

How to create a histogram

蹲街弑〆低调 提交于 2019-11-28 04:05:44
问题 I want to create a histogram within a C# program that uses EMGU. EMGU contains a class called MCvHistogram in it, but I don't know how to use it. 回答1: You should use DenseHistogram class if you want to use EmguCV. I'll show you basic usage: // Create a grayscale image Image<Gray, Byte> img = new Image<Gray, byte>(400, 400); // Fill image with random values img.SetRandUniform(new MCvScalar(), new MCvScalar(255)); // Create and initialize histogram DenseHistogram hist = new DenseHistogram(256,

Face gender detection library [closed]

假装没事ソ 提交于 2019-11-28 03:16:40
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? 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 library for the OpenCV C++ API (BSD license), includes an implementation of the Fisherfaces method. The latest

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

僤鯓⒐⒋嵵緔 提交于 2019-11-28 01:52:58
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 values, (0,0) to 9.0, (2, 3) to 42.0 Matrix<byte> mask = new Matrix<byte>(8,8); mask.Data[0, 0] = 1;

unable to load cvextern in a c# project

送分小仙女□ 提交于 2019-11-27 23:32:09
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 OpenFileDialog(); dlg.Filter = "Photo Files (*.jpg)|*.JPG"; dlg.CheckFileExists = true; if (dlg.ShowDialog() ==

Emgu CV 3 findContours and hierarchy parameter of type Vec4i equivalent?

家住魔仙堡 提交于 2019-11-27 16:50:55
问题 I'm attempting to translate the following OpenCV C++ code into Emgu CV 3: std::vector<std::vector<cv::Point> > contours; std::vector<cv::Vec4i> v4iHierarchy; cv::findContours(imgThreshCopy, contours, v4iHierarchy, cv::RETR_TREE, cv::CHAIN_APPROX_SIMPLE); I can find some Emgu CV 3 examples that use null for the 3rd parameter to findContours, for example doing it that way here would be a Visual Basic translation: Dim contours As New VectorOfVectorOfPoint() CvInvoke.FindContours(imgThreshCopy,

EmguCV Exception when published on IIS

你说的曾经没有我的故事 提交于 2019-11-27 16:29:24
My ASP.NET App works fine if I debug or run it on my local IIS. But if I publish it onto an IIS, it looks like EmguCV looses the dlls it needs. The bin folder of my VS project an the bin folder on the IIS are identical. The following exception occurs: The type initializer for 'Emgu.CV.CvInvoke' threw an exception. StackTrace: at Emgu.CV.CvInvoke.cvCreateImageHeader(Size size, IPL_DEPTH depth, Int32 channels) at Emgu.CV.Image 2.AllocateData(Int32 rows, Int32 cols, Int32 numberOfChannels) at Emgu.CV.Image 2.set_Bitmap(Bitmap value) at CustomerserviceWizard.ImageHelper.DecodeUrl(LuminanceSource

Using Kinect with Emgu CV

偶尔善良 提交于 2019-11-27 14:13:47
问题 With EmguCV, to capture an image from a web-cam we use : Capture cap = new Capture(0); Image < Bgr, byte > nextFrame = cap.QueryFrame(); ... ... But I don't know how to capture images from my Kinect, I have tried kinectCapture class but it didn't work with me. Thanks 回答1: Basically , you need to capture and Image from the ColorStream and convert to a EmguCV Image class : Conversion to EmguCV Image from Windows BitMap (Kinect ColorStream): You have a Windows Bitmap variable, where holds Kinect

EmguCV - nvcuda.dll could not be found

两盒软妹~` 提交于 2019-11-27 13:47:50
问题 I've been asked to build a real-time face recognition application, and after some looking around I've decided to try EmguCV and OpenCV as the facial recognition library. The issue I'm having at the moment is trying to get the SDK installed and working. I've followed the instructions found here to try and get it running, but I still can't run the samples. Whenever I try and run them, I get the error The program can't start because nvcuda.dll is missing from your computer. Try reinstalling the

Need Haar Casscades for Nose, Eyes & Lips(Mouth)

别说谁变了你拦得住时间么 提交于 2019-11-27 10:49:18
问题 I need Haar Cascades xml files for Mouth, Eyes & Nose. Do provide me useful links. Any kind of help would be highly appreciated. 回答1: Look at this page: http://alereimondo.no-ip.org/OpenCV/34 There are haar cascades for eyes, nose and mouth :) 回答2: I believe they are in the EmguCV package when you download it. Can't remember exact directory but do a search for *.xml. Edit Found the location. Get the emgucv zip file then they're in... .\opencv\data I imagine you can get these straight from