質問編集履歴
3
print()に修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -36,7 +36,7 @@
|
|
36
36
|
for dirpath, dirnames, fnames in subfolders:
|
37
37
|
image_dir = os.path.split(dirpath)[-1]
|
38
38
|
output_dir = os.path.join(OUT_FOLDER, image_dir)
|
39
|
-
print
|
39
|
+
print("Processing input {i}...".format(i=image_dir))
|
40
40
|
|
41
41
|
# Search for images to process
|
42
42
|
source_names = collect_files(r'C:\Users\〇〇〇\Desktop\poisson-image-editing-master\input'*source.'))
|
@@ -71,7 +71,7 @@
|
|
71
71
|
raise
|
72
72
|
# Write result
|
73
73
|
cv2.imwrite(r'C:\Users\〇〇〇〇\Desktop\test\Blended.jpg', result)
|
74
|
-
print
|
74
|
+
print("Finished processing input {i}.".format(i=image_dir))
|
75
75
|
|
76
76
|
```
|
77
77
|
### 前提・実現したいこと
|
2
リンクを追加しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -102,4 +102,5 @@
|
|
102
102
|
|
103
103
|
### 補足情報(FW/ツールのバージョンなど)
|
104
104
|
|
105
|
-
GitHubからダウンロードしました。
|
105
|
+
GitHubからダウンロードしました。
|
106
|
+
https://github.com/willemmanuel/poisson-image-editing
|
1
更新しました
title
CHANGED
File without changes
|
body
CHANGED
@@ -39,9 +39,9 @@
|
|
39
39
|
print "Processing input {i}...".format(i=image_dir)
|
40
40
|
|
41
41
|
# Search for images to process
|
42
|
-
source_names = collect_files(
|
42
|
+
source_names = collect_files(r'C:\Users\〇〇〇\Desktop\poisson-image-editing-master\input'*source.'))
|
43
|
-
target_names = collect_files(
|
43
|
+
target_names = collect_files(r'C:\Users\〇〇〇\Desktop\poisson-image-editing-master\input'*target.'))
|
44
|
-
mask_names = collect_files(
|
44
|
+
mask_names = collect_files(r'C:\Users\〇〇〇\Desktop\poisson-image-editing-master\input'*mask.'))
|
45
45
|
|
46
46
|
if not len(source_names) == len(target_names) == len(mask_names) == 1:
|
47
47
|
print("There must be one source, one target, and one mask per input.")
|