header photo

Blog posts : "tutorial"

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 3d - Add Parameter Tuning Features To Face Detection

January 19, 2012

TO DO:
NOT ALL FACES DETECTED? OR FACE DETECTION IS NOT UP TO YOUR REQUIREMENTS?
THEN ADD THE FEATURES(CODE) AS EXPLAINED IN THIS TUTORIAL, TO IMPROVE face detection according to your requirements by "Varying"/"Tuning" the parameter values of DetectHaarCascade(), by user input and see the differenc…

Read more

Level 3b - Live Multiple Face Detection

December 30, 2011

 PROBLEM STATEMENT:
 
Make a Windows Form Application in C# using EmguCV library, such that
1- it gets an input image from a live web camera OR from some folder by loading/reading it.
2- detects faces (one or many) in the input image.
3- and shows these detected faces in the image by marked rectangl…

Read more

3 blog posts