alyssaq / hough_transform

Hough Transform implementation in Python
127 stars 53 forks source link

TypeError: 'numpy.float64' object cannot be interpreted as an integer #1

Closed RashmiPandeyatGit closed 2 years ago

RashmiPandeyatGit commented 7 years ago

errr

RashmiPandeyatGit commented 7 years ago

lines

knasim commented 6 years ago

I ended using diag_len.asType(np.int64) to convert it from float to a precise integer.

alyssaq commented 6 years ago

Thanks for reporting this. This has been fixed now

alyssaq commented 6 years ago

@Rashmi002 Since the lines in your image are black, you can pass the following:

hough_line(img, lines_are_white=False)

unknown