You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Basically, if the x coordinates of a horizontal line match (i.e. the line is 1 pixel wide), this generates a division by 0.
In the example ablve, for instance, h_lines_arr contains the following line: [1703, 2498, 1703, 2498],
Commenting the @njit(...) wrapper at line 11 just turns the ZeroDivisionError into a RuntimeWarning on my end.
Ideally, one-pixel-wide horizontal lines (i.e. points) shouldn't have been identified as horizontal lines in the first place.
A quick fix would be to add this before line 30:
test data
remove it's wrapper
@njit("int64[:,:](int64[:,:],int64[:,:])", cache=True, fastmath=True)
,exception not raiseThe text was updated successfully, but these errors were encountered: