Questions tagged [emgucv]

0

votes
0

answer
13

Views

EmguCV read 8 bit image from byte array

I have a byte array which contains the data of PNG8 (Color palette and indexes of colors). I need to create Image (or at least simply Bitmap) from my byte array. I haven't problems with PNG24 or PNG32: byte type; int height, width; byte[] data; ... // Initializing type, height, width and data with B...
Vlad i Slav
1

votes
2

answer
8.5k

Views

EmguCv TypeInitializationException Thrown by EmguCv.CV.CvInvoke

Let me start off by saying that I have indeed followed many tutorials such as the one located on EmguCv's main site in their entirety but get a TypeInitializationException thrown. Now, listen closely because here comes the extremely weird part. I'll start by saying that there are three "levels" of...
Jonathan
1

votes
1

answer
1.4k

Views

Ignore external points when finding rectangles

I have some images like this where I need to find the central rectangle Im using a variation of the EmguCV examples to find rectangles and came with this using (MemStorage storage = new MemStorage()) { //allocate storage for contour approximation //Contour contours = gray.FindContours() Contour cont...
Evans
1

votes
2

answer
1.1k

Views

Luxand API in Visual Studio 2010?

How can I use Luxand API to get to work in visual studio 2010? I need to detect points of chin in a given face, can I do it with any other API? I have tried this sample code: OpenFileDialog openFileDialog1 = new OpenFileDialog(); if (openFileDialog1.ShowDialog() == DialogResult.OK) { try { FSDK.CIm...
Tehreem
1

votes
1

answer
2.5k

Views

How to subtract two images in emgu cv

I have two images, one normal image and another its denoised version. I want to extract noise from an image ,thus need to subtract the two images according to NOISE = IMAGE - IMAGE(DENOISED) I am not getting how to subtract two images such that no data will be lost. Thanks in advance.
mg9893
1

votes
1

answer
1.6k

Views

Out of Memory error during stream capture from camera

I have been exhausted from this error from last 2 weeks.I tried a lot to find out and tried the code in different way but not succeeded yet.I think the main problem is with bitmap, may be i am not using in right way.I am sharing my code for help to understand what i am doing. First i tell you the sc...
t4taurus
1

votes
1

answer
2.4k

Views

emguCV- how to position an Image over another image

I want to add an image over another image in emguCV at specific position. Addweighted() don't allow positioning. Is there any way i can position the image. for example i have an image1 of 640x480 and i want to add a drop of water 10x30 on image1 at position 60x200. Is there any possible way to achie...
Saqib Vohra
1

votes
1

answer
2k

Views

Is there a faster way to detect an object by color using Emgu CV (openCV wrapper)?

The code below takes multiple seconds and I would like to detect an object by color faster so it can be displayed realtime. grayImg = input.InRange(new Bgr(selectionRangeSlider1.SelectedMin, selectionRangeSlider2.SelectedMin, selectionRangeSlider3.SelectedMin), new Bgr(selectionRangeSlider1.Selected...
Thomas
1

votes
1

answer
2.5k

Views

Equivalent in EmguCV

What is equivalent of this code in emgucv: cv::Mat marker = cv::Mat::zeros(im.size(), CV_8UC1); This is in opencv now! I couldn't find a wrapper for Mat!
NESHOM
1

votes
1

answer
1.4k

Views

Alpha composite images using emgu.cv

Emgu.CV (Nuget package 2.4.2) doesn't as far as I can tell implement the gpu::alphaComp method available in OpenCV. As such when trying to implement this specific type of composite it is incredible slow in C#, such that it takes up some 80% of the total cpu usage of my app. This was my original solu...
Emile
1

votes
2

answer
1.7k

Views

EmguCV: Get coordinates of pixels in a line between two points

So here's my goal: I want to stop at each pixel on a line and do some processing on those pixels. Currently i'm using EmguCV for my image processing library. In openCV there is a method called LineIterator which you can use to iterate through the pixel in a line. However, I haven't found a method si...
mohikhsan
3

votes
4

answer
13k

Views

emguCV 3.1 - face detection

I'm new to OpenCV/EmguCV in C#. I tried a tutorial (http://fewtutorials.bravesites.com/entries/emgu-cv-c/level-3---live-face-detection) and the video captureing with the webcam was easy. Now my problem: The tutorial was written for EmguCV 2.x. I'm using EmguCV 3.1 (I like to use the newest). Theref...
henne959
1

votes
3

answer
84

Views

Does a parameterized return type require a generic method signature?

Specifically, I'm working with EmguCV's Image type. I've defined an interface ITransformation with a method ApplyFrom that takes an Image and returns an Image: public interface ITransformation { Image ApplyFrom(Image sourceImage); } But this seems awfully verbose with type parameters, especially whe...
kdbanman
2

votes
3

answer
5.9k

Views

'Emgu.CV.CvInvoke error on face recognition test using emgu

I'm hitting a bit of a brick wall I may just lack some fundamental understanding about how to setup projects in .net (c# express 2010) but I just can not seem to get this program to work Basically I'm trying to just setup a simple program that will take a web cam feed and check it for a face and if...
Crash893
2

votes
1

answer
968

Views

short[] array to EMGU Image , fastest way?

I have an array of Int16[19200] I want to turn it into an Image[160,120,1] What is the fastest way of doing this? I need to do it at 120fps, so it needs to be really efficient. Thanks SW
Shachar Weis
2

votes
1

answer
2k

Views

Proper disposal of Images in EMGU

Im using EMGU (opencv wrapper) for image processing. I want to load images one by one from a folder to perform some operations on them. I use the following code and would do some operations in the using block. string[] filenames = Directory.GetFiles(directory); foreach(string filename in filenames)...
Christo
2

votes
2

answer
8.4k

Views

Detecting people crossing a line with OpenCV

I want to count number of people crossing a line from either side. I have a camera that is placed on ceiling and shooting for the floor where the line is (So camera sees just top of people heads; and so it is more of object detection than people detection). Is there any sample solution for this prob...
Kaveh Shahbazian
2

votes
1

answer
1.8k

Views

How to set values for multichannel matrix in Emgucv

I didn't find any explanations how to use a matrix with more than one channel im emgucv var matrixa = new Matrix(usablePoints.Count, 1, 2); I tried with the Split() function but it didn't change the values of matrixa var channels = matrixa.Split(); for (int i = 0; i < usablePoints.Count; ++i) { chan...
user2245817
2

votes
1

answer
2.1k

Views

emgu Calculate histogram with matrices

I found a similar question: creating histogram using emgu cv c# and it works well when i passed grayscaled images, but when i use the Matrix, program throws exceptions. my code: Matrix mat = new Matrix(10, 10); mat.SetRandUniform(new MCvScalar(0.0), new MCvScalar(20.0)); DenseHistogram histo = new D...
Ggicci
3

votes
1

answer
515

Views

EmguCV 2.4.2 dll file size are too big

I have implented a face detection webapp using EmguCV 2.2.1. The total dll file size for the webapp to run is just ~12MB. But when I try to update my program using EmguCV 2.4.2 (I need new FaceRecognizer class in this version), the total dll size is too big. opencv_gpu242.dll ~ 200MB (In the 2.2.1...
Huy Hoàng Phạm
17

votes
6

answer
22.5k

Views

unable to load cvextern in a c# project

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...
dusm
7

votes
2

answer
9k

Views

C#, Emgu webcam - choose capture size

I'm using the Emgu library for integrating the open CV webcam features in C#. I use this code for choosing the capture device and setting its size: camera = new Capture(0); camera.SetCaptureProperty(CAP_PROP.CV_CAP_PROP_FRAME_WIDTH, videoSettings.width); camera.SetCaptureProperty(CAP_PROP.CV_CAP_PR...
jimutt
18

votes
5

answer
26.1k

Views

Face gender detection library [closed]

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?
Shachar Weis
2

votes
0

answer
207

Views

my 'Disparity map' result is black?

I am using emgucv 3.10 and I want to extract 3D information from stereo images. So, I take a left and right image and after that get a disparity map. But my disparity map is black? how can I fix it ? can you help me solve this issue ? After I get my disparity image, I want to measure real distances...
CbsHs
2

votes
1

answer
2.6k

Views

Drawing a rectangle on a video in C#

Hi I want to draw a rectangle on a video stream(web cam video or loaded saved video) that I have streaming on a picture box. This is a C# application and I am using EmguCV 2.1.0.0. I have been successful in displaying the video stream on the picturebox in the form. Can I use Emgucv to draw on the vi...
Haxed
2

votes
1

answer
57

Views

What does it mean to constrain a type parameter with `new()`?

Here is a class signature from the popular EmguCV package. It's the Image class - not all of it is important: /// /// An Image is a wrapper to IplImage of OpenCV. /// /// Color type of this image (either Gray, Bgr, Bgra, Hsv, Hls, Lab, Luv, Xyz, Ycc, Rgb or Rbga) /// Depth of this image (either...
kdbanman
2

votes
1

answer
1.4k

Views

How to recognize numbers from the images detected by haar classifier

I trained a haar cascade which is able to detect speed limit traffic signs. Now I am wondering how to recognize numbers from the images detected. Here are few examples of detected images: I've got an algorithm which can recognize numbers only in case if they are in the center of the detected image...
Azik
1

votes
3

answer
749

Views

How to locate an object in an image?

I have a black and white image containing objects from a set. I'd like to be able to locate these objects. I'm almost sure that the objects in the image are the same size and almost exactly the same shape as the samples in my set. One way of doing this is to move the objects in my set one by one ov...
Johnny
6

votes
1

answer
8.3k

Views

Convert System.Drawing.Image to Emgu.CV.Image<Gray,byte>

Is there any way to convert an Image of type System.Drawing.Image in to Image of Emgu.CV.Image type or vice versa on EmguCV using C#? I will explain per your request if additional explanation is needed about the purpose of doing this.
Sisay
5

votes
1

answer
14.5k

Views

how to convert mat to image

I need to convert a Mat to an Image in Emgu CV. Trying to cast a Mat to an image produces an exception: Cannot implicitly convert type 'Emgu.CV.Mat' to 'Emgu.CV.Image Image imgeOrigenal; Capture capWebcam = null; imgeOrigenal = capWebcam.QueryFrame();//error line How can I convert the Mat to an Ima...
Ehsan Jeihani
3

votes
1

answer
8.9k

Views

Bitmap class in WPF

I'm working with Emgu Cv in Winforms to do face recognition using Kinect. Now, i want to move to WPF. However, the EmguCv library support only Bitmap class. Can i use the Bitmap class (used in Winforms) in WPF ? if not, is there an other method to use Emgu cv with kinect in WPF? Thanks.
Rafik Haceb
4

votes
2

answer
2.6k

Views

Where is the source code of 'cvextern.dll' of Emgu OpenCV?

Where can I find the source code for 'cvextern.dll' of Emgu OpenCV? Thank you.
Ahmad
19

votes
3

answer
32.4k

Views

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

I need Haar Cascades xml files for Mouth, Eyes & Nose. Do provide me useful links. Any kind of help would be highly appreciated.
Nishant Shah
1

votes
1

answer
6.5k

Views

How to convert image in to binary image using Image processing with Emgu CV

Any suggestions to convert image into binary and remove noise from it. Submit the coding plz. I'm trying to read characters in the image using tesseract function in Emgu CV.
user2490290
5

votes
3

answer
11.8k

Views

How to implement Optical Flow tracker?

I'm using the OpenCV wrapper - Emgu CV, and I'm trying to implement a motion tracker using Optical Flow, but I can't figure out a way to combine the horizontal and vertical information retrieved from the OF algorithm: flowx = new Image(size); flowy = new Image(size); OpticalFlow.LK(currImg, prevImg,...
João Cardoso
6

votes
4

answer
5.5k

Views

EmguCV cvextern System.DllNotFoundException

I am trying to run the example of LicensePlateRecognition in EmguCV 3.1. But I always get the error System.DllNotFoundException and the message is that "cvextern.dll cannot be loaded". I am running Windows 7 with Visual Studio 2013 (the computer is provided by my company). I copied the said dll and...
LLS
5

votes
2

answer
455

Views

C# New bitmap() - Out of memory

I'm newbie at DotNet programming. I got a serious problem for me but I don't know why. I already used Dispose() method but "Out of memory" problem still occurs. At about first 30 times, everything works perfectly. Then, Out of memory happens. Furthermore, the images is from 13-16Mb. This is my code:...
Tin Chip
1

votes
2

answer
624

Views

what is the main difference between linear discriminant analysis and pronciple component analysis

"The Principal Component Analysis (PCA), which is the core of the Eigenfaces method, finds a linear combination of features that maximizes the total variance in data. While this is clearly a powerful way to represent data, it doesn’t consider any classes and so a lot of discriminative information...
user2921008
5

votes
1

answer
6.4k

Views

Get a Image Mask of the Differences Between Two Images Emgu CV

I was wondering how to take two different gray images and create a mask of the differences between the two. Any help would be much appreciated.
clcrutch
5

votes
3

answer
5.2k

Views

Improve face detection performances with OpenCV/EmguCV

I am currently using EmguCV (OpenCV C# wrapper) sucessfully to detect faces in real-time (webcam). I get around 7 FPS. Now I'm looking to improve the performances (and save CPU cycles), and I'm looking for options, here are my ideas: Detect the face, pick up features of the face and try to find thos...
Matthieu Napoli

View additional questions