alpr-unconstrained
alpr-unconstrained copied to clipboard
what is the class tpye error?
Traceback (most recent call last):
File "vehicle-detection.py", line 25, in
Maybe you need to convert it to ascii code.decode('ascii') @soaka0721
Maybe you need to convert it to ascii code.decode('ascii') @soaka0721
thank you for your answer @linzhi123
what is the convert it ascii code means? are you saying when i build darknet? or when i run run.sh file? or weights file? How can I be an ascii code.decode?
ocr_weights = './yolov2-voc_final.weights'.encode('ascii')'
ocr_netcfg = './yolov2-voc.cfg'.encode('ascii')'
ocr_dataset = './voc.data'.encode('ascii')'
like this
This error disappeared for me when I used Python 2 instead of Python 3
If you're on Python3 you should be using
vehicle_weights = bytes('data/vehicle-detector/yolo-voc.weights', encoding="utf-8")
vehicle_netcfg = bytes('data/vehicle-detector/yolo-voc.cfg', encoding="utf-8")
vehicle_dataset = bytes('data/vehicle-detector/voc.data', encoding="utf-8")
File "/home/zhaolzlz/Desktop/alpr-unconstrained/darknet/python/darknet.py", line 127, in detect im = load_image(image, 0, 0) ctypes.ArgumentError: argument 1: <class 'TypeError'>: wrong type Excuse me, why is there a type error here