update OpenCV version
This commit is contained in:
parent
96c63eac86
commit
f0dc6bc7b4
|
@ -14,7 +14,7 @@ OpenCV wrapper for Ruby
|
|||
== FEATURES/PROBLEMS:
|
||||
|
||||
* Some OpenCV functions are wrapped.
|
||||
* Ruby 1.8.7, 1.9.3 and OpenCV 2.4.0 are supported.
|
||||
* Ruby 1.8.7, 1.9.3 and OpenCV 2.4.2 are supported.
|
||||
|
||||
== DEPENDENCIES:
|
||||
|
||||
|
@ -78,7 +78,7 @@ To use pre-built OpenCV libraries, set the following option to extconf.rb.
|
|||
|
||||
For example, if you install OpenCV library to */opt/local/* like:
|
||||
|
||||
$ cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/opt/local/ ./OpenCV-2.4.0
|
||||
$ cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/opt/local/ ./OpenCV-2.4.2
|
||||
$ make
|
||||
$ make install
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ opencv_libraries = ["opencv_calib3d", "opencv_contrib", "opencv_core", "opencv_f
|
|||
|
||||
puts ">> Check the required libraries..."
|
||||
|
||||
OPENCV_VERSION_SUFFIX = '240'
|
||||
OPENCV_VERSION_SUFFIX = '242'
|
||||
case CONFIG["arch"]
|
||||
when /mswin32/
|
||||
opencv_libraries.map! {|lib| lib + OPENCV_VERSION_SUFFIX }
|
||||
|
|
|
@ -9,10 +9,10 @@ include OpenCV
|
|||
class TestOpenCV < OpenCVTestCase
|
||||
def test_constants
|
||||
# OpenCV version
|
||||
assert_equal('2.4.0', CV_VERSION)
|
||||
assert_equal('2.4.2', CV_VERSION)
|
||||
assert_equal(2, CV_MAJOR_VERSION)
|
||||
assert_equal(4, CV_MINOR_VERSION)
|
||||
assert_equal(0, CV_SUBMINOR_VERSION)
|
||||
assert_equal(2, CV_SUBMINOR_VERSION)
|
||||
|
||||
# Depths
|
||||
assert_equal(0, CV_8U)
|
||||
|
|
Loading…
Reference in New Issue