Nowadays with the rapid development of technologies, machine vision has been used widely in various industries. The main applications of machine vision in industrial product lines are quality control (QC) and quality assurance (QA). The intelligent defects and anomalies recognition throughout the supply chain have come to be an integral part of quality control systems, in particular, in the food and pharmaceutical industries. In these industries, it is a legal requirement in manufacturing processes which can lead to minimizing the total number of defected products as well as maximizing the performance. In this paper, the machine vision has been utilized to monitor and control the proper packaging of drugs in pharmaceutical product lines. The main goal is counting the number of blister cards within a drug package. To tackle this problem, a new model based on object detection, feature extraction, and classification is proposed. Thanks to several strong approaches, such as the Haar cascade, HOG, ORG, Gabor wavelet, Radon transform, KNN, and SVM, and the accuracy over 88% is achieved in our experiments.