ºÝºÝߣ

ºÝºÝߣShare a Scribd company logo
Springboard Setup &
OpenCV
JerryICChen
Outline
? Setup Springboard
? OpenCV for android
? Setup environment to build OpenCV for Android
? OpenCV build tricks
? Demo sample
? Springboard Robot
? Concept / Architecture
? Key point
? Usb-to-serial
? BT
Setup Springboard
? Introduction
http://www.viaspringboard.com/products/via-
vab-600-springboard-kit.html
? 800Mhz Arm Cortex-A9 Soc
? 1GB DDR3 SDRAM on board
? 4GB on board eMMC flash
? Mini-HDMI port/ USB 2.0
? Ethernet
? Micro SD card reader on board
Setup Springboard with Android4.0.3
? Requisition:
? Micro SD card 4GB above
? Download Android SW development package
http://www.viaspringboard.com/via-vab-600-
springboard-software-development-packages.html
? Extract ./bspinst, and .scriptcmd to SD card
? Insert SD card, and reboot springboard
? Reboot then enter firmware burning(~100%, blue
background)
? Remove SD card from springboard
? Reboot and enter Android OS
Springboard & OpenCV
OpenCV for Android
? OpenCV is a powerful open library for image
processing and pattern recognition
? OpenCV for win, linux , processing and
OpenCV for Android
? Download from :
http://opencv.org/downloads.html
? Info:
http://docs.opencv.org/doc/tutorials/introducti
on/android_binary_package/O4A_SDK.html
Setup environment to build OpenCV for
Android
? Require:
? JDK :
http://www.oracle.com/technetwork/java/javase/downloads/j
dk8-downloads-2133151.html
? Eclipse or ADT-bundle
? Eclipse is an IDE for programming C, C++, Java, and android
? ADT-bundle = Eclipse + Android SDK
Released by Google. (I prefer to install ADT-bundle!)
? Assume install to <ADT-dir>
? Android NDK, jni native code language development kit
(Some OpenCV sample is built by jni )
? Assume install to <NDK-dir>
Import OpenCV sdk
? Extract OpenCV for Android
to <OpenCV-sdk-dir>
? Run eclipse
? File?Import
projects?Android?
Existing Android code into
workspace
? Choose the <OpenCV-sdk-
dir>sdkjava
Import OpenCV4Android samples
? Extract Android-NDK to <NDK-dir>
? Run eclipse
? File->New Project? Android ?Existing Android
code into workspace
? Choose <OpenCV-dir>samples<sample-name>
<sample-name> = face-detection, mixprocessing,
¡­
OpenCV sample build trick
? OpenCV4Android samples compile fails:
? ¡°Cannot recognize android-10 !¡±
? Open Window?SDK Manager, check the SDK version
(android-17 or ¡­) which is installed on local
? ,Change to local installed Android-SDK version
? ¡°Cannot find ndk-build.cmd !¡±
? Project->properties?C/C++ build? Builder
Settings?Build command
${NDKROOT}ndk-build.cmd ? Set path to <NDK-
dir>ndk-build.cmd
Springboard & OpenCV
Before Upload & install OpenCV samples
to Springboard
? After successully build OpenCV samples, we are
going to upload *.apk to Springboard
? Setup Springboard with a Ethernet ip-address
? Springboard¡¯s Android OS?Settings?Ethernet : enable
and set a static ip address for it, <Target IP>.
? Enter terminal C:> (in Win), or bash$ (in linux)
? Find <ADT-dir>sdkplatform-toolsadb.exe
? adb kill-server
? adb devices , (when debugging through USB cable)
? adb connect <Target IP> , (when debugging through
ethernet)
Upload & install OpenCV samples to
Springboard
? In eclipse, ¡°Run as Android application¡±, or
¡°Debug as Android application¡±
? Springboard will run the uploaded Android
application
Comment for Springboard ETK Android
OS
? No Internet web browser apk
? No App Store (Google Play),
need to use adb install to upload *.apk
? Built-in script language,
python, ruby.
? Built-in library
Smart ETK, OpenCV, usb-to-serial, processing, and
streaming rtsp library
? Need Start-up tutorial on Android / Linux
www.viaspringboard.com
Springboard & OpenCV
OpenCV face-detection
More application !
? Since OpenCV runs smoothly on Springboard
? Robotic visual
? Security surveillance
? Other application
? NAT, media streaming
? Car mobile computing, since 12V is suitable for
Car power-supply
? Public area electronic-art decoration, with
Processing, light-sensor & light control
? Electronic advertisement
Springboard(Brain)
OpenCV,
Pattern Recognition,
Communation
Arduino(Spine)
Collision Reflex,
Interrupts,
Chassis
Usb-to-serial
or BT
12V Battery
Reflex action
Afterward acknowledge
Radio / WiFi

