Practical 1 - Digital Image
Processing
Aly Osama
“ I , ff “
“I think programming assignments
would be more useful and fun if
they were applications not
wireshark (wasn't that useful)”
“ Wireshark assignments were very
useful and I feel that project was
useless”
“ Image Processing
Course will be much
better than Computer
Networks”
“Regarding image
processing, We need
some projects worth
putting in CV”
Image Processing Course
“Best Course Eveeaaaaaaar”
Gibran Khalil Gibran
Lab Description
1. Talk about Industry or new Techniques in Image Processing (20 minutes)
2. Explain several algorithms using OpenCV ( 20 Minutes )
3. Practical Workshop ( 40 minutes )
https://www.youtube.com/watch?v=H4iRPytrnJo
Image Processing vs Computer Vision
Digital Image Processing: the
analysis and manipulation of a
digitized image, especially in
order to improve its quality.
Stages of Computer Vision
OpenCV - Enabling computer vision
● Open Source Computer Vision library
● Cross-platform
● Free for use under open source BSD
license
● Can be easily used with Java, Python, C
and C++
● Supports Machine Learning libraries
such as TensorFlow and Caffe.
● https://opencv.org
This Workshop
We’ll be using OpenCV with Python
New to Python? Check this video (Learn python in OneVideo)
https://www.youtube.com/watch?v=N4mEzFDjqtA
Part 1 - Acquisition of Image Data
1. Test Library
2. Load Image
3. Load Video
1. 1 Test Library
1.2 Importing Image
This code imports an image and
outputs it to a window and waits for
any user keyboard input to
terminate.
cv2.imread()
cv2.imshow()
cv2.waitKey()
1.3 Importing Video
cv2.VideoCapture
Using webcam
Part 2 : Image Processing
Image Type and Content
Colored Image
Image Kernels
http://setosa.io/ev/image-kernels/
Blurring images in OpenCV
Practical Demo
Simple Object Tracking Demo
Useless Marks
Coursework ( Total 40 points )
● 1 Quiz (5 points)
● 3 Assignments ( 5 points * 3 ) - two weeks each -
● 1 Project ( 15 points ) - Four weeks -
● Bonus
○ 1 Quiz ( 5 points )
○ 1 Assignment ( 5 points )
○ Lab interaction ( 5 points )
Assignment 1
● Description: Implement any 5 filters of Instagram filters
● Points: 5 points
● Deliverables:
○ Jupyter (html) notebook
○ Input: image
○ Implement Function:
■ insta_like(image,filter_name)
○ Output: new image for each filter
● Deadline: 25th Feb. at 11:00 pm
● Hint: https://goo.gl/RDpcCn

Practical Digital Image Processing 1