sergiomsilva / alpr-unconstrained

License Plate Detection and Recognition in Unconstrained Scenarios

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

issues running in python 3 , error in darknet.py

timtensor opened this issue · comments

Hi I am having the following issue while trying to run the code in python3 . I am using a virtual enviroment for my setup . The error is as follows

python/darknet.py", line 126, in detect
    im = load_image(image, 0, 0)
ctypes.ArgumentError: argument 1: <class 'TypeError'>: wrong type

Things that have been modified so far are changing the parenthresis for the print error messages following by adding the suffix b for the weights in the vehicle-detection.py and license-ocr.py. I have also installed the yolo34py (0.1rc12)` package.

Associated packages installed are

Keras (2.3.1)
numpy (1.18.2)
opencv-python (4.2.0.32)
tensorflow (1.5.0)
yolo34py (0.1rc12)
numpy (1.18.2)
`