def draw_segments(image, segments, color=(<NUM_LIT:255>, <NUM_LIT:0>, <NUM_LIT:0>), line_width=<NUM_LIT:1>):
for segment in segments:<EOL><INDENT>x, y, w, h = segment<EOL>cv2.rectangle(image, (x, y), (x + w, y + h), color, line_width)<EOL><DEDENT>
draws segments on image