SlideShare a Scribd company logo
1 of 1
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.
Q1. CLO/SO 2.4 [5*1=5 points]

More Related Content

More from sharold2

Q1b- 12 Points The configuration shown below consists of identical com.docx
Q1b- 12 Points The configuration shown below consists of identical com.docxQ1b- 12 Points The configuration shown below consists of identical com.docx
Q1b- 12 Points The configuration shown below consists of identical com.docxsharold2
 
Q12- -15 points- Pfizer has identified 15 R-&D projects that will tie.docx
Q12- -15 points- Pfizer has identified 15 R-&D projects that will tie.docxQ12- -15 points- Pfizer has identified 15 R-&D projects that will tie.docx
Q12- -15 points- Pfizer has identified 15 R-&D projects that will tie.docxsharold2
 
Q1- Write about Jodie Foster's role as a nurse in the movie -Hotel Art.docx
Q1- Write about Jodie Foster's role as a nurse in the movie -Hotel Art.docxQ1- Write about Jodie Foster's role as a nurse in the movie -Hotel Art.docx
Q1- Write about Jodie Foster's role as a nurse in the movie -Hotel Art.docxsharold2
 
Q1- Since you cannot inventory services- matching supply and demand fo.docx
Q1- Since you cannot inventory services- matching supply and demand fo.docxQ1- Since you cannot inventory services- matching supply and demand fo.docx
Q1- Since you cannot inventory services- matching supply and demand fo.docxsharold2
 
Q1- Descriptors of a distribution are said to be reliable when data se.docx
Q1- Descriptors of a distribution are said to be reliable when data se.docxQ1- Descriptors of a distribution are said to be reliable when data se.docx
Q1- Descriptors of a distribution are said to be reliable when data se.docxsharold2
 
Q1) Why do managers organize their teams in terms of business processe.docx
Q1) Why do managers organize their teams in terms of business processe.docxQ1) Why do managers organize their teams in terms of business processe.docx
Q1) Why do managers organize their teams in terms of business processe.docxsharold2
 
Q1) Why has the hosts method for managing DNS largely been abandoned-.docx
Q1) Why has the hosts method for managing DNS largely been abandoned-.docxQ1) Why has the hosts method for managing DNS largely been abandoned-.docx
Q1) Why has the hosts method for managing DNS largely been abandoned-.docxsharold2
 
Q1) Suppose that the government deficit (D) is 20 - interest on the go.docx
Q1) Suppose that the government deficit (D) is 20 - interest on the go.docxQ1) Suppose that the government deficit (D) is 20 - interest on the go.docx
Q1) Suppose that the government deficit (D) is 20 - interest on the go.docxsharold2
 
Q1) List some of the issues that made us worry about the rising rate o.docx
Q1) List some of the issues that made us worry about the rising rate o.docxQ1) List some of the issues that made us worry about the rising rate o.docx
Q1) List some of the issues that made us worry about the rising rate o.docxsharold2
 
Q1 Mops (Type an integer or a decimal- Do not round).docx
Q1 Mops (Type an integer or a decimal- Do not round).docxQ1 Mops (Type an integer or a decimal- Do not round).docx
Q1 Mops (Type an integer or a decimal- Do not round).docxsharold2
 
Q- Explain how FRAs are like swaps and how they are different-.docx
Q- Explain how FRAs are like swaps and how they are different-.docxQ- Explain how FRAs are like swaps and how they are different-.docx
Q- Explain how FRAs are like swaps and how they are different-.docxsharold2
 
Q 12-9- The following pedigree includes individuals that carry a reces.docx
Q 12-9- The following pedigree includes individuals that carry a reces.docxQ 12-9- The following pedigree includes individuals that carry a reces.docx
Q 12-9- The following pedigree includes individuals that carry a reces.docxsharold2
 
Q 2 List some of the important social and natural trends affecting the.docx
Q 2 List some of the important social and natural trends affecting the.docxQ 2 List some of the important social and natural trends affecting the.docx
Q 2 List some of the important social and natural trends affecting the.docxsharold2
 
Python-Question 1- Writing Programs! Simplistically design the followi.docx
Python-Question 1- Writing Programs! Simplistically design the followi.docxPython-Question 1- Writing Programs! Simplistically design the followi.docx
Python-Question 1- Writing Programs! Simplistically design the followi.docxsharold2
 
PYTHONIs there a way to write a decimal to Hex function using BYTE ope.docx
PYTHONIs there a way to write a decimal to Hex function using BYTE ope.docxPYTHONIs there a way to write a decimal to Hex function using BYTE ope.docx
PYTHONIs there a way to write a decimal to Hex function using BYTE ope.docxsharold2
 
