MCPcopy Create free account
hub / github.com/KAlO2/PerfectShow / dump

Function dump

jni/platform/com_cloudream_ishow_algorithm_FaceDetector.cpp:38–44  ·  view source on GitHub ↗

used for debugging intermediate output image

Source from the content-addressed store, hash-verified

36
37// used for debugging intermediate output image
38static 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
46static std::vector<Point2f> getFaceFeaturePoints(JNIEnv *env, jobject thiz)
47{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected