spookyuser
commited on
Commit
·
bc014af
1
Parent(s):
9fc4674
Fix path
Browse files- animate.py +2 -2
animate.py
CHANGED
@@ -22,7 +22,7 @@ def list_of_positions(num_contours, num_frames=100):
|
|
22 |
return positions
|
23 |
|
24 |
|
25 |
-
def contourfinder(image1, image2, text=None, num_frames=100, output_dir="temp"):
|
26 |
# Create two blank pages to write into
|
27 |
# I just hardcoded 1024*1024 as the size, ideally this should be np.shape(image1)
|
28 |
blank = np.zeros(np.shape(image1), dtype="uint8")
|
@@ -218,7 +218,7 @@ def create_mp4_with_audio(frames, cv2_images, duration, audio, output_path):
|
|
218 |
f"TYPES....{type(cv2_images[0])},{type(cv2_images[1])} SHAPES{cv2_images[0].shape} Img {cv2_images[0]}"
|
219 |
)
|
220 |
clip1, clip3 = contourfinder(
|
221 |
-
cv2_images[0], cv2_images[1]
|
222 |
) # has a third text option
|
223 |
|
224 |
# Use open CV and moviepy code
|
|
|
22 |
return positions
|
23 |
|
24 |
|
25 |
+
def contourfinder(image1, image2, text=None, num_frames=100, output_dir=Path("temp")):
|
26 |
# Create two blank pages to write into
|
27 |
# I just hardcoded 1024*1024 as the size, ideally this should be np.shape(image1)
|
28 |
blank = np.zeros(np.shape(image1), dtype="uint8")
|
|
|
218 |
f"TYPES....{type(cv2_images[0])},{type(cv2_images[1])} SHAPES{cv2_images[0].shape} Img {cv2_images[0]}"
|
219 |
)
|
220 |
clip1, clip3 = contourfinder(
|
221 |
+
cv2_images[0], cv2_images[1], vid_output_dir
|
222 |
) # has a third text option
|
223 |
|
224 |
# Use open CV and moviepy code
|