Getting OpenCV2.4.2 Using GIT for Windows

I want to get the OpenCV2.4.2 source files for Windows so that I can create the libraries myself . I ran a command

git clone git://code.opencv.org/opencv.git

This actually gets the 2.4.9 repository, which I don't want. There is a GIT option

git reset --hard <commit code>

which should return to the desired commit. The fact is that I found that there are too many commits, and I do not know which one is version 2.4.2!

  • How to download version 2.4.2 from GIT?
+5
source share
1 answer

Just find the tags using:

git tag

Look for OpenCV 2.4.2 or whatever you want, and then exit with your choices:

git checkout 2.4.2 

in your case.


If you want to pull the last branch of 2.4, you can do:

git clone -b 2.4 --single-branch https://github.com/Itseez/opencv.git Opencv-2.4
+7
source

All Articles