Environment Install Python OpenCV in Sublime 3.0

  • Download python

    • Windows

    • Mac

    • Linux Ubuntu

  • Download Submime

    • Windows

    • Mac

    • Linux Ubuntu

  • 安裝「OpenCV」函式庫:

pip install --upgrade pip
sudo pip install --upgrade pip

pip install opencv-python

# if: Cannot uninstall 'numpy'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

sudo pip install opencv-python --upgrade --ignore-installed opencv-python
  • 安裝 PIL 函式庫: 載入自訂的字型

    • 載入自訂的字型: 需使用 PIL 函式庫的Image, ImageFont, ImageDraw模組
pip install Pillow

from PIL import ImageFont, ImageDraw, Image

Reference

results matching ""

    No results matching ""