Quantification of tumor cells is crucial for early detection and monitoring the progress of cancer. Several methods have been developed for detecting tumor cells. However, automated quantification of cells in the presence of immunomagnetic beads has not been studied. In this study, we developed computer vision based algorithms to quantify the leukemia cells captured and separated by micron size immunomagnetic beads. Color, size based object identification and machine learning based methods were implemented to quantify targets in the images recorded by a bright field microscope. Images acquired by a 40x or a 20x objective were analyzed, the immunomagnetic beads were detected with an error rate of 0.0171 and 0.0384 respectively. Our results reveal that the proposed method attains 91.6% precision for the 40x objective and 79.7% for the 20x objective. This algorithm has the potential to be the signal readout mechanism of a biochip for cell detection. (C) 2019 Elsevier Ltd. All rights reserved.