Python- Please answer what the output of the pictured code is supposed.docx
Python- Please answer what the output of the pictured code is supposed.docxPython- Please answer what the output of the pictured code is supposed.docx
Python- Please answer what the output of the pictured code is supposed.docxsharold2
 
Python Programming- We gives you practice with interactive graphics th.docx
Python Programming- We gives you practice with interactive graphics th.docxPython Programming- We gives you practice with interactive graphics th.docx
Python Programming- We gives you practice with interactive graphics th.docxsharold2
 
Python Code- Homework 8 about Integers and Floats- Write a program tha.docx
Python Code- Homework 8 about Integers and Floats- Write a program tha.docxPython Code- Homework 8 about Integers and Floats- Write a program tha.docx
Python Code- Homework 8 about Integers and Floats- Write a program tha.docxsharold2
 
Putting things together- get letters from images Using what we have le.docx
Putting things together- get letters from images Using what we have le.docxPutting things together- get letters from images Using what we have le.docx
Putting things together- get letters from images Using what we have le.docxsharold2
 
Put the following steps during the protein sorting of a secreted prote.docx
Put the following steps during the protein sorting of a secreted prote.docxPut the following steps during the protein sorting of a secreted prote.docx
Put the following steps during the protein sorting of a secreted prote.docxsharold2
 

More from sharold2 (20)

Q1b- 12 Points The configuration shown below consists of identical com.docx
Q1b- 12 Points The configuration shown below consists of identical com.docxQ1b- 12 Points The configuration shown below consists of identical com.docx
Q1b- 12 Points The configuration shown below consists of identical com.docx
 
Q12- -15 points- Pfizer has identified 15 R-&D projects that will tie.docx
Q12- -15 points- Pfizer has identified 15 R-&D projects that will tie.docxQ12- -15 points- Pfizer has identified 15 R-&D projects that will tie.docx
Q12- -15 points- Pfizer has identified 15 R-&D projects that will tie.docx
 
Q1- Write about Jodie Foster's role as a nurse in the movie -Hotel Art.docx
Q1- Write about Jodie Foster's role as a nurse in the movie -Hotel Art.docxQ1- Write about Jodie Foster's role as a nurse in the movie -Hotel Art.docx
Q1- Write about Jodie Foster's role as a nurse in the movie -Hotel Art.docx
 
Q1- Since you cannot inventory services- matching supply and demand fo.docx
Q1- Since you cannot inventory services- matching supply and demand fo.docxQ1- Since you cannot inventory services- matching supply and demand fo.docx
Q1- Since you cannot inventory services- matching supply and demand fo.docx
 
Q1- Descriptors of a distribution are said to be reliable when data se.docx
Q1- Descriptors of a distribution are said to be reliable when data se.docxQ1- Descriptors of a distribution are said to be reliable when data se.docx
Q1- Descriptors of a distribution are said to be reliable when data se.docx
 
Q1) Why do managers organize their teams in terms of business processe.docx
Q1) Why do managers organize their teams in terms of business processe.docxQ1) Why do managers organize their teams in terms of business processe.docx
Q1) Why do managers organize their teams in terms of business processe.docx
 
Q1) Why has the hosts method for managing DNS largely been abandoned-.docx
Q1) Why has the hosts method for managing DNS largely been abandoned-.docxQ1) Why has the hosts method for managing DNS largely been abandoned-.docx
Q1) Why has the hosts method for managing DNS largely been abandoned-.docx
 
Q1) Suppose that the government deficit (D) is 20 - interest on the go.docx
Q1) Suppose that the government deficit (D) is 20 - interest on the go.docxQ1) Suppose that the government deficit (D) is 20 - interest on the go.docx
Q1) Suppose that the government deficit (D) is 20 - interest on the go.docx
 
Q1) List some of the issues that made us worry about the rising rate o.docx
Q1) List some of the issues that made us worry about the rising rate o.docxQ1) List some of the issues that made us worry about the rising rate o.docx
Q1) List some of the issues that made us worry about the rising rate o.docx
 
Q1 Mops (Type an integer or a decimal- Do not round).docx
Q1 Mops (Type an integer or a decimal- Do not round).docxQ1 Mops (Type an integer or a decimal- Do not round).docx
Q1 Mops (Type an integer or a decimal- Do not round).docx
 
Q- Explain how FRAs are like swaps and how they are different-.docx
Q- Explain how FRAs are like swaps and how they are different-.docxQ- Explain how FRAs are like swaps and how they are different-.docx
Q- Explain how FRAs are like swaps and how they are different-.docx
 
