The present invention relates to an image processing technology of foreign substance extraction for precisely cleaning an endoscope which enables to more clearly wash an endoscope by applying an image processing technology to endoscope cleaning, and a method thereof. The technology comprises: a first camera and a second camera for tracking a position of a foreign substance; and a third camera for performing a function of determining the foreign substance.본 발명은 내시경 세척에 영상 처리 기술을 접목하여, 보다 청결한 내시경 세척을 가능하도록 하는 내시경 정밀세척을 위한 이물질 추출 영상처리기술 및 그 방법에 관한 것이다.