From 22a5e68f56bf9f0f17a6fa0b105534073dc62bbc Mon Sep 17 00:00:00 2001 From: Jeremy Hummel Date: Sun, 23 May 2021 19:47:56 -0700 Subject: [PATCH] enable motion blur --- samplelib/SampleProcessor.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/samplelib/SampleProcessor.py b/samplelib/SampleProcessor.py index 299dcc0..8278108 100644 --- a/samplelib/SampleProcessor.py +++ b/samplelib/SampleProcessor.py @@ -243,10 +243,9 @@ class SampleProcessor(object): blur_type = np.random.choice(['motion', 'gaussian']) if blur_type == 'motion': - # blur_k = np.random.randint(10, 20) - # blur_angle = 360 * np.random.random() - # img = LinearMotionBlur(img, blur_k, blur_angle) - pass + blur_k = np.random.randint(10, 20) + blur_angle = 360 * np.random.random() + img = LinearMotionBlur(img, blur_k, blur_angle) elif blur_type == 'gaussian': blur_sigma = 5 * np.random.random() + 3