This original image
after run this code i have this image After threshold
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) img_f = cv2.medianBlur( gray, 5) img_t =