teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

ソースコード、エラーコード貼りました

2020/04/15 09:41

投稿

nanashiwolf
nanashiwolf

スコア5

title CHANGED
File without changes
body CHANGED
@@ -6,4 +6,17 @@
6
6
  windows10
7
7
  VScode
8
8
  python3.7.7
9
- opencv-contrib-python 4.2.0.34
9
+ opencv-contrib-python 4.2.0.34
10
+
11
+ ソースコード
12
+ import cv2
13
+ import numpy as np
14
+
15
+ img = cv2.imread("gakko1a.jpg")
16
+ gray=cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)
17
+
18
+ sift = cv2.xfeatures2d.SIFT_create()
19
+
20
+
21
+ エラーコード
22
+ OpenCV(4.2.0) C:\projects\opencv-python\opencv_contrib\modules\xfeatures2d\src\sift.cpp:1210: error: (-213:The function/feature is not implemented) This algorithm is patented and is excluded in this configuration; Set OPENCV_ENABLE_NONFREE CMake option and rebuild the library in function 'cv::xfeatures2d::SIFT::create'