From: SchultzC Date: Thu, 6 Jun 2019 21:50:45 +0000 (-0700) Subject: Changed to integer division X-Git-Tag: accepted/tizen/6.0/unified/20201030.111113~1^2~223^2~5^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1e6e18ff053d91a6279df72d4162d51895191e72;p=platform%2Fupstream%2Fopencv.git Changed to integer division --- diff --git a/samples/python/tutorial_code/imgProc/morph_lines_detection/morph_lines_detection.py b/samples/python/tutorial_code/imgProc/morph_lines_detection/morph_lines_detection.py index 4e9c0d4..b7c0150 100644 --- a/samples/python/tutorial_code/imgProc/morph_lines_detection/morph_lines_detection.py +++ b/samples/python/tutorial_code/imgProc/morph_lines_detection/morph_lines_detection.py @@ -63,7 +63,7 @@ def main(argv): # [horiz] # Specify size on horizontal axis cols = horizontal.shape[1] - horizontal_size = cols / 30 + horizontal_size = cols // 30 # Create structure element for extracting horizontal lines through morphology operations horizontalStructure = cv.getStructuringElement(cv.MORPH_RECT, (horizontal_size, 1)) @@ -79,7 +79,7 @@ def main(argv): # [vert] # Specify size on vertical axis rows = vertical.shape[0] - verticalsize = rows / 30 + verticalsize = rows // 30 # Create structure element for extracting vertical lines through morphology operations verticalStructure = cv.getStructuringElement(cv.MORPH_RECT, (1, verticalsize))