c++ - opencv imshow show gray in Opencv 3.1 -
opencv imshow showing gray image.
#include "stdafx.h" #include <opencv2\opencv.hpp> using namespace cv; using namespace std; int main() { videocapture cap; mat frame; cap.open(0); while (true) { cap >> frame; imshow("test", frame); waitkey(30); } return 0; }
i upgraded windows insider preview 14316 , stopped working after think.
i checked if camera work in skype, , did. tried code on computer , worked.
any ideas?
Comments
Post a Comment