Commit f3819ab4 authored by Gihan Jayatilaka's avatar Gihan Jayatilaka

rand

parent f76ac722
......@@ -46,14 +46,14 @@ def makeVideo(READ_VIDEO_FILE,msg,WRITE_VIDEO_FILE,DELTA):
mask = np.repeat(mask, HEIGHT/GRID_Y, axis=0)
mask = np.repeat(mask, WIDTH/GRID_X, axis=1)
'''mask = (mask==np.full(shape=mask.shape,fill_value=0)).astype(np.float32)*np.random.uniform(low=0.0,high=0.2,size=mask.shape) \
mask = (mask==np.full(shape=mask.shape,fill_value=0)).astype(np.float32)*np.random.uniform(low=0.0,high=0.2,size=mask.shape) \
+ (mask==np.full(shape=mask.shape,fill_value=1)).astype(np.float32)*np.random.uniform(low=0.8,high=1.0,size=mask.shape)
if flip(0.6):
if flip(0.6):
mask=cv2.GaussianBlur(mask,ksize=(5,5),sigmaX=0)
else:
mask=cv2.GaussianBlur(mask,ksize=(15,15),sigmaX=0)'''
mask=cv2.GaussianBlur(mask,ksize=(15,15),sigmaX=0)
raw = cv2.cvtColor(cv2.resize(frame, (WIDTH, HEIGHT)), cv2.COLOR_BGR2LAB)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment