Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting OpenCV2.4.2 with GIT for Windows

I want to get the OpenCV2.4.2 source files for windows in order to generate the libraries myself. I run the 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>

that is supposed to get back to the desired commit. The thing is that I found that there are way too many commits and I don't know which one is the version 2.4.2!

  • How can I download version 2.4.2 from GIT?
like image 948
Jav_Rock Avatar asked Sep 13 '12 07:09

Jav_Rock


1 Answers

Just look for the tags using:

git tag

Look for OpenCV 2.4.2, or whatever you want, and then checkout with your election:

git checkout 2.4.2 

in your case.


If you want to pull the latest 2.4 branch, then you can do:

git clone -b 2.4 --single-branch https://github.com/Itseez/opencv.git Opencv-2.4
like image 107
goe Avatar answered Nov 02 '22 07:11

goe