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
913752e221
commit
688db69c2d
3 changed files with 13 additions and 3 deletions
|
@ -3,7 +3,7 @@
|
|||
An OpenCV wrapper for Ruby.
|
||||
|
||||
* Web site: <https://github.com/ruby-opencv/ruby-opencv>
|
||||
* Ruby 1.9.3, 2.0.0 and OpenCV 2.4.5 are supported.
|
||||
* Ruby 1.9.3, 2.0.0 and OpenCV 2.4.6.1 are supported.
|
||||
|
||||
## Requirement
|
||||
|
||||
|
|
|
@ -166,6 +166,11 @@ define_ruby_module()
|
|||
rb_define_const(rb_module, "CV_MINOR_VERSION", INT2FIX(CV_MINOR_VERSION));
|
||||
rb_define_const(rb_module, "CV_SUBMINOR_VERSION", INT2FIX(CV_SUBMINOR_VERSION));
|
||||
|
||||
rb_define_const(rb_module, "CV_VERSION_EPOCH", INT2FIX(CV_VERSION_EPOCH));
|
||||
rb_define_const(rb_module, "CV_VERSION_MAJOR", INT2FIX(CV_VERSION_MAJOR));
|
||||
rb_define_const(rb_module, "CV_VERSION_MINOR", INT2FIX(CV_VERSION_MINOR));
|
||||
rb_define_const(rb_module, "CV_VERSION_REVISION", INT2FIX(CV_VERSION_REVISION));
|
||||
|
||||
/* 0: 8bit unsigned */
|
||||
rb_define_const(rb_module, "CV_8U", INT2FIX(CV_8U));
|
||||
/* 1: 8bit signed */
|
||||
|
|
|
@ -9,10 +9,15 @@ include OpenCV
|
|||
class TestOpenCV < OpenCVTestCase
|
||||
def test_constants
|
||||
# OpenCV version
|
||||
assert_equal('2.4.3', CV_VERSION)
|
||||
assert_equal('2.4.6.1', CV_VERSION)
|
||||
assert_equal(2, CV_MAJOR_VERSION)
|
||||
assert_equal(4, CV_MINOR_VERSION)
|
||||
assert_equal(3, CV_SUBMINOR_VERSION)
|
||||
assert_equal(6, CV_SUBMINOR_VERSION)
|
||||
|
||||
assert_equal(2, CV_VERSION_EPOCH)
|
||||
assert_equal(4, CV_VERSION_MAJOR)
|
||||
assert_equal(6, CV_VERSION_MINOR)
|
||||
assert_equal(1, CV_VERSION_REVISION)
|
||||
|
||||
# Depths
|
||||
assert_equal(0, CV_8U)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue