SlideShare uma empresa Scribd logo
1 de 13
Mark Rees
CTO
Century Software
What is Computer Vision – 1980’s
Then it was called Machine Vision
"the automatic acquisition and analysis of images to
obtain desired data for interpreting
a scene or controlling an activity" (Schaffer, 1984).
cnt dw $0000
src dw $0000
dst dw $0000
memcpy public
ldab cnt+1 ;Set B = cnt.L
beq check ;If cnt.L=0, goto check
loop ldx src ;Set IX = src
ldaa ix ;Load A from (src)
inx ;Set src = src+1
stx src
ldx dst ;Set IX = dst
staa ix ;Store A to (dst)
inx ;Set dst = dst+1
stx dst
decb ;Decr B
bne loop ;Repeat the loop
stab cnt+1 ;Set cnt.L = 0
check tst cnt+0 ;If cnt.H=0,
beq done ;Then quit
dec cnt+0 ;Decr cnt.H
decb ;Decr B
bra loop ;Repeat the loop
done rts ;Return
What is Computer Vision - 2014
“Computer vision is a field that includes methods for acquiring,
processing, analyzing, and understanding images and, in general, high-
dimensional data from the real world in order to produce numerical or
symbolic information, e.g., in the forms of decisions. A theme in the
development of this field has been to duplicate the abilities of human
vision by electronically perceiving and understanding an image. This
image understanding can be seen as the disentangling of symbolic
information from image data using models constructed with the aid of
geometry, physics, statistics, and learning theory. Computer vision has
also been described as the enterprise of automating and integrating a
wide range of processes and representations for vision perception.”
(Wikipedia 2014 http://en.wikipedia.org/wiki/Computer_Vision)
What is Computer Vision - 2014
Computer Vision – My Reality
CV is a lot more than grabbing an image
CV
Object Illumination
Image
Capture
Sensors/Cameras Digitisation/Conversion
Image
Processing
Algorithm
Development
Implementation
Display Control
Python Imaging Library
Pillow – The friendly PIL fork python 2.6+, 3.2+
http://python-pillow.github.io/
PIL – The “original” PIL python 1.52+, 2.0+
last release 11/2009
http://effbot.org/downloads
Demo: PIL.ipynb
Scipy ndimage
N dimensional array image processing
http://docs.scipy.org/doc/scipy/reference/ndimage.html
Demo: Multi-demensional image processing.ipynb
SimpleCV
SimpleCV is an open source framework for building
computer vision applications. With it, you get access to
several high-powered computer vision libraries such as
OpenCV – without having to first learn about bit depths,
file formats, color spaces, buffer management,
eigenvalues, or matrix versus bitmap storage.
http://simplecv.org/
Demo: SimpleCV - The Basics.ipynb
Pygamedependency caused me some problems
Not all image manipulation worked in ipython. Simplecv
shell is where all functionality works.
PyOpenCV
Official python wrapper for OpenCV C/C++ libraries
Two namespaces cv & cv2. Use cv2, cv deprecated
Basis of SimpleCV and other python CV libraries
Demo: OpenCV - The Basics.ipynb
Demo: OpenCV Motion Detection.ipynb
Demo: OpenCV Face Detection.ipynb
Raspberry Pi CV
OpenCV available but USB cameras slow
Rpi camera faster, uses GPU, doesn’t work with OpenCV
apt-get install python-picamera solves that.
http://picamera.readthedocs.org/en/release-1.5/
Resources
http://www.packtpub.com/opencv-computer-
vision-with-python/book
http://programmingcomputervision.com/
There also is a Python CV module PCV
http://szeliski.org/Book/
Computer Vision: Algorithms and Applications
Mark Rees
mark@censof.com
+Mark Rees
@hexdump42
hex-dump.blogspot.com
https://bitbucket.org/hexdump42/seeing-in-python-pycon-sg-
2014
Contact Details

Mais conteúdo relacionado

Semelhante a Seeing with Python - Pycon SG 2014

502021435-12345678Minor-Project-Ppt.pptx
502021435-12345678Minor-Project-Ppt.pptx502021435-12345678Minor-Project-Ppt.pptx
502021435-12345678Minor-Project-Ppt.pptx
shrey4922
 
Kidd_Portfolio_May2015
Kidd_Portfolio_May2015Kidd_Portfolio_May2015
Kidd_Portfolio_May2015
Dallas Kidd
 
ANISH_and_DR.DANIEL_augmented_reality_presentation
ANISH_and_DR.DANIEL_augmented_reality_presentationANISH_and_DR.DANIEL_augmented_reality_presentation
ANISH_and_DR.DANIEL_augmented_reality_presentation
Anish Patel
 
Ijsrdv1 i4049
Ijsrdv1 i4049Ijsrdv1 i4049
Ijsrdv1 i4049
ijsrd.com
 
Vipul divyanshu documentation on Kinect and Motion Tracking
Vipul divyanshu documentation  on Kinect and Motion TrackingVipul divyanshu documentation  on Kinect and Motion Tracking
Vipul divyanshu documentation on Kinect and Motion Tracking
Vipul Divyanshu
 

Semelhante a Seeing with Python - Pycon SG 2014 (20)

Seeing with Python presented at PyCon AU 2014
Seeing with Python presented at PyCon AU 2014Seeing with Python presented at PyCon AU 2014
Seeing with Python presented at PyCon AU 2014
 
OpenCV+Android.pptx
OpenCV+Android.pptxOpenCV+Android.pptx
OpenCV+Android.pptx
 
Open Cv
Open CvOpen Cv
Open Cv
 
Opencv
OpencvOpencv
Opencv
 
Image Detection and Count Using Open Computer Vision (Opencv)
Image Detection and Count Using Open Computer Vision (Opencv)Image Detection and Count Using Open Computer Vision (Opencv)
Image Detection and Count Using Open Computer Vision (Opencv)
 
Introduction to OpenCV 2.3.1
Introduction to OpenCV 2.3.1Introduction to OpenCV 2.3.1
Introduction to OpenCV 2.3.1
 
502021435-12345678Minor-Project-Ppt.pptx
502021435-12345678Minor-Project-Ppt.pptx502021435-12345678Minor-Project-Ppt.pptx
502021435-12345678Minor-Project-Ppt.pptx
 
Kidd_Portfolio_May2015
Kidd_Portfolio_May2015Kidd_Portfolio_May2015
Kidd_Portfolio_May2015
 
ANISH_and_DR.DANIEL_augmented_reality_presentation
ANISH_and_DR.DANIEL_augmented_reality_presentationANISH_and_DR.DANIEL_augmented_reality_presentation
ANISH_and_DR.DANIEL_augmented_reality_presentation
 
01 foundations
01 foundations01 foundations
01 foundations
 
Ijsrdv1 i4049
Ijsrdv1 i4049Ijsrdv1 i4049
Ijsrdv1 i4049
 
The not so short introduction to Kinect
The not so short introduction to KinectThe not so short introduction to Kinect
The not so short introduction to Kinect
 
License Plate Recognition System using Python and OpenCV
License Plate Recognition System using Python and OpenCVLicense Plate Recognition System using Python and OpenCV
License Plate Recognition System using Python and OpenCV
 
Vision based system for monitoring the loss of attention in automotive driver
Vision based system for monitoring the loss of attention in automotive driverVision based system for monitoring the loss of attention in automotive driver
Vision based system for monitoring the loss of attention in automotive driver
 
OpenCV @ Droidcon 2012
OpenCV @ Droidcon 2012OpenCV @ Droidcon 2012
OpenCV @ Droidcon 2012
 
Vipul divyanshu documentation on Kinect and Motion Tracking
Vipul divyanshu documentation  on Kinect and Motion TrackingVipul divyanshu documentation  on Kinect and Motion Tracking
Vipul divyanshu documentation on Kinect and Motion Tracking
 
Introduction to Machine Learning by MARK
Introduction to Machine Learning by MARKIntroduction to Machine Learning by MARK
Introduction to Machine Learning by MARK
 
Using Deep Learning for Computer Vision Applications
Using Deep Learning for Computer Vision ApplicationsUsing Deep Learning for Computer Vision Applications
Using Deep Learning for Computer Vision Applications
 
The Evolution Of Eclipse 1. 1 )
The Evolution Of Eclipse 1. 1 )The Evolution Of Eclipse 1. 1 )
The Evolution Of Eclipse 1. 1 )
 
