You are not logged in.

#1 2017-10-19 08:32:47

virusso80
Member
From: Italy
Registered: 2007-03-09
Posts: 325

[SOLVED] OpenCV installation and usage in Python

Hi all,
i am having some trouble in using the open cv library for python.
I installed the package...

[root@jily ~]# pacman -Qs opencv
local/opencv 3.3.0-2
    Open Source Computer Vision Library

BUT i am still unable to use it in any python script.
Even using the example tutorial script available here I get the following error message:

  File "/home/virus/corner_detection_cv.py", line 9, in <module>
    import cv2

ImportError: libhdf5.so.101: cannot open shared object file: No such file or directory

It does not find the cv2 package.

I checked about such libhdf5 and I also installed python-h5py 2.7.1-1 package.

even after the installation the error did not change.

Any suggestions?
Thanks in advance

Last edited by virusso80 (2017-10-19 13:44:17)

Offline

#2 2017-10-19 13:43:55

virusso80
Member
From: Italy
Registered: 2007-03-09
Posts: 325

Re: [SOLVED] OpenCV installation and usage in Python

Hi,
fixed by following this post:

pacman -Syu base-devel opencv opencv-samples
pacman -S hdf5

This fixed my import problems.

Thanks anyway.

Offline

Board footer

Powered by FluxBB