enable motion blur

This commit is contained in:
Jeremy Hummel 2021-05-23 19:47:56 -07:00
commit 22a5e68f56

View file

@ -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