diff --git a/samples/python2/common.py b/samples/python2/common.py index 0926ab7391..eef5b80d9d 100644 --- a/samples/python2/common.py +++ b/samples/python2/common.py @@ -77,7 +77,7 @@ class Sketcher: self.prev_pt = pt if self.prev_pt and flags & cv.CV_EVENT_FLAG_LBUTTON: for dst, color in zip(self.dests, self.colors_func()): - cv.Line(dst, self.prev_pt, pt, color, 5) + cv2.line(dst, self.prev_pt, pt, color, 5) self.dirty = True self.prev_pt = pt self.show()