| | |
| | | p_f = fdb->extract_feature(image);
|
| | | int indx = fdb->db_add(p_f);
|
| | | if(fdb->finally())
|
| | | {
|
| | | fprintf(stderr, "fdb->finally()%d\n",indx);
|
| | | return indx;
|
| | | }
|
| | |
|
| | | return -2;
|
| | | }
|
| | |
|
| | |
| | | {
|
| | | if(db_save())
|
| | | {
|
| | |
|
| | | return true;
|
| | | }
|
| | |
|
| | |
| | | {
|
| | | fprintf(stderr, "save done!\n");
|
| | | }
|
| | |
|
| | | cv_verify_destroy_db(handle_db);
|
| | | fprintf(stderr, "db_save end!\n");
|
| | | return true;
|
| | | }
|
| | |
|
| | |
| | | fprintf(stderr, "cv_verify_search_face failed, error code %d\n", cv_result);
|
| | | }
|
| | | std::cout<<"this is hits"<<std::endl;
|
| | | if (top_scores[0] != 0)
|
| | | if (top_scores[0] >= 0.7)
|
| | | {
|
| | | indx=top_idxs[0];
|
| | | std::cout<<"indx="<<indx<<std::endl;
|