Update image_processing.py

pull/1/head
Vinayak Mehta 2019-07-04 00:06:46 +05:30 committed by GitHub
parent 2115a0e177
commit 16ddd10644
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ def find_lines(
size = threshold.shape[1] // line_scale size = threshold.shape[1] // line_scale
el = cv2.getStructuringElement(cv2.MORPH_RECT, (size, 1)) el = cv2.getStructuringElement(cv2.MORPH_RECT, (size, 1))
elif direction is None: elif direction is None:
raise ValueError("Specify direction as either 'vertical' or" " 'horizontal'") raise ValueError("Specify direction as either 'vertical' or 'horizontal'")
if regions is not None: if regions is not None:
region_mask = np.zeros(threshold.shape) region_mask = np.zeros(threshold.shape)