unit test error in pyvision.types.img._TestImage test_asHSV

93 views
Skip to first unread message

dan elliott

unread,
Oct 12, 2011, 8:07:01 PM10/12/11
to pyvision
Hello,

I downloaded the svn version and ran the unittest and got the
following error:

test_asHSV (pyvision.types.img._TestImage) ... terminate called after
throwing an instance of 'int'

I have libsvm-2.0 and OpenCV 2.1.0-3ubuntu1 installed.

Any ideas? I have installed the svn head because I want to add a
subset of the histogram of oriented gradients features computations to
the package.

Thank you!

- dan

David Bolme

unread,
Oct 19, 2011, 12:43:31 PM10/19/11
to pyvi...@googlegroups.com
I checked into this and that unit test is expecting an exception to be raised. Here is what I get on my system:

test_asHSV (pyvision.types.img._TestImage) ... OpenCV Error: Assertion failed ((scn == 3 || scn == 4) && (depth == CV_8U || depth == CV_32F)) in cvtColor, file /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_opencv/opencv/work/OpenCV-2.2.0/modules/imgproc/src/color.cpp, line 2546
ok

The key being that the last line says "ok".

The problem is with OpenCV 2.1

I am using OpenCV 2.2

---
David Bolme, PhD
Computer Science Department - 1873
Colorado State Univerisity
Fort Collins, CO 80523-1873

www: http://www.cs.colostate.edu/~bolme

Reply all
Reply to author
Forward
0 new messages