简体   繁体   中英

How to install opencv in EPD?

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM