mirror of
https://github.com/ruby-opencv/ruby-opencv
synced 2023-03-27 23:22:12 -04:00
added OpenCV version constants
This commit is contained in:
parent
32b2c0a41d
commit
1d1244de0c
2 changed files with 13 additions and 1 deletions
|
@ -8,6 +8,12 @@ include OpenCV
|
|||
|
||||
class TestOpenCV < OpenCVTestCase
|
||||
def test_constants
|
||||
# OpenCV version
|
||||
assert_equal('2.3.1', CV_VERSION)
|
||||
assert_equal(2, CV_MAJOR_VERSION)
|
||||
assert_equal(3, CV_MINOR_VERSION)
|
||||
assert_equal(1, CV_SUBMINOR_VERSION)
|
||||
|
||||
# Depths
|
||||
assert_equal(0, CV_8U)
|
||||
assert_equal(1, CV_8S)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue