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

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

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

asp.net mvc - breakpoint on javascript in CSHTML? -