The paper presents problems connected with the preparation of technical objects, including bearing rollers, for the process of the in-process, on-line automatic optical inspection. The objective was to develop an industrial solution ensuring automatic removal of pollutants from the technological process, located on the controlled surface of the object examined. The developed method allows for effective removal of both liquid and solid pollutants from the surface of the roller originating from the technological process. The removal is conducted in such a way that the quality control of the tested object is possible on the basis of the digital image obtained automatically at the test stand. The control process is limited by the efficiency of the cleaning process. The critical parameter is the achievement of expected effectiveness. The basic assumption was to adjust the efficiency of the control process to the efficiency of the production line (3 items/s). The essence of the presented solution is cleaning of the heads of bearing rollers in an automated, non contact manner with total elimination of the handwork. Therefore, the method meets the requirements of the automated process of cleaning of bearing rollers' heads right before the process of automated optical inspection of an object.