pylsd icon indicating copy to clipboard operation
pylsd copied to clipboard

Exception handling for "Inappropriate image size"

Open Govindskatyura opened this issue 3 years ago • 0 comments

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)

Govindskatyura avatar Dec 07 '21 05:12 Govindskatyura