PaulCzaban / old-dirty-noisey-footage

Dedicated to restoring badly captured video footage
0 stars 0 forks source link

Denoise #2

Open PaulCzaban opened 4 years ago

PaulCzaban commented 4 years ago

Investigate some denoising AI methods.

PaulCzaban commented 4 years ago

cv2.fastNlMeansDenoisingColoredMulti() - works with image sequence captured in short period of time.

import numpy as np import cv2

cap = cv2.VideoCapture('vtest.avi')

create a list of first 5 frames that look similar.

img = [cap.read()[1] for i in xrange(5)]

Denoise 3rd frame considering all the 5 frames

dst = cv2.fastNlMeansDenoisingColouredMulti(img, 2, 5, None, 4, 7, 35)