单项选择题

在OpenCV中,以下哪个函数用于绘制矩形?()

A.cv2.line()
B.cv2.rectangle()
C.cv2.circle()
D.cv2.ellipse()