Ask Your Question

instaling opencv 2.4.6 in win8 visual studio2012

asked 2013-09-13 15:20:46 -0600

pliz explain how to use opencv 2.4.6 in windows 8 by visual studio 2012 tnx

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2013-09-13 21:39:09 -0600

justsml gravatar image

As of 03/07/2013:

  1. Grab this file
  2. Set Environment Variables, on my PC my path to openCV is D:\Code\opencv

So, let's run something like this:

setx -m OPENCV_DIR D:\Code\opencv

Most importantly just briefly check

It may say stuff is out of date, just ignore the videos and scan the bullet points.

edit flag offensive delete link more

answered 2013-09-14 10:37:29 -0600

Gino Strato gravatar image

updated 2013-09-14 13:01:25 -0600

This tutorial I've recently found seems to be a little easier than the other ones you can find on the web. It is written for VS express, but I think it is good anyway. Try it out.

edit flag offensive delete link more


Sorry, that's a VERY bad tutorial! You should never do that manually as specified in the tutorial. There is CMAKE. Follow installation instructions with cmake!

Elador gravatar imageElador ( 2013-09-14 20:08:41 -0600 )edit

OK. Show me where it is a bad tutorial. I did it and it worked fine.
Please, read the question carefully before downvoting other's answers and be sure you know the subject. He asked how to install OpenCv, not to build libraries from the source code by himself before usining them.

Gino Strato gravatar imageGino Strato ( 2013-09-15 02:23:23 -0600 )edit

@Elador, are sure you know what you are talking about? Using CMAKE is unnecessary and the worst advice you could give to make things easy.

Manlius gravatar imageManlius ( 2013-09-15 02:57:34 -0600 )edit

Sorry, there's a misunderstanding here. The linked tutorial says "how to easily install OpenCv". But it does not install it, it shows how to make a _own_ project _using_ OpenCv, which is something different. For using OpenCv, of course CMake is not required (yet in my opinion still the easier solution than to add include paths and dozens of .lib's in every project manually). But judging from the initial post ("instaling", "pliz explain [...] tnx"), for that particular user, the linked tutorial indeed seems best. Sadly I cannot remove my down-vote, sorry for that.

Elador gravatar imageElador ( 2013-09-15 13:01:25 -0600 )edit

I think that the word "install" is the one everybody uses in these cases, even in the OpenCv website.

Gino Strato gravatar imageGino Strato ( 2013-09-16 01:43:13 -0600 )edit

I was able to remove my down-vote today. Didn't work 2 weeks ago.

Elador gravatar imageElador ( 2013-10-03 12:47:43 -0600 )edit

Question Tools


Asked: 2013-09-13 15:20:46 -0600

Seen: 486 times

Last updated: Sep 14 '13