MCPcopy Create free account
hub / github.com/geekcomputers/Python / makeVideo

Function makeVideo

Colors/pixel_sort.py:98–110  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

96
97
98def makeVideo():
99 out = cv2.VideoWriter(
100 "Image_sort/" + str(args.f) + "/" + str(args.f) + ".mp4",
101 cv2.VideoWriter_fourcc(*"mp4v"),
102 16,
103 (800, 500),
104 )
105 for count in tqdm(range(1, 500 + 1)):
106 fileName = "Image_sort/" + str(args.f) + "/" + str(count) + ".jpg"
107 img = cv2.imread(fileName)
108 out.write(img)
109 os.remove(fileName)
110 out.release()
111
112
113def main():

Callers 1

mainFunction · 0.85

Calls 1

removeMethod · 0.45

Tested by

no test coverage detected