header photo

Blog posts : "c#"

How To Read an Image and convert to EmguCV Type?

April 7, 2013

Here's how to read an image file from your hard drive and use it as EmguCV type color image in your code?
CODE:

Image<bgr, byte> EmguImage = new Image<bgr, byte>(new Bitmap(@"E:\IMAGES\BirthdayCard.jpg")); 

Description:  We declared a new variable of type EmguCV color image. We called this variable 'EmguImage'. we initialized it(assigned value to it) to an image named ‘BirthdayCard’ with .jpg extension – remember to ALWAYS add extension of file!

This BirthdayCard.jpg is stored at location ‘E:\IMAGES\’ so the complete path of image becomes:

@"E:\IMAGES\BirthdayCard.jpg"


NOTE:
We …

Read more

Level 3e - How to Extract the Detected Faces From Input Image

April 30, 2012

LEARNING OBJECTIVE:
Once faces have been detected from an input image, extract each single face out and save to a folder OR view on the windows form in a picturebox

NOTE: we're starting off with modifying the Camera Capture application, right where we left it at the end of Level 3d. how we connected to camera, got an input image, detected faces and marked them in boxes and displayed them - to know all that, please have a detailed look at Level 1 and then  Level 3a to Level 3d

STEP 1:  If you still haven't then Add a button to "Browse For Input Image" on your application.

STEP 2:  Insert the Co…

Read more

'Emgu.CV.Invoke' threw an exception? -SOLUTION

June 22, 2011

 LEARNING OBJECTIVE:

'Emgu.CV.CvIvoke' threw an exception!!!?!
Working in EmguCV? and you also got this BUGGING error? especially when working with a web cam?

<<<
 You might have tried various sites to find the solution to this problem. we did and trust me we couldn't find anything that worked or …

Read more

Level 0-EmguCV Installation Guide for 32-bit Windows users

June 8, 2011

LEARNING OBJECTIVE:


NOTE: FOR THOSE WHO USE 64-bit Windows
please FOLLOW THIS TUTORIAL INSTEAD

PART 1- SETUP THE REQUIRED TOOLS::

1. Make sure you have Visual Studio C# 2008 installed (any edition, I’ve used Visual C# 2008 Express Edition and Visual Studio 2008 and 2010 Professional Editions on my 3…

Read more

4 blog posts