install:
https://gist.github.com/sedovolosiy/6711123a9e5a73a6ce519e80338d0067
c++ test
testcpp:
https://my.oschina.net/gujianhan/blog/205200
test cmake:
CMakeLists.txt
cmake_minimum_required(VERSION 3.5) project(TestOpenCv) find_package(OpenCV) include_directories(${OpenCV_INCLUDE_DIRS}) set(CMAKE_CXX_STANDARD 11) add_executable(TestOpenCv test.cpp) target_link_libraries(TestOpenCv ${OpenCV_LIBS})
like this:
python test
first copy two libs to python's dist-packages and site-packages:
cp opencv_dir/build/lib/cv2.so ENV/lib/python2.7/dist-packages/ cp opencv_dir/modules/python/src2/cv.py ENV/lib/python2.7/dist-packages/
https://www.ctolib.com/topics-106448.html
difference between dist and site packages:
https://www.cnblogs.com/kevin922/p/3161411.html