Q 12-9- The following pedigree includes individuals that carry a reces.docx
Q 12-9- The following pedigree includes individuals that carry a reces.docxQ 12-9- The following pedigree includes individuals that carry a reces.docx
Q 12-9- The following pedigree includes individuals that carry a reces.docx
 
Q 2 List some of the important social and natural trends affecting the.docx
Q 2 List some of the important social and natural trends affecting the.docxQ 2 List some of the important social and natural trends affecting the.docx
Q 2 List some of the important social and natural trends affecting the.docx
 
Python-Question 1- Writing Programs! Simplistically design the followi.docx
Python-Question 1- Writing Programs! Simplistically design the followi.docxPython-Question 1- Writing Programs! Simplistically design the followi.docx
Python-Question 1- Writing Programs! Simplistically design the followi.docx
 
PYTHONIs there a way to write a decimal to Hex function using BYTE ope.docx
PYTHONIs there a way to write a decimal to Hex function using BYTE ope.docxPYTHONIs there a way to write a decimal to Hex function using BYTE ope.docx
PYTHONIs there a way to write a decimal to Hex function using BYTE ope.docx
 
Python- Please answer what the output of the pictured code is supposed.docx
Python- Please answer what the output of the pictured code is supposed.docxPython- Please answer what the output of the pictured code is supposed.docx
Python- Please answer what the output of the pictured code is supposed.docx
 
Python Programming- We gives you practice with interactive graphics th.docx
Python Programming- We gives you practice with interactive graphics th.docxPython Programming- We gives you practice with interactive graphics th.docx
Python Programming- We gives you practice with interactive graphics th.docx
 
Python Code- Homework 8 about Integers and Floats- Write a program tha.docx
Python Code- Homework 8 about Integers and Floats- Write a program tha.docxPython Code- Homework 8 about Integers and Floats- Write a program tha.docx
Python Code- Homework 8 about Integers and Floats- Write a program tha.docx
 
Putting things together- get letters from images Using what we have le.docx
Putting things together- get letters from images Using what we have le.docxPutting things together- get letters from images Using what we have le.docx
Putting things together- get letters from images Using what we have le.docx
 
Put the following steps during the protein sorting of a secreted prote.docx
Put the following steps during the protein sorting of a secreted prote.docxPut the following steps during the protein sorting of a secreted prote.docx
Put the following steps during the protein sorting of a secreted prote.docx
 

Recently uploaded

SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code ExamplesPeter Brusilovsky
 
Major project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategiesMajor project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategiesAmanpreetKaur157993
 
How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17Celine George
 
male presentation...pdf.................
male presentation...pdf.................male presentation...pdf.................
male presentation...pdf.................MirzaAbrarBaig5
 
Book Review of Run For Your Life Powerpoint
Book Review of Run For Your Life PowerpointBook Review of Run For Your Life Powerpoint
Book Review of Run For Your Life Powerpoint23600690
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsSandeep D Chaudhary
 
Observing-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxObserving-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxAdelaideRefugio
 
diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....Ritu480198
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽中 央社
 
How to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxHow to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxCeline George
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project researchCaitlinCummins3
 
e-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi Rajagopale-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi RajagopalEADTU
 
Graduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxGraduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxneillewis46
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文中 央社
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...EADTU
 
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSean M. Fox
 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfPondicherry University
 

Recently uploaded (20)

SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code Examples
 
Major project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategiesMajor project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategies
 
How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17
 
male presentation...pdf.................
male presentation...pdf.................male presentation...pdf.................
male presentation...pdf.................
 
Book Review of Run For Your Life Powerpoint
Book Review of Run For Your Life PowerpointBook Review of Run For Your Life Powerpoint
Book Review of Run For Your Life Powerpoint
 
Mattingly "AI and Prompt Design: LLMs with NER"
Mattingly "AI and Prompt Design: LLMs with NER"Mattingly "AI and Prompt Design: LLMs with NER"
Mattingly "AI and Prompt Design: LLMs with NER"
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
Observing-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxObserving-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptx
 
Including Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdfIncluding Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdf
 
diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
 
How to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxHow to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptx
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project research
 
e-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi Rajagopale-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi Rajagopal
 
Supporting Newcomer Multilingual Learners
Supporting Newcomer  Multilingual LearnersSupporting Newcomer  Multilingual Learners
Supporting Newcomer Multilingual Learners
 
Graduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxGraduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptx
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
 
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
 

Q1-.docx

  • 1. 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. Q1. CLO/SO 2.4 [5*1=5 points]