jeromeetienne / threex.webar

three.js extensions for Augmented Reality
http://jeromeetienne.github.io/threex.webar/examples/basic.html
313 stars 81 forks source link

Add Serial image grabber #1

Closed Bangybug closed 8 years ago

Bangybug commented 9 years ago

Hi,

I thought it would be worth adding a serial image grabber to your code.

That will allow to easily use most of IP-cameras.

Even a smartphone can be turned into an IP-camera with "IP Webcam" app, https://play.google.com/store/apps/details?id=com.pas.webcam&hl=en

I made an example implementation https://github.com/Bangybug/threex.webar/blob/master/threex.imageserialgrabbing.js in my forked repo https://github.com/Bangybug/threex.webar

jeromeetienne commented 9 years ago

hey! thanks for your interest. i dont understand what is a ip webcam.

Bangybug commented 9 years ago

IP webcams rarely are accessible via getUserMedia in browsers. Mostly because the lack of virtual webcam drivers. Instead they provide a number of ways of getting the video. My cam has a http service called "shot.jpg" which returns its latest frame captured.