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.

 

arrow
arrow
    創作者介紹
    創作者 Cuby 56 的頭像
    Cuby 56

    Cuby56

    Cuby 56 發表在 痞客邦 留言(0) 人氣()