From: Pierrick Koch Date: Tue, 9 Sep 2014 09:04:24 +0000 (+0200) Subject: [samples/pyhton] fix common {LINE->CV}_AA X-Git-Tag: submit/tizen_ivi/20141117.190038~2^2~106^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=aeda3d2d698cd867ed9b311f9ca9c913cbb9b6fc;p=profile%2Fivi%2Fopencv.git [samples/pyhton] fix common {LINE->CV}_AA --- diff --git a/samples/python2/common.py b/samples/python2/common.py index 0ad811a..5ba1a71 100755 --- a/samples/python2/common.py +++ b/samples/python2/common.py @@ -71,8 +71,8 @@ def mtx2rvec(R): return axis * np.arctan2(s, c) def draw_str(dst, (x, y), s): - cv2.putText(dst, s, (x+1, y+1), cv2.FONT_HERSHEY_PLAIN, 1.0, (0, 0, 0), thickness = 2, lineType=cv2.LINE_AA) - cv2.putText(dst, s, (x, y), cv2.FONT_HERSHEY_PLAIN, 1.0, (255, 255, 255), lineType=cv2.LINE_AA) + cv2.putText(dst, s, (x+1, y+1), cv2.FONT_HERSHEY_PLAIN, 1.0, (0, 0, 0), thickness = 2, lineType=cv2.CV_AA) + cv2.putText(dst, s, (x, y), cv2.FONT_HERSHEY_PLAIN, 1.0, (255, 255, 255), lineType=cv2.CV_AA) class Sketcher: def __init__(self, windowname, dests, colors_func):