Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to install opencv and test for successful installation

Shulou Source: shulou.com Published: 2022-06-02 02:34:24 11月17日 Update

This article mainly introduces how to install opencv and test the installation successfully, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let Xiaobian take you to understand.

Install using pip: pip install opencv-python

Verify that the installation is successful:

Microsoft Windows [version 10.0.18363.1256] (c) 2019 Microsoft Corporation. All rights reserved. C:\ Users\ chenxuqi > conda activate ssd4pytorch2_2_0 (ssd4pytorch2_2_0) C:\ Users\ chenxuqi > pip install opencv-pythonLooking in indexes: http://mirrors.aliyun.com/pypi/simple/Requirement already satisfied: opencv-python ind:\ anaconda3\ envs\ ssd4pytorch2_2_0\ lib\ site-packages (4.4.0.46) Requirement already satisfied: numpy > = 1.14.5 ind:\ anaconda3\ envs\ ssd4pytorch2_2_0\ lib\ site-packages (from opencv-python) .5) (ssd4pytorch2_2_0) C:\ Users\ chenxuqi > pythonPython 3.7.7 (default May 6 2020, 11:45:54) [MSC v.1916 64 bit (AMD64)]:: Anaconda, Inc. On win32Type "help", "copyright", "credits" or "license" for more information. > import cv2 as cv > print (cv.__version__) 4.4.0 > Thank you for reading this article carefully. I hope the article "how to install opencv and test it successfully" shared by the editor will be helpful to you. At the same time, I hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

Tags: Articles success testing value interest at the same time more friends rights versions knowledge editing industry information information channels channels references learning help support Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker Huawei Xiaomi Microsoft NVidia