pylsd
pylsd copied to clipboard
Exception handling for "Inappropriate image size"
Error : LSD Error: new_image_double: invalid image size. in the following code, Instead of raising the error lsd close the kernel and stop the execution.
test_img = np.zeros((1,100),dtype=np.uint8)
try:
lsd(test_img)
except Exception as e:
print(e)