SlideShare a Scribd company logo
1 of 5
Download to read offline
Skin Color Detection Using Aforge
                                   By : Medhat Dawoud , wed 29 Des,2010



This Article is talking about the using of Aforge Library to detect the skin color from an image, I wrote
the code after some tests on Aforge Libraries that is very interesting and open source libraries..

Firstly, I’ll talk about How to use the application ..

1-the first form that will opened when running the application is the following




2- the menu strip :

We have four items in the Menu strip that are :

       File: contains taking a shot from webcam, open, save, Exit … showen in the next figure.
       Show Skin: running the skin detection accourding to the values of RGB for Max and Min levels.
       Sharpen: this                                                               is applying the
        shrpening                                                                   filter to the image.
       Clear Image:                                                                reset the image to
        be natural as                                                               you first capture.
3- when you click on File>Take Shot From Webcam the following window will appear .. but actually the
person who will appear will be more pretty than the following one .. :D




This form is responsible for capturing a new pic from the webcam , the comboBox is filled in the run
time with the connected cameras and it’s necessary to have at least one webcam or it will give an error
message for you that no Capturing device is found …. You can then connect to the selected camera and
then click capture button that will take a captured picture from this for to the Main form behind it as the
following :
4- then you can start applying filters on the image captured .if you click of Show Skin you will get only
the skin colored pixels                                                               in the image as
following :




Note that : that color of the skin differs from person to another and you can take the value of the skin
color by using the max and min levels boxes.

5- control the color of the detected skin by checking the box to enable it .

Examble :




Then you can click on the image in any place to get the RGB levels of the clicked pixel.. the values is
automatically changed in the numericUpDown of R,B,and B .
The same example when checking the MaxLevel CheckBox that Min level is disabled and the maxlevel is
enabled then you can also click any where to get RGB values :




6-the last thing is if you want to apply the sharpening filter to the image you can click Sharpen to get this
result :




The result of sharpening might not appear here but it’s give the edges sharper edges that the original
image and to get the original image again you can click as we say before Clear Image.



You can download the Source Code it’s opensource .. enjoy and share

Thanks for reading and need your feedbacks
Contact Me:

   MedhatDawoud@gmail.com

  http://Med7at.wordpress.com

http://twitter.com/MedhatDawoud

More Related Content

More from Medhat Dawoud (7)

Mesh cloud (road to mongoDB)
Mesh cloud (road to mongoDB)Mesh cloud (road to mongoDB)
Mesh cloud (road to mongoDB)
 
Before start
Before startBefore start
Before start
 
DevMix Startup
DevMix StartupDevMix Startup
DevMix Startup
 
Threading in C#
Threading in C#Threading in C#
Threading in C#
 
How to python
How to pythonHow to python
How to python
 
Program threats
Program threatsProgram threats
Program threats
 
Unusual C# - OOP
Unusual C# - OOPUnusual C# - OOP
Unusual C# - OOP
 

Recently uploaded

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 

Recently uploaded (20)

Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 

Skin color detection using aforge

  • 1. Skin Color Detection Using Aforge By : Medhat Dawoud , wed 29 Des,2010 This Article is talking about the using of Aforge Library to detect the skin color from an image, I wrote the code after some tests on Aforge Libraries that is very interesting and open source libraries.. Firstly, I’ll talk about How to use the application .. 1-the first form that will opened when running the application is the following 2- the menu strip : We have four items in the Menu strip that are :  File: contains taking a shot from webcam, open, save, Exit … showen in the next figure.  Show Skin: running the skin detection accourding to the values of RGB for Max and Min levels.  Sharpen: this is applying the shrpening filter to the image.  Clear Image: reset the image to be natural as you first capture.
  • 2. 3- when you click on File>Take Shot From Webcam the following window will appear .. but actually the person who will appear will be more pretty than the following one .. :D This form is responsible for capturing a new pic from the webcam , the comboBox is filled in the run time with the connected cameras and it’s necessary to have at least one webcam or it will give an error message for you that no Capturing device is found …. You can then connect to the selected camera and then click capture button that will take a captured picture from this for to the Main form behind it as the following :
  • 3. 4- then you can start applying filters on the image captured .if you click of Show Skin you will get only the skin colored pixels in the image as following : Note that : that color of the skin differs from person to another and you can take the value of the skin color by using the max and min levels boxes. 5- control the color of the detected skin by checking the box to enable it . Examble : Then you can click on the image in any place to get the RGB levels of the clicked pixel.. the values is automatically changed in the numericUpDown of R,B,and B .
  • 4. The same example when checking the MaxLevel CheckBox that Min level is disabled and the maxlevel is enabled then you can also click any where to get RGB values : 6-the last thing is if you want to apply the sharpening filter to the image you can click Sharpen to get this result : The result of sharpening might not appear here but it’s give the edges sharper edges that the original image and to get the original image again you can click as we say before Clear Image. You can download the Source Code it’s opensource .. enjoy and share Thanks for reading and need your feedbacks
  • 5. Contact Me: MedhatDawoud@gmail.com http://Med7at.wordpress.com http://twitter.com/MedhatDawoud