sergiomsilva / alpr-unconstrained

License Plate Detection and Recognition in Unconstrained Scenarios
Other
1.72k stars 607 forks source link

Trying to use python3. vehicle-detection.py, line 28, vehicle_net = dn.load_net(vehicle_netcfg, vehicle_weights, 0) ctypes.ArgumentError: argument 1: wrong type #136

Closed alexw22 closed 4 years ago

alexw22 commented 4 years ago

I am trying to run: bash run.sh -i samples/test -o /tmp/output -c /tmp/output/results.csv

Up to now I only have changed the print statements adding parentheses to work in python3.

Now I get the following error: Traceback (most recent call last): File "vehicle-detection.py", line 28, in vehicle_net = dn.load_net(vehicle_netcfg, vehicle_weights, 0) ctypes.ArgumentError: argument 1: <class 'TypeError'>: wrong type

Any ideas as to what might be the issue here?

alexw22 commented 4 years ago

I have been able to get closer to succes. Look at issue #60, #106 and #25 for more info.

yunWJR commented 4 years ago

append .encode('utf-8') after the string,like this

vehicle_weights = "data/vehicle-detector/yolo-voc.weights".encode('utf-8')