0% found this document useful (0 votes)
31 views8 pages

Lab Report 3

This lab report summarizes work done in Lab #03 on Introduction to OpenCV library for image processing basic commands. The objective was to learn the basics of the Python OpenCV library including Python arrays and basic image processing commands. Tasks involved writing code using OpenCV and Numpy to perform operations on 1D and 2D arrays, including generating random numbers, creating arrays filled with 1s and 0s, adding/removing elements, sorting, and performing mathematical operations on arrays. The conclusion states that the lab helped learn OpenCV, Numpy arrays, and array functions through examples and tasks in the manual.

Uploaded by

Bilal Ahmed
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views8 pages

Lab Report 3

This lab report summarizes work done in Lab #03 on Introduction to OpenCV library for image processing basic commands. The objective was to learn the basics of the Python OpenCV library including Python arrays and basic image processing commands. Tasks involved writing code using OpenCV and Numpy to perform operations on 1D and 2D arrays, including generating random numbers, creating arrays filled with 1s and 0s, adding/removing elements, sorting, and performing mathematical operations on arrays. The conclusion states that the lab helped learn OpenCV, Numpy arrays, and array functions through examples and tasks in the manual.

Uploaded by

Bilal Ahmed
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

CS-406 Digital Image Processing

BS (CE)-2k19
LAB REPORT # 03

Submitted By:
Reg. No. 19-CE-020-008-038
Name: Muhammad Bilal Ahmed, Umair Ali,
Muhammad Faisal
Department of Computer Engineering
HITEC University Taxila
Presentation
(Format(0.5)+ Total
Title (0.5)+ Calculation Observation/
Conclusion(1) /Coding Program Results
+Theory(2)+
Objective(1))
Total 5 5 5 15
Obtained

__________________________
Lab Instructor.

Kaynat Rana
Experiment # 03
Title:
Introduction to OpenCV library w.r.t Image Processing basic commands
Objective:
The objective of this lab is to learn the basics of Python OpenCV library, implementing python
array and basic commands of image processing.

Software Used:
 Anaconda i.e. Spyder
Theory:
In this lab we learned about pythonCV, Numpy, 1D array, 2D array their different functions,
random number generation, creating arrays with 1s and 0s, adding/removing elements, sorting
elements in arrays, finding number of dimensions in arrays, add, subtract, multiply, power, mod
and divide two arrays.

Then we see operations on the 2D arrays using numpy and opencv.

We practice examples in the lab and try to solve the tasks.

Tasks:

Task 1:
Code:
Output:
Task 2:

Code:

Output:
Task 3:

Code:
Output:

Now Changing the size:


Conclusion:
In this lab we learned about OpenCV, Numpy, 1D array, 2D array their different functions,
adding/removing elements, sorting elements etc.

At the end of the lab we practice examples and tasks which were given in the manual.

You might also like