2008年12月30日 星期二

OpenCV Face Detection

OpenCV\data\haarcascades\haarcascade_frontalface_alt2.xml
這是train好的人臉辨識器

OpenCV\samples\c\facedetect.c
同個資料夾有執行檔
下 facedetect file.jpg 就可以看結果

物件與function解說 ***good***
http://blog.finalevil.com/2008/03/opencv04face-detectionhaardetectobjects.html

CvSeq
此資料型別用來表示一連串的opencv物件序列,類似C++的Array或是Queue,從上面例子
來看,偵測到的人臉,是一連串(偵測到的人臉不只一個)的opencv物件,會被存在CvSeq*
型別的faces變數中。

cvHaarDetectObjects(const CvArr* image, CvHaarClassifierCascade* cascade,
CvMemStorage* storage, double scale_factor=1.1,
int min_neighbors=3, int flags=0,
CvSize min_size=cvSize(0,0) );

opencv教學, good
http://www.opencv.org.cn/index.php/%E9%A6%96%E9%A1%B5

2008年12月22日 星期一

Blur detection for digital images using wavelet transform

1. Harr wavelet transform
using openCV matrix computation.
2. construct Edge-map
Emapi(k,l) = sqrt(HHi(k,l)^2 + HLi(k,l)^2 + LHi(k,l)^2);
We will have 3 Emap
3. construct Edge-max
partition Emap with different window(i=1: 8*8, i=2: 4*4, i=3: 2*2)
4. distingush blur
five rule in paper

Blur Detection

Reference Paper
1. Tiling slideshow
2. Blur detection for digital images using wavelet transform
3. 小波轉換 (http://andrew.csie.ncyu.edu.tw/pdf3/050406-2.pdf)
4. edge map ?

系統架構

1. claw image
2. filter image(blur detection)
3. group image by create time
4. group image by image content
5. compute weight of group
6. compute weight of photo (face detection)
7. orginize photo into certain layout
8. output html