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

Popular posts from this blog

php - Passing multiple values in a url using checkbox -

compilation - PHP install fails on Ubuntu 14 (make: *** [sapi/cli/php] Error 1) PHP 5.6.20 -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -