used for debugging intermediate output image
| 36 | |
| 37 | // used for debugging intermediate output image |
| 38 | static bool dump(std::string filename, const cv::Mat& image) |
| 39 | { |
| 40 | static std::string DIR = "/sdcard/Pictures/PerfectShow/"; |
| 41 | cv::Mat debug_image; |
| 42 | cvtColor(image, debug_image, CV_RGBA2BGRA); // turn Android' RGBA to OpenCV's BGRA format |
| 43 | return imwrite(DIR + filename, debug_image); |
| 44 | } |
| 45 | |
| 46 | static std::vector<Point2f> getFaceFeaturePoints(JNIEnv *env, jobject thiz) |
| 47 | { |
nothing calls this directly
no outgoing calls
no test coverage detected