Fast and cost-effective production of blood cell count reports are of paramount importance in the healthcare industry. The traditional method of manual counting under a microscope yields inaccurate results and put an intolerable amount of stress to medical laboratory technicians. Due to high vulnerability in human error and large time consumption, better and more effective image processing software is needed. As a solution to this problem, this paper proposed an image processing technique for counting the number of blood cells. The number of counted blood cells will then be used to calculate the ratio of blood cells for leukemia detection. For this purpose, few pre-processing and post-processing techniques have been implemented on blood cells image in order to provide a much clearer and cleaner image for blood cells ratio calculation. The results show that the ratio of blood cells which have been calculated using the proposed image processing techniques are able to differentiate between normal and abnormal blood cell image for leukemia detection.