Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.
Figure 1: 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.io.VideoFileClip as mpy
import cv2
vid = mpy.VideoFileClip ('shapes_video.avi')
frame_count = vid.reader.nframes
video_fps = vid.fps
for i in range(frame_count):
frame = vid.getframe videofps
solve question 2
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
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Flash XML Applications Use AS2 And AS3 To Create Photo Galleries Menus And Databases

Authors: Joachim Schnier

1st Edition

0240809173, 978-0240809175

More Books

Students also viewed these Databases questions

Question

5. Structure your speech to make it easy to listen to

Answered: 1 week ago

Question

1. Describe the goals of informative speaking

Answered: 1 week ago