Top Banner
Computer Vision with Deep Learning in Python Muhammad Zaid Pycon Pakistan, 2018 1
31

Computer Vision with Deep Learning in Pythonpycon.pk/.../uploads/presentations/pycon_18__vision_zaid.pdfComputer Vision with Deep Learning in Python Muhammad Zaid Pycon Pakistan, 2018

May 31, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Computer Vision with Deep Learning in Pythonpycon.pk/.../uploads/presentations/pycon_18__vision_zaid.pdfComputer Vision with Deep Learning in Python Muhammad Zaid Pycon Pakistan, 2018

Computer Vision with Deep Learning in Python

Muhammad Zaid Pycon Pakistan, 2018 1

Page 2: Computer Vision with Deep Learning in Pythonpycon.pk/.../uploads/presentations/pycon_18__vision_zaid.pdfComputer Vision with Deep Learning in Python Muhammad Zaid Pycon Pakistan, 2018

➢ Graduate from FAST NUCES, Karachi

➢ Junior Data Analyst at Love For Data

➢ Tech Initiative Lead at Pakistan.AI

➢ Published author in International Conferences

➢ AI and Data science evangelist

➢ LinkedIn

➢ Facebook

Who am I ?

2

Page 3: Computer Vision with Deep Learning in Pythonpycon.pk/.../uploads/presentations/pycon_18__vision_zaid.pdfComputer Vision with Deep Learning in Python Muhammad Zaid Pycon Pakistan, 2018

Agenda ● Introduction to Computer

Vision for Beginners

● Deep learning for Vision

● Starting Vision with Python

3

Page 4: Computer Vision with Deep Learning in Pythonpycon.pk/.../uploads/presentations/pycon_18__vision_zaid.pdfComputer Vision with Deep Learning in Python Muhammad Zaid Pycon Pakistan, 2018

What is Computer Vision ?

4

Page 5: Computer Vision with Deep Learning in Pythonpycon.pk/.../uploads/presentations/pycon_18__vision_zaid.pdfComputer Vision with Deep Learning in Python Muhammad Zaid Pycon Pakistan, 2018

5

Page 6: Computer Vision with Deep Learning in Pythonpycon.pk/.../uploads/presentations/pycon_18__vision_zaid.pdfComputer Vision with Deep Learning in Python Muhammad Zaid Pycon Pakistan, 2018

6

Page 7: Computer Vision with Deep Learning in Pythonpycon.pk/.../uploads/presentations/pycon_18__vision_zaid.pdfComputer Vision with Deep Learning in Python Muhammad Zaid Pycon Pakistan, 2018

Computer Vision is a sub-

field of AI, and a science of

making computers

understand the images

7

Page 8: Computer Vision with Deep Learning in Pythonpycon.pk/.../uploads/presentations/pycon_18__vision_zaid.pdfComputer Vision with Deep Learning in Python Muhammad Zaid Pycon Pakistan, 2018

Our smartest and fastest machines are still blind!

- Dr. Fei Fei Li

8

Page 9: Computer Vision with Deep Learning in Pythonpycon.pk/.../uploads/presentations/pycon_18__vision_zaid.pdfComputer Vision with Deep Learning in Python Muhammad Zaid Pycon Pakistan, 2018
Page 10: Computer Vision with Deep Learning in Pythonpycon.pk/.../uploads/presentations/pycon_18__vision_zaid.pdfComputer Vision with Deep Learning in Python Muhammad Zaid Pycon Pakistan, 2018
Page 11: Computer Vision with Deep Learning in Pythonpycon.pk/.../uploads/presentations/pycon_18__vision_zaid.pdfComputer Vision with Deep Learning in Python Muhammad Zaid Pycon Pakistan, 2018

Important Computer Vision Problems

● Object Recognition => Given an image, label it!

11

Page 12: Computer Vision with Deep Learning in Pythonpycon.pk/.../uploads/presentations/pycon_18__vision_zaid.pdfComputer Vision with Deep Learning in Python Muhammad Zaid Pycon Pakistan, 2018

Important Computer Vision Problems ● Object Detection => Given an image, locate the objects!

12

Page 13: Computer Vision with Deep Learning in Pythonpycon.pk/.../uploads/presentations/pycon_18__vision_zaid.pdfComputer Vision with Deep Learning in Python Muhammad Zaid Pycon Pakistan, 2018

Deep Learning for Computer Vision

13

Page 14: Computer Vision with Deep Learning in Pythonpycon.pk/.../uploads/presentations/pycon_18__vision_zaid.pdfComputer Vision with Deep Learning in Python Muhammad Zaid Pycon Pakistan, 2018

Why Deep Learning ?

➢ Inspired from the idea of human behavior in learning different things

➢ No one tells a child how to see, but they still do a great job in recognizing and

understand images

➢ Humans learn through huge amount of data. A child takes one picture in every

200 milliseconds.

14

Page 15: Computer Vision with Deep Learning in Pythonpycon.pk/.../uploads/presentations/pycon_18__vision_zaid.pdfComputer Vision with Deep Learning in Python Muhammad Zaid Pycon Pakistan, 2018

15

Page 16: Computer Vision with Deep Learning in Pythonpycon.pk/.../uploads/presentations/pycon_18__vision_zaid.pdfComputer Vision with Deep Learning in Python Muhammad Zaid Pycon Pakistan, 2018

