Lighten.Jo0oe
Lighten.Jo0oe

Reputation: 31

Opencv 2.3 cvtColor function

I'm using OpenCV 2.3 with visual studio 2010 ultimate the OpenCV works well with me, but when I call cvtColor function , I can't run the project and this error dialogue appear

"The application was unable to start correctly (0xc000007b). click OK to close the application."

Upvotes: 1

Views: 6005

Answers (2)

Lighten.Jo0oe
Lighten.Jo0oe

Reputation: 31

I found the right way to install the OpenCV 2.3 Visual Studio 2010 in Windows 7 64 bit at "Getting Started with OpenCV 2.3 in Microsoft Visual Studio 2010 in Windows 7 64-bit".

Upvotes: 2

mevatron
mevatron

Reputation: 14011

This sounds like it is likely a missing DLL problem. The cvtColor function is contained in the opencv_imgproc231.dll library. You'll either need to place this DLL in the same directory as the executable, or append the OpenCV DLL path (e.g., %OPENCV_ROOT%\install\bin) to the Path variable. Also note, if you changed your Path variable while Visual Studio was open, you will need to restart Visual Studio for it to see the change.

If the above fails, and you used the binary distribution, consider rebuilding OpenCV from source. If a binary distribution was built for VS2008, it will not work with VS2010 and vice versa. Here is a tutorial on how to build OpenCV from source on Windows.

Upvotes: 1

Related Questions