Update image_processing.py
parent
2115a0e177
commit
16ddd10644
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue