Question: Salt & Pepper ( 1 0 0 pts . ) 1 . 1 ) Preprocessing ( 5 0 pts . ) In this part, we

Salt & Pepper (100 pts.)
1.1) Preprocessing (50 pts.)
In this part, we will work on the video "shapes_video.mp4". 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 1.
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.io.VideoFileclip as mpy
import cv2
vid = mpy.VideoFileclip ('shapes video.avi')
frame count = vid.reader. .f rames
video_fps = vid. f ps
for i in range (frame_count):
frame = vid.getframe(i*1.0/videofps)
Try to solve it on google colab and include a file path to the google drive
 Salt & Pepper (100 pts.) 1.1) Preprocessing (50 pts.) In this

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!