0

There is no opencv in EPD 7.3.1. My EPD path is like /usr/epd

I have installed opencv using the method below the dashed line successfully .

Now cv2.so and cv.py are made in the directory /usr/local/lib/python2.7/site-packages

But since my default python is epd, there is a path problem now. I copy cv2.so and cv.py to /usr/epd/lib/python2.7/site-packages. Now I can import cv2 under epd.

I am afraid there is a hidden trouble some day. Is my method right?


I just follow the link opencv install

Building OpenCV from Source Using CMake, Using the Command Line 1. Create a temporary directory, which we denote as , where you want to put the generated Makefiles, project files as well the object files and output binaries.

2. Enter the and type

cmake []

For example

cd ~/opencv

mkdir release

cd release

cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ..

3. Enter the created temporary directory () and proceed with:

make

sudo make install

1

2 Answers 2

0

Linux has a number of interfaces to opencv. Have you tried: http://docs.opencv.org/doc/tutorials/introduction/linux_install/linux_install.html or OpenCV 2.4.3 and Python

Sign up to request clarification or add additional context in comments.

3 Comments

i tried and found nither way was convenient. In fact I need to use inpaint .My system is 32bit linux and python is from EPD 7.3 .Is it necessary to install opencv ?
Yes if you want to use opencv's inpaint method you'll need to install it. Unless you can already do import cv2.
I can import cv2 and help(cv2) successfully now.But is my method right?
0

Temporary directory is release.

Run the following script:

cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local 

And just type make command in terminal.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.