PVS-Studio in the Clouds: CircleCI
PVS-Studio in the Clouds: CircleCIPVS-Studio in the Clouds: CircleCI
PVS-Studio in the Clouds: CircleCI
 

Mais de Mark Rees (6)

Porting a legacy app to python 3
Porting a legacy app to python 3Porting a legacy app to python 3
Porting a legacy app to python 3
 
Relational Database Access with Python
Relational Database Access with PythonRelational Database Access with Python
Relational Database Access with Python
 
Pypy is-it-ready-for-production-the-sequel
Pypy is-it-ready-for-production-the-sequelPypy is-it-ready-for-production-the-sequel
Pypy is-it-ready-for-production-the-sequel
 
PyPy - is it ready for production
PyPy - is it ready for productionPyPy - is it ready for production
PyPy - is it ready for production
 
Relational Database Access with Python ‘sans’ ORM
Relational Database Access with Python ‘sans’ ORM  Relational Database Access with Python ‘sans’ ORM
Relational Database Access with Python ‘sans’ ORM
 
What do you mean it needs to be Java based? How jython saved the day.
What do you mean it needs to be Java based? How jython saved the day.What do you mean it needs to be Java based? How jython saved the day.
What do you mean it needs to be Java based? How jython saved the day.
 

Último

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Último (20)

Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 