Convolutional Neural Networks for Object Recognition

16

Page 17: Computer Vision with Deep Learning in Pythonpycon.pk/.../uploads/presentations/pycon_18__vision_zaid.pdfComputer Vision with Deep Learning in Python Muhammad Zaid Pycon Pakistan, 2018

Python for Vision

17

Page 18: Computer Vision with Deep Learning in Pythonpycon.pk/.../uploads/presentations/pycon_18__vision_zaid.pdfComputer Vision with Deep Learning in Python Muhammad Zaid Pycon Pakistan, 2018

Popular libraries for vision and Deep learning

➢ Open CV

➢ Scikit Image

➢ Tensorflow

➢ Keras

18

Page 19: Computer Vision with Deep Learning in Pythonpycon.pk/.../uploads/presentations/pycon_18__vision_zaid.pdfComputer Vision with Deep Learning in Python Muhammad Zaid Pycon Pakistan, 2018

Open CV

● Open source computer vision library

● Contains more than 2500 optimized algorithms for vision and machine learning

● Some of the example algorithms can : ■ Detect and recognize faces

■ Recognize human actions

■ Track camera movements

■ Track moving objects in videos

19

Page 20: Computer Vision with Deep Learning in Pythonpycon.pk/.../uploads/presentations/pycon_18__vision_zaid.pdfComputer Vision with Deep Learning in Python Muhammad Zaid Pycon Pakistan, 2018

Open CV

● More than 47000 people in the community

● More than 14 million downloads

● Companies like Google, Yahoo, Microsoft, Intel, IBM, Sony, Honda, Toyota

employs this library

● Has Python , Java , C++ and MATLAB bindings 20

Page 21: Computer Vision with Deep Learning in Pythonpycon.pk/.../uploads/presentations/pycon_18__vision_zaid.pdfComputer Vision with Deep Learning in Python Muhammad Zaid Pycon Pakistan, 2018

Building a face detector in 10 lines of code!

21

Page 22: Computer Vision with Deep Learning in Pythonpycon.pk/.../uploads/presentations/pycon_18__vision_zaid.pdfComputer Vision with Deep Learning in Python Muhammad Zaid Pycon Pakistan, 2018

22

Page 23: Computer Vision with Deep Learning in Pythonpycon.pk/.../uploads/presentations/pycon_18__vision_zaid.pdfComputer Vision with Deep Learning in Python Muhammad Zaid Pycon Pakistan, 2018

23

Page 24: Computer Vision with Deep Learning in Pythonpycon.pk/.../uploads/presentations/pycon_18__vision_zaid.pdfComputer Vision with Deep Learning in Python Muhammad Zaid Pycon Pakistan, 2018

24

Page 25: Computer Vision with Deep Learning in Pythonpycon.pk/.../uploads/presentations/pycon_18__vision_zaid.pdfComputer Vision with Deep Learning in Python Muhammad Zaid Pycon Pakistan, 2018

Tensorflow

● Python-friendly open source library for numerical computation that makes

machine learning (especially deep learning) faster and efficient

● Easy deployment of computation across a variety of platforms (CPUs, GPUs,

TPUs), and from desktops to clusters of servers to mobile and edge devices

● Developed and maintained by Google Brain Team

● Most popular deep learning library on earth

25

Page 26: Computer Vision with Deep Learning in Pythonpycon.pk/.../uploads/presentations/pycon_18__vision_zaid.pdfComputer Vision with Deep Learning in Python Muhammad Zaid Pycon Pakistan, 2018

Tensorflow

26

Page 27: Computer Vision with Deep Learning in Pythonpycon.pk/.../uploads/presentations/pycon_18__vision_zaid.pdfComputer Vision with Deep Learning in Python Muhammad Zaid Pycon Pakistan, 2018

Keras

● High-level neural networks API, written in Python and capable of running on

top of TensorFlow

● A very very user friendly design of API

● Strongly recommended for beginners and researchers wanted to experiment

things in rapid time

● “It is basically an interface rather than a standalone machine learning library” 27

Page 28: Computer Vision with Deep Learning in Pythonpycon.pk/.../uploads/presentations/pycon_18__vision_zaid.pdfComputer Vision with Deep Learning in Python Muhammad Zaid Pycon Pakistan, 2018

28

Page 29: Computer Vision with Deep Learning in Pythonpycon.pk/.../uploads/presentations/pycon_18__vision_zaid.pdfComputer Vision with Deep Learning in Python Muhammad Zaid Pycon Pakistan, 2018

Questions ?

29

Page 30: Computer Vision with Deep Learning in Pythonpycon.pk/.../uploads/presentations/pycon_18__vision_zaid.pdfComputer Vision with Deep Learning in Python Muhammad Zaid Pycon Pakistan, 2018

Acknowledgement

I would like to pay my humble gratitude to my mentors in the field :

● Dr. Tahir Syed

● Sadaf Suleman

● Muhammad Suleman

● Yameen Malik

30

Page 31: Computer Vision with Deep Learning in Pythonpycon.pk/.../uploads/presentations/pycon_18__vision_zaid.pdfComputer Vision with Deep Learning in Python Muhammad Zaid Pycon Pakistan, 2018

Thank You!

31