Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -46,12 +46,12 @@ def get_frames(video_in):
|
|
46 |
return frames, fps
|
47 |
|
48 |
def get_canny_filter(i):
|
49 |
-
image = Image.open(i)
|
50 |
|
51 |
-
image = np.array(image)
|
52 |
|
53 |
image = openpose(image)
|
54 |
-
image = Image.fromarray(image)
|
55 |
image.save("canny_frame_" + str(i) + ".jpeg")
|
56 |
return "canny_frame_" + str(i) + ".jpeg"
|
57 |
|
|
|
46 |
return frames, fps
|
47 |
|
48 |
def get_canny_filter(i):
|
49 |
+
#image = Image.open(i)
|
50 |
|
51 |
+
#image = np.array(image)
|
52 |
|
53 |
image = openpose(image)
|
54 |
+
#image = Image.fromarray(image)
|
55 |
image.save("canny_frame_" + str(i) + ".jpeg")
|
56 |
return "canny_frame_" + str(i) + ".jpeg"
|
57 |
|