1. 程式人生 > >Windows10+Python3.6(Anaconda3)+OpenCV3.4安裝配置

Windows10+Python3.6(Anaconda3)+OpenCV3.4安裝配置

環境

win10(64bit)+Anaconda3(python3.6.5)

下載opencv_python

執行下面命令安裝opencv3.4.3:

pip install opencv_python-3.4.3-cp36-cp36m-win_amd64.whl

測試

#!/usr/bin/python3
import numpy as np
import cv2
import matplotlib.pyplot as plt
receptor_img = cv2.imread("protein.jpg")
plt.imshow(receptor_img)