Professional Documents
Culture Documents
n n n
Part 1: Introduction to mobile image processing on Android" Part 2: Real-time augmentation of viewnder frames" Part 3: Utilizing optimized functions in the OpenCV library"
Digital Image Processing: Bernd Girod, David Chen, Matt Yu 2013 Stanford University -- Mobile Image Processing 1
Digital Image Processing: Bernd Girod, David Chen, Matt Yu 2013 Stanford University -- Mobile Image Processing 2
Digital Image Processing: Bernd Girod, David Chen, Matt Yu 2013 Stanford University -- Mobile Image Processing 3
Spotlight on Android
n n
Open source mobile platform developed by Google" Supported and maintained by Open Handset Alliance"
l l l l
n n n
Uses an open-source kernel and a virtual machine designed for mobile hardware" Commands the largest share of the smartphone market in the world" Google Play contains over 800k apps"
Digital Image Processing: Bernd Girod, David Chen, Matt Yu 2013 Stanford University -- Mobile Image Processing 4
Android "
World Smartphone Sales to End Users ! Gartner (Q4 2012) !
Digital Image Processing: Bernd Girod, David Chen, Matt Yu 2013 Stanford University -- Mobile Image Processing 5
Android encourages high-level app development" Android uses Java as the main programming language" Android inherits basic classes from conventional Java"
l
String, Container, Math, IO, Network, " Camera, Telephony, Map, GPS, Speech, "
Digital Image Processing: Bernd Girod, David Chen, Matt Yu 2013 Stanford University -- Mobile Image Processing 7
Eclipse ! IDE !
Android ! SDK !
Java ! Runtime !
Digital Image Processing: Bernd Girod, David Chen, Matt Yu 2013 Stanford University -- Mobile Image Processing 8
???"
Digital Image Processing: Bernd Girod, David Chen, Matt Yu 2013 Stanford University -- Mobile Image Processing 9
Android tutorials designed specically for mobile image processing applications in the EE368/CS232 class" Tutorial #1: Basic Android Setup"
l l
Image processing-oriented introduction to Android" Explains how to download and install the different software packages (SDK, Eclipse) on your own computer" Shows how to build and run viewnder augmentation apps in real time" Builds on core skills developed in Tutorial #1" Explains how to download and install OpenCV for Android" Shows how to build viewnder apps that detect circles and lines, " detect feature keypoints, track feature keypoints, perform locally" adaptive thresholding, detect human faces, "
Digital Image Processing: Bernd Girod, David Chen, Matt Yu 2013 Stanford University -- Mobile Image Processing 10
Covers all existing versions of Android " Covers API-8 for Droid and API-11 for newer devices"
http://ee368.stanford.edu/Android !
Digital Image Processing: Bernd Girod, David Chen, Matt Yu 2013 Stanford University -- Mobile Image Processing 11
http://ee368.stanford.edu/Android !
Digital Image Processing: Bernd Girod, David Chen, Matt Yu 2013 Stanford University -- Mobile Image Processing 12
Auto-generated Java les ! Dont edit anything here " Android library ! Dont edit anything here " Java Native Interface les ! C/C++ code " Resource les ! Edit layout, dene constants, import external media les, " change program permissions "
Digital Image Processing: Bernd Girod, David Chen, Matt Yu 2013 Stanford University -- Mobile Image Processing 14
???"
Digital Image Processing: Bernd Girod, David Chen, Matt Yu 2013 Stanford University -- Mobile Image Processing 15
Learn how to create a simple Android project" Learn how to display viewnder frames" Learn how to process viewnder frames" http://ee368.stanford.edu/Android/HelloViewnder"
"
Digital Image Processing: Bernd Girod, David Chen, Matt Yu 2013 Stanford University -- Mobile Image Processing 16
Preview ! (View) !
Handle incoming viewnder frames and adjust camera parameters "
Digital Image Processing: Bernd Girod, David Chen, Matt Yu 2013 Stanford University -- Mobile Image Processing 17
Make this class inherit the properties of an Activity " Called when the activity is rst created " Create two children objects for displaying frames "
Digital Image Processing: Bernd Girod, David Chen, Matt Yu 2013 Stanford University -- Mobile Image Processing 18
Preview ! (View) !
Handle incoming viewnder frames and adjust camera parameters "
Digital Image Processing: Bernd Girod, David Chen, Matt Yu 2013 Stanford University -- Mobile Image Processing 19
Preview ! (View) !
myCamera.setPreviewCallback(new PreviewCallback() { public void onPreviewFrame(byte[] data, Camera camera) { ... Pass data to DrawOnTop class ... } });
Digital Image Processing: Bernd Girod, David Chen, Matt Yu 2013 Stanford University -- Mobile Image Processing 20
h "
Dene an anonymous touch listener object " If in original state, toggle to processed state " If in processed state, toggle to original state "
Digital Image Processing: Bernd Girod, David Chen, Matt Yu 2013 Stanford University -- Mobile Image Processing 21
Preview ! (View) !
Handle incoming viewnder frames and adjust camera parameters "
Digital Image Processing: Bernd Girod, David Chen, Matt Yu 2013 Stanford University -- Mobile Image Processing 22
Called whenever this view is repainted " Decode frame with or without hist. eq. " Draw decoded frame in new layer "
Digital Image Processing: Bernd Girod, David Chen, Matt Yu 2013 Stanford University -- Mobile Image Processing 23
???"
Digital Image Processing: Bernd Girod, David Chen, Matt Yu 2013 Stanford University -- Mobile Image Processing 24
Digital Image Processing: Bernd Girod, David Chen, Matt Yu 2013 Stanford University -- Mobile Image Processing 25
Digital Image Processing: Bernd Girod, David Chen, Matt Yu 2013 Stanford University -- Mobile Image Processing 26
???"
Digital Image Processing: Bernd Girod, David Chen, Matt Yu 2013 Stanford University -- Mobile Image Processing 29