title: Streaming video from android to desktop
body: <p>I'm doing some sound and image processing and for faster prototyping I'm using python and opencv. So far I've been recording some videos on phone (can't use webcam - need to check specific camera I have in phone), uploading to desktop and then working offline on file.</p>
  
  <p>Though It becomes a little bit tedious and I was wondering if there is any way to do realtime streaming video and processing those video frames in python? I notice there is app like: <a href="https://play.google.com/store/apps/details?id=com.dev47apps.droidcam&amp;hl=pl" rel="nofollow">DroidCam</a> but there is not app for MacOS and seems it works only via WiFI. I've also checked <a href="http://code.google.com/p/android-scripting/" rel="nofollow">android scripting</a> but there is only a way to record to a file. </p>
  
  <p>Because low latency is important in my case streaming via USB would be a plus. I noticed that adb allows port forwarding so looks like there is a way to do without specific android /python USB api and only using sockets. </p>
  
  <p>Does there exist already any tool for that or the easiest way would be to write something by yourself using sockets and adb forwarding?</p>
  
  <p>Something similar for iOS would be great as well.</p>