質問編集履歴
1
ソースコードの変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -20,9 +20,11 @@
|
|
20
20
|
|
21
21
|
def main():
|
22
22
|
|
23
|
-
im1 = cv2.imread("Tulips.jpg",0)
|
23
|
+
im1 = cv2.imread("C:\Users\wakimoto\testimg\Tulips.jpg",0)
|
24
24
|
|
25
|
-
im2 = cv2.imread("Tulips2.jpg",0)
|
25
|
+
im2 = cv2.imread("C:\Users\wakimoto\testimg\Tulips2.jpg",0)
|
26
|
+
|
27
|
+
print(im1)
|
26
28
|
|
27
29
|
|
28
30
|
|
@@ -33,6 +35,8 @@
|
|
33
35
|
|
34
36
|
|
35
37
|
d = cv2.compareHist(hist1,hist2,0)
|
38
|
+
|
39
|
+
#類似度dは0から1の範囲で出るらしい
|
36
40
|
|
37
41
|
print(d)
|
38
42
|
|