title: Way to transfer OpenCV Mat to iPhone
body: <p>I'm doing a computer vision project on my RaspberryPi 2.
  The computer vision is done through the well known OpenCV library with Python bindings.
  I want to show a live stream of what the Raspberry Pi is doing with an iOS app.</p>
  
  <p>The images being elaborated by the Raspberry Pi are OpenCV Mats that in Python are no less then Numpy Arrays.
  The iPhone app on the other end doesn't have OpenCV elaboration capabilities and it can only work with images in my logic.</p>
  
  <p>Now, while i'm designing this thing, I can't figure out the best way to do so.</p>
  
  <p>I would separate the problem this way:</p>
  
  <ol>
  <li>Best way to transfer information: TCP Server Socket connection or Web APIs to download somehow the new images?</li>
  <li>Format of the information I'm sending: Multidimentional array of values (taken directly from the Mat), and in this case how to decode the information on the iPhone, or convert the mat to an image with OpenCV on the Raspberry Pi and then store it somewhere and send it (It seems messy and slow to me)?</li>
  </ol>
  
  <p>What are your opinions on this?</p>
  
  <p>Thanks in advance.</p>