malic
所属分类:图形图象
开发工具:Visual C++
文件大小:3502KB
下载次数:125
上传日期:2008-07-13 17:17:09
上 传 者:
qzj19842001
说明: Linux下实现的人脸识别代码,效果与众不同
(Face Recognition under Linux code, the effect of different)
文件列表:
malic\CSUFaceIdentificationEvaluationSystem.pdf (472761, 2007-12-17)
malic\Linux下开源的C语言实时人脸识别系统源代码.docx (11004, 2008-07-12)
malic\malic-0.0.9.1\malic-0.0.9.1\acconfig.h (232, 2005-08-18)
malic\malic-0.0.9.1\malic-0.0.9.1\aclocal.m4 (265720, 2006-01-17)
malic\malic-0.0.9.1\malic-0.0.9.1\AUTHORS (72, 2005-07-21)
malic\malic-0.0.9.1\malic-0.0.9.1\autogen.sh (4506, 2005-07-21)
malic\malic-0.0.9.1\malic-0.0.9.1\autom4te.cache\output.0 (714268, 2006-01-17)
malic\malic-0.0.9.1\malic-0.0.9.1\autom4te.cache\requests (5185, 2006-01-17)
malic\malic-0.0.9.1\malic-0.0.9.1\autom4te.cache\traces.0 (28921, 2006-01-17)
malic\malic-0.0.9.1\malic-0.0.9.1\ChangeLog (0, 2005-07-21)
malic\malic-0.0.9.1\malic-0.0.9.1\config.guess (43830, 2006-01-17)
malic\malic-0.0.9.1\malic-0.0.9.1\config.h.in (1837, 2005-08-18)
malic\malic-0.0.9.1\malic-0.0.9.1\config.status (34218, 2006-01-17)
malic\malic-0.0.9.1\malic-0.0.9.1\config.sub (31544, 2006-01-17)
malic\malic-0.0.9.1\malic-0.0.9.1\configure (713165, 2006-01-17)
malic\malic-0.0.9.1\malic-0.0.9.1\configure.in (1994, 2005-12-01)
malic\malic-0.0.9.1\malic-0.0.9.1\COPYING (17992, 2005-08-18)
malic\malic-0.0.9.1\malic-0.0.9.1\data\gaborrg_jet.xml (462416, 2005-09-16)
malic\malic-0.0.9.1\malic-0.0.9.1\data\gaborrg_jet.xml.masks (3891, 2005-08-18)
malic\malic-0.0.9.1\malic-0.0.9.1\data\haarcascade_frontalface_alt2.xml (861012, 2005-08-18)
malic\malic-0.0.9.1\malic-0.0.9.1\doc\csu_datastructure_uml.xml (298284, 2005-07-21)
malic\malic-0.0.9.1\malic-0.0.9.1\doc\html\image\malicrecog_screenshot.jpg (40329, 2005-09-21)
malic\malic-0.0.9.1\malic-0.0.9.1\doc\html\index.html (4315, 2005-12-25)
malic\malic-0.0.9.1\malic-0.0.9.1\doc\html\index_j.html (5307, 2005-12-25)
malic\malic-0.0.9.1\malic-0.0.9.1\doc\html\malichaarsampling_demo.html (1273, 2005-12-26)
malic\malic-0.0.9.1\malic-0.0.9.1\doc\html\malichaarsampling_demo_j.html (1561, 2005-12-13)
malic\malic-0.0.9.1\malic-0.0.9.1\doc\html\malichaarsampling_tutorial.html (2534, 2005-12-25)
malic\malic-0.0.9.1\malic-0.0.9.1\doc\html\malichaarsampling_tutorial_j.html (5373, 2005-12-26)
malic\malic-0.0.9.1\malic-0.0.9.1\doc\html\malicpartsdetect_demo.html (1351, 2005-12-26)
malic\malic-0.0.9.1\malic-0.0.9.1\doc\html\malicrecog_tuto.html (2902, 2005-12-25)
malic\malic-0.0.9.1\malic-0.0.9.1\doc\html\malicrecog_tuto_j.html (4220, 2005-09-29)
malic\malic-0.0.9.1\malic-0.0.9.1\doc\macao_data_structure.xml (743728, 2006-01-17)
malic\malic-0.0.9.1\malic-0.0.9.1\glade_gui_src\glade_callbacks.c (2761, 2005-08-04)
malic\malic-0.0.9.1\malic-0.0.9.1\glade_gui_src\glade_callbacks.h (2542, 2005-08-04)
malic\malic-0.0.9.1\malic-0.0.9.1\glade_gui_src\glade_interface.c (67858, 2005-11-14)
malic\malic-0.0.9.1\malic-0.0.9.1\glade_gui_src\glade_interface.h (441, 2005-11-14)
malic\malic-0.0.9.1\malic-0.0.9.1\glade_gui_src\glade_support.c (4588, 2005-07-21)
malic\malic-0.0.9.1\malic-0.0.9.1\glade_gui_src\glade_support.h (1020, 2005-07-21)
malic\malic-0.0.9.1\malic-0.0.9.1\glade_gui_src\main.c (1102, 2005-07-21)
... ...
malic var0.0.3
Japanese REDME exsit in doc/REDME_JP
----------------------------------------------------------------------
malicsaver
----------------------------------------------------------------------
run screensaver and quit screensaver if face is exist or not ixist
require
you shuld start up xscreensaver
like
$ xscreensaver &
recommend
edit .xsscreensaver
unfade -> True
and
edit .bash_profile
and start up xscreensaver automatically.
----------------------------------------------------------------------
malicrecog
----------------------------------------------------------------------
This program aim to recognise face parts position
example
# if you don't have jet files
$ cp malic/doc/sample_gaborrg_jet.xml gaborrg_jet.xml
$ cp malic/doc/sample_gaborrg_jet.xml.masks gaborrg_jet.xml.masks
$ malicrecog -j gaborrg_jet.xml -m gaborrg_jet.xml.masks
or
$ malicrecog #load default (/usr/local/share/malic/gaborrg_jet.xml and .masks) files
# after second time only
$ malicrecog -j gaborrg_jet.xml -m gaborrg_jet.xml.masks
or
$ malicrecog #load default gaborrg_jet files
Usage - malicrecog [options]
-j filename, --jet filename set jet file (default gaborrg_jet.xml)
-m filename, --mask filename set jet mask file (default gaborrg_jet.xml.masks)
-h, -?, --help show this help
This program suspect face parts position based on
jet file,
jet mask file,
Without -j -m option each default file (gaborrg_jet.xml and gaborrg_jet.xml.masks) data load.
----------------------------------------------------------------------
malicsampling
----------------------------------------------------------------------
This program aim to get gabor filtered value by mouse click.
Save to file as xml data structure.
It should work with USB camera.
oprating manual
[MOVIE WINDOW]
right-click: halt, restart
left-click : halt and correct gabor filtered data at that point
[UPPER-RIGHT SCROLLED WINDOW]
-- (if you left-click movie area and correct data, after you can execute)
parts button
set clicked point data to own parts name.
Enter button
parts data move to stuck.
[LOWER-RIGHT SCROLLED WINDOW]
data type
gabor_mag(not recommend): only gaobr magnitude generated by Malib GaborRg
It's preparation for gabor phase function will build in Malib.
jet(default): The data construction from gabor magnitude and gabor phase.
It's generated by csuFaceIdEval.
save button
output stuck data that pushed by enter button to xmlfile
data save xml file name
save file name
Browse
wake up file dialog
#------------------------------------------------------------#
Tutorial (malicsampling)
(if you use Default sample data that exist in doc/sample
Connect USB Camera
$ ./gaborrg_maker
1. Move mouse cursor to MOVIE-WINDOW and halt by right-click.
2. Click face parts (like eye edge or nose edge ...etc)
3. If you click Left-Eye-Left-Edge,
after you click RIGHT-UPPER-WINDOW left_eye_l_edge button and set data
4. You continue 2-3 untill fill every parts
5. Click RIGHT-UPPER-WINDOW Enter button and every parts data (face data)
move to stuck (didn't data save to file here).
6. Right-click MOVIE-WINDOW and restart movie
7. if you correct enough data after click RIGHT-LOWER-WINDOW save button
the data save to "data save xml file name" field file.
8. correct and save data, start malicrecog.
#---------------------------------------------------------------
# note!
#---------------------------------------------------------------
only implement under the connecting USB camera.
can't setting face parts name and numbers datastructure create from other file yet.
malicsampling save is save data additionary if you want to remove data you
shuld remove file
#---------------------------------------------------------------------
# tutorial (to generate eye.xml)
#---------------------------------------------------------------------
# you should have forrow directory
$ ls -F
det-img/ img/ eye_bgimg/
#start
# face parts sampling by your hand
$ malicsampling
(set your face parts data and save faceparts.xml)
# face parts sampling by tracking (100~1000)
$ malichaarsampling -j faceparts.xml -f faceparts.xml
(save your face parts tracked data and image to ./img/ and vertlabel.xml)
# generate positive info file of eye
$ xmltocvhaardata.py -f ./img/vertdata.xml -i ./img \
-p "left_eye_l_edge left_eye_r_edge right_eye_l_edge right_eye_r_edge" \
-w 25 -h 25 > eyeinfo.dat
# generate negative images to ./eye_bgimg and generate info file
$ xmltocvhaardata.py -f ./img/vertdata.xml -i ./img \
-p "left_eye_l_edge left_eye_r_edge right_eye_l_edge right_eye_r_edge" \
-b -r -d ./eye_bgimg -w 50 -h 50 -n 3 > eye_bg_info.dat
# generate vec file (eyevec) by opencv
$ opencv-createsamples -info eyeinfo.dat -vec eyevec -num num_of_positives -bg eye_bg_info.dat -show
$ opencv-haartraining -vec eyevec -bg eye_bg_info.dat -npos num_of_positives -nneg num_of_negatives -data eye_class
#...(waiting 1 or more hour)
# performance check (generate checked image in det-img)
$ opencv-performance -data eye_class -info lefteye_info.dat
# generate xml file (haarconv getting from yahoo opencv comunity)
$ haarconv eye_class eye.xml 25 25
# test in realtime
$ malicpartsdetect -f haarcascade_frontalface_alt.xml -p eye.xml
#---------------------------------------------------------------------
# for developers
#---------------------------------------------------------------------
# directory & files
malic
|-- src (prgram files)
| |
| |-- csu (csuFaceIdEval files)
|
|
|-- glade_gui_src (generated by glade GUI interface tool files)
|
|-- data (contain haarcascade data)
malic/malic.glade
glade Gtk interface tool file
if you want to edit interface
$ glade malic.glade
近期下载者:
相关文件:
收藏者: