adl1995 / generalised-hough-transform

Applies Generalised Hough Transform to object detection in images.
29 stars 13 forks source link

Demo doesn't work #2

Closed Arktius closed 5 years ago

Arktius commented 5 years ago

In 'build_reference_table.py' is an indentation error. But even after fixing this and the index error in match_table: 'acc[int(vector[0]+x), int(vector[1]+y)]+=1' as well as in the demo file [rstart = int(..),red,cstart,cend] index has to be integer, the programm doesn't find the right boxes. error_wrong_boxes

adl1995 commented 5 years ago

Thanks for opening the issue.

I've tried reproducing this on my end and the incorrect matching only happens when using Python 3. On Python 2.7 the results obtained are the same as provided in the README.md file.

The indentation and index errors have been resolved. I will close this issue and open a separate one for porting the scripts to Python 3.

Feel free to reopen this if you still get incorrect results.