回答編集履歴
1
3\.x用に修正
test
CHANGED
@@ -16,7 +16,9 @@
|
|
16
16
|
|
17
17
|
# モザイク処理 : 縮小して元のサイズに戻す
|
18
18
|
|
19
|
-
img_r = cv2.resize(img_org,(w/8, h/8))
|
19
|
+
#img_r = cv2.resize(img_org,(w/8, h/8))
|
20
|
+
|
21
|
+
img_r = cv2.resize(img_org,(int(w/8), int(h/8))) # for python 3.x
|
20
22
|
|
21
23
|
img_m = cv2.resize(img_r,(w, h))
|
22
24
|
|