Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void* detect_cpp(void * ptr_data)
- {
- LOGI("enter to detect");
- cv::Mat cvmat;
- cv::Mat cvMatConverted;
- cvmat = cv::Mat(720, 1280, CV_8UC3, ptr_data);
- LOGI("cvmat: cols %d, rows %d, ptr %u\n", cvmat.cols, cvmat.rows,cvmat.data);
- LOGI("before converted");
- //cvMatConverted = cv::Mat(720,1280, CV_8UC3, ptr_data);
- LOGI("before cvtcolor");
- cv::cvtColor(cvmat,cvMatConverted,CV_YUV2BGR_NV12);
- LOGI("after cvtcolor");
- //IplImage* imgScribble = cvCreateImage(cvSize(1280, 720), 8, 3);
- //cvZero(imgScribble);
- cv::imwrite("/sdcard/emma-frame.jpg",cvMatConverted);
- return NULL ;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement