shows error like this:
Traceback (most recent call last):
File "./demo_detect.py", line 98, in
main(sys.argv[1:])
File "./demo_detect.py", line 95, in main
detect_jpg(detector, args[1])
File "./demo_detect.py", line 45, in detect_jpg
rects, confs = detector.detect(imgArr, 1.1, 2)
File "./../cascade/cascade.py", line 120, in detect
initShape)
File "./../cascade/carm/boostCart.py", line 258, in validate
initShape)
File "./../cascade/carm/cart.py", line 291, in validate
point_a = shape[feaType[1]]
IndexError: only integers, slices (:), ellipsis (...), numpy.newaxis (None) and integer or boolean arrays are valid indices
I have follow the instructions, but when I run the
shows error like this: Traceback (most recent call last): File "./demo_detect.py", line 98, in
main(sys.argv[1:])
File "./demo_detect.py", line 95, in main
detect_jpg(detector, args[1])
File "./demo_detect.py", line 45, in detect_jpg rects, confs = detector.detect(imgArr, 1.1, 2) File "./../cascade/cascade.py", line 120, in detect initShape) File "./../cascade/carm/boostCart.py", line 258, in validate initShape) File "./../cascade/carm/cart.py", line 291, in validate point_a = shape[feaType[1]] IndexError: only integers, slices (
:
), ellipsis (...
), numpy.newaxis (None
) and integer or boolean arrays are valid indicesDoes anyone know how to fix this?