python 26 version

36 views
Skip to first unread message

Dominique

unread,
Sep 7, 2010, 9:08:40 AM9/7/10
to pyvision
Hello,

It seems to be a very nice tool.
Congratulations for your work and thanks to share it.

Having python 2.6 setup on my pc, I had to install python 2.5.
I am facing several problems related to the path to have pyvision
work.
In addition, some tests fail.
Thus, this makes it difficult for me to use pyvision although I'd like
to.

So I was wondering if you plan to issue a version for python 2.6.
If yes, when.

Thanks

Dominique

David Bolme

unread,
Sep 21, 2010, 5:29:55 PM9/21/10
to pyvi...@googlegroups.com
Dominique,

The current version of pyvision should work with both Python 2.5 and 2.6. The problem is getting the dependencies for Python2.6: opencv, PIL, libsvm, numpy, scipy, etc for which I am not responsible. You should also note that the latest version of pyvision from svn or version 0.9.0 requires opencv 2.1. If you get these installed correctly pyvision should work. I am currently running pyvision with python 2.6 on my mac.

Supporting windows or linux is something that I do not have much time for. I do have binary installers and instructions for python 2.5 on windows. If you really need pyvision on python 2.6 you may have to do most of the work yourself. If you figure out how to get things running, I would appreciate it if you would post your notes so that others trying to get pyvision working on windows would have some information two work with.

You should also understand that not all test will complete successfully. Here is a list from my install which should give you a better idea which test should work. Many of the error messages come from tests where the values outputted by algorithms have changed. Often times scipy or opencv change how processing is done internally so upgrading to new versions of those libraries produce slightly different results. Therefore a test failure does not always mean that things are broken but just that they are different. Difference in these values are expected on windows.

$ import pyvision
$ pyvision.test()
test_libsvm_version (pyvision._VersionTest) ... ERROR
test_numpy__version (pyvision._VersionTest) ... 2.0.0 >= 1.0.4 ok
test_opencv_version (pyvision._VersionTest) ... ok
test_pil_version (pyvision._VersionTest) ... 1.1.7 >= 1.1.5 ok
test_python_version (pyvision._VersionTest) ... 2.6.1 >= 2.3.0 ok
test_scipy__version (pyvision._VersionTest) ... 0.9.0 >= 0.7.0 ok
test_affine_least_sqr (pyvision.types.Affine._AffineTest) ... ok
test_affine_mul (pyvision.types.Affine._AffineTest) ... ok
test_affine_numpy (pyvision.types.Affine._AffineTest) ... ok
test_affine_opencv (pyvision.types.Affine._AffineTest) ... ok
test_from_points (pyvision.types.Affine._AffineTest) ... ok
test_from_rect (pyvision.types.Affine._AffineTest) ... ok
test_prev_ref1 (pyvision.types.Affine._AffineTest) ... ok
test_prev_ref2 (pyvision.types.Affine._AffineTest) ... ok
test_rotation (pyvision.types.Affine._AffineTest) ... ok
test_scale (pyvision.types.Affine._AffineTest) ... ok
test_sim_least_sqr (pyvision.types.Affine._AffineTest) ... ok
test_translate (pyvision.types.Affine._AffineTest) ... ok
test_BufferToOpenCV (pyvision.types.img._TestImage) ... ok
test_Matrix2DToBufferGray (pyvision.types.img._TestImage) ... ok
test_Matrix2DToPIL (pyvision.types.img._TestImage) ... ok
test_Matrix3D2PIL (pyvision.types.img._TestImage) ... ok
test_Matrix3DToBufferGray (pyvision.types.img._TestImage) ... ok
test_OpenCVToPIL (pyvision.types.img._TestImage) ... ok
test_OpenCVToPILGray (pyvision.types.img._TestImage) ... ok
test_PILToBufferGray (pyvision.types.img._TestImage) ... ok
test_PILToMatrix2D (pyvision.types.img._TestImage) ... ok
test_PILToMatrix3D (pyvision.types.img._TestImage) ... ok
test_PILToOpenCV (pyvision.types.img._TestImage) ... ok
test_asOpenCVBW (pyvision.types.img._TestImage) ... ok
test_vc_create (pyvision.vector.VectorClassifier._TestVectorClassifier) ... ok
test_vc_normalize (pyvision.vector.VectorClassifier._TestVectorClassifier) ... ok
test_buildrow (pyvision.vector.Polynomial._PolyTest) ... ok
test_train (pyvision.vector.Polynomial._PolyTest) ... ok
testDetectorCorner1 (pyvision.point.DetectorCorner._CornerTest) ... ok
testDetectorCorner2 (pyvision.point.DetectorCorner._CornerTest) ... ok
testDetectorCorner3 (pyvision.point.DetectorCorner._CornerTest) ... ok
testDetectorCorner4 (pyvision.point.DetectorCorner._CornerTest) ... ok
testDetectorCorner5 (pyvision.point.DetectorCorner._CornerTest) ... ok
testDetectorCorner6 (pyvision.point.DetectorCorner._CornerTest) ... FAIL
testDetectorDOG1 (pyvision.point.DetectorDOG._DetectorDOGTestCase) ... ok
testDetectorDOG2 (pyvision.point.DetectorDOG._DetectorDOGTestCase) ... ok
testDetectorDOG3 (pyvision.point.DetectorDOG._DetectorDOGTestCase) ... FAIL
testDetectorDOG4 (pyvision.point.DetectorDOG._DetectorDOGTestCase) ... FAIL
testDetectorDOG5 (pyvision.point.DetectorDOG._DetectorDOGTestCase) ... ok
testDetectorDOG6 (pyvision.point.DetectorDOG._DetectorDOGTestCase) ... FAIL
testDetectorHarris1 (pyvision.point.DetectorHarris._HarrisTest) ... ok
testDetectorHarris2 (pyvision.point.DetectorHarris._HarrisTest) ... ok
testDetectorHarris3 (pyvision.point.DetectorHarris._HarrisTest) ... ok
testDetectorHarris4 (pyvision.point.DetectorHarris._HarrisTest) ... ok
testDetectorHarris5 (pyvision.point.DetectorHarris._HarrisTest) ... ok
testDetectorHarris6 (pyvision.point.DetectorHarris._HarrisTest) ... FAIL
test_Correlation (pyvision.point.PhaseCorrelation._TestPhaseCorrelation) ... ok
test_PhaseCorrelation (pyvision.point.PhaseCorrelation._TestPhaseCorrelation) ... ok
test_napsack_choice (pyvision.optimize.GeneticAlgorithm._TestGeneticAlgorithm) ... ok
test_napsack_set (pyvision.optimize.GeneticAlgorithm._TestGeneticAlgorithm) ... ok
test_detect_bad_file (pyvision.face.CascadeDetector._TestCascadeDetector) ... ok
test_detect_scraps_celeb1 (pyvision.face.CascadeDetector._TestCascadeDetector) ... ok
test_detect_scraps_celeb2 (pyvision.face.CascadeDetector._TestCascadeDetector) ... ok
test_detect_scraps_opencv (pyvision.face.CascadeDetector._TestCascadeDetector) ... ok
test_face_detection_pickle (pyvision.face.CascadeDetector._TestCascadeDetector) ... ok
test_pca_scraps (pyvision.face.PCA._TestFacePCA) ... ERROR
test_ASEFEyeLocalization (pyvision.face.FilterEyeLocator._TestFilterEyeLocator) ... ok
test_canny1 (pyvision.edge.canny._TestCanny) ... ok
test_canny2 (pyvision.edge.canny._TestCanny) ... ok
test_canny3 (pyvision.edge.canny._TestCanny) ... ok
test_canny4 (pyvision.edge.canny._TestCanny) ... ok
test_canny5 (pyvision.edge.canny._TestCanny) ... ok
test_cibinom (pyvision.analysis.stats._TestStats) ... ok
test_mcnemar (pyvision.analysis.stats._TestStats) ... ok
test_pbinom (pyvision.analysis.stats._TestStats) ... ok
test_qbinom (pyvision.analysis.stats._TestStats) ... ok
test_summarystats (pyvision.analysis.stats._TestStats) ... ok
test__str__ (pyvision.analysis.Table._TestTable) ... ok
test_asLists (pyvision.analysis.Table._TestTable) ... ok
test_save (pyvision.analysis.Table._TestTable) ... ok
test_verification (pyvision.analysis.Table._TestTable) ... ok
test_color (pyvision.analysis.classifier.ConfusionMatrix._TestConfusionMatrix) ... ok
test_verification (pyvision.analysis.classifier.ConfusionMatrix._TestConfusionMatrix) ... ok

