summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-05-15 04:15:36 +0200
committerJules Laplace <julescarbon@gmail.com>2018-05-15 04:15:36 +0200
commitf56d0b413e3d1610f7f307559a34272c26938224 (patch)
tree57066e6d02ed324ae827dacac47d7cdca8bb91b4
parenta7ce2ce3be5b6d5b1542b055ccb5b193c97369d5 (diff)
testy
-rw-r--r--test-mogrify.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/test-mogrify.py b/test-mogrify.py
index f330230..4acabe1 100644
--- a/test-mogrify.py
+++ b/test-mogrify.py
@@ -50,13 +50,15 @@ if __name__ == '__main__':
# output, error = process.communicate()
def load_first_frame():
+ start_img_path = os.path.join(render_dir, "frame_00000.png")
if data_opt.just_copy:
- copyfile(opt.start_img, os.path.join(render_dir, "frame_00000.png"))
+ copyfile(opt.start_img, start_img_path)
else:
+ print("preload {}".format(start_img))
A_img = Image.open(opt.start_img).convert('RGB')
A_im = np.asarray(A_img)
A = process_image(A_im)
- cv2.imwrite(os.path.join(render_dir, "frame_00000.png"), A)
+ cv2.imwrite(start_img_path, A)
numz = re.findall(r'\d+', os.path.basename(opt.start_img))
if len(numz) > 0: