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 ...
Ask a simple webcam grab frame as normal image feature ...
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Ask a simple webcam grab frame as normal image feature ...
Last edited by cattail on Fri Mar 09, 2012 12:26 pm, edited 2 times in total.
Re: Ask a simple webcam grab frame as normal image feature .
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.
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.
Re: Ask a simple webcam grab frame as normal image feature .
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.![Rolling Eyes :roll:](./images/smilies/ms-uhm.png)
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.
![Rolling Eyes :roll:](./images/smilies/ms-uhm.png)
Who is online
Users browsing this forum: Google [Bot], veethree and 1 guest