title: How to use PySpin with opencv python?
body: <p>I just bought a FLIR BlackFlyS USB3.0 camera. I can grap frames from the camera but I am not able to use that frame with opencv without saving them first. Is there anyone who knows how to convert them to use in opencv?</p>
  
  <p>I searched on the internet about everything that include "PySpin" word and found <a href="https://books.google.com.tr/books?id=b1qWDwAAQBAJ&amp;pg=PA293&amp;lpg=PA293&amp;dq=how+to+use+ptgrey+cameras+with+opencv+python&amp;source=bl&amp;ots=eXu5yMhkxI&amp;sig=ACfU3U2ZY64cLa483ol-I7qW8ETkvQb9Tg&amp;hl=tr&amp;sa=X&amp;ved=2ahUKEwi23MaYkPjiAhUHbFAKHakYAhg4ChDoATACegQICBAB#v=onepage&amp;q=how%20to%20use%20ptgrey%20cameras%20with%20opencv%20python&amp;f=false" rel="nofollow noreferrer">this book</a>.
  I have tried to use <code>PySpinCapture</code> which is mentioned in this book but I couldn't figure it out anyway.</p>
  
  <pre><code>capture = PySpinCapture.PySpinCapture(0, roi=(0, 0, 960, 600),binningRadius=2,isMonochrome=True)
  
  ret, frame = capture.read()
  
  cv2.imshow("image",frame)
  
  cv2.waitKey(0)
  </code></pre>
  
  <p>I expect the see the image but it throws an error </p>
  
  <pre><code>_PySpin.SpinnakerException: Spinnaker: GenICam::AccessException= Node is not writable. : AccessException thrown in node 'PixelFormat' while calling 'PixelFormat.SetIntValue()' (file 'EnumerationT.h', line 83) [-2006]
  terminate called after throwing an instance of 'Spinnaker::Exception'
  </code></pre>