title: IndexError: invalid index to Scalar Variable. YOLO Project
body: <pre><code> for i in indices:
          i=i[0]
          box=bbox[i]
          x,y,w,h=box[0],box[1],box[2],box[3]
          cv2.rectangle(img,(x,y),(x+w,y+h),(255,0,255),2)
     
  </code></pre>
  <p>Output:
  i=i[0]
  IndexError: invalid index to scalar variable.</p>
  <p>I'm not sure what to do.</p>