質問編集履歴

1

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

2020/04/15 09:41

投稿

nanashiwolf
nanashiwolf

スコア5

test CHANGED
File without changes
test CHANGED
@@ -15,3 +15,29 @@
15
15
  python3.7.7
16
16
 
17
17
  opencv-contrib-python 4.2.0.34
18
+
19
+
20
+
21
+ ソースコード
22
+
23
+ import cv2
24
+
25
+ import numpy as np
26
+
27
+
28
+
29
+ img = cv2.imread("gakko1a.jpg")
30
+
31
+ gray=cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)
32
+
33
+
34
+
35
+ sift = cv2.xfeatures2d.SIFT_create()
36
+
37
+
38
+
39
+
40
+
41
+ エラーコード
42
+
43
+ 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'