title: How do i fix 'TypeError: cannot unpack non-iterable numpy.float64 object' error in python
body: <pre><code>      9         break
       10     else:
  ---&gt; 11         result = pipeline(frame)
       12         cv2.imshow("Frame", result)
       13         key = cv2.waitKey(1) &amp; 0xFF
       &lt;ipython-input-2-d9c587a1d603&gt; in pipeline(image)
  
  
       90     ### Draw lines and return final image
       91     line_img = np.copy((image)*0)
  ---&gt; 92     draw_lines(line_img, lines, thickness=10)
       93 
       94     line_img = region_of_interest(line_img, v)
   &lt;ipython-input-2-d9c587a1d603&gt; in draw_lines(image, lines, color, thickness)
  
  
       26 def draw_lines(image, lines, color=[255, 0, 0], thickness=4):
       27     for line in lines:
  ---&gt; 28         for x1, y1, x2, y2 in line:
       29             cv2.line(image, (x1, y1), (x2, y2), color, thickness)
       30 
  </code></pre>
  
  <p>TypeError: cannot unpack non-iterable numpy.float64 object</p>
  
  <p>I want to have coordinates of the beginning and end of the lane from lane list those coordinates are mentioned as x1, y1, x2, y2. And also when i printed the line it has 8 float numbers containing.</p>