title: how to write data to a window opencv
body: <p>I am wondering how to write data stored in a float to a window or an image in opencv.
  Initially I tried using puttext:</p>
  
  <pre><code>distance1 = (image_size * focal_length)/num_pix1
  font = cv2.FONT_HERSHEY_SIMPLEX
  cv2.putText(imgFile,distance1,(10,500), font, 4,(255,255,255),2,cv2.LINE_AA)
  </code></pre>
  
  <p>However, since the data stored is not a string, this doesn't work. Is there perhaps an easier way to write float data to a window perhaps in a similar way to how I can put trackbars in a window</p>