More Related Content

What's hot (20)

PDF
Tegra 186¤Îu-boot & Linux
Mr. Vengineer
?
PDF
Couverture de code
CocoaHeads France
?
PDF
A War Story: Porting Android 4.0 to a Custom Board (ELCE 2012)
Matthias Brugger
?
PPTX
Android - ADB
Yossi Gruner
?
PPTX
NDK Introduction
RAHUL TRIPATHI
?
PDF
Customizing Android's UI
Opersys inc.
?
PDF
Study on Android Emulator
Samael Wang
?
PPT
Developing Applications for Beagle Bone Black, Raspberry Pi and SoC Single Bo...
ryancox
?
PDF
Hierarchy Viewer Internals
Kyungmin Lee
?
PPT
Android Debug
Mike Wolfson
?
PPTX
C++ in kernel mode
corehard_by
?
PDF
Using the Android Native Development Kit (NDK)
Xavier Hallade
?
PDF
Optimizing NN inference performance on Arm NEON and Vulkan
ax inc.
?
PDF
Native Android Userspace part of the Embedded Android Workshop at Linaro Conn...
Opersys inc.
?
PDF
How video codec work
Leandro Moreira
?
PDF
Android Native Development Kit
Peter R. Egli
?
PDF
[KubeConUS2019 Docker, Inc. Booth] Distributed Builds on Kubernetes with Bui...
Akihiro Suda
?
PPTX
Install, Compile, Setup, Setting OpenCV 3.2, Visual C++ 2015, Win 64bit,
Farshid Pirahansiah
?
PPTX
Android NDK
Sentinel Solutions Ltd
?
Tegra 186¤Îu-boot & Linux
Mr. Vengineer
?
Couverture de code
CocoaHeads France
?
A War Story: Porting Android 4.0 to a Custom Board (ELCE 2012)
Matthias Brugger
?
Android - ADB
Yossi Gruner
?
NDK Introduction
RAHUL TRIPATHI
?
Customizing Android's UI
Opersys inc.
?
Study on Android Emulator
Samael Wang
?
Developing Applications for Beagle Bone Black, Raspberry Pi and SoC Single Bo...
ryancox
?
Hierarchy Viewer Internals
Kyungmin Lee
?
Android Debug
Mike Wolfson
?
C++ in kernel mode
corehard_by
?
Using the Android Native Development Kit (NDK)
Xavier Hallade
?
Optimizing NN inference performance on Arm NEON and Vulkan
ax inc.
?
Native Android Userspace part of the Embedded Android Workshop at Linaro Conn...
Opersys inc.
?
How video codec work
Leandro Moreira
?
Android Native Development Kit
Peter R. Egli
?
[KubeConUS2019 Docker, Inc. Booth] Distributed Builds on Kubernetes with Bui...
Akihiro Suda
?
Install, Compile, Setup, Setting OpenCV 3.2, Visual C++ 2015, Win 64bit,
Farshid Pirahansiah
?

Viewers also liked (6)

DOC
Paper1environment vii sem
Ryan Tyagi
?
PDF
Libro de-david-brading
Patricia de Souza
?
PDF
Tablas de laplace
Charles HS
?
PPT
Otobiyografi
?mer Ersoy
?
PDF
Stream Collections - Scala Days
Greg Silin
?
PPTX
Teori Harta Dalam Islam
EkonomiIslam
?
Paper1environment vii sem
Ryan Tyagi
?
Libro de-david-brading
Patricia de Souza
?
Tablas de laplace
Charles HS
?
Otobiyografi
?mer Ersoy
?
Stream Collections - Scala Days
Greg Silin
?
Teori Harta Dalam Islam
EkonomiIslam
?
Ad

Similar to Springboard & OpenCV (6)

PPTX
OpenCV @ Droidcon 2012
Wingston
?
DOC
Video optimization for android - Part I
Yoss Cohen
?
ODP
OpenCV 2.2.0 for Android
Picker Weng
?
PPTX
???????????Arduino????????android
Worakrit Sittirit
?
PDF
0xdroid -- community-developed Android distribution by 0xlab
National Cheng Kung University
?
OpenCV @ Droidcon 2012
Wingston
?
Video optimization for android - Part I
Yoss Cohen
?
OpenCV 2.2.0 for Android
Picker Weng
?
???????????Arduino????????android
Worakrit Sittirit
?
0xdroid -- community-developed Android distribution by 0xlab
National Cheng Kung University
?
Ad

