arunponnusamy / cvlib

A simple, high level, easy to use, open source Computer Vision library for Python.
http://arunponnusamy.com/cvlib/
MIT License
647 stars 127 forks source link

About Error invalid index to scalar variable in object_detection.py #50

Closed Fly-Pluche closed 2 years ago

Fly-Pluche commented 2 years ago

Error:
output_layers = [layer_names[i[0]-1] for i in net.getUnconnectedOutLayers()] After: output_layers = [layer_names[i - 1] for i in net.getUnconnectedOutLayers()]

Fly-Pluche commented 2 years ago

163行 Error: i = i[0] After:

i = i[0]