cv.Line -> cv2.line
This commit is contained in:
parent
84568cb18e
commit
f0a4185b1f
@ -77,7 +77,7 @@ class Sketcher:
|
|||||||
self.prev_pt = pt
|
self.prev_pt = pt
|
||||||
if self.prev_pt and flags & cv.CV_EVENT_FLAG_LBUTTON:
|
if self.prev_pt and flags & cv.CV_EVENT_FLAG_LBUTTON:
|
||||||
for dst, color in zip(self.dests, self.colors_func()):
|
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.dirty = True
|
||||||
self.prev_pt = pt
|
self.prev_pt = pt
|
||||||
self.show()
|
self.show()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user