Computer Vision with Deep Learning in...
Transcript of Computer Vision with Deep Learning in...
![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](https://reader036.fdocuments.net/reader036/viewer/2022081511/5edac7c9ceb8760df365f277/html5/thumbnails/1.jpg)
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](https://reader036.fdocuments.net/reader036/viewer/2022081511/5edac7c9ceb8760df365f277/html5/thumbnails/2.jpg)
➢ 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
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](https://reader036.fdocuments.net/reader036/viewer/2022081511/5edac7c9ceb8760df365f277/html5/thumbnails/3.jpg)
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](https://reader036.fdocuments.net/reader036/viewer/2022081511/5edac7c9ceb8760df365f277/html5/thumbnails/4.jpg)
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](https://reader036.fdocuments.net/reader036/viewer/2022081511/5edac7c9ceb8760df365f277/html5/thumbnails/5.jpg)
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](https://reader036.fdocuments.net/reader036/viewer/2022081511/5edac7c9ceb8760df365f277/html5/thumbnails/6.jpg)
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](https://reader036.fdocuments.net/reader036/viewer/2022081511/5edac7c9ceb8760df365f277/html5/thumbnails/7.jpg)
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](https://reader036.fdocuments.net/reader036/viewer/2022081511/5edac7c9ceb8760df365f277/html5/thumbnails/8.jpg)
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](https://reader036.fdocuments.net/reader036/viewer/2022081511/5edac7c9ceb8760df365f277/html5/thumbnails/9.jpg)
![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](https://reader036.fdocuments.net/reader036/viewer/2022081511/5edac7c9ceb8760df365f277/html5/thumbnails/10.jpg)
![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](https://reader036.fdocuments.net/reader036/viewer/2022081511/5edac7c9ceb8760df365f277/html5/thumbnails/11.jpg)
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](https://reader036.fdocuments.net/reader036/viewer/2022081511/5edac7c9ceb8760df365f277/html5/thumbnails/12.jpg)
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](https://reader036.fdocuments.net/reader036/viewer/2022081511/5edac7c9ceb8760df365f277/html5/thumbnails/13.jpg)
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](https://reader036.fdocuments.net/reader036/viewer/2022081511/5edac7c9ceb8760df365f277/html5/thumbnails/14.jpg)
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](https://reader036.fdocuments.net/reader036/viewer/2022081511/5edac7c9ceb8760df365f277/html5/thumbnails/15.jpg)
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](https://reader036.fdocuments.net/reader036/viewer/2022081511/5edac7c9ceb8760df365f277/html5/thumbnails/16.jpg)
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](https://reader036.fdocuments.net/reader036/viewer/2022081511/5edac7c9ceb8760df365f277/html5/thumbnails/17.jpg)
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](https://reader036.fdocuments.net/reader036/viewer/2022081511/5edac7c9ceb8760df365f277/html5/thumbnails/18.jpg)
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](https://reader036.fdocuments.net/reader036/viewer/2022081511/5edac7c9ceb8760df365f277/html5/thumbnails/19.jpg)
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](https://reader036.fdocuments.net/reader036/viewer/2022081511/5edac7c9ceb8760df365f277/html5/thumbnails/20.jpg)
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](https://reader036.fdocuments.net/reader036/viewer/2022081511/5edac7c9ceb8760df365f277/html5/thumbnails/21.jpg)
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](https://reader036.fdocuments.net/reader036/viewer/2022081511/5edac7c9ceb8760df365f277/html5/thumbnails/22.jpg)
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](https://reader036.fdocuments.net/reader036/viewer/2022081511/5edac7c9ceb8760df365f277/html5/thumbnails/23.jpg)
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](https://reader036.fdocuments.net/reader036/viewer/2022081511/5edac7c9ceb8760df365f277/html5/thumbnails/24.jpg)
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](https://reader036.fdocuments.net/reader036/viewer/2022081511/5edac7c9ceb8760df365f277/html5/thumbnails/25.jpg)
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](https://reader036.fdocuments.net/reader036/viewer/2022081511/5edac7c9ceb8760df365f277/html5/thumbnails/26.jpg)
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](https://reader036.fdocuments.net/reader036/viewer/2022081511/5edac7c9ceb8760df365f277/html5/thumbnails/27.jpg)
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](https://reader036.fdocuments.net/reader036/viewer/2022081511/5edac7c9ceb8760df365f277/html5/thumbnails/28.jpg)
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](https://reader036.fdocuments.net/reader036/viewer/2022081511/5edac7c9ceb8760df365f277/html5/thumbnails/29.jpg)
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](https://reader036.fdocuments.net/reader036/viewer/2022081511/5edac7c9ceb8760df365f277/html5/thumbnails/30.jpg)
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](https://reader036.fdocuments.net/reader036/viewer/2022081511/5edac7c9ceb8760df365f277/html5/thumbnails/31.jpg)
Thank You!
31