Ask a simple webcam grab frame as normal image feature ...

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
cattail
Citizen
Posts: 56
Joined: Mon Feb 13, 2012 4:11 pm

Ask a simple webcam grab frame as normal image feature ...

Post by cattail »

Hi all,
I want a new feature to use webcam as a normal image to grab(input | open and reading ) a frame,
then I can do many thing round it.
I search the forum, only find a topic that give a windows pitch only , that a nice start.
In mine mind , it's easyer use webcam than window. In linux every thing is file , so, if we can open v4l2 interface as a file , grab a frame, then other thing is same like use png.

Use ffmpeg, opencv? There a lot other features in it, I want LOVE keep it's slim ,
and the only thing that I want is the open v4l2 part , can we get it in LOVE 0.8.0 , It's will very cool .

and use lua, one can also make something cool like simple OCR,
use a alpha color to kill backgroundcolor , than we can live in our game , walking jumping ...
Last edited by cattail on Fri Mar 09, 2012 12:26 pm, edited 2 times in total.
User avatar
cattail
Citizen
Posts: 56
Joined: Mon Feb 13, 2012 4:11 pm

Re: Ask a simple webcam grab frame as normal image feature .

Post by cattail »

And I found 2 urls maybe useful?

https://github.com/gabrield/v4l-lua
Is a early but maybe a only webcam solution in lua , use c component .

http://alumnos.elo.utfsm.cl/~yanez/vide ... -programs/
This is small pieces that test v4l2 grab , use 2 different ways.
I guess we can use the mmap way in LOVE . Not get time to test it yet .

----
btw: effecTV is nice apps, but long time not update, only had old v4l interface that be droped in new linux kernel .

If LOVE can get frames fast, we also can make effecTV like apps in LOVE , that cool.
User avatar
vrld
Party member
Posts: 917
Joined: Sun Apr 04, 2010 9:14 pm
Location: Germany
Contact:

Re: Ask a simple webcam grab frame as normal image feature .

Post by vrld »

Neither V4L nor FFMPEG/libav are an option at the moment. V4L isn't because it's Linux only. FFMPEG/libav isnt because they are huge libraries. Note that OpenCV is a computer vision library (i.e. provides algorithms for object detection, etc.) and not a video i/o library. It actually depends on libav for video input. Anyway, if webcam support comes, it certainly won't be in 0.8.x.

On another note, OCR and background removal/foreground segmentation are not easy tasks and there is not a single best solution to this. It's well out of the scope of LÖVE as a library and probably for most LÖVE games.

On yet another note, feature requests should be placed on the issue tracker, not on the forums. :roll:
I have come here to chew bubblegum and kick ass... and I'm all out of bubblegum.

hump | HC | SUIT | moonshine
Post Reply

Who is online

Users browsing this forum: Google [Bot], veethree and 1 guest