Seeing with Python - Pycon SG 2014

  • 2. What is Computer Vision – 1980’s Then it was called Machine Vision "the automatic acquisition and analysis of images to obtain desired data for interpreting a scene or controlling an activity" (Schaffer, 1984). cnt dw $0000 src dw $0000 dst dw $0000 memcpy public ldab cnt+1 ;Set B = cnt.L beq check ;If cnt.L=0, goto check loop ldx src ;Set IX = src ldaa ix ;Load A from (src) inx ;Set src = src+1 stx src ldx dst ;Set IX = dst staa ix ;Store A to (dst) inx ;Set dst = dst+1 stx dst decb ;Decr B bne loop ;Repeat the loop stab cnt+1 ;Set cnt.L = 0 check tst cnt+0 ;If cnt.H=0, beq done ;Then quit dec cnt+0 ;Decr cnt.H decb ;Decr B bra loop ;Repeat the loop done rts ;Return
  • 3. What is Computer Vision - 2014 “Computer vision is a field that includes methods for acquiring, processing, analyzing, and understanding images and, in general, high- dimensional data from the real world in order to produce numerical or symbolic information, e.g., in the forms of decisions. A theme in the development of this field has been to duplicate the abilities of human vision by electronically perceiving and understanding an image. This image understanding can be seen as the disentangling of symbolic information from image data using models constructed with the aid of geometry, physics, statistics, and learning theory. Computer vision has also been described as the enterprise of automating and integrating a wide range of processes and representations for vision perception.” (Wikipedia 2014 http://en.wikipedia.org/wiki/Computer_Vision)
  • 4. What is Computer Vision - 2014
  • 5. Computer Vision – My Reality
  • 6. CV is a lot more than grabbing an image CV Object Illumination Image Capture Sensors/Cameras Digitisation/Conversion Image Processing Algorithm Development Implementation Display Control
  • 7. Python Imaging Library Pillow – The friendly PIL fork python 2.6+, 3.2+ http://python-pillow.github.io/ PIL – The “original” PIL python 1.52+, 2.0+ last release 11/2009 http://effbot.org/downloads Demo: PIL.ipynb
  • 8. Scipy ndimage N dimensional array image processing http://docs.scipy.org/doc/scipy/reference/ndimage.html Demo: Multi-demensional image processing.ipynb
  • 9. SimpleCV SimpleCV is an open source framework for building computer vision applications. With it, you get access to several high-powered computer vision libraries such as OpenCV – without having to first learn about bit depths, file formats, color spaces, buffer management, eigenvalues, or matrix versus bitmap storage. http://simplecv.org/ Demo: SimpleCV - The Basics.ipynb Pygamedependency caused me some problems Not all image manipulation worked in ipython. Simplecv shell is where all functionality works.
  • 10. PyOpenCV Official python wrapper for OpenCV C/C++ libraries Two namespaces cv & cv2. Use cv2, cv deprecated Basis of SimpleCV and other python CV libraries Demo: OpenCV - The Basics.ipynb Demo: OpenCV Motion Detection.ipynb Demo: OpenCV Face Detection.ipynb
  • 11. Raspberry Pi CV OpenCV available but USB cameras slow Rpi camera faster, uses GPU, doesn’t work with OpenCV apt-get install python-picamera solves that. http://picamera.readthedocs.org/en/release-1.5/
  • 12. Resources http://www.packtpub.com/opencv-computer- vision-with-python/book http://programmingcomputervision.com/ There also is a Python CV module PCV http://szeliski.org/Book/ Computer Vision: Algorithms and Applications