Rails and webcams

hi! does anybody know how to capture images from a webcam using ruby on
rails?

I need to know if there is a code available for connecting to a webcam
using ruby and if it is possible to capture images automatically once
connected.

Thanks…

On Jun 21, 2007, at 12:09 AM, Mari L. wrote:

I need to know if there is a code available for connecting to a
webcam using ruby and if it is possible to capture images
automatically once connected.

i’m guessing that no webcam vendors provide native ruby interfaces,
nor is there a common webcam api (although this one is a pretty risky
bet), so i’m guessing the answer to this depends on what platform
you’re on and what interfaces your webcam exposes.

-faisal

Faisal N Jawdat wrote:

On Jun 21, 2007, at 12:09 AM, Mari L. wrote:

I need to know if there is a code available for connecting to a
webcam using ruby and if it is possible to capture images
automatically once connected.

i’m guessing that no webcam vendors provide native ruby interfaces,
nor is there a common webcam api (although this one is a pretty risky
bet), so i’m guessing the answer to this depends on what platform
you’re on and what interfaces your webcam exposes.

-faisal

… hmmm… so what platforms would make the connection possible…?

On 6/21/07, Mari L. [email protected] wrote:

hi! does anybody know how to capture images from a webcam using ruby on
rails?

I need to know if there is a code available for connecting to a webcam
using ruby and if it is possible to capture images automatically once
connected.

You’ll need some kind of client side technology for that, e.g. Flash
(which may or may not be able to interface with a webcam – I really
don’t know).

RoR runs on the server, and is restricted to communicating with that
webcam-client over http (or some web service layer on top of http),
i.e. accept requests/uploads and serve contents.

HTH,
Isak

Actually, you can try FoneLab screen recorder on computer.
You can enable webcam on the program, and then take screenshots on computer or record a video.

J’ai trouvé une partie de la solution avec un client en java:

Par contre, j’ai aucune idée de la façon de saisir un Stream vidéo pour le diriger à Rails.

you can easily use webcam to record video with FoneLab screen recorder.
You can also record video and audio at the same time according to your needs.