Skip to content

Opencv #71

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions sources/opencv/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ Python 环境创建
-D OPENCV_EXTRA_MODULES_PATH=/path/to/opencv/opencv_contrib/modules \
-D DWITH_CUDA=0 \
-D DWITH_CANN=1 \
-D ASCEND_CANN_PACKAGE_PATH=/path/to/ascend-toolkit/latest \
-D CANN_DIR=/path/to/ascend-toolkit/latest \
-D CANN_INCLUDE_DIR=/path/to/ascend-toolkit/latest/include \
-D CANN_LIBRARY=/path/to/ascend-toolkit/latest/lib64 \
Comment on lines +70 to +73
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这些参数在opencv内部没有默认值,比如从CANN的set_env.sh里面设定好的默认值?

-D DPYTHON3_EXECUTABLE=/path/to/miniconda3/envs/opencv/bin/python \
-D DPYTHON_LIBRARY=/path/to/miniconda3/envs/opencv \
-D PYTHON_INCLUDE_DIR=/path/to/miniconda3/envs/opencv/include/python3.10 \
Expand Down