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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
12 views

I can't get the cameraMatrix , rotation and translation Matrix from the method Cvinvoke.CalibrateCamera()

Dear csharp developers, I have calculated the image coordinaten of a set of images and I have save it in a List in my csharp program. All the images I used was calibrated with circles and there was 3 ...
elcapo's user avatar
  • 9
0 votes
0 answers
21 views

How to detect mouse clicks in EMGU.CV CvInvoke.Imshow window with C#

I have a yolo application built with EmguCv 4.8 in .NET6 that detects objects from a camera stream. Is there a way to detect mouse clicks and other events eg mouse down/up on the built in CvInvoke....
user1912383's user avatar
0 votes
0 answers
7 views

How to count instace of Mat class from EmguCV?

I want to trace the count of Mat instance, add 1 if constructor been invoked and minus 1 if it's been disposed, to avoid memory leak. Is it possible with extension method or insert some trigger to Mat?...
Lamp's user avatar
  • 321
0 votes
0 answers
36 views

How am I supposed to use ArucoInvoke.EstimatePoseSingleMarkers()? - Updated

I have a half working Monogame based Emgu.CV code, which is supposed to use the Aruco marker No. 21 for pose estimation. The plan is to use this marker, estimate its pose then draw some fancy 3d ...
Gida Róbert's user avatar
1 vote
0 answers
57 views

how to reduce high Cpu Usage in emgu.cv RTSP Player?

im novice developer using c#. I made User Control for playing rtsp from emgu.cv. I used this user control for my main program for playing 9 rtsp. but when i used my user control 9 times, it makes my ...
DK kim's user avatar
  • 11
0 votes
0 answers
22 views

EMGUCV TriangulatePoint result dimension

I am using TriangulatePoints from EmguCV to get 3D point coordinates from two 2D points. What is dimension of the result from TriangulatePoints - meters, santimeters? I've got result which is ...
Alex's user avatar
  • 1
0 votes
0 answers
5 views

What does the Cost represent in the Tesseract engine of Emgu.CV

The Tesseract engine of EmguCV returns a cost of each character detected. The cost look like to be within a range of 0 to 100. Is that a percentage or is it just a coincidence? Does it represent the ...
Zimo's user avatar
  • 316
0 votes
0 answers
13 views

C# Emgu CV get name of capture

I use the Emgu.CV.VideoCapture class to capture an external camera connected via usb. However sometimes I have the problem that the capture seems to switch internally to my integrated laptop camera. I ...
nckstr15's user avatar
0 votes
0 answers
35 views

"OpenCV: invalid device function" error in EmguCV project on first cuda call [duplicate]

I'm trying to run a project I found in a guide (Windows Forms App [.NET Framework], EmguCV). I'm using Microsoft Visual Studio 2022, and I obtained three dependencies from NuGet Package Manager: Emgu....
ddddd's user avatar
  • 35
0 votes
0 answers
20 views

Emgucv how to find multiple similar objects within the same row

I am using emguCV with C#. I can find multiple similar object but I only want objects that matches a template image in the same row. Assume all rectangle in image are the same size and shape. So ...
Duckyyyy's user avatar
1 vote
0 answers
35 views

Trouble Setting Exposure/Gain with Emgu.CV (or OpenCV) with Scientific Camera

OS: Windows 2008 R2 Camera Model: Sony 20 MP IMX Camera Emgu.CV version: 3.1.0.1 .NET Framework version: 4.7.2 I'm encountering an issue where, after changing the exposure of an nncam camera using ...
lishiyua's user avatar
0 votes
0 answers
24 views

Why MatchTemplate from EmguCV/OpenCV don't work on another images that have the same template in it?

Basically, I am doing a console application using Emgu CV to find out a template. It's a project to auto correct an answer sheet with a smartphone photo. It works fine with my photo 1, as the next ...
Fernando Castilho's user avatar
0 votes
0 answers
23 views

find out if an image contains another image in emgucv

I am trying to find out with C# and emgucv if there is a smaller image inside a large image. but the smaller image has a transparent background (its sprite like). ` using Mat result = new Mat(); ...
Klaus Dieter's user avatar
0 votes
0 answers
48 views

How to Read Byte Array of H.264 frames into EMGUCV

This is my first Question to SO so please excuse while i try and provide the correct information. I Have a video capture card in a PC Running windows 7 (I have been told that the card cannot run on ...
MikeCLX's user avatar
0 votes
0 answers
33 views

How to improve real-time image processing for moving objects?

enter image description here Sorry for long explanation. I am trying to develop a image processing app for moving object. However i have quality (performance) problem and looking for a way to improve ...
Ozzie's user avatar
  • 13
0 votes
1 answer
130 views

Emgu CV unable to load DLL 'cvextern'

I've been trying to set up EmguCV in my C# project and I'm stuck. I've installed EmguCV, I've downloaded OpenCV and set up the bin folder to PATH. I've written the most basic lines of code: using ...
Federico Frontini's user avatar
0 votes
0 answers
24 views

EmguCV Camera Calibration does not exist

I'm currently working on a License Plate reader. I started by using IronOCR, but it's only able to read license plates, when they are taken straight on, and very clear. So I'm giving Emgu a try. ...
Casper Jacobsen's user avatar
0 votes
0 answers
52 views

Which OpenCV function to use to calibrate on wider than fov chessboard pattern

I am looking at documentation here https://docs.opencv.org/3.4/d9/d0c/group__calib3d.html#gab8816c8a176e1d78893b843b3f01557a And examples here using EmguCV https://github.com/caulifla/emgucv/blob/...
Mich's user avatar
  • 3,330
0 votes
0 answers
33 views

OpenCv : How to detect color alterations in before/after picture of a painting?

I’m coding an app to check if a painting has been damaged using two high resolution pictures taken before and after it’s shipping. I have already managed to detect physical alterations (scratches, ...
SWAppDev's user avatar
  • 248
-1 votes
1 answer
62 views

C# EmguCV PictureBox - How to display unsigned 16 bit grayscale images?

I have a monochrome camera in my project that I read images of at either 8bit/16bit depth. I'm using EmguCV library to create a Mat object out of byte array that I read off the camera and want to ...
p0miki's user avatar
  • 33
0 votes
0 answers
71 views

Find accurate approximate contour of a warped card with rounded corners with OpenCV

I have written an algorithm to find and extract a Magic card in an image based on using OpenCV functions FindContours and ApproxPolyDP. Essentially, I clean up the image (blur, adaptive threshold, etc....
Brett's user avatar
  • 71
1 vote
0 answers
74 views

How to correctly draw a polygon roi?

I'm trying to draw a polyline/polygon ROI around a rounded text so that I can straighten it to perform OCR. IM using cyotek imagebox as it has a lot of functions inbuilt like zoom, pan move etc. Now I'...
Roshan Pillai's user avatar
0 votes
2 answers
47 views

C#, Efficient way to fill an image with input parameters

I have a large image img of size 8192 * 8192, I have 3 matrices of size 4096 * 4096: Matrix X containing x pixel coordinates Matrix Y containing y pixel coordinates Matrix RGB containing RGB values ...
Fedour Traktor's user avatar
0 votes
1 answer
43 views

Asynchronous method not adding frames to my List

I have been battling to read frames from a video with the library Emgu CV and use a timer to play the frames in a picture box to create the impression of a video. This time round I used a rather ...
user avatar
0 votes
0 answers
68 views

Cropping Images Based Off The Location of the Head

I'm looking to crop an image by finding the head and shoulders. The aspect ratio I'm looking for is 3.5/4.5. Like this: Yet this is an example result from my code: This is my code, but each and ...
MattHodson's user avatar
0 votes
0 answers
75 views

How to resolve a memory allocation problem in emgu cv?

I am trying to create a simple video player application with Emgu CV and Windows Forms. I have a picture box and a timer. The timer is for updating the frame on the picture box every 33 milliseconds. ...
user avatar
0 votes
1 answer
67 views

How to use Emgu CV to highlight corners on an image

I am trying to detect the corners on a checkerboard image and then draw circles over those sections of the image. I have consulted with the documentation of Emgu Cv and there are two ways to do this. ...
user avatar
0 votes
1 answer
30 views

C# Displaying 8BPP indexed bitmap in PictureBox causes color issues

I am having issues displaying 8bpp indexed OpenCV Mat in ImageBox, The image is large size, and I am trying to avoid copying pixel by pixel The code for the image conversion and display is below But ...
Mich's user avatar
  • 3,330
0 votes
0 answers
21 views

Emgu.CV tracker init issue

I am new to the c# image processing scene getting and getting Error CS1503 Argument 1: cannot convert from 'System.Drawing.Bitmap' to 'byte[,,*]' error from: qrCode.KCFTracker.Init(new Image<Bgr,...
Ugur Alp Balta's user avatar
0 votes
0 answers
65 views

getting exception "The type initializer for 'emgu.cv.cvinvoke' threw an exception."

almost tried every solutions from the internet solutions and sources. i have the code that works fine for the x64 bit OS while x32bit OS generates exception : "The type initializer for 'Emgu.CV....
SHIVANI BHADANI's user avatar
0 votes
0 answers
225 views

Get variable from Python to C# using pythonnet

I have simple python code: import cv2 import matplotlib.pyplot as plt def show_img(path): img = cv2.imread(path) plt.imshow(img) plt.show() And I call a func show_img() in C#: // Initialize ...
slorate's user avatar
0 votes
0 answers
27 views

How to visualize a certain point on an image using EmguCV?

I loaded an image and processed it to detect certain shapes on the image, now i want to detect the centers of the objects and draw a line through the longest part of the image it is supposed to look ...
kitty's user avatar
  • 1
0 votes
0 answers
26 views

Why do not Convert bitmap to Imgae?

private readonly Tesseract _ocrEngine = new Tesseract("tessdata", "eng", OcrEngineMode.Default); private void GlobalHookHandler(object sender, MacroEvent e) { if (!...
Doenjangjjigae Namu's user avatar
1 vote
0 answers
29 views

How to Read and display my new transformated pixel coordinate in c#

I've been working on a project for a week with the manipulation image coordinate, and I´m mostly done. However, I am experiencing some difficulties. I am programming with C# with the library Emgu.Cv (...
elcapo's user avatar
  • 9
0 votes
2 answers
137 views

Convert SoftwareBitmap to Mat for C#

I have a SoftwareBitmap object which I need to process using openCV. I haven't found code for C# to convert SoftwareBitmap to Mat. I tried to use C++ version but I don't have much experience in C++ ...
Dmitrii Polianskii's user avatar
0 votes
0 answers
54 views

EmguCV ImageGrabbed event not firing

I wrote a small program for displaying a webcam on a WPF Image component. There was such a problem, the Capture_ImageGrabbed event is not called. I can’t understand why this happens, because before ...
Ку Вертич's user avatar
0 votes
0 answers
60 views

Collision detection of detected shapes in the video?

i wrote this code , there a few seconds video (ball and court of volleyball) , i using Emgu CV (image processing) , i could find ball by (HoughCircles) and i drew a cirle around the ball , then i used ...
payam's user avatar
  • 103
0 votes
0 answers
44 views

Detect a rectangle with wider sides (tram signal)

I'm trying to write simple program to detect tram signal. Problem with this signal is that, it's not straight rectangle but it's look like this: I tried to detect it but sometime's it's working ...
Hyacin's user avatar
  • 9
0 votes
1 answer
141 views

Installing Emgu.CV in c# winforms exception LL 'cvextern': The specified module could not be found. (Exception from HRESULT: 0x8007007E) 4.8 how fix? [duplicate]

I'm using .net framework 4.8 in my c# winforms project. Platform target Any CPU In the project from the Manage NuGet Packages... I searched for Emgu.CV then in the project I added both using: using ...
shlomi eshel's user avatar
0 votes
0 answers
40 views

Shift image with EMGU cv in VB NET: Overload resolution failed because no accessible 'New' can be called with these arguments

I'm trying to shift an image by, let's say, 100 pixels both on the X and the Y axis. I understood that the best method to do it is by using the WarpAffine method, but I just can't get it to work. I've ...
user2959923's user avatar
0 votes
1 answer
28 views

EMGU.CV System.Runtime.InteropServices.SEHException while drawing contours (VectorOfVectorOfPoint) above a certain area in VB.NET

I'm trying to simply draw all contours above a certain area on an image. After i get the frame and contours, I get the following exception while iterating the contorus: System.Runtime.InteropServices....
user2959923's user avatar
0 votes
0 answers
25 views

Computer Vision Memory Leak Problem in C# [duplicate]

I am having a memory leak problem in this line of code for Computer Vision. private static void UpdateResultingImage(bool onlyShowFace = false) { //memory leaks happen in this method here if ((...
Gabriel Alabi's user avatar
0 votes
1 answer
127 views

Emgu.CV - C# - Mat data is getting corrupted

I am making a program in windows.forms, that is controling TV, taking screenshots of the screen and measuring time for certain events to happen (menu load, video start...). I make each measurement ...
Valter Rönisch's user avatar
1 vote
1 answer
220 views

Emgu.CV on raspberry Pi - VideoCapture.Start() returns an exception

Some info: Trying to run RaspberryPi 4B and Camera V2 with Emgu.Cv. I have installed the 64 bit OS, installed the latest NuGet packages for Emgu.Cv and Emgu.Cv.Runtime.debian.arm64 I am stuck at ...
ziga's user avatar
  • 159
0 votes
0 answers
58 views

How can I track the movements of 4 particular blobs using EmguCV C#?

The goal of my school project is to compare 2 images of a lattice structure to then calculate a central deformation. First I binarize my image and apply an erosion filter to have all the nodes of my ...
Thomas Herr's user avatar
0 votes
1 answer
72 views

How to convert a 3d zmap tiff image to a color bitmap or Image<Bgr,byte>?

I have a few images from a 3D scanner of a grinding disc. I want to view the image in a picturebox. I use this code : Mat finalImage = test3dimg.Clone(); // Normalize the image to ...
user3177511's user avatar
1 vote
0 answers
56 views

Emgu.CV.MatInvoke' threw an exception

DllNotFoundException: Unable to load DLL 'cvextern': The specified module could not be found. (Exception from HRESULT: 0x8007007E) [HttpPost] public ActionResult DetectFacesAndBlur(string ...
Ahsan Ali Siddiqi's user avatar
1 vote
0 answers
24 views

How to publish my C# winforms solution with an .xml file included [duplicate]

I have a program (solution) in Visual Studio 2022 and I need to publish it as a setup.exe application. My application is a simple face recognition using the haarcascade_frontalface_alt.xml file. I ...
d0nbell's user avatar
  • 11
0 votes
0 answers
45 views

What are some effective emgucv filters for preprocessing an image for Tesseract OCR?

I have uploaded an image, I want to preprocess it before forwarding it to tesseract. I am not sure whether applying a binary thresholding would be effective for this specific image or the same kind of ...
Ajay Pandya's user avatar
1 vote
0 answers
86 views

How can I solve a Xamarin IOS Error MT5212 (Native linking failed, duplicate symbol) caused by third party nugets?

I'm working on a project that uses both OpenCV and ONNX for some specialized text recognition purposes. We are developing the mobile application on Xamarin with targets for both Android and IOS. For ...
Giacomo Pellegrini's user avatar

1
2 3 4 5
45