Windows 7 64bit로 갈아탄 후,
Microsoft Lifecam HD-5000 이 녀석이 OpenCV에서 작동할 생각을 않는다.

포기하고 Logitech Quickcam Sphere를 다시 연결해서 쓰고 있었지만
이넘은 또 기본 해상도가 320x240인데다가
화면이 시커멓게 어둡게 나오는 증상이 있어서...
상당한 불편을 겪고 있었다.

오늘도 웹캠 때문에 짜증을 거듭하다... 마지막으로 한번만 찾아보자... 하고 찾은 것이 그만
제대로 된 솔루션이었다.

http://dusijun.wordpress.com/2011/01/11/opencv-unable-to-capture-image-from-isight-webcam/

C:\OpenCV2.2\modules\highgui\src\precomp.hpp 파일을 찾아서 다음과 같이 바꾸고,
OpenCV를 다시 빌드하면 된다.

#if !defined WIN32 && !defined _WIN32
#include “cvconfig.h”
#else
void FillBitmapInfo( BITMAPINFO* bmi, int width, int height, int bpp, int origin );
#endif

를 아래와 같이 바꾸자.

#include “cvconfig.h”
#if defined WIN32 || defined _WIN32
void FillBitmapInfo( BITMAPINFO* bmi, int width, int height, int bpp, int origin );
#endif


즉 64비트 윈도에서는 cvconfig.h가 include되지 않았던 것으로 보인다.

두시준 선생 고마워요~!


[2011.4.14 추가]
OpenCV를 재설치하고
위 과정을 다시 해줬는데
웹캠이 또 먹통이다.
반나절 개고생 후 해결:


lib만 새로 빌드하고
dll은 옛날 버전을 그대로 쓰고 있었다~~!!

위 그림과 같이 반드시 새로 빌드된 dll을 카피해주자... ㅠㅠ
내 경우 C:\OpenCV2.2\vs2008\bin\Debug에 있다.