Situation : Win 7 + OpenCV 2.2
Bug : WebCAM has no image
File Path : $(OpenCV Directory)\modules\highgui\src\precomp.hpp
Open file, and find :
#if !defined WIN32 && !defined _WIN32 #include "cvconfig.h" #else void FillBitmapInfo( BITMAPINFO* bmi, int width, int height, int bpp, int origin ); #endif
Replace with :
#include "cvconfig.h" #if defined WIN32 || defined _WIN32 void FillBitmapInfo( BITMAPINFO* bmi, int width, int height, int bpp, int origin ); #endif
After replace, CMake again.
文章標籤
全站熱搜