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

Deployment of App with EMGU dlls hangs with capturing the video stream from IP Cam

I have an applications that have EMGU controls and DLLs, the purpose of the said app to play and capture the video from the IP Cam using the EMGU version 3.1.0.2282, when I run this application in a workstation the program will stop after a few…
BJMKim24
  • 1
  • 2
0
votes
3 answers

Track IR Led using EMGU CV?

I have been trying to make head mounted (Infrared)IR Led light tracker using EMGU CV? I know head tracking using EMGU CV. But head mounted IR Led light tracker gives more accuracy. I want make some thing like Head tracking with webcam or FreeTrack.…
littleBrain
  • 159
  • 4
  • 11
0
votes
1 answer

How to programmatically set Focus with IP WebCam

I'm trying to capture images/snap shot from IP Cam/WebCam using the EMGU. I've tried the following code without success... Imports Emgu Imports Emgu.CV Imports Emgu.CV.Util Imports Emgu.CV.Structure Public Class Form1 Dim camera As…
BJMKim24
  • 1
  • 2
0
votes
1 answer

c# GTK 2 & 3 conflict when using Emgucv

I found a strange confict when using Emgu with class 'ImageViewer' When I have no static class member, everything work just fine. for example, code like below using Emgu.CV; using Emgu.CV.Util; using Emgu.CV.UI; namespace TmpTest { class…
0
votes
1 answer

Compute the FFT inverse without using the FFT forward

I'm trying to compute the FFT inverse without using the FFT forward, but it returns just a black image. I'm using EmguCV in C#. I'm using this code: Matrix reverseDft = new Matrix(m_rows, m_cols, 2); CvInvoke.cvDFT(data, reverseDft,…
0
votes
0 answers

Emgu.CV DTrees train System.AccessViolationException

I use this function to train my DTrees object from Emgu.CV library. public void Learn_Internal(double[][] aadMlInpFv, int[] anMlOutGt) { if (aadMlInpFv == null || aadMlInpFv.Length == 0) return; try { //Use the first 80% of data…
HamidEbr
  • 405
  • 1
  • 7
  • 19
0
votes
1 answer

why tesseract showing error " Unable to create ocr model using Path and language " for other language except eng?

I m making an window application using c# using tesseract with Emgucv. everything is working fine when i use "eng" as a language for the tesseract engine but when i try to make some other .traineddata it gives me the error " Unable to create OCR…
bab951
  • 41
  • 12
0
votes
0 answers

AccessViolationException in EmguCV

I'm currently scanning few images and store ROIs in a List. Now I loop through the list and check if the ROI has a bar code in it. It works with few images and throws an AccessViolationException at converting mat to image for others and it is not…
Sri
  • 59
  • 1
  • 8
0
votes
1 answer

Camera view to Mat object using EmguCV and Unity

I need to do some image processing in unity. What only interests me is a view from the camera object. I capture the view by using readPixels32 and getPixels32. Thus i end up with a Color32[] array. How can i create a Mat (matrix from opencv) object?…
Kalvy
  • 31
  • 5
0
votes
1 answer

I can not get video from the camera EmguCV

does not work Emgu.CV.Capture () public Form1() { InitializeComponent(); grabber = new Emgu.CV.Capture(); grabber.QueryFrame(); Application.Idle += new…
0
votes
1 answer

OpenCV / EmguCV capping at 255 even though image depth is UInt16

I'm creating an image object in C# using EmguCV with depth UInt16 (ushort). Then I'm filling in the image with a linear gradient that increases in value the higher the row index. What I don't understand is, that the value 255 produces 100% white…
Sebastian Häni
  • 566
  • 4
  • 17
0
votes
0 answers

How to make an array of all possible shades of a specific object?

I'm working on a image recognition project in C# that counts the percentage of beer in a pint. One of the simplest ideas I came up with is counting the percentage of beer-yellowish pixels that are in the pint. I was wondering if there's any way of…
0
votes
0 answers

Detecting Length of Segmented Image in EmguCV C#

The Requirement is to measure the distance of Canny Edged images on my program. To be specific the images I'm working on are human feet. I have already done this program via Matlab. To do this, I'm using the Matlab codes as my Algorithm for EmguCV…
0
votes
0 answers

c# emgucv HoughLines function

I need to do a HoughLines to the bitmap pic: but the result is an error: the array is out of range How can I draw the line in the picture?
0
votes
0 answers

EmguCV - Resolving Visual C++ Dependency in Mono/Xamarin - Mac OSX

I have a project that is using old version of EmguCV. In windows,it requires Visual C++ Redistributable for proper functioning.The Library throws some exception when its missing.I'm porting the same application for MacOSX using Mono. I was wondering…
techno
  • 6,100
  • 16
  • 86
  • 192
1 2 3
99
100