
KCM webcam support
Source (link to git-repo or to original if based on someone elses unmodified work):
Is tested in KDE 4.4 (4.4.1)
Compile as tipical KDE application.
Extract files with
tar -xzf kcm.tar.gz
Enter to kcm directory
cd kcm/
Create a build directory
mkdir build
Exectue cmake:
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
Then excute make
and finally install
make install (as root)
Enjoy!
IMPORTANT: In order to compile this files you need the OpenCV module, you can download from http://opencv.willowgarage.com/wiki/Getting_started?action=AttachFile&do=view&target=FindOpenCV.cmake
NOTE: When compiling you could have problems with a cvconfig.h, apparently this is a OpenCV bug but only need copy this file to your OpenCV's include directory.
Version 0.2.2.1
- Bug fix: If no webcam detected the "From Cam" button is disabled (thank to Nicolas Lécureuil).
Version 0.2.2
- Fix bug with ~/.faces directory, now when you take a photo and the folder does not exist this is created. (thanks to mikala and jmiahman).
- Now add picture from webcam uses the same method as when add image from file
Version 0.2.1
- This new version fix a bug that occurred when you delete an image and then add new image from cam.
- New dialog for webcam (see the second screenshot).
- Allow select different webcams (using Solid)
Ratings & Comments
23 Comments
Thanks dude
For some reason the Image is not saving after I enter in the name. If I run: kcmshell4 kcm_useraccount as user I get: mmap: Invalid argument munmap: Invalid argument munmap: Invalid argument munmap: Invalid argument munmap: Invalid argument Unable to stop the stream.: Bad file descriptor munmap: Invalid argument munmap: Invalid argument munmap: Invalid argument munmap: Invalid argument I'm running Mandriva OpenCV 2.0 and using a UVC based Webcam
I went ahead and added a picture from the system and now it works. Looks like it may not be generating the userFaceDir if one doesn't exist?? Not sure. Something to look into.
Thanks for your comments, I will check this
i can confirm :p i created the folder ~/.face & not ~/.faces with the last one it's of course working like a charm :) Regards,
Great, I think it just needs a little change
Solved :)
Nice modifications. Why don't you propose your great work to be used in main KDE ?
forget i missed the reviewboard part :)
Hello, i tested this app under kde 4.4.1 (mdv 2010.1) without success: it's recognizing my webcam, i'm able to take a screenshot, to save it (well at least it's asking for the file name) but after nothing happends : the avatar does not change According to systemsettings configuration, kde is supposed to use by default user's avatar Regards,
Hi, is very weird. When you take a picture does this appear with the rest of the images? you also check if the picture is saved in ~/.face directory
the picture does not appears with others. either more there 's no pic saved in ~/.face which did not exist initially after creating this folder it still does not save inside this folder.
Does anyone else have this problem?
I would suggest you change it to say profile instead of face. When I saw the screenshots I was immediately struck by how weird it was to read that the program would "change my face". At that point, I thought to myself, do I really want to use this program?
The window title "Chage your face" and "select a new face" are not my responsability, this are original window title in KCM
I have some problems with review board, apparently the file header of my patch files is incorrect or not supported. I have something like this: chfacedlg.h 2010-02-03 01:38:50.714194628 -0300 chfacedlg.h 2010-01-30 18:23:05.000000000 -0300 And Review board needs something like this: http.cpp (revision 1083209) http.cpp (working copy) I use diff -u -p someone can help me?
try to use the command svn diff instead. It always produced the output required by reviewboard for me. but you need your changes based on an svn checkout from the original kcm module.
Thanks, up to date this is solved :)
It would be nice if developers included a set of installation instructions. There was a time when just about every package included some basic install and configuration instructions. The lack of such severely limits the number of people who would use and try new software.
Is this going to be implemented ? Because it should =) ! Very nice work !
I send the patch to kde-devel mailing list, but I had no response...
Try asking again, it needs to get in! :) Maybe using reviewboard will help the process of reviewing it...
Think kde-core-devel is more appropriate.