On line 22 of yolov4_webcam.py,
Where it says:
ln = [ln[i[0] - 1] for i in net.getUnconnectedOutLayers()]
It should say:
ln = [ln[i - 1] for i in net.getUnconnectedOutLayers()]
With that, you'd solve the current "IndexError: invalid index to scalar variable." error on that line.
Apart from that... Excelent articles with all-you-need-to-know explenations! THANKS! :-)
On line 22 of yolov4_webcam.py,
Where it says:
ln = [ln[i[0] - 1] for i in net.getUnconnectedOutLayers()]
It should say:
ln = [ln[i - 1] for i in net.getUnconnectedOutLayers()]
With that, you'd solve the current "IndexError: invalid index to scalar variable." error on that line.
Apart from that... Excelent articles with all-you-need-to-know explenations! THANKS! :-)