Springboard & OpenCV

  • 2. Outline ? Setup Springboard ? OpenCV for android ? Setup environment to build OpenCV for Android ? OpenCV build tricks ? Demo sample ? Springboard Robot ? Concept / Architecture ? Key point ? Usb-to-serial ? BT
  • 3. Setup Springboard ? Introduction http://www.viaspringboard.com/products/via- vab-600-springboard-kit.html ? 800Mhz Arm Cortex-A9 Soc ? 1GB DDR3 SDRAM on board ? 4GB on board eMMC flash ? Mini-HDMI port/ USB 2.0 ? Ethernet ? Micro SD card reader on board
  • 4. Setup Springboard with Android4.0.3 ? Requisition: ? Micro SD card 4GB above ? Download Android SW development package http://www.viaspringboard.com/via-vab-600- springboard-software-development-packages.html ? Extract ./bspinst, and .scriptcmd to SD card ? Insert SD card, and reboot springboard ? Reboot then enter firmware burning(~100%, blue background) ? Remove SD card from springboard ? Reboot and enter Android OS
  • 6. OpenCV for Android ? OpenCV is a powerful open library for image processing and pattern recognition ? OpenCV for win, linux , processing and OpenCV for Android ? Download from : http://opencv.org/downloads.html ? Info: http://docs.opencv.org/doc/tutorials/introducti on/android_binary_package/O4A_SDK.html
  • 7. Setup environment to build OpenCV for Android ? Require: ? JDK : http://www.oracle.com/technetwork/java/javase/downloads/j dk8-downloads-2133151.html ? Eclipse or ADT-bundle ? Eclipse is an IDE for programming C, C++, Java, and android ? ADT-bundle = Eclipse + Android SDK Released by Google. (I prefer to install ADT-bundle!) ? Assume install to <ADT-dir> ? Android NDK, jni native code language development kit (Some OpenCV sample is built by jni ) ? Assume install to <NDK-dir>
  • 8. Import OpenCV sdk ? Extract OpenCV for Android to <OpenCV-sdk-dir> ? Run eclipse ? File?Import projects?Android? Existing Android code into workspace ? Choose the <OpenCV-sdk- dir>sdkjava
  • 9. Import OpenCV4Android samples ? Extract Android-NDK to <NDK-dir> ? Run eclipse ? File->New Project? Android ?Existing Android code into workspace ? Choose <OpenCV-dir>samples<sample-name> <sample-name> = face-detection, mixprocessing, ¡­
  • 10. OpenCV sample build trick ? OpenCV4Android samples compile fails: ? ¡°Cannot recognize android-10 !¡± ? Open Window?SDK Manager, check the SDK version (android-17 or ¡­) which is installed on local ? ,Change to local installed Android-SDK version ? ¡°Cannot find ndk-build.cmd !¡± ? Project->properties?C/C++ build? Builder Settings?Build command ${NDKROOT}ndk-build.cmd ? Set path to <NDK- dir>ndk-build.cmd
  • 12. Before Upload & install OpenCV samples to Springboard ? After successully build OpenCV samples, we are going to upload *.apk to Springboard ? Setup Springboard with a Ethernet ip-address ? Springboard¡¯s Android OS?Settings?Ethernet : enable and set a static ip address for it, <Target IP>. ? Enter terminal C:> (in Win), or bash$ (in linux) ? Find <ADT-dir>sdkplatform-toolsadb.exe ? adb kill-server ? adb devices , (when debugging through USB cable) ? adb connect <Target IP> , (when debugging through ethernet)
  • 13. Upload & install OpenCV samples to Springboard ? In eclipse, ¡°Run as Android application¡±, or ¡°Debug as Android application¡± ? Springboard will run the uploaded Android application
  • 14. Comment for Springboard ETK Android OS ? No Internet web browser apk ? No App Store (Google Play), need to use adb install to upload *.apk ? Built-in script language, python, ruby. ? Built-in library Smart ETK, OpenCV, usb-to-serial, processing, and streaming rtsp library ? Need Start-up tutorial on Android / Linux www.viaspringboard.com
  • 17. More application ! ? Since OpenCV runs smoothly on Springboard ? Robotic visual ? Security surveillance ? Other application ? NAT, media streaming ? Car mobile computing, since 12V is suitable for Car power-supply ? Public area electronic-art decoration, with Processing, light-sensor & light control ? Electronic advertisement