One third of the way through counting in binary project

This commit is contained in:
Grant Sanderson
2015-08-21 19:58:36 -07:00
parent 461da7049b
commit 2a49abc6f3
10 changed files with 621 additions and 58 deletions

View File

@ -16,13 +16,22 @@ from script_wrapper import command_line_create_scene
class SampleScene(SceneFromVideo):
def construct(self):
path = os.path.join(MOVIE_DIR, "LogoGeneration.mp4")
SceneFromVideo.construct(self, path)
self.animate_over_time_range(
0, 3,
ApplyMethod(Dot().to_edge(LEFT).to_edge, RIGHT)
)
path = os.path.join(MOVIE_DIR, "EdgeDetectedCountingInBinary35-75.mp4")
SceneFromVideo.construct(self, path, time_range = (3, 5))
self.apply_gaussian_blur(sigmaX = 10)
self.make_all_black_or_white()
self.name = "BlurEdgeBlurBold"
# self.animate_over_time_range(
# 0, 3,
# ApplyMethod(Dot().to_edge(LEFT).to_edge, RIGHT)
# )
def make_all_black_or_white(self):
self.frames = [
255*(frame != 0).astype('uint8')
for frame in self.frames
]
if __name__ == "__main__":