OpenCV3如何使用SIFT和SURF Where did SIFT and SURF go in OpenCV 3?

时间:2022-12-25 14:47:49

Installation and Usage

  1. If you have previous/other version of OpenCV installed (e.g. cv2 module in the root of Python’s site-packages), remove it before installation to avoid conflicts.
  • To further avoid conflicts and to make development easier, Python’s virtual environments are highly recommended for development purposes.
  1. If you have an existing opencv-python installation, run pip uninstall opencv-python
  2. Install this package:

pip install opencv-contrib-python

  1. Import the package:

import cv2

  1. Read OpenCV documentation
  2. Before opening a new issue, read the FAQ below and have a look at the other issues which are already open.