======================================================================
ERROR: test_libsvm_version (pyvision._VersionTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/bolme/Documents/workspace/pyvision/src/pyvision/__init__.py", line 284, in test_libsvm_version
import svm
ImportError: No module named svm

======================================================================
ERROR: test_pca_scraps (pyvision.face.PCA._TestFacePCA)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/bolme/Documents/workspace/pyvision/src/pyvision/face/PCA.py", line 188, in test_pca_scraps
File "/Users/bolme/Documents/workspace/pyvision/src/pyvision/types/img.py", line 142, in __init__
File "/Library/Python/2.6/site-packages/PIL/Image.py", line 1952, in open
IOError: [Errno 24] Too many open files: '/Users/bolme/Documents/workspace/pyvision/src/pyvision/data/csuScrapShots/00013ad.pgm'

======================================================================
FAIL: testDetectorCorner6 (pyvision.point.DetectorCorner._CornerTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/bolme/Documents/workspace/pyvision/src/pyvision/point/DetectorCorner.py", line 226, in testDetectorCorner6
self.assertEquals(len(points),2149)
AssertionError: 2143 != 2149

======================================================================
FAIL: testDetectorDOG3 (pyvision.point.DetectorDOG._DetectorDOGTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/bolme/Documents/workspace/pyvision/src/pyvision/point/DetectorDOG.py", line 270, in testDetectorDOG3
self.assertEquals(len(points),329)
AssertionError: 326 != 329

======================================================================
FAIL: testDetectorDOG4 (pyvision.point.DetectorDOG._DetectorDOGTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/bolme/Documents/workspace/pyvision/src/pyvision/point/DetectorDOG.py", line 281, in testDetectorDOG4
self.assertEquals(len(points),293)
AssertionError: 295 != 293

======================================================================
FAIL: testDetectorDOG6 (pyvision.point.DetectorDOG._DetectorDOGTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/bolme/Documents/workspace/pyvision/src/pyvision/point/DetectorDOG.py", line 303, in testDetectorDOG6
self.assertEquals(len(points),554)
AssertionError: 561 != 554

======================================================================
FAIL: testDetectorHarris6 (pyvision.point.DetectorHarris._HarrisTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/bolme/Documents/workspace/pyvision/src/pyvision/point/DetectorHarris.py", line 170, in testDetectorHarris6
self.assertEquals(len(points),6771)
AssertionError: 6772 != 6771

----------------------------------------------------------------------
Ran 79 tests in 57.886s

FAILED (failures=5, errors=2)

Reply all
Reply to author
Forward
0 new messages