Unverified Commit 1e6e18ff authored by SchultzC's avatar SchultzC Committed by GitHub

Changed to integer division

parent 5c05b7bc
...@@ -63,7 +63,7 @@ def main(argv): ...@@ -63,7 +63,7 @@ def main(argv):
# [horiz] # [horiz]
# Specify size on horizontal axis # Specify size on horizontal axis
cols = horizontal.shape[1] cols = horizontal.shape[1]
horizontal_size = cols / 30 horizontal_size = cols // 30
# Create structure element for extracting horizontal lines through morphology operations # Create structure element for extracting horizontal lines through morphology operations
horizontalStructure = cv.getStructuringElement(cv.MORPH_RECT, (horizontal_size, 1)) horizontalStructure = cv.getStructuringElement(cv.MORPH_RECT, (horizontal_size, 1))
...@@ -79,7 +79,7 @@ def main(argv): ...@@ -79,7 +79,7 @@ def main(argv):
# [vert] # [vert]
# Specify size on vertical axis # Specify size on vertical axis
rows = vertical.shape[0] rows = vertical.shape[0]
verticalsize = rows / 30 verticalsize = rows // 30
# Create structure element for extracting vertical lines through morphology operations # Create structure element for extracting vertical lines through morphology operations
verticalStructure = cv.getStructuringElement(cv.MORPH_RECT, (1, verticalsize)) verticalStructure = cv.getStructuringElement(cv.MORPH_RECT, (1, verticalsize))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment