Ask Your Question

opencv 2.4.3 and microsoft visual studio ultimate 2012

asked 2013-04-14 05:20:33 -0500

baila gravatar image

updated 2013-04-14 05:24:18 -0500

hello all, i am quite new in computer vision and need some help. I have written a sample program to show the frames of a .avi file. The code is compiled successfully. But it shows the following error while i am trying to execute from command prompt with a command line argument (the video file name).

image description

can anyone help me how to fix this error??

thanks in advance.

N.B. - i have added the path "C:\opencv\build\x86\vc10\bin" in Path (System) variable.

edit retag flag offensive close merge delete


hi.. copying those dlls to the Debug folder runs the program...but i think this is not the exact procedure.

secondly, while running it cant show a single frame. My sample video contains audio also (a music video basically). Is that a problem to work with such kind of files?

baila gravatar imagebaila ( 2013-04-14 05:41:44 -0500 )edit

3 answers

Sort by ยป oldest newest most voted

answered 2013-04-15 12:46:22 -0500

Hongbo Miao gravatar image

Hi, please check this:

If you use old OpenCV 2.43, please skip over the part for OpenCV 2.44.

Good luck.

edit flag offensive delete link more


Very nice guide indeed! Already referred people there a couple of times :)

StevenPuttemans gravatar imageStevenPuttemans ( 2013-04-15 13:17:18 -0500 )edit

answered 2013-04-28 12:03:03 -0500

baila gravatar image

hi all,

thanks for your great responses. The issue was resolved by restarting my machine. It seems that the changes in environment variable won't effect until you restart your machine after changing them. Sorry for my late response. Its working great with 2.4.3 version of opencv.

Thanks all. Happy thinking!

edit flag offensive delete link more

answered 2013-04-15 10:23:53 -0500

This error is like you already mentioned, caused because of multiple things. Check if all of the following things have been correctly configured

  1. Have you add all correct linker settings and links to the correct dll's in your project settings?
  2. Be sure to add the correct include folder to your PATH variable in your system.

Please check if all of the steps in this guide have been configured correctly on your system:

edit flag offensive delete link more

Question Tools


Asked: 2013-04-14 05:20:33 -0500

Seen: 425 times

Last updated: Apr 28 '13