Skip to content

Instantly share code, notes, and snippets.

@tibaes
Created April 16, 2015 15:15
Show Gist options
  • Save tibaes/8841d1470fe658ccfdac to your computer and use it in GitHub Desktop.
Save tibaes/8841d1470fe658ccfdac to your computer and use it in GitHub Desktop.
OpenCV img scan and show lines.
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
using namespace cv;
int main() {
Mat img;
img = imread("dave.jpeg", -1);
Mat win = Mat::zeros(0, img.rows, CV_8UC3);
for (size_t i = 0; i < img.rows; ++i) {
win.push_back(img.row(i));
imshow("scan", win);
waitKey(100);
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment