Questions tagged [emgucv]

1

votes
1

answer
376

Views

Unable to install EmguCV via NuGet in Visual Studio 2015

I wanted to play around with Emgu.CV but I still fail installing it. I created a new C# project, right click to Reference >> Manage NuGet Packages. Entering 'Emgu' in the search field, you'll find EmguCV. Clicking 'Install' I get this output: That also happens, when I try to use older versions. Usin...
Jan021981
1

votes
0

answer
370

Views

C# Get pixel location from Image<,> EMGU CV 3.3

I've been working on an EMGU based project where i need to create a skeleton image with the ZhangSuen thinning algorithm, which works perfectly fine. For further analysis I want to obtain all pixel locations of the skeleton and store them in a List I've researched a lot about performance issues when...
Kajij
1

votes
0

answer
242

Views

How to get distances from all trained images in face recognition using EmguCV?

I was able to compile a simple face detection and recognition program in c# using EmguCV, following this article: http://ahmedopeyemi.com/main/face-detection-and-recognition-in-c-using-emgucv-3-0-opencv-wrapper-part-1/ Once trained the recognizer, the Predict method correctly returns the correspondi...
A.Spaesato
1

votes
0

answer
292

Views

Windows Forms Example with EmguCV - Could not load file or assembly 'Emgu.CV.World' (Code 0x80131040)

What I'm trying to do is use an instance of EmguCV's own ImageViewer class from the Emgu.CV.UI namespace in the default template Visual Studio 2017 loads when a Windows Forms application project is created. For some reason, on the following line Application.Run(new ImageViewer()); I am getting the f...
user9236834
1

votes
2

answer
407

Views

CvInvoke.Canny() - gives different results on different computers

when trying to perform some binary manipulations on the exact same image file, but on different computers (&monitors), i get a different result when using the CvInvoke.Canny() method. before calling this method, i use several manipulating methods such as: CvInvoke.Threshold() , CvInvoke.Erode() , Cv...
RedHat
1

votes
0

answer
166

Views

Using Earth's Mover Distance with Emgu CV

I am working on a project in which I try to compare two images in C#. I'm using EmguCV (a C# wrapper for OpenCV). I've tested some funcitons which work (compareHist for example). I am now trying to use the implementation of Earth's Mover Distance. As I use color images, I build a 2d Histogram based...
Dadedidododu
1

votes
1

answer
44

Views

HTML5 canvas, how to open different hyperlinks by clicking on a different area of the image?

I want to link different web pages based on color of different region. In image multiple region with same color also points to distinct hyperlink e.g. this is an image with different regions based on color please click here to see [1] is there a way of achieving this?
Wajahat Gul
1

votes
0

answer
76

Views

System.AccessViolationException on rendering frame on WritableBitmap

I am rendering video frames on writable bitmap, and application crashing randomly after sometime, am monitoring memory and cpu load looks fine Frames are grabbed and queued for rendering from threadpool thread and am invoking following code on dispatcher this.Dispatcher.Invoke((Action)(() => { Bitm...
Dark Knight
1

votes
0

answer
238

Views

Exception:Thrown: “OpenCV: Seed point is outside of image”

i'm going to do a floodfilling in a binary image using emgu with c#. and when i'm executing the project that says 'OpenCV: Seed point is outside of image' (Error line is CvInvoke.FloodFill() ) for (int j = 1; j < imgWidth; j++) { for (int i = 1; i < imgHeight; i++) { if (outPutGrayScaleImg.Data[i,...
Vimukthi Guruge
1

votes
0

answer
87

Views

EmguCV Pre-filter before Canny edge in OpenCV Demostrator

I've been working with OpenCV and EmguCV for the first time. I needed to process some images and implemented EmguCV but since I'm very newbie on this I don't even know the commands/filters so I looked up for an application to demonstrate OpenCV filters and found one, named 'OpenCV Demonstrator' avai...
Roni Tovi
1

votes
0

answer
35

Views

Need help in configuring Matrix IP camera in wpf application(emguCV)

We are working on a project and we need to configure IP camera in WPF application.Right now,in our code we are using the laptop inbuilt camera.we want to replace that camera with our MATRIX IP camera.Please provide possible solution for this. Here I am copying my code of file MainWindow.xaml.cs Tha...
jaymin prajapati
1

votes
0

answer
144

Views

emgucv c# OpenCv:u!=0 error at 1920*1080p

I can get IP camera live video stream at 960*540p resolution using emgucv in c#. But when I changed camera stream resolution to 1920*1080p, I am getting this error: OpenCv:u!=0 error I am gettin the error at this line: _capture.Retrieve(frame, 0); Below is my code : public Form1() { InitializeCompo...
osmancns
1

votes
1

answer
52

Views

C# Windows Forms App - how to detect non-forms window closing

I have a Windows forms application that uses OpenCV to display videos. The video display window is created when I call this OpenCV call CvInvoke.Imshow(winname, frame); frame is a single frame of video. The call returns nothing so I don't know the handle of the Window that the call created. What...
MikeyB
1

votes
1

answer
76

Views

More complex hand-pose estimation algorithms

I am currently looking into hand-pose estimation in Unity without using any expensive plugins! At the moment, I have implemented a simple hand-tracking system by extracting the contours of the hand, like the link below: https://www.youtube.com/watch?v=4QE5FcUK5ZA However, it doesn't work brilliantly...
Samuel Lopes
1

votes
0

answer
258

Views

EmguCV - Fisheye Calibration

For a school project, I am trying to calibrate a Dahua IP Camera, which has Fisheye distortion. We need to calibrate the camera to undistort the image, because we need a flat image to do image processing. So far, we have managed to do the calibration in Python with OpenCV, but the rest of the script...
GodOfNeoN
1

votes
0

answer
169

Views

How to fix TypeLoadException (EmguCV + Unity3d)

I am trying to integrate EmguCV (OpenCV Wrapper) with Unity3d. For this purpose I followed this tutorial and complete all the required steps. Now what I have: EmguCV : emgucv-windesktop_x64-cuda 3.1.0.2504 Unity 2017.4.0f1 (with experimental .NET 4.6 set on it in its Build>Player Settings) Monodeve...
Syed Aun
1

votes
0

answer
46

Views

Horizontal and Vertical Projection on Binary image for text line extraction using Emgu

I'm using tesseract and Emgu to develop OCR project for myanmar language. After binarization process, i want to segment each text line from the binary image using vertical and horizontal projection. Problem is I don't know how to do that using Emgu. Please help me with code example. thank you all.
zml
1

votes
0

answer
116

Views

How to get the emgucv compiled on my Ubuntu 18.04? It is said to support Ubuntu

First I am not very familiar with C++ compile process, but I have to compile the emgucv repository on Ubuntu 18.04. I follow the instruction and try to figure out things by searching through Stack Exchange. I got every dependencies setup, then the only file I need to execute is this one. Although it...
Ralph B.
1

votes
0

answer
23

Views

I have built Emgucv on Ubuntu, then what is next step?

This is a follow-up question for my previous one. It turns out the bad file is not important, and I bypassed the 'windows symbol' issue by replacing them by equivalent Linux ones if possible. I have finished compiling EmguCV on Ubuntu 18.04 by running the script /platform/ubuntu/16.04/cmake_configue...
Ralph B.
1

votes
0

answer
356

Views

Track & Assign Unique IDs to Objects in Video c#

I am new to Computer Vision and i am using EmguCV library. My goal is to track and assign unique IDs to all objects in a video and i'm almost lost!!. Approach 1: for each frame in the video: Background subtraction using (BackgroundSubtractorMOG) Get Blobs using (CvBlobDetector) Track detected Blobs...
1

votes
1

answer
377

Views

EmguCV Blob Counter

INPUT IMAGE Hi I am try to learn EmguCV 3.3 and I have a question about blob counting.As you see in INPUT IMAGE I have black uneven blobs. I am try to do something like this. OUTPUT IMAGE I need to draw rectangle around blobs and count them. I tryied some approches but non of it work. I need Help();
1

votes
1

answer
61

Views

How to find horizontal and vertical distance variation between 2 objects

I'm trying to find the horizontal and vertical variation between 2 objects in EMGU CV by finding the distance between their centroid. The bottom object is always fixed, the top object moves during production. I'm using this formula - ((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2)); However, this giv...
Roshan
1

votes
1

answer
74

Views

Fastest way for object detection based on some colors in image by emgu or opencv

I have a list of some certain colors in array (about 60 different colors and they are not in a range), I want to detect them in images by Emgucv or opencv. Actually I'm going to detect some objects by their colors and I don't want to do it through AI methods now. Doing this through loop is very slow...
Sina
1

votes
0

answer
53

Views

How to convert OpenCV Mat.at<float>(float,float) to EmguCV

Sorry for this noob question. I am trying to convert code from this link Detect semi-circle in opencv to C# but I am stuck in this line if(dt.at< float >(cY,cX) < maxInlierDist) I can't see equivalent of OpenCV dt.at() in Emgu.CV. So I'd like to ask if anyone encounter this already and successfully...
dhongki
1

votes
0

answer
77

Views

EmguCV CvInvoke.Rectangle {“OpenCV: connectivity == 8 || connectivity == 4”}

I've some error in emguCV, when draw Rectangle, throws '{'OpenCV: connectivity == 8 || connectivity == 4'} 'exception. Here is the part of my code that exception is thrown here: private VectorOfRect FilterMostlyEmptyBoxes(VectorOfMat thresholds, VectorOfRect charRegions) { // Of the n thresholded im...
HamidEbr
1

votes
1

answer
303

Views

How can I convert Image to Matrix and then Matrix to Bitmap in EmguCV?

I am trying to do something like the following: public partial class Form1 : Form { const string path = @'lena.png'; public Form1() { InitializeComponent(); Image color = new Image(path); Matrix matrix = new Matrix(color.Rows, color.Cols); matrix.Data = color.ToMatrix();// just an analogy pictureBox...
user366312
1

votes
1

answer
71

Views

Emgu.CV Fisheye.Calibrate method

I'm currently trying to use the Fisheye.Calibrate method and the Fisheye.UndistorImage method from the Emgu.CV library. As far as I've understood, the Calibrate method is used to calculate a camera matrix (K) and a distortion vector (D), which are to be used to undistort fisheye-images using the Und...
Vautryn
1

votes
1

answer
179

Views

Use two Haar Cascade xml files with EmguCV detection and recognition

With EmguCV I'm using single haarcascade_face.xml: face = new HaarCascade(xmlPath); Attached from directory: string path = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), 'folder\\haarcascade_face.xml'); This way detection or recognition works for particular xml f...
Ai_ve
1

votes
0

answer
48

Views

Emgu 3.4.3 error “unable to load DLL cvextern”

Although this problem has been around for some time, I couldn't yet find a solution that worked in my case. Here's the problem again: When using EmguCV I always get the 'unable to load DLL 'cvextern'' error. In my case when I try to capture an image from an external webcam via 'VideoCapture' Here's...
Raketenmaulwurf
1

votes
1

answer
20

Views

EmguCV 343 missing dll “cvextern.dll” when trying to initialize a new Image<>

So, I tried to use Mean Shift Segmentation in EmguCV3.4.3 but ended up getting a problem with the missing dll cvextern. I already tried solutions from other posts but didn't get closer to solving the problem. I tried to set the targeted platform to x64. Someone had posted a list of the dlls that cve...
Tom S.
1

votes
0

answer
29

Views

Is there any way of using EmguCV with Unity for UWP (HoloLens) app development without buying EmguCV package from Unity asset store?

I am developing a face detection app for my HoloLens for testing purpose. For this, I am using Unity and OpenCv wrapper library EmguCv. I have developed similar desktop applications using EmguCv and Unity. But, now I want to develop some for HoloLens. I have tried almost every way of using EmguCv fo...
Osama Majeed
1

votes
2

answer
21

Views

How to use the exact Opencv C++ functions in EMGU?

As mentioned in the EMGU documentations '.Net wrapper to the OpenCV image processing library' We depended on the functions we could find online but we really didn't figure out how to use those exact OPENCV C++ functions in the opencv documentations like blob? How to use them in the EMGU platform?
Mohammed Fawaz
1

votes
0

answer
38

Views

How do I make a video (.mp4/.avi) from a stream of images displayed in emgu cv's image box?

I am trying to make a face recognition application with recording function. It will act like a cctv camera but with face recognition. I used emgu's imagebox to display the stream of images of my web camera. My problem is, how do I convert the stream of images to a video file and then save it to a lo...
ravarador
1

votes
1

answer
1.3k

Views

Help with OpenCV cvInitUndistortRectifyMap and a single camera

I'm trying to create a map that will undistort and rectify a single camera. Right now I'm doing this in two separate operations. I've tried making a map with cvInitUndistortRectifyMap, but I'm getting weird results. Does anyone have an example how to do this ? What should I give cvInitUndistortRecti...
Shachar Weis
1

votes
1

answer
774

Views

How to write a program from scratch in C# using EmguCV

I am trying EmguCV 2.2.1 in Visual Studio 2010 Express (C#) All the examples given with the Emgu Installation work absolutely fine, and give the desired output. But when i write a program myself, an exception is thrown at me even before running: TypeInitializationException was unhandled by user code...
kumar_harsh
1

votes
1

answer
524

Views

Grouping multiple bounding boxes

I am using background subtraction to detect movement on the screen then I use cvFindContours to detect contours when I use cvBoundingRect I get a lot of small rectangle this is due to background subtraction does not return smooth connected binary image there are holes in the diff image which causes...
Hamza Yerlikaya
1

votes
1

answer
1.2k

Views

Showing processed images from an IP camera

I have an IP-camera that serves images. These images are then processed via EmguCV and then I want to display the processed images. To show the images, I use this code: Window1(){ ... this.Dispatcher.Hooks.DispatcherInactive += new EventHandler(Hooks_DispatcherInactive); } Hooks_DispatcherInactiv...
Loy
1

votes
1

answer
9.4k

Views

Object detection using emgu cv CvInvoke.cvHoughCircles

I want to detect objects using cvHoughCircles method in visual c#.If anyone knows how to do this please help me. Edit Details: I searched in the Internet there is examples using gray.HoughCircles method. this is my code. Image image = capture.QueryFrame(); MCvScalar hsv_min = new MCvScalar(150, 84,...
yasitha
1

votes
1

answer
605

Views

Naive Bayes Classifier Biased Output?

I'm using Emgu CV to implement a machine learning technique in c# to classify pixels of my image into 3 different categories. Everything works perfect so far, but the problem is that it is fully automatic. I want to make it semi-automatic which mean the user can 'give weight' to each of those 3 outc...
Mo Valipour
1

votes
1

answer
1.3k

Views

Emgu CV: HaarCascade.Detect respects ROI?

I looked in the documentation of Emgu CV but didn't find anything relevant. I just want to make sure: does HaarCascade.Detect respect the ROI, so that the detection is only performed in the subarea designated by the ROI? Image grayFrame; grayFrame.ROI = eyesROI; HaarCascade.Detect(grayFrame); Thanks
Roland

View additional questions