Question: Salt & Pepper ( 1 0 0 pts . ) 1 . 1 ) Preprocessing ( 5 0 pts . ) In this part, we
Salt & Pepper pts
Preprocessing pts
In this part, we will work on the video "shapesvideo.mp For every frame of the video,
a new card having a specific shape star square, pentagon appears. However, each frame
has a salt & pepper noise as given in Figure
Figure : A frame from the video
Filter each frame to avoid noise and save the video as a new file. To read the video frame by
frame, you can use the following lines.
import moviepy.video.ioVideoFileClip as mpy
import cv
vid mpyVideoFileClip shapesvideo.avi'
framecount vid.reader.nframes
videofps vid.fps
for in rangeframecount:
frame vid.getframe videofps
solve question
provide correct code
do it according to google colab enviroment
also include code that will display results as well as save it in the file path
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
