mirror of
https://github.com/ruby-opencv/ruby-opencv
synced 2023-03-27 23:22:12 -04:00
update OpenCV version
This commit is contained in:
parent
96c63eac86
commit
f0dc6bc7b4
3 changed files with 5 additions and 5 deletions
|
@ -14,7 +14,7 @@ OpenCV wrapper for Ruby
|
||||||
== FEATURES/PROBLEMS:
|
== FEATURES/PROBLEMS:
|
||||||
|
|
||||||
* Some OpenCV functions are wrapped.
|
* 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:
|
== 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:
|
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
|
||||||
$ make install
|
$ make install
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@ opencv_libraries = ["opencv_calib3d", "opencv_contrib", "opencv_core", "opencv_f
|
||||||
|
|
||||||
puts ">> Check the required libraries..."
|
puts ">> Check the required libraries..."
|
||||||
|
|
||||||
OPENCV_VERSION_SUFFIX = '240'
|
OPENCV_VERSION_SUFFIX = '242'
|
||||||
case CONFIG["arch"]
|
case CONFIG["arch"]
|
||||||
when /mswin32/
|
when /mswin32/
|
||||||
opencv_libraries.map! {|lib| lib + OPENCV_VERSION_SUFFIX }
|
opencv_libraries.map! {|lib| lib + OPENCV_VERSION_SUFFIX }
|
||||||
|
|
|
@ -9,10 +9,10 @@ include OpenCV
|
||||||
class TestOpenCV < OpenCVTestCase
|
class TestOpenCV < OpenCVTestCase
|
||||||
def test_constants
|
def test_constants
|
||||||
# OpenCV version
|
# OpenCV version
|
||||||
assert_equal('2.4.0', CV_VERSION)
|
assert_equal('2.4.2', CV_VERSION)
|
||||||
assert_equal(2, CV_MAJOR_VERSION)
|
assert_equal(2, CV_MAJOR_VERSION)
|
||||||
assert_equal(4, CV_MINOR_VERSION)
|
assert_equal(4, CV_MINOR_VERSION)
|
||||||
assert_equal(0, CV_SUBMINOR_VERSION)
|
assert_equal(2, CV_SUBMINOR_VERSION)
|
||||||
|
|
||||||
# Depths
|
# Depths
|
||||||
assert_equal(0, CV_8U)
|
assert_equal(0, CV_8U)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue