def draw_rectangle(im, rect, color=(255, 0, 0)):
 cv2.rectangle(im, rect[0:2], rect[2:4], color=color, thickness=1)
 return im

def draw_rectangle ( im , rect , color = ( 255 , 0 , 0 ) ) : cv2 . rectangle ( im , rect [ 0 : 2 ] , rect [ 2 : 4 ] , color = color , thickness = 1 ) return im
rect = .