Diff of /doc/py_tutorials/py_imgproc/py_contours/py_contour_features/py_contour_features.rst [bbefc1] .. [d9a322] Maximize Restore

  Switch to side-by-side view

--- a/doc/py_tutorials/py_imgproc/py_contours/py_contour_features/py_contour_features.rst
+++ b/doc/py_tutorials/py_imgproc/py_contours/py_contour_features/py_contour_features.rst
@@ -127,7 +127,7 @@
 ::
 
     rect = cv2.minAreaRect(cnt)
-    box = cv2.cv.BoxPoints(rect)
+    box = cv2.boxPoints(rect)
     box = np.int0(box)
     cv2.drawContours(img,[box],0,(0,0,255),2)
 
@@ -172,7 +172,7 @@
 ::
 
     rows,cols = img.shape[:2]
-    [vx,vy,x,y] = cv2.fitLine(cnt, cv2.cv.CV_DIST_L2,0,0.01,0.01)
+    [vx,vy,x,y] = cv2.fitLine(cnt, cv2.DIST_L2,0,0.01,0.01)
     lefty = int((-x*vy/vx) + y)
     righty = int(((cols-x)*vy/vx)+y)
     cv2.line(img,(cols-1,righty),(0,lefty),(0,255,0),2)