| | |
| | |
|
| | | LOGP(DEBUG, "stfaceImg2 db_id=%d, mb_type=%d, width=%d, height=%d, size=%d",
|
| | | (int)stfaceImg2.db_id, (int)stfaceImg2.mb_type, (int)stfaceImg2.width, (int)stfaceImg2.height, (int)stfaceImg2.size);
|
| | | |
| | | |
| | | char imgfn[100 * 1024];
|
| | | static int i = 0;
|
| | | sprintf(imgfn, "IMG_%d_%d_w%d_h%d.img", stfaceImg1.db_id, ++i, stfaceImg1.width, stfaceImg1.height);
|
| | | FILE * pFile = fopen(imgfn, "wb");
|
| | | fwrite(stfaceImg1.buff, sizeof(char), stfaceImg1.size, pFile);
|
| | | fclose(pFile);
|
| | | pFile = nullptr;
|
| | |
|
| | | sprintf(imgfn, "IMG_%d_%d_w%d_h%d.img", stfaceImg2.db_id, ++i, stfaceImg2.width, stfaceImg2.height);
|
| | | pFile = fopen(imgfn, "wb");
|
| | | fwrite(stfaceImg2.buff, sizeof(char), stfaceImg2.size, pFile);
|
| | | fclose(pFile);
|
| | | pFile = nullptr;
|
| | | //char imgfn[100 * 1024];
|
| | | //static int i = 0;
|
| | | //sprintf(imgfn, "IMG_%d_%d_w%d_h%d.img", stfaceImg1.db_id, ++i, stfaceImg1.width, stfaceImg1.height);
|
| | | //FILE * pFile = fopen(imgfn, "wb");
|
| | | //fwrite(stfaceImg1.buff, sizeof(char), stfaceImg1.size, pFile);
|
| | | //fclose(pFile);
|
| | | //pFile = nullptr;
|
| | | //
|
| | | //sprintf(imgfn, "IMG_%d_%d_w%d_h%d.img", stfaceImg2.db_id, ++i, stfaceImg2.width, stfaceImg2.height);
|
| | | //pFile = fopen(imgfn, "wb");
|
| | | //fwrite(stfaceImg2.buff, sizeof(char), stfaceImg2.size, pFile);
|
| | | //fclose(pFile);
|
| | | //pFile = nullptr;
|
| | | |
| | | //fdr_vec_t result;
|
| | | //FDP_FaceDetectResult fdrResult = g_STFaceCache.add(stfaceImg);
|
| | | //result.push_back(fdrResult);
|
| | | //
|
| | | //int ret = (fdrResult.db_id == 0 ? -1 : 0);
|
| | | //return send_SensetimeFaceDetectResultJson(client, result, ret);
|
| | | }
|
| | |
|
| | | bool ev_dispatcher_proto_pb(EVClientStub& client)
|