In this study, an inspection apparatus including offline and online inspection systems that are highly efficient is developed for the unidirectional bearing of automobiles. To avoid the influence of outside factors and ambient light, the proposed system, which includes a lighting source, an image capture device, and a sensor, is placed in a dark room as a controlled environment for offline inspection. Furthermore, rule-based algorithms for local mask sensors are developed to overcome the highly reflective characteristic of metallic materials and thus assist online inspection. The inspection process of the system is mainly divided into three parts: central positioning of the device under test (DUT), blob analysis, and identification units of needles. After testing, the correct inspection rates for offline and online inspection systems of the proposed system are 100 and 99.94%, respectively.