To processing the algorithm, import the images into the program and it will automatic detection the acne.
⦁ Convert the RGB colour images to the Grey scale images
⦁ Find the maximum value of intensity images with X and Y coordinates on the Grey scale images.
⦁ Calculate normalized grey-scale image by divide the value of intensity to 0 or 1 with X and Y coordinates, to compare with HSV images.
⦁ Retrieve HSV colour images to define the value of H(Hue) = 0 for drop a red colour
⦁ To extract the brightness area (V) from HSV model and define Dark colour = 0 and White colour = 1.
⦁ To subtract by V-Grey scale, the result show the region of maximum lightness
⦁ Define the value of threshold background is white colour otherwise will be a black colour. The images convert to negative binary colour
⦁ To analyse the images for eliminate a tiny spot area.
⦁ From the result of step 8, divided the area less than 7000.
⦁ The results from step 7,8 and 9 will represent the appropriated size of specific object.
⦁ Create the square to cover the area of detection
⦁ Detect the input images and calculate the amount of acne.