MCPcopy Create free account
hub / github.com/devilsen/CZXing / readBitmap

Method readBitmap

czxing/src/main/cpp/DecodeScheduler.cpp:82–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82std::vector<ScanResult> DecodeScheduler::readBitmap(JNIEnv* env, jobject bitmap)
83{
84 cv::Mat src;
85 BitmapToMat(env, bitmap, src);
86 saveMat(src, "src");
87
88 cv::Mat gray;
89 cvtColor(src, gray, cv::COLOR_RGBA2GRAY);
90 saveMat(gray, "gray");
91
92 return decodeWeChat(gray);
93}
94
95std::vector<ScanResult> DecodeScheduler::startDecode(const cv::Mat& gray)
96{

Calls 2

BitmapToMatFunction · 0.85
saveMatFunction · 0.85

Tested by

no test coverage detected