重新指定路徑
grub rescue>ls (hd0), (hd0,1), (hd0,2), (hd0,3), (hd0,5) grub rescue>set root=(hd0,1) grub rescue>set prefix=(hd0,1)/boot/grub grub rescue>insmod normal grub rescue>normal
重新安裝Grub
sudo update-grub sudo grub-install /dev/sda
相關連結
grub rescue>ls (hd0), (hd0,1), (hd0,2), (hd0,3), (hd0,5) grub rescue>set root=(hd0,1) grub rescue>set prefix=(hd0,1)/boot/grub grub rescue>insmod normal grub rescue>normal
sudo update-grub sudo grub-install /dev/sda



(CvHaarClassifierCascade*)cvLoad("haarcascade_frontalface_alt.xml");
pyramidImg = cvCreateImage(cvSize(image->width/2,image->height/2), IPL_DEPTH_8U, 3); cvPyrDown(image, pyramidImg, CV_GAUSSIAN_5x5); scale = 2;
CvMemStorage* storage = cvCreateMemStorage(0); CvSeq *faces; faces = cvHaarDetectObjects(pyramidImg, cascade, storage, 1.2, 2, CV_HAAR_DO_CANNY_PRUNING);




typedef bool (*filter)(int cond1, int cond2, int threshold1, int threshold2);
bool MyFilter(int cond1, int cond2, int threshold1, int threshold2)
{
if(cond1 < (threshold1/16) || cond2 < (threshold2/16)) return true;
else return false;
}