emgucv

How do I equalize contrast & brightness of images using opencv?

杀马特。学长 韩版系。学妹 提交于 2019-11-28 18:26:28
I've got an image that I've scanned, but the white paper is not white on the screen. Is there a way to equalize the contract/brightness to make the background whiter? Update I've tried the suggested Image._EqualizeHist function from EmguCv: string file = @"IMG_20120512_055533.jpg"; Image<Bgr, byte> originalColour = new Image<Bgr, byte>(file); Image<Bgr, byte> improved = originalColour.Clone(); improved._EqualizeHist(); But get an even worse result (also when first gray scaled): Am I missing other parameters? Abid Rahman K I have discussed some techniques here : How can I adjust contrast in

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

大城市里の小女人 提交于 2019-11-28 17:35:25
I need Haar Cascades xml files for Mouth, Eyes & Nose. Do provide me useful links. Any kind of help would be highly appreciated. Look at this page: http://alereimondo.no-ip.org/OpenCV/34 There are haar cascades for eyes, nose and mouth :) I believe they are in the EmguCV package when you download it. Can't remember exact directory but do a search for *.xml. Edit Found the location. Get the emgucv zip file then they're in... .\opencv\data I imagine you can get these straight from their SVN as well Saad Bilal This will help. Contains all haar cascade for eye, face and nose: https://github.com

Dice face value recognition

我们两清 提交于 2019-11-28 16:53:10
问题 I’m trying to build a simple application that will recognize the values of two 6-sided dice. I’m looking for some general pointers, or maybe even an open source project. The two dice will be black and white, with white and black pips respectively. Their distance to the camera will always be the same, but their position and orientation on the playing surface will be random. Dice http://www.freeimagehosting.net/uploads/9160bdd073.jpg (not the best example, the surface will be a more distinct

Image preprocessing for text recognition

独自空忆成欢 提交于 2019-11-28 15:55:36
What's the best set of image preprocessing operations to apply to images for text recognition in EmguCV? I've included two sample images here . Applying a low or high pass filter won't be suitable, as the text may be of any size. I've tried median and bilateral filters, but they don't seem to affect the image much. The ideal result would be a binary image with all the text white, and most of the rest black. This image would then be sent to the OCR engine. Thanks There's nothing like the best set . Keep in mind that digital images can be acquired by different capture devices and each device can

IP Camera stop streaming after some time

送分小仙女□ 提交于 2019-11-28 14:49:59
I am working on one application where I want to use IP camera for displaying video streaming and and some other major operations on image captured by the IP Camera . Libraries used in Camera capture For Camera Capture : Emgu.CV Library Below is the code which I am using in C#. Variable Declaration private Capture capture; //takes images from camera as image frames private Emgu.CV.UI.ImageBox img; // Dynamic Picture Controls private int nCam; // no of cameras Code for Processing Image private void ProcessFrame(object sender, EventArgs arg) { try { // Live Streaming Display Image<Bgr, Byte>

how to get video from ip camera using emgucv

半城伤御伤魂 提交于 2019-11-28 12:53:08
I'm trying to get video from IP camera in emgu, I could display video in the browser from " http://169.254.255.253 " IP, but how could I display this from emgu? please, it's essential for me. Kerberos Capture _Capture = new Emgu.CV.CvInvoke.cvCreateFileCapture("http://username:pass@cam_address/axis-cgi/mjpg/video.cgi?resolution=640x480&req_fps=30&.mjpg"); I didn't test but may be this code snippet or approach can help you. For OpenCV example you can examine this page: OpenCV with Network Cameras And you can examine this method's wiki page: http://www.emgu.com/wiki/files/2.3.0/document/html

Type initialization exception

天大地大妈咪最大 提交于 2019-11-28 10:56:32
I created imageHolder class: public class ImageHolder : Image<Bgr, Byte> { private String imagePath; public ImageHolder(String path):base(path) { this.imagePath = path; } public String imgPathProperty { get { return imagePath; } set { imagePath = value; } } } I create instance of the class and initialize it,like this: private ImageHolder originalImageHolder; originalImageHolder = new ImageHolder(openFileDialog.FileName); In runtime i get this exception: The type initializer for 'Emgu.CV.CvInvoke' threw an exception. Here is Solution Explorer window: Any idea why i get this exception and how

Extract transform and rotation matrices from homography?

点点圈 提交于 2019-11-28 06:37:38
I have 2 consecutive images from a camera and I want to estimate the change in camera pose: I calculate the optical flow: Const MAXFEATURES As Integer = 100 imgA = New Image(Of [Structure].Bgr, Byte)("pic1.bmp") imgB = New Image(Of [Structure].Bgr, Byte)("pic2.bmp") grayA = imgA.Convert(Of Gray, Byte)() grayB = imgB.Convert(Of Gray, Byte)() imagesize = cvGetSize(grayA) pyrBufferA = New Emgu.CV.Image(Of Emgu.CV.Structure.Gray, Byte) _ (imagesize.Width + 8, imagesize.Height / 3) pyrBufferB = New Emgu.CV.Image(Of Emgu.CV.Structure.Gray, Byte) _ (imagesize.Width + 8, imagesize.Height / 3) features

EmguCV - Face Recognition - 'Object reference not set' exception when using training set from Microsoft Access Database

我的梦境 提交于 2019-11-28 05:57:49
问题 I've been developing a face recognition application using EmguCV (C#). I got the whole thing working okay if I store the face images (training set) in simple windows folder. But, after I tried to migrate the face images to be stored in a Microsoft Access database, an 'object reference not set to an instance of an object' exception message often occurs (not always, but most of the time) when the application tries to recognize a face from the video feed. Funny thing is, the recognition actually

OpenCV (EMGUCV wrapper) integration in Unity

给你一囗甜甜゛ 提交于 2019-11-28 05:04:17
As you know OpenCV is very useful library that let you do amazing and powerful things in Computer vision. So I passed a good time to figure out how to use it in Unity3d, I had many problems, and searching in the Net, I have found several suggestions but not one worked for me. I’m using a Unity Pro 4.0 This version of Emgu CV (emgucv-windows-universal-gpu 2.4.9.1847) My target for unity project is: windows and not web player jam This is what I did for everyone who want to use it: Install this version of EmguCV, which creates a folder EMGU in C: In this folder you will have a single folder named