Question: Q1. CLO/SO 2.4 [5*1=5 points] Using Open CV2 Load the height and width to specify the range till which the smaller patches need to be
| Q1. CLO/SO 2.4 [5*1=5 points] |
Using Open CV2 Load the height and width to specify the range till which the smaller patches need to be cropped out. For this, use the range () function in Python. Now, crop using two for loops:
one for the width range
other for the height range
We are using patches with a height and width of 50 pixels and 70 pixels respectively. The stride (number of pixels we move through the image) for the inner and outer loops is equal to the width and height of the patches that we are considering.
Task: Show the given image with patches.
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
