Tensorflow-Number-Plate-Recognition icon indicating copy to clipboard operation
Tensorflow-Number-Plate-Recognition copied to clipboard

'map' object is not reversible

Open moxgeek opened this issue 5 years ago • 1 comments

this is the code error i got when i test your detect.py after downloading the weights file

Traceback (most recent call last):
  File "detect.py", line 189, in <module>
    pt1 = tuple(reversed(map(int, pt1)))
TypeError: 'map' object is not reversible

moxgeek avatar Sep 20 '19 09:09 moxgeek

to fix it , i change line 189 and 190 with

        pt1 = tuple(reversed(list(map(int, pt1))))
        pt2 = tuple(reversed(list(map(int, pt2))))

moxgeek avatar Sep 20 '19 09:09 moxgeek