Questions tagged [emgucv]

EmguCV is a cross-platform .NET wrapper to the OpenCV image processing library. Allowing OpenCV functions to be called from .NET compatible languages such as C#, VB, C++-CLI, IronPython etc. The wrapper can be compiled in Mono and run on Linux or Mac OS X.

About EmguCV

EmguCV opens the OpenCV (Open Source Computer Vision Library) library of programming functions mainly aimed at real time computer vision to .NET developers. OpenCV was originally developed by Intel and now supported by Willow Garage.

Current versions for x86 , x64 and ARM(only for iOS and Android) architectures are available for download at their SourceForge website, https://sourceforge.net/projects/emgucv/.

A download and installation guide is available here. This is particularly useful for newcomers as ensuring the correct references are used and that the associated OpenCV .dll files are copied to the output directory can be difficult.

EmguCV uses a dual-license business model for its software development library and offers licenses for two distinct purposes: open source, and commercial development. More information can be found here.

Cross Platform

Unlike other wrappers such as OpenCVDotNet, SharperCV or Code Project which use unsafe code, EmguCV is written entirely in C#. The benefit is that it can be compiled in Mono and therefore is able to run on any platform Mono supports, including Linux, Solaris and Mac OS X. A lot of efforts have been spent creating a pure C# implementation since the headers have to be ported, compared with managed C++ implementation where header files can simply be included. But it is well worth it if you see EmguCV running on Fedora 10! Plus it always gives you the comfort knowing that your code is cross-platform.

EmguCV can be used from several different languages, including C#, VB.NET, C++-CLI and IronPython. On this wiki, we provide examples for all those languages, which are available from the Examples section on Tutorial page. Our discussion forum is also available if you have any questions related to your favorite programming language.

Other Advantages

  • Image class with Generic Color and Depth
  • Automatic garbage collection
  • XML Serializable Image
  • XML Documentation and intellisense support
  • The choice to either use the Image class or direct invoke functions from OpenCV
  • Generic operations on image pixels

Architecture Overview

EmguCV has two layers of wrapper as shown below

  • The basic layer (layer 1) contains function, structure and enumeration mappings which directly reflect those in OpenCV.
  • The second layer (layer 2) contains classes that mix in advantages from the .NET world.

EmguCVArchitecture.png

2204 questions
0
votes
1 answer

Difference between two images using emgu

I'm coding in C# and I need help with the difference between two images. I'm using the emgu to help me with this part. The problem here is that as long as there is a diff in the pixel, it will be shown in the resulted pic. However, what I need is…
Snooze
  • 1
  • 5
0
votes
1 answer

Counter in Emgu CV 3.2.0

I am using Emgu CV 3.2.0 with c# for pixels detection. I can not find Counter in Emgu CV 3.2.0. Code is here: Contour contour1 = cannyGray.FindContours(); Where is counter present in Emgu CV 3.2.0? Or has it been replaced?
Asif
  • 763
  • 8
  • 18
0
votes
1 answer

Bitmap->image window form applications

I have problem in converting System.Drawing.Image to Emgu.CV.Image. i can load my image in formapplication string im_name = str[index]; Emgu.CV.Image img = new Image(im_name); but this code gives me error of invalid…
Shahgee
  • 3,303
  • 8
  • 49
  • 81
0
votes
0 answers

Getting image from webapi causes memory leak

I have a aurelia client that gets a image from my asp.net server via my API. The image is served from the server that holds a Emgu CV UMat var. With the following method in my controller i get the image and it is displayed correctly. This method…
RSNL
  • 213
  • 3
  • 15
0
votes
0 answers

Video face recognition and comparing with the image using Emgu 3.2.0

dear developers. It's my first time to ask someone here. Last week I got the task from my supervisor: To develop the software to compare the visitors' faces appearing on camera with the photos from their member-cards. After a deep research, it…
BaltoZor
  • 1
  • 3
0
votes
1 answer

Emgu CV the context menu of ImageBox is missing in a WPF project?

I am creating a WPF project with Emgu CV camera capture. I embedded Emgu CV ImageBox into WPF window as below
Paimiya
  • 105
  • 1
  • 7
0
votes
0 answers

What method does Microsoft Face API use for face comparison?

I've been working on a facial detection and recognition program for a few days now in OpenCV using Eigen/Fisher/LBPH FaceRecognizers that will compare the faces in two photos using the 3 listed recognizers and return a confidence value that the…
0
votes
1 answer

Get maximum HSV values from image in emguCV

i'm trying to get maximum values of hue, saturation and value from image converted to hsv in C# using emguCV. In openCV i can use Vec3b but how i can get same effect in c#?
Krystian721
  • 13
  • 1
  • 4
0
votes
1 answer

Emgu.Cv WPF (C#)How to load image from Image Box (image.source)

I have a helper class like this: class helper { [System.Runtime.InteropServices.DllImport("gdi32.dll")] // System.Runtime.InteropServices.dll public static extern bool DeleteObject(IntPtr handle); public static BitmapSource bs; …
j.doe
  • 327
  • 7
  • 22
0
votes
1 answer

Converting a specific line of a VB program into C#

Hi I'm writing a C# program based of a VB program to recognize text in images. However, I can't seem to be able to figure out the C# equivalent of this line: listOfContoursWithData.Sort(Function(oneContourWithData, otherContourWithData)…
0
votes
0 answers

Out of Memory using External Algorithm in WPF

I am getting an out of memory exception, but am only using about .3GB of RAM. I know Visual Studio allocates 2GB of RAM for 32-bit machines, and I am running in 32-bit mode. Here is how you can replicate it: 1) Install Emgu CV (can just use…
0
votes
0 answers

Dispose Image - Out of Memory C#

I have a code like below. I want convert the image from picture-box to apply median-filter by EmguCV. And the problem is that the "out of memory" problem occurs even though I dispose the image. After I click many button handler, the first line…
Huu Tin
  • 57
  • 1
  • 1
  • 8
0
votes
2 answers

EMGU 3.2 VideoCapture constructor hangs application

Hopefully someone can point me in the right direction. After spending many hours fighting this I am at my wits end. At this point I am just trying to get the EMGU example applications to run. Just the facts ... Applications hang at the line…
Nick.J
  • 11
  • 1
0
votes
1 answer

How to record video with sound emgu cv

I have following code in ProcessFrame event: frame = new Mat(); capture.Retrieve(frame, 0); if (isRecord && _writer.Ptr != IntPtr.Zero) {_writer.Write(frame);} Output video doesn't have sound. I want to record both video and sound .
Luan Nguyen
  • 17
  • 1
  • 6
0
votes
2 answers

C# Emgu : Use of DISOpticalFlow

I'm trying to build a real time frame interpolation program for videos. Because I have always worked with C#, I choose to use OpenCV with Emgu 3.2.0 (latest version available). So, here is it: First, I have 2 images named frame1 and frame2, which…
1 2 3
99
100