sai-bi / FaceAlignment

Face Alignment by Explicit Shape Regression
MIT License
339 stars 205 forks source link

keypoint.txt landmark is error? #23

Open larsoncs opened 8 years ago

larsoncs commented 8 years ago

mark_face keypoint.txt landmark is error?, ifstream fin2; locale::global(locale("")); fin2.open("oursTrain/keypoints.txt"); locale::global(locale("C")); string line; int sample_freq=0;

while(getline(fin2,line))
{

    sample_freq++;
    printf("loading test:%d\n",sample_freq);

    for(int j = 0;j < 29;j++)
    {
                  fin2>>shapes(j,0); 
            }
           for(int j = 0;j < 29;j++)
    {
                  fin2>>shapes(j,1); 
            }   
}

   for (int m=0;m<shapes.rows;++m)
{
    circle(testImg1,Point(shapes(m,0),shapes(m,1)),3,Scalar(255));
}
imwrite("mark_face.jpg",testImg1);

i find the testImg1 that it landmark error, thanks