I have trained the yolov3 model for my custom object detection and it runs very well for images but when i use my webcam it is showing
for i in indexes.flatten():
AttributeError: ‘tuple’ object has no attribute ‘flatten’
[ WARN:1] global C:\Users\appveyor\AppData\Local\Temp\1\pip-req-build-71670poj\opencv\modules\videoio\src\cap_msmf.cpp (435) `anonymous-namespace’::SourceReaderCB::~SourceReaderCB terminating async callback
Can you please share a bit more of your code and the precise YOLOv3 implementation that you are using?
In addition, what do you precisely want to achieve with .flatten() in the first place?