SlideShare a Scribd company logo
1 of 85
Download to read offline
本著作採用創用CC 「姓名標示」授權條款台灣3.0版




      Towards
     Embedded
   Computer Vision
     Wang, Yuan-Kai(王元凱)
Electronic Engineering Department,
Fu Jen Univ. (輔仁大學電機工程系)
  Email: ykwang@mails.fju.edu.tw
    URL: http://www.ykwang.tw
           2010/05/14
王元凱                     Towards Embedded Computer Vision            p. 2



                         Contents
    1.      Embedded Systems
    2.      Embedded Computer Vision
    3.      Entertainment Robot (CPU)
    4.      Embedded Vision Sensor (CPU)
    5.      Portable Vision Device (DSP)
    6.      Smart Video Surveillance (FPGA)
    7.      Summary & Outlook

Fu Jen University   Department of Electrical Engineering   Wang, Yuan-Kai
王元凱                     Towards Embedded Computer Vision            p. 3




               1. Embedded Systems




Fu Jen University   Department of Electrical Engineering   Wang, Yuan-Kai
王元凱                     Towards Embedded Computer Vision                p. 4



               Evolution of Computer
         Past             Now                              Future




         • Embedded System is a computer that is
            • Special-purpose
            • Light, Thin, Short, Small
              ⇒ Limited resources
Fu Jen University   Department of Electrical Engineering       Wang, Yuan-Kai
王元凱                         Towards Embedded Computer Vision            p. 5



                    Embedded Systems
                    "Without" Sensors




                    資料來源:資策會MIC ITIS計畫整理
Fu Jen University       Department of Electrical Engineering   Wang, Yuan-Kai
王元凱                       Towards Embedded Computer Vision             p. 6



                    Embedded Systems
                     "With" Sensors

                                                             Wii
      Roomba




      GPS                                                    Exoskeleton
 Navigation


Fu Jen University     Department of Electrical Engineering    Wang, Yuan-Kai
王元凱                     Towards Embedded Computer Vision            p. 7



                 Embedded Systems
                "With" Image Sensors
 DARPA
                                                            Augmented
  Grand
                                                            Reality
Challenge




 Surface                                                    Intelligent
Computing                                                   Robot


Fu Jen University   Department of Electrical Engineering   Wang, Yuan-Kai
王元凱                     Towards Embedded Computer Vision            p. 8




                 2. Embedded
              Computer Vision (ECV)




Fu Jen University   Department of Electrical Engineering   Wang, Yuan-Kai
王元凱                       Towards Embedded Computer Vision            p. 9



                      What Is ECV
         Embedded compute vision
           Implements computer vision algorithms
            on low-cost, low-power,
            constrained hardware
         Constrained hardware
              Low-speed CPU
              Low capacity memory
              No floating-point (FPU)
              Low-resolution image sensor

Fu Jen University     Department of Electrical Engineering   Wang, Yuan-Kai
王元凱                           Towards Embedded Computer Vision                    p. 10



       Embedded Computer Vision
         Embedded System + Camera
          + Computer Vision Algorithm




               Image                Image                    Image
              Capturing           Processing               Recognition




Fu Jen University         Department of Electrical Engineering           Wang, Yuan-Kai
王元凱                     Towards Embedded Computer Vision            p. 11



             Why Smart Camera (1/2)
          Front-end processing
          An example for video surveillance
                    Classical stationary camera




                                Smart camera



IOImage Inc.
Fu Jen University   Department of Electrical Engineering   Wang, Yuan-Kai
王元凱                        Towards Embedded Computer Vision            p. 12



             Why Smart Camera (2/2)
         In-node processing:
          Vision sensor network
         Distributed vision system
           Camera networks
                Use multiple cameras
                 to analyze the scene
           Benefit
                Less problems with
                 occlusion
           Challenge
                Distributed processing
                 and reasoning
Fu Jen University      Department of Electrical Engineering   Wang, Yuan-Kai
王元凱                      Towards Embedded Computer Vision            p. 13



        International Activities (1/2)
         Special conferences
           IEEE Int. Conf. Distributed Smart Cameras
         Special journal issues
           IEEE Journal of Selected Topics in Signal
            Processing, vol. 2, no. 4, Aug. 2008
           EURASIP Journal on Embedded Systems,
         Short courses in important CV
          conferences
           CVPR07&08: Distributed vision processing in
            smart camera networks
           ESC07: Embedded CV and smart cameras
           ICASSP09: Distributed processing in smart
            cameras
Fu Jen University    Department of Electrical Engineering   Wang, Yuan-Kai
王元凱                     Towards Embedded Computer Vision            p. 14



        International Activities (2/2)
         Research projects and Lab.
           Princeton Univ./Georgia Tech.:
            Embedded Systems Lab., Wayne Wolf
           Stanford Univ.
            Wireless sensor networks Lab.
           UCLA, CMU, MIT
           Delft Univ. of Technology
            SmartCam Project
           Graz Univ. of Technology


Fu Jen University   Department of Electrical Engineering   Wang, Yuan-Kai
王元凱                        Towards Embedded Computer Vision            p. 15



                    Three Ways for ECV
         CPU (Central Processing Unit)
       ARM, PowerPC
     DSP (Digital Signal Processor)
       TI, ADI, NXP
     FPGA (Field Programmable Gate Array)
       Altera, Xilinx




Fu Jen University      Department of Electrical Engineering   Wang, Yuan-Kai
王元凱                      Towards Embedded Computer Vision            p. 16



                    Embedded CPU
         Embedded CPU = Low-power CPU
           ARM
         Drawbacks of embedded CPU
          for computer vision
           No FPU, usually fixed-point
           Speed: 60MHz ~ 600MHz
         Therefore it is usually developed for
          (video) sensor networks

Fu Jen University    Department of Electrical Engineering   Wang, Yuan-Kai
王元凱                       Towards Embedded Computer Vision                    p. 17



          Embedded CPU: MeshEye
      Stanford MeshEye                    (http://wsnl.stanford.edu/smartcam.html)
        ARM 7 (55MHz), ZigBee node
        3 image sensors       "MeshEye:a hybrid-resolution
          30x30 grayscale x 2 smart camera intelligent
                               in distributed
                                              mote for applications
          640x480 color x 1   surveillance", IPSN-SPOTS, 2007

                                       Object detection




Fu Jen University     Department of Electrical Engineering          Wang, Yuan-Kai
王元凱                     Towards Embedded Computer Vision                       p. 18



         Embedded CPU: CMUCam
         CMU CMUcam3
           ARM7
         ECV applications
           Robotic vision, color tracking,
            histogram processing, face detection




                                                     (http://www.cmucam.org)
Fu Jen University   Department of Electrical Engineering           Wang, Yuan-Kai
王元凱                     Towards Embedded Computer Vision            p. 19



                                DSP
         DSP is good for signal processing
           SIMD structure for filtering processing
         However, Computer Vision needs
          extreme DSP + video port
           Media processors: powerful DSP
             Parallelism: VLIW
             Faster memory, DMA
             Wide data bus
         ECV applications
           Face detection, face recognition, license
            plate recognition, vehicle tacking,
Fu Jen University   Department of Electrical Engineering   Wang, Yuan-Kai
王元凱                      Towards Embedded Computer Vision            p. 20



                    DSP : TRICam
         "Visual surveillance on DSP-based
          embedded platform," Graz Univ. of
          Technology, 2008(Phd. dissertation)
           TI C6414 (600MHz)
           Applications: Adaboost face detection, vehicle
            detection, license plate detection




Fu Jen University    Department of Electrical Engineering   Wang, Yuan-Kai
王元凱                     Towards Embedded Computer Vision            p. 21



                      FPGA (1/3)
         Customizable hardware for parallelism
         Reconfigurable computing
           Flexible hardware design by HDL codes on
            FPGA.




Fu Jen University   Department of Electrical Engineering   Wang, Yuan-Kai
王元凱                     Towards Embedded Computer Vision            p. 22



                      FPGA (2/3)
         "Hardware, Design and Implementation
          Issues on a FPGA-Based Smart Camera,"
          ICDSC, 2007




Fu Jen University   Department of Electrical Engineering   Wang, Yuan-Kai
王元凱                     Towards Embedded Computer Vision            p. 23



                      FPGA (3/3)
        ECV application:
         object tracking
          Template matching
           by MAE
           (Maximum
            Absolute Error)




Fu Jen University   Department of Electrical Engineering   Wang, Yuan-Kai
王元凱                       Towards Embedded Computer Vision                           p. 24



                    Hybrid: MCU+CPLD
         UCLA Cyclops                                http://research.cens.ucla.edu/projec
                                                      ts/2007/Multiscaled_Actuated_Sens
           MCU: Atmega128                            ing/Cyclops/

           CPLD: image processing
           ECV app.: Hand gesture recognition




Fu Jen University     Department of Electrical Engineering                Wang, Yuan-Kai
王元凱                           Towards Embedded Computer Vision            p. 25



               Hybrid: CPU+DSP (1/2)
         "Distributed Embedded Smart Cameras
          for Surveillance Applications,"
          IEEE Computer, 2006.




                    Developed for traffic surveillance
Fu Jen University         Department of Electrical Engineering   Wang, Yuan-Kai
王元凱                     Towards Embedded Computer Vision            p. 26



               Hybrid: CPU+DSP (2/2)




Fu Jen University   Department of Electrical Engineering   Wang, Yuan-Kai
王元凱                      Towards Embedded Computer Vision            p. 27



                      SOC - Xetal
         Philips: Xetal SIMD processor
           InCa
           WiCa
             Xetal3 + 8051
             Stereo sensors (640x480)
             50 GOPS @ 600mWatt
             ZigBee node
             C++ programming
           Used by Stanford Univ.,
             Delft University of Technology
         ECV Applications: edge detection, face
          detection, hough transform, gesture
          recognition, depth estimation, ...
Fu Jen University    Department of Electrical Engineering   Wang, Yuan-Kai
王元凱                        Towards Embedded Computer Vision            p. 28



                    Challenges for ECV
         Algorithm refinement
           Parallel computation
             Function partition, Multi-threading
           Stream processing
           Memory hierarchy optimization
         Hardware design
           Pipeline, SIMD, board design
         Optimized programming skills
           Fixed-point arithmetic
           Memory management
           Intrinsic commands
Fu Jen University      Department of Electrical Engineering   Wang, Yuan-Kai
王元凱                        Towards Embedded Computer Vision            p. 29



                    Our Current Results
         Entertainment robot (CPU)
           Sony AIBO robot with 64-bit RISC CPU
           Application: Game playing,
            Face detection/recognition,
            Facial expression recognition
         Smart vision sensor: (CPU)
           Self-made sensor with ARM7
           Application : Face detection, Robot
         Portable vision device (DSP)
           Self-made device with Dualcore DSP
           Application: gesture recognition
         Smart video surveillance (FPGA)
           Background subtraction with FPGA
           Application: video surveillance
Fu Jen University      Department of Electrical Engineering   Wang, Yuan-Kai
王元凱                     Towards Embedded Computer Vision            p. 30




              3. Entertainment Robot

                       CPU Solution




Fu Jen University   Department of Electrical Engineering   Wang, Yuan-Kai
王元凱                       Towards Embedded Computer Vision               p. 31



                    Two AIBO Models
         Hardware                                            ERS-7
           CPU: 64-bit RISC
            576 MHz/192Mhz
           RAM: 64MB/32MB
           Flash: 32MB
           20 motors
         Camera:
           CMOS sensor
           Resolution:
            280 × 160                                        ERS220A
           10 fps
Fu Jen University     Department of Electrical Engineering      Wang, Yuan-Kai
王元凱                     Towards Embedded Computer Vision            p. 32



                          Sensors




Fu Jen University   Department of Electrical Engineering   Wang, Yuan-Kai
王元凱                     Towards Embedded Computer Vision            p. 33



                         Software
         Operating System
           Aperios (Embedded Linux)
         Development tools
           C++
           GCC 3.4.4 on Linux
           Libraries: OpenR, Tekkotsu




Fu Jen University   Department of Electrical Engineering   Wang, Yuan-Kai
王元凱                     Towards Embedded Computer Vision            p. 34



                    Our AIBO Pet
         Rolling Dice
         Face Detection
         Face Recognition
         Facial Expression Recognition




Fu Jen University   Department of Electrical Engineering   Wang, Yuan-Kai
王元凱                       Towards Embedded Computer Vision            p. 35



                    Rolling Dice (1/3)




Fu Jen University     Department of Electrical Engineering   Wang, Yuan-Kai
王元凱                                                   Towards Embedded Computer Vision               p. 36



                                  Rolling Dice (2/3)
             Detect the dice by color detection
               Using Gaussian mixture model (GMM)
                and EM algorithm to model colors
   p( x | c) =
                                   1
   N
                 1              ( − ( x − mi )T ∑i−1 ( x − mi ))
  ∑ω
   i =1
          i
              2π ∑i
                      1/2
                            e      2




                                                        Original                            Detection
                                                         image                               result

                                                                      GMM           Morphology+CCL
Fu Jen University                            Department of Electrical Engineering           Wang, Yuan-Kai
王元凱                       Towards Embedded Computer Vision            p. 37



                    Rolling Dice (3/3)




Fu Jen University     Department of Electrical Engineering   Wang, Yuan-Kai
王元凱                        Towards Embedded Computer Vision            p. 38



                    Face Detection (1/2)




Fu Jen University      Department of Electrical Engineering   Wang, Yuan-Kai
王元凱                        Towards Embedded Computer Vision            p. 39



                    Face Detection (2/2)
         Algorithm:
          Adaboost face detection
           Proposed by Viola and Jones in 2001
           Cascaded weak classifiers




Fu Jen University      Department of Electrical Engineering   Wang, Yuan-Kai
王元凱                     Towards Embedded Computer Vision            p. 40



               Face Recognition (1/3)




Fu Jen University   Department of Electrical Engineering   Wang, Yuan-Kai
王元凱                     Towards Embedded Computer Vision            p. 41



               Face Recognition (2/3)
         Eigenface approach (PCA)




Fu Jen University   Department of Electrical Engineering   Wang, Yuan-Kai
王元凱                     Towards Embedded Computer Vision            p. 42



               Face Recognition (3/3)




Fu Jen University   Department of Electrical Engineering   Wang, Yuan-Kai
王元凱                     Towards Embedded Computer Vision            p. 43



      Facial Expression Recognition 1/3




Fu Jen University   Department of Electrical Engineering   Wang, Yuan-Kai
王元凱                     Towards Embedded Computer Vision            p. 44



   Facial Expression Recognition                                  2/3




Fu Jen University   Department of Electrical Engineering   Wang, Yuan-Kai
王元凱                     Towards Embedded Computer Vision            p. 45



    Facial Expression Recognition 3/3
          3 expressions
            Happy, Surprise, Angry
          Video-based method
            Feature: optical flow,
                       common vector flow
            Classifier: Hidden Markov model
          Well done in small-resolution images
            140 * 120 (~ QCIF, 176 * 144)



Fu Jen University   Department of Electrical Engineering   Wang, Yuan-Kai
王元凱                     Towards Embedded Computer Vision            p. 46




       4. Embedded Vision Sensor

                       CPU Solution




Fu Jen University   Department of Electrical Engineering   Wang, Yuan-Kai
王元凱                     Towards Embedded Computer Vision            p. 47



                          FJUCam
         It is a self-made camera
           Camera module + embedded system
           3S: Small, Smart, Sensing
         Components of the FJUCam
           ARM7 TDMI
             32-bit, 60MHz, 64KB RAM, 128KB
              ROM
           CMOS sensor: OV6620 (CIF 50fps)
             CIF(352x288), QCIF, 8-bit RGB

Fu Jen University   Department of Electrical Engineering   Wang, Yuan-Kai
王元凱                         Towards Embedded Computer Vision               p. 48



                    What Is FJUCam (1/3)
• Weight: 35gm
• Power sources:                                               •Size:
  • 5V DC current                                               6 x 4.5 x 5 (cm)
  • 5V Cell Battery                                             (W x H x D)
• Power
  consumption:
  1W




                              Three Modules
                      1. Main board, 2. Lens module
                            3. Storage module
Fu Jen University       Department of Electrical Engineering      Wang, Yuan-Kai
王元凱                            Towards Embedded Computer Vision            p. 49



                    What Is FJUCam (2/3)
Power                           Main Board                          Button/ISP



                                                                        Serial port
Switch




                                                                  ARM7
                                                                  Microcontroller
Frame buffer/FIFO




                                   Front Side
  Other interfaces: RS232x2, SPI, I2C, GPIO        Back Side               49
Fu Jen University         Department of Electrical Engineering    Wang, Yuan-Kai
王元凱                         Towards Embedded Computer Vision            p. 50



                    What Is FJUCam (2/3)




              Lens Module                         Storage Module


Fu Jen University       Department of Electrical Engineering   Wang, Yuan-Kai
王元凱                     Towards Embedded Computer Vision            p. 51



                         Software
         Development environment
           C Language
           PC Windows + Cygwin + GCC
           cc3 library (open source developed by
            CMU)




Fu Jen University   Department of Electrical Engineering   Wang, Yuan-Kai
王元凱                      Towards Embedded Computer Vision            p. 52



                    Face Detection
         The Adaboost algorithm for face detection
           Proposed by Viola and Jones in 2001
           Cascaded weak classifiers(21 cascades)
         Algorithm refinement
           Reduced to 5 cascades
           Fixed-point arithmetic
           Stream processing for only 64KB memory
            utilization



                                                  Image
                       FJUCam                     Display
                     Face Detection
Fu Jen University    Department of Electrical Engineering   Wang, Yuan-Kai
王元凱                     Towards Embedded Computer Vision            p. 53



                    Cyclops Robot
         Color tracking




Fu Jen University   Department of Electrical Engineering   Wang, Yuan-Kai
王元凱                     Towards Embedded Computer Vision            p. 54




          5. Portable Vision Device:
                    X-EYE
                        DSP Solution




Fu Jen University   Department of Electrical Engineering   Wang, Yuan-Kai
王元凱                     Towards Embedded Computer Vision            p. 55



                    Goal of X-Eye




                                                                    55
Fu Jen University   Department of Electrical Engineering   Wang, Yuan-Kai
王元凱                                  Towards Embedded Computer Vision                 p. 56



                                Components



                                             觸控面板



                  顯示器                                  移動電源


                                        自製    Camera
                        USB
                                        外殼                      USB     筆電
                       連接線
                                                                  Hub
                                                 BeagleBoard

                                         微投影機 SD卡 USB-WIFI卡

                                                                        鍵盤

                   USB-RS232
                               讀卡機
Fu Jen   University 控制線         Department of Electrical Engineering
                                      滑鼠                                     Wang, Yuan-Kai
王元凱                     Towards Embedded Computer Vision            p. 57



           1st Generation Prototype




Fu Jen University   Department of Electrical Engineering   Wang, Yuan-Kai
王元凱                     Towards Embedded Computer Vision                p. 58



                     Photo Mode




                                      Capture Command: capture images




                                        Switch Command: Mode switch
Fu Jen University   Department of Electrical Engineering      Wang, Yuan-Kai
王元凱                     Towards Embedded Computer Vision              p. 59



                    Manage Mode
                             Original Photos




                              Next Command




                             Previous Command




                                Switch Command 2(to photo)
Fu Jen University   Department of Electrical Engineering     Wang, Yuan-Kai
                                                                      59
王元凱                            Towards Embedded Computer Vision                       p. 60



                           Hardware (1/2)
                    USER    RESET


                                                                  OMAP3530 Processor
Peripheral I/O                                                    •600MHz Cortex-A8
                                                                   •NEON+VFPv3
•USB Host                                                          •16KB/16KB L1
                                                                   •256KB L2
•JTAG                                                              •430MHz C64x+ DSP
                                                                   •32K/32K L1
•DVI-D video out                                                   •48K L1D
                                                                   •32K L2
•S-Video out                                                         •Power VR SGX GPU
                                                                  •64K on-chip RAM
•SD/MMC+                                                          POP Memory
                                                                  •256MB LPDDR RAM
•Stereo in/out                                                    •256MB NAND flash

•RS-232 serial1

•Alternate power

•USB 2.0 HS OTG
                                      7.6 cm
Fu Jen University
 60
                           Department of Electrical Engineering           Wang, Yuan-Kai
王元凱                     Towards Embedded Computer Vision                 p. 61



                    Hardware (2/2)




Fu Jen University   Department of Electrical Engineering   2010.04.25
                                                                Wang, Yuan-Kai
 61
王元凱                     Towards Embedded Computer Vision            p. 62



                    Software (1/2)




Fu Jen University   Department of Electrical Engineering   Wang, Yuan-Kai
王元凱                           Towards Embedded Computer Vision                      p. 63



                         Software (2/2)
            軟體名稱                         版本                         功用簡述
      Gesture Command
                                          1.0                       手勢辨識
           Module
            OpenCV                        1.0                       影像處理
            FFMpeg                       0.5.1                    視(音)訊邊解碼
                QT                       4.6.2                      視窗介面
                                                                 WinXP下安裝Linux
            VMWare                       6.5.3
                                                                      工具
         Ubuntu (host)                    9.04                   安裝交叉編譯環境
        Ubuntu (client)                   9.10                   BB上的filesystem
        Kernel (client)
Fu Jen University
                                        2.6.29
                          Department of Electrical Engineering
                                                                  BB上的kernel
                                                                     2010.04.25 X-Eye
                                                                           Wang, Yuan-Kai
 63
王元凱                                        Towards Embedded Computer Vision                                            p. 64



                              Algorithm (1/2)
         Gaussian Mixture Model (GMM)
           Model four colors
                                                                                    1
                                      N
                                               1                                 ( − ( x − mi )T Covi−1 ( x − mi ))
                      p ( x | c) = ∑ ωi                  e                          2

                                   i =1 2π || Covi ||1/2

         Expectation Maximization (EM)
           Parameter estimation of GMM
                    E Step                                                       M Step
                                                                   N
                                                          1
                                                               ∑ E(z
                                                                                                                 N
                                                                                                       1
                    ω p( x j | m , C )           ωit +1 =                                  t +1
                                                                                       ) m =                   ∑ E(z
                      t         t      t
                                                                                                                             )x j
 E ( zij ) =                                                                                        Nω     t +1
                      i         i     i                                           ij       i                            ij
                i                                         N        j =1                                    i    j =1

               ∑ ω tp p( x j | mtp , C tp )
                                           =C        t +1     1
                                                                  t +1 ∑
                                                                          N
                                                                         E ( zij )[( x j − mit +1 )( x j − mit +1 )T ]
               p =1
                                                            N ωi
                                                    i
                                                                          j =1

Fu Jen University
 64
                                    Department of Electrical Engineering                                 Wang, Yuan-Kai
王元凱                            Towards Embedded Computer Vision            p. 65



                      Algorithm (2/2)
         Color Identification
           c
            ˆ        =
                    arg max P( x | c j ), j 1 ~ k
                          cj

           Performance optimization by Look Up
            Table (LUT) for real-time
         Gesture Recognition
           Four gestures: capture, switch, next,
            previous,



Fu Jen University
 65
                        Department of Electrical Engineering      Wang, Yuan-Kai
王元凱                     Towards Embedded Computer Vision            p. 66




        6. Smart Video Surveillance

                      FPGA Solution




Fu Jen University   Department of Electrical Engineering   Wang, Yuan-Kai
王元凱                      Towards Embedded Computer Vision                   p. 67


                    Our Experience




         Background subtraction, ...
           • 2.8 GHz Intel CPU
           • Software: C/C++                                FPGA
           • Frame rate: 10 fps
Fu Jen University    Department of Electrical Engineering          Wang, Yuan-Kai
王元凱                                   Towards Embedded Computer Vision                           p. 68



            Background Subtraction
                                                  Current
                                                  Frame                 Bk + 1




                                                Background
M k +1 ( x, y )           P k+1                Image Update
                                                                    Background Image
= Pk +1 ( x, y ) − Bk ( x, y ) -
                                                      Bk
                              M
                              k + 1
                                                              Bk +1 ( x, y )
                                                              = αBk ( x, y ) + (1 − α ) Pk +1 ( x, y )
                           Post Processing



                                                  Motion Object Image




       Speed up by (1) Circuit design, (2) Paralization
Fu Jen University         Department of Electrical Engineering                         Wang, Yuan-Kai
王元凱                     Towards Embedded Computer Vision            p. 69



            Background Subtraction
                by FPGA (1/3)
         Parallelism: 7-level pipeline
         SIMD with stream processing




Fu Jen University   Department of Electrical Engineering   Wang, Yuan-Kai
王元凱                      Towards Embedded Computer Vision               p. 70



            Background Subtraction
                by FPGA (2/3)
         Hardware: Altera Cyclone II 2C35
         Design: Verilog HDL with Quartus II Tools




        Background             New Frame                    Result
              Frame rate
                • Background module : 368 fps
                • Whole system : 51 fps
Fu Jen University    Department of Electrical Engineering      Wang, Yuan-Kai
王元凱                     Towards Embedded Computer Vision                   p. 71



            Background Subtraction
                by FPGA (3/3)
         Comparisons
           PC: 2.8GHz CPU, C implementation
           FPGA can speed up 500 times
                     2.8G
                                               51


                                                           CPU
                                                           FPGA
                            25M        10

                     Clock(Hz)           FPS
Fu Jen University   Department of Electrical Engineering          Wang, Yuan-Kai
王元凱                     Towards Embedded Computer Vision            p. 72




             7. Summary and
        Future Research Directions




Fu Jen University   Department of Electrical Engineering   Wang, Yuan-Kai
王元凱                        Towards Embedded Computer Vision            p. 73



                      Summary (1/2)
         Embedded CPU is not appropriate for
          computer vision
           Although CPU has great flexibility and
            programming environment
           Its architecture is interrupt-based
                Designed for I/O-process usage
                Not for data-intensive computing, such as
                 DSP and image/video processing



Fu Jen University      Department of Electrical Engineering   Wang, Yuan-Kai
王元凱                     Towards Embedded Computer Vision            p. 74



                    Summary (2/2)
           High-performance processor is
            necessary for computer vision
             Clock rate is not the crucial point
             But SIMD and algorithm parallelism
              do




Fu Jen University   Department of Electrical Engineering   Wang, Yuan-Kai
王元凱                     Towards Embedded Computer Vision                  p. 75


                       Questions
         Embedded compute vision
           Low-cost, low-power,                           Constrained
            minimal hardware                                Resource
         High-Performance                       Contradiction
          computer vision
           Fast speed without cost,
                                                            Abundant
            power, and hardware                             Resource
            constraints
        From contradiction to convergence ?!
                Yes by multicore
Fu Jen University   Department of Electrical Engineering         Wang, Yuan-Kai
王元凱                      Towards Embedded Computer Vision            p. 76



                    Challenges (1/2)
         Algorithm decomposition
           Function decomposition
             Partition serial part and parallel part
             Data flow analysis and
              data dependency analysis
           Parallelism
             Loop unrolling
             Multithreading
             Pipeline


Fu Jen University    Department of Electrical Engineering   Wang, Yuan-Kai
王元凱                       Towards Embedded Computer Vision            p. 77



                    Challenges (2/2)
         Performance analysis method
                For efficiency improvement
         Implementation efforts
           Choose a good embedded platform for
            computer vision
             Software issues
             Hardware issues
           Programming skills
             Multi-threading


Fu Jen University     Department of Electrical Engineering   Wang, Yuan-Kai
王元凱                             Towards Embedded Computer Vision            p. 78



        Future Research Directions
         Multicore framework
           DSP + CPU : FJUCam2
               Advantage: Using C language
               Challenge: algorithm parallelism
           FPGA + CPU:
               Advantage
                       Reconfigurable multicore
                       Less Verilog, more C
               Challenge: hardware/software co-design
           GPGPU
               Advantage:
                       240~512 cores
                       Using C language
               Challenge: algorithm parallelism
Fu Jen University           Department of Electrical Engineering   Wang, Yuan-Kai
王元凱                       Towards Embedded Computer Vision                  p. 79



                      FJUCam2 (1/2)
         Next generation FJUCam (MPSoC)
         Adopt multicore technology
           DSP(Media) + CPU
                                             99/6            Image
             RAM                                             Resolution
             128MB
                                        FJUCam2              VGA

                       98/2

               64KB   FJUCam1
                                                             CIF
                                                              Processor
                       60MHz               600MHz


Fu Jen University     Department of Electrical Engineering         Wang, Yuan-Kai
王元凱                           Towards Embedded Computer Vision            p. 80



                         FJUCam2 (2/2)
           Algorithms going to be developed
            for FJUCam2
                   Color tracking
                   Gesture recognition
                   Face tracking and recognition
                   Event detection
                   Video summarization
                   Sleep monitoring
                   Distributed vision processing

Fu Jen University         Department of Electrical Engineering   Wang, Yuan-Kai
王元凱                                             Towards Embedded Computer Vision                                        p. 81



             Reconfigurable Multi-Core
            FPGA + CPU + Linux
                                           Hardware                                                        Software
             DE2_70

                                             FPGA
                                              Chip

                                               CMOS
                                                                        Nios II Processer
                                              Controller


                            Background
                 RGB to Y
                            Subtraction                          Avalon Bus


                      RAW
                                               Flash        SDRM1             SSRAM           DM9000A
                       to   Morphology
                                             Controller    Controller        Controller       Controller
                      RGB



      CMOS         CCD
                            SDRAM0             Flash       SDRAM1             SSRAM           DM9000A
                  Capture


                                                                                            Internet


                               VGA                                                                PC




Fu Jen University                         Department of Electrical Engineering                                 Wang, Yuan-Kai
王元凱                         Towards Embedded Computer Vision            p. 82




                           The End


                    Free for Any Questions



Fu Jen University       Department of Electrical Engineering   Wang, Yuan-Kai
王元凱                         Towards Embedded Computer Vision                p. 83



           Our Development Boards
          Xscale270          Beagle board                TI DSP DaVinci 6446




                    Altera DE2-70                  Celoxica RC10+DK




Fu Jen University       Department of Electrical Engineering       Wang, Yuan-Kai
王元凱                     Towards Embedded Computer Vision            p. 84



                    Robotic Vision




Fu Jen University   Department of Electrical Engineering   Wang, Yuan-Kai
王元凱                     Towards Embedded Computer Vision            p.




                    本簡報授權聲明
     此簡報內容採用   Creative Commons 「姓名標示 - 非商
      業性台灣 3.0 版」授權條款
     歡迎非商業目的的重製、散布或修改本簡報的內容,但
      請標明: (1)原作者姓名:王元凱; (2)圖標示:
     簡報中所取用的部份圖形創作乃截取自網際網路,僅供
      演講者於自由軟體推廣演講時主張合理使用,請讀者不
      得對其再行取用,除非您本身自忖亦符合主張合理使用
      之情狀,且自負相關法律責任。




Fu Jen University   Department of Electrical Engineering   Wang, Yuan-Kai

More Related Content

What's hot

Adaptive Weight Computation Processor for Medical Ultrasound Beam former: VLS...
Adaptive Weight Computation Processor for Medical Ultrasound Beam former: VLS...Adaptive Weight Computation Processor for Medical Ultrasound Beam former: VLS...
Adaptive Weight Computation Processor for Medical Ultrasound Beam former: VLS...iosrjce
 
Ramprakash Resume
Ramprakash ResumeRamprakash Resume
Ramprakash ResumeRam Prakash
 
Stereoscopic Display of Lung PET/CT DICOM Scans using Perspective
Stereoscopic Display of Lung PET/CT DICOM Scans using PerspectiveStereoscopic Display of Lung PET/CT DICOM Scans using Perspective
Stereoscopic Display of Lung PET/CT DICOM Scans using PerspectiveCassidy Chen
 
Basics of Brain-Computer Interface
Basics of Brain-Computer InterfaceBasics of Brain-Computer Interface
Basics of Brain-Computer InterfaceIsuru Jayarathne
 
Brain Computer Interface by Vipin Yadav
Brain Computer Interface by Vipin YadavBrain Computer Interface by Vipin Yadav
Brain Computer Interface by Vipin YadavVipinYadav191
 
brain-computerinterface-SUBHAM KAR
brain-computerinterface-SUBHAM KARbrain-computerinterface-SUBHAM KAR
brain-computerinterface-SUBHAM KARSubham Kar
 
A review of consumer brain computer interface devices
A review of consumer brain computer interface devicesA review of consumer brain computer interface devices
A review of consumer brain computer interface devicesRex Yuan
 
Conceptual Framework for Anthropomorphic Simulation of Human Face for Interac...
Conceptual Framework for Anthropomorphic Simulation of Human Face for Interac...Conceptual Framework for Anthropomorphic Simulation of Human Face for Interac...
Conceptual Framework for Anthropomorphic Simulation of Human Face for Interac...IRJESJOURNAL
 
Brain computerinterface-by jyot virk
Brain computerinterface-by jyot virkBrain computerinterface-by jyot virk
Brain computerinterface-by jyot virkjudge singh
 
IRJET- Blind Navigation System using Artificial Intelligence
IRJET- Blind Navigation System using Artificial IntelligenceIRJET- Blind Navigation System using Artificial Intelligence
IRJET- Blind Navigation System using Artificial IntelligenceIRJET Journal
 

What's hot (11)

Adaptive Weight Computation Processor for Medical Ultrasound Beam former: VLS...
Adaptive Weight Computation Processor for Medical Ultrasound Beam former: VLS...Adaptive Weight Computation Processor for Medical Ultrasound Beam former: VLS...
Adaptive Weight Computation Processor for Medical Ultrasound Beam former: VLS...
 
Ramprakash Resume
Ramprakash ResumeRamprakash Resume
Ramprakash Resume
 
Stereoscopic Display of Lung PET/CT DICOM Scans using Perspective
Stereoscopic Display of Lung PET/CT DICOM Scans using PerspectiveStereoscopic Display of Lung PET/CT DICOM Scans using Perspective
Stereoscopic Display of Lung PET/CT DICOM Scans using Perspective
 
Basics of Brain-Computer Interface
Basics of Brain-Computer InterfaceBasics of Brain-Computer Interface
Basics of Brain-Computer Interface
 
Neuralink white-paper. Elon Musk & Neuralink
Neuralink white-paper. Elon Musk & NeuralinkNeuralink white-paper. Elon Musk & Neuralink
Neuralink white-paper. Elon Musk & Neuralink
 
Brain Computer Interface by Vipin Yadav
Brain Computer Interface by Vipin YadavBrain Computer Interface by Vipin Yadav
Brain Computer Interface by Vipin Yadav
 
brain-computerinterface-SUBHAM KAR
brain-computerinterface-SUBHAM KARbrain-computerinterface-SUBHAM KAR
brain-computerinterface-SUBHAM KAR
 
A review of consumer brain computer interface devices
A review of consumer brain computer interface devicesA review of consumer brain computer interface devices
A review of consumer brain computer interface devices
 
Conceptual Framework for Anthropomorphic Simulation of Human Face for Interac...
Conceptual Framework for Anthropomorphic Simulation of Human Face for Interac...Conceptual Framework for Anthropomorphic Simulation of Human Face for Interac...
Conceptual Framework for Anthropomorphic Simulation of Human Face for Interac...
 
Brain computerinterface-by jyot virk
Brain computerinterface-by jyot virkBrain computerinterface-by jyot virk
Brain computerinterface-by jyot virk
 
IRJET- Blind Navigation System using Artificial Intelligence
IRJET- Blind Navigation System using Artificial IntelligenceIRJET- Blind Navigation System using Artificial Intelligence
IRJET- Blind Navigation System using Artificial Intelligence
 

Similar to Towards Embedded Computer Vision邁向嵌入式電腦視覺

“Accelerate Tomorrow’s Models with Lattice FPGAs,” a Presentation from Lattic...
“Accelerate Tomorrow’s Models with Lattice FPGAs,” a Presentation from Lattic...“Accelerate Tomorrow’s Models with Lattice FPGAs,” a Presentation from Lattic...
“Accelerate Tomorrow’s Models with Lattice FPGAs,” a Presentation from Lattic...Edge AI and Vision Alliance
 
SPYROV (IoT based Surveillance Rover)
SPYROV (IoT based Surveillance Rover)SPYROV (IoT based Surveillance Rover)
SPYROV (IoT based Surveillance Rover)IRJET Journal
 
TheThingsConference 2019 Slides of Alex Raimondi
TheThingsConference 2019 Slides of Alex RaimondiTheThingsConference 2019 Slides of Alex Raimondi
TheThingsConference 2019 Slides of Alex RaimondiSchekeb Fateh
 
Copy of report on 5 pen pc tech original
Copy of report on 5 pen pc tech originalCopy of report on 5 pen pc tech original
Copy of report on 5 pen pc tech originalutkrisht Gauttam
 
第二周課程 Arduino介紹
第二周課程 Arduino介紹第二周課程 Arduino介紹
第二周課程 Arduino介紹冠宇 陳
 
Internet of Things Presentation (IoT).pptx
Internet of Things Presentation (IoT).pptxInternet of Things Presentation (IoT).pptx
Internet of Things Presentation (IoT).pptxErYashwantJagtap
 
Design of self powered embedded wireless smart camera using multimodal video ...
Design of self powered embedded wireless smart camera using multimodal video ...Design of self powered embedded wireless smart camera using multimodal video ...
Design of self powered embedded wireless smart camera using multimodal video ...eSAT Publishing House
 
Towards Cyber-Physical System technologies over Apache VCL
Towards Cyber-Physical System technologies over Apache VCLTowards Cyber-Physical System technologies over Apache VCL
Towards Cyber-Physical System technologies over Apache VCLImre Kocsis
 
Design of smart nodes for wireless sensor network ...
Design of smart nodes for wireless sensor network                            ...Design of smart nodes for wireless sensor network                            ...
Design of smart nodes for wireless sensor network ...JOLLUSUDARSHANREDDY
 
A Survey on Automated Waste Segregation System Using Raspberry Pi and Image P...
A Survey on Automated Waste Segregation System Using Raspberry Pi and Image P...A Survey on Automated Waste Segregation System Using Raspberry Pi and Image P...
A Survey on Automated Waste Segregation System Using Raspberry Pi and Image P...IRJET Journal
 
Synthesis of nanoparticals
Synthesis of nanoparticalsSynthesis of nanoparticals
Synthesis of nanoparticalskumarnipom1
 
IRJET- IoT based Fisherman Border Alert System using GPS and WSN
IRJET- IoT based Fisherman Border Alert System using GPS and WSNIRJET- IoT based Fisherman Border Alert System using GPS and WSN
IRJET- IoT based Fisherman Border Alert System using GPS and WSNIRJET Journal
 
IRJET- IoT based Fisherman Border Alert System using GPS and WSN
IRJET- IoT based Fisherman Border Alert System using GPS and WSNIRJET- IoT based Fisherman Border Alert System using GPS and WSN
IRJET- IoT based Fisherman Border Alert System using GPS and WSNIRJET Journal
 

Similar to Towards Embedded Computer Vision邁向嵌入式電腦視覺 (20)

Towards Embedded Computer Vision - New @ 2013
Towards Embedded Computer Vision - New @ 2013Towards Embedded Computer Vision - New @ 2013
Towards Embedded Computer Vision - New @ 2013
 
Resume
ResumeResume
Resume
 
Resume
ResumeResume
Resume
 
“Accelerate Tomorrow’s Models with Lattice FPGAs,” a Presentation from Lattic...
“Accelerate Tomorrow’s Models with Lattice FPGAs,” a Presentation from Lattic...“Accelerate Tomorrow’s Models with Lattice FPGAs,” a Presentation from Lattic...
“Accelerate Tomorrow’s Models with Lattice FPGAs,” a Presentation from Lattic...
 
SPYROV (IoT based Surveillance Rover)
SPYROV (IoT based Surveillance Rover)SPYROV (IoT based Surveillance Rover)
SPYROV (IoT based Surveillance Rover)
 
kishen
kishenkishen
kishen
 
5 PEN PC TECHNOLOGY
5 PEN PC TECHNOLOGY5 PEN PC TECHNOLOGY
5 PEN PC TECHNOLOGY
 
TheThingsConference 2019 Slides of Alex Raimondi
TheThingsConference 2019 Slides of Alex RaimondiTheThingsConference 2019 Slides of Alex Raimondi
TheThingsConference 2019 Slides of Alex Raimondi
 
Copy of report on 5 pen pc tech original
Copy of report on 5 pen pc tech originalCopy of report on 5 pen pc tech original
Copy of report on 5 pen pc tech original
 
第二周課程 Arduino介紹
第二周課程 Arduino介紹第二周課程 Arduino介紹
第二周課程 Arduino介紹
 
Safety Monitoring system for a manufacturing workstation using Web Service Te...
Safety Monitoring system for a manufacturing workstation using Web Service Te...Safety Monitoring system for a manufacturing workstation using Web Service Te...
Safety Monitoring system for a manufacturing workstation using Web Service Te...
 
Internet of Things Presentation (IoT).pptx
Internet of Things Presentation (IoT).pptxInternet of Things Presentation (IoT).pptx
Internet of Things Presentation (IoT).pptx
 
Design of self powered embedded wireless smart camera using multimodal video ...
Design of self powered embedded wireless smart camera using multimodal video ...Design of self powered embedded wireless smart camera using multimodal video ...
Design of self powered embedded wireless smart camera using multimodal video ...
 
Towards Cyber-Physical System technologies over Apache VCL
Towards Cyber-Physical System technologies over Apache VCLTowards Cyber-Physical System technologies over Apache VCL
Towards Cyber-Physical System technologies over Apache VCL
 
Design of smart nodes for wireless sensor network ...
Design of smart nodes for wireless sensor network                            ...Design of smart nodes for wireless sensor network                            ...
Design of smart nodes for wireless sensor network ...
 
A Survey on Automated Waste Segregation System Using Raspberry Pi and Image P...
A Survey on Automated Waste Segregation System Using Raspberry Pi and Image P...A Survey on Automated Waste Segregation System Using Raspberry Pi and Image P...
A Survey on Automated Waste Segregation System Using Raspberry Pi and Image P...
 
Synthesis of nanoparticals
Synthesis of nanoparticalsSynthesis of nanoparticals
Synthesis of nanoparticals
 
Best Paper winning PPT
Best Paper winning PPTBest Paper winning PPT
Best Paper winning PPT
 
IRJET- IoT based Fisherman Border Alert System using GPS and WSN
IRJET- IoT based Fisherman Border Alert System using GPS and WSNIRJET- IoT based Fisherman Border Alert System using GPS and WSN
IRJET- IoT based Fisherman Border Alert System using GPS and WSN
 
IRJET- IoT based Fisherman Border Alert System using GPS and WSN
IRJET- IoT based Fisherman Border Alert System using GPS and WSNIRJET- IoT based Fisherman Border Alert System using GPS and WSN
IRJET- IoT based Fisherman Border Alert System using GPS and WSN
 

More from IEEE International Conference on Intelligent Information Hiding and Multimedia Signal Processing

More from IEEE International Conference on Intelligent Information Hiding and Multimedia Signal Processing (16)

Computer Vision in the Age of IoT
Computer Vision in the Age of IoTComputer Vision in the Age of IoT
Computer Vision in the Age of IoT
 
2014/07/17 Parallelize computer vision by GPGPU computing
2014/07/17 Parallelize computer vision by GPGPU computing2014/07/17 Parallelize computer vision by GPGPU computing
2014/07/17 Parallelize computer vision by GPGPU computing
 
老師與教學助理的互動經驗分享 1010217
老師與教學助理的互動經驗分享 1010217老師與教學助理的互動經驗分享 1010217
老師與教學助理的互動經驗分享 1010217
 
Parallel Vision by GPGPU/CUDA
Parallel Vision by GPGPU/CUDAParallel Vision by GPGPU/CUDA
Parallel Vision by GPGPU/CUDA
 
Markov Random Field (MRF)
Markov Random Field (MRF)Markov Random Field (MRF)
Markov Random Field (MRF)
 
07 approximate inference in bn
07 approximate inference in bn07 approximate inference in bn
07 approximate inference in bn
 
06 exact inference in bn
06 exact inference in bn06 exact inference in bn
06 exact inference in bn
 
08 probabilistic inference over time
08 probabilistic inference over time08 probabilistic inference over time
08 probabilistic inference over time
 
05 probabilistic graphical models
05 probabilistic graphical models05 probabilistic graphical models
05 probabilistic graphical models
 
04 Uncertainty inference(continuous)
04 Uncertainty inference(continuous)04 Uncertainty inference(continuous)
04 Uncertainty inference(continuous)
 
03 Uncertainty inference(discrete)
03 Uncertainty inference(discrete)03 Uncertainty inference(discrete)
03 Uncertainty inference(discrete)
 
01 Probability review
01 Probability review01 Probability review
01 Probability review
 
02 Statistics review
02 Statistics review02 Statistics review
02 Statistics review
 
Monocular Human Pose Estimation with Bayesian Networks
Monocular Human Pose Estimation with Bayesian NetworksMonocular Human Pose Estimation with Bayesian Networks
Monocular Human Pose Estimation with Bayesian Networks
 
Intelligent Video Surveillance with Cloud Computing
Intelligent Video Surveillance with Cloud ComputingIntelligent Video Surveillance with Cloud Computing
Intelligent Video Surveillance with Cloud Computing
 
Intelligent Video Surveillance and Sousveillance
Intelligent Video Surveillance and SousveillanceIntelligent Video Surveillance and Sousveillance
Intelligent Video Surveillance and Sousveillance
 

Recently uploaded

Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...anjaliyadav012327
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 

Recently uploaded (20)

Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 

Towards Embedded Computer Vision邁向嵌入式電腦視覺

  • 1. 本著作採用創用CC 「姓名標示」授權條款台灣3.0版 Towards Embedded Computer Vision Wang, Yuan-Kai(王元凱) Electronic Engineering Department, Fu Jen Univ. (輔仁大學電機工程系) Email: ykwang@mails.fju.edu.tw URL: http://www.ykwang.tw 2010/05/14
  • 2. 王元凱 Towards Embedded Computer Vision p. 2 Contents 1. Embedded Systems 2. Embedded Computer Vision 3. Entertainment Robot (CPU) 4. Embedded Vision Sensor (CPU) 5. Portable Vision Device (DSP) 6. Smart Video Surveillance (FPGA) 7. Summary & Outlook Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 3. 王元凱 Towards Embedded Computer Vision p. 3 1. Embedded Systems Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 4. 王元凱 Towards Embedded Computer Vision p. 4 Evolution of Computer Past Now Future • Embedded System is a computer that is • Special-purpose • Light, Thin, Short, Small ⇒ Limited resources Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 5. 王元凱 Towards Embedded Computer Vision p. 5 Embedded Systems "Without" Sensors 資料來源:資策會MIC ITIS計畫整理 Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 6. 王元凱 Towards Embedded Computer Vision p. 6 Embedded Systems "With" Sensors Wii Roomba GPS Exoskeleton Navigation Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 7. 王元凱 Towards Embedded Computer Vision p. 7 Embedded Systems "With" Image Sensors DARPA Augmented Grand Reality Challenge Surface Intelligent Computing Robot Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 8. 王元凱 Towards Embedded Computer Vision p. 8 2. Embedded Computer Vision (ECV) Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 9. 王元凱 Towards Embedded Computer Vision p. 9 What Is ECV  Embedded compute vision  Implements computer vision algorithms on low-cost, low-power, constrained hardware  Constrained hardware  Low-speed CPU  Low capacity memory  No floating-point (FPU)  Low-resolution image sensor Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 10. 王元凱 Towards Embedded Computer Vision p. 10 Embedded Computer Vision  Embedded System + Camera + Computer Vision Algorithm Image Image Image Capturing Processing Recognition Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 11. 王元凱 Towards Embedded Computer Vision p. 11 Why Smart Camera (1/2)  Front-end processing  An example for video surveillance Classical stationary camera Smart camera IOImage Inc. Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 12. 王元凱 Towards Embedded Computer Vision p. 12 Why Smart Camera (2/2)  In-node processing: Vision sensor network  Distributed vision system  Camera networks  Use multiple cameras to analyze the scene  Benefit  Less problems with occlusion  Challenge  Distributed processing and reasoning Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 13. 王元凱 Towards Embedded Computer Vision p. 13 International Activities (1/2)  Special conferences  IEEE Int. Conf. Distributed Smart Cameras  Special journal issues  IEEE Journal of Selected Topics in Signal Processing, vol. 2, no. 4, Aug. 2008  EURASIP Journal on Embedded Systems,  Short courses in important CV conferences  CVPR07&08: Distributed vision processing in smart camera networks  ESC07: Embedded CV and smart cameras  ICASSP09: Distributed processing in smart cameras Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 14. 王元凱 Towards Embedded Computer Vision p. 14 International Activities (2/2)  Research projects and Lab.  Princeton Univ./Georgia Tech.: Embedded Systems Lab., Wayne Wolf  Stanford Univ. Wireless sensor networks Lab.  UCLA, CMU, MIT  Delft Univ. of Technology SmartCam Project  Graz Univ. of Technology Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 15. 王元凱 Towards Embedded Computer Vision p. 15 Three Ways for ECV  CPU (Central Processing Unit)  ARM, PowerPC  DSP (Digital Signal Processor)  TI, ADI, NXP  FPGA (Field Programmable Gate Array)  Altera, Xilinx Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 16. 王元凱 Towards Embedded Computer Vision p. 16 Embedded CPU  Embedded CPU = Low-power CPU  ARM  Drawbacks of embedded CPU for computer vision  No FPU, usually fixed-point  Speed: 60MHz ~ 600MHz  Therefore it is usually developed for (video) sensor networks Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 17. 王元凱 Towards Embedded Computer Vision p. 17 Embedded CPU: MeshEye  Stanford MeshEye (http://wsnl.stanford.edu/smartcam.html)  ARM 7 (55MHz), ZigBee node  3 image sensors "MeshEye:a hybrid-resolution  30x30 grayscale x 2 smart camera intelligent in distributed mote for applications  640x480 color x 1 surveillance", IPSN-SPOTS, 2007 Object detection Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 18. 王元凱 Towards Embedded Computer Vision p. 18 Embedded CPU: CMUCam  CMU CMUcam3  ARM7  ECV applications  Robotic vision, color tracking, histogram processing, face detection (http://www.cmucam.org) Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 19. 王元凱 Towards Embedded Computer Vision p. 19 DSP  DSP is good for signal processing  SIMD structure for filtering processing  However, Computer Vision needs extreme DSP + video port  Media processors: powerful DSP  Parallelism: VLIW  Faster memory, DMA  Wide data bus  ECV applications  Face detection, face recognition, license plate recognition, vehicle tacking, Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 20. 王元凱 Towards Embedded Computer Vision p. 20 DSP : TRICam  "Visual surveillance on DSP-based embedded platform," Graz Univ. of Technology, 2008(Phd. dissertation)  TI C6414 (600MHz)  Applications: Adaboost face detection, vehicle detection, license plate detection Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 21. 王元凱 Towards Embedded Computer Vision p. 21 FPGA (1/3)  Customizable hardware for parallelism  Reconfigurable computing  Flexible hardware design by HDL codes on FPGA. Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 22. 王元凱 Towards Embedded Computer Vision p. 22 FPGA (2/3)  "Hardware, Design and Implementation Issues on a FPGA-Based Smart Camera," ICDSC, 2007 Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 23. 王元凱 Towards Embedded Computer Vision p. 23 FPGA (3/3)  ECV application: object tracking  Template matching by MAE (Maximum Absolute Error) Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 24. 王元凱 Towards Embedded Computer Vision p. 24 Hybrid: MCU+CPLD  UCLA Cyclops http://research.cens.ucla.edu/projec ts/2007/Multiscaled_Actuated_Sens  MCU: Atmega128 ing/Cyclops/  CPLD: image processing  ECV app.: Hand gesture recognition Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 25. 王元凱 Towards Embedded Computer Vision p. 25 Hybrid: CPU+DSP (1/2)  "Distributed Embedded Smart Cameras for Surveillance Applications," IEEE Computer, 2006. Developed for traffic surveillance Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 26. 王元凱 Towards Embedded Computer Vision p. 26 Hybrid: CPU+DSP (2/2) Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 27. 王元凱 Towards Embedded Computer Vision p. 27 SOC - Xetal  Philips: Xetal SIMD processor  InCa  WiCa  Xetal3 + 8051  Stereo sensors (640x480)  50 GOPS @ 600mWatt  ZigBee node  C++ programming  Used by Stanford Univ., Delft University of Technology  ECV Applications: edge detection, face detection, hough transform, gesture recognition, depth estimation, ... Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 28. 王元凱 Towards Embedded Computer Vision p. 28 Challenges for ECV  Algorithm refinement  Parallel computation  Function partition, Multi-threading  Stream processing  Memory hierarchy optimization  Hardware design  Pipeline, SIMD, board design  Optimized programming skills  Fixed-point arithmetic  Memory management  Intrinsic commands Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 29. 王元凱 Towards Embedded Computer Vision p. 29 Our Current Results  Entertainment robot (CPU)  Sony AIBO robot with 64-bit RISC CPU  Application: Game playing, Face detection/recognition, Facial expression recognition  Smart vision sensor: (CPU)  Self-made sensor with ARM7  Application : Face detection, Robot  Portable vision device (DSP)  Self-made device with Dualcore DSP  Application: gesture recognition  Smart video surveillance (FPGA)  Background subtraction with FPGA  Application: video surveillance Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 30. 王元凱 Towards Embedded Computer Vision p. 30 3. Entertainment Robot CPU Solution Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 31. 王元凱 Towards Embedded Computer Vision p. 31 Two AIBO Models  Hardware ERS-7  CPU: 64-bit RISC 576 MHz/192Mhz  RAM: 64MB/32MB  Flash: 32MB  20 motors  Camera:  CMOS sensor  Resolution: 280 × 160 ERS220A  10 fps Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 32. 王元凱 Towards Embedded Computer Vision p. 32 Sensors Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 33. 王元凱 Towards Embedded Computer Vision p. 33 Software  Operating System  Aperios (Embedded Linux)  Development tools  C++  GCC 3.4.4 on Linux  Libraries: OpenR, Tekkotsu Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 34. 王元凱 Towards Embedded Computer Vision p. 34 Our AIBO Pet  Rolling Dice  Face Detection  Face Recognition  Facial Expression Recognition Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 35. 王元凱 Towards Embedded Computer Vision p. 35 Rolling Dice (1/3) Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 36. 王元凱 Towards Embedded Computer Vision p. 36 Rolling Dice (2/3)  Detect the dice by color detection  Using Gaussian mixture model (GMM) and EM algorithm to model colors p( x | c) = 1 N 1 ( − ( x − mi )T ∑i−1 ( x − mi )) ∑ω i =1 i 2π ∑i 1/2 e 2 Original Detection image result GMM Morphology+CCL Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 37. 王元凱 Towards Embedded Computer Vision p. 37 Rolling Dice (3/3) Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 38. 王元凱 Towards Embedded Computer Vision p. 38 Face Detection (1/2) Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 39. 王元凱 Towards Embedded Computer Vision p. 39 Face Detection (2/2)  Algorithm: Adaboost face detection  Proposed by Viola and Jones in 2001  Cascaded weak classifiers Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 40. 王元凱 Towards Embedded Computer Vision p. 40 Face Recognition (1/3) Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 41. 王元凱 Towards Embedded Computer Vision p. 41 Face Recognition (2/3)  Eigenface approach (PCA) Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 42. 王元凱 Towards Embedded Computer Vision p. 42 Face Recognition (3/3) Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 43. 王元凱 Towards Embedded Computer Vision p. 43 Facial Expression Recognition 1/3 Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 44. 王元凱 Towards Embedded Computer Vision p. 44 Facial Expression Recognition 2/3 Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 45. 王元凱 Towards Embedded Computer Vision p. 45 Facial Expression Recognition 3/3  3 expressions  Happy, Surprise, Angry  Video-based method  Feature: optical flow, common vector flow  Classifier: Hidden Markov model  Well done in small-resolution images  140 * 120 (~ QCIF, 176 * 144) Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 46. 王元凱 Towards Embedded Computer Vision p. 46 4. Embedded Vision Sensor CPU Solution Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 47. 王元凱 Towards Embedded Computer Vision p. 47 FJUCam  It is a self-made camera  Camera module + embedded system  3S: Small, Smart, Sensing  Components of the FJUCam  ARM7 TDMI  32-bit, 60MHz, 64KB RAM, 128KB ROM  CMOS sensor: OV6620 (CIF 50fps)  CIF(352x288), QCIF, 8-bit RGB Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 48. 王元凱 Towards Embedded Computer Vision p. 48 What Is FJUCam (1/3) • Weight: 35gm • Power sources: •Size: • 5V DC current 6 x 4.5 x 5 (cm) • 5V Cell Battery (W x H x D) • Power consumption: 1W Three Modules 1. Main board, 2. Lens module 3. Storage module Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 49. 王元凱 Towards Embedded Computer Vision p. 49 What Is FJUCam (2/3) Power Main Board Button/ISP Serial port Switch ARM7 Microcontroller Frame buffer/FIFO Front Side Other interfaces: RS232x2, SPI, I2C, GPIO Back Side 49 Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 50. 王元凱 Towards Embedded Computer Vision p. 50 What Is FJUCam (2/3) Lens Module Storage Module Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 51. 王元凱 Towards Embedded Computer Vision p. 51 Software  Development environment  C Language  PC Windows + Cygwin + GCC  cc3 library (open source developed by CMU) Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 52. 王元凱 Towards Embedded Computer Vision p. 52 Face Detection  The Adaboost algorithm for face detection  Proposed by Viola and Jones in 2001  Cascaded weak classifiers(21 cascades)  Algorithm refinement  Reduced to 5 cascades  Fixed-point arithmetic  Stream processing for only 64KB memory utilization Image FJUCam Display Face Detection Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 53. 王元凱 Towards Embedded Computer Vision p. 53 Cyclops Robot  Color tracking Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 54. 王元凱 Towards Embedded Computer Vision p. 54 5. Portable Vision Device: X-EYE DSP Solution Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 55. 王元凱 Towards Embedded Computer Vision p. 55 Goal of X-Eye 55 Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 56. 王元凱 Towards Embedded Computer Vision p. 56 Components 觸控面板 顯示器 移動電源 自製 Camera USB 外殼 USB 筆電 連接線 Hub BeagleBoard 微投影機 SD卡 USB-WIFI卡 鍵盤 USB-RS232 讀卡機 Fu Jen University 控制線 Department of Electrical Engineering 滑鼠 Wang, Yuan-Kai
  • 57. 王元凱 Towards Embedded Computer Vision p. 57 1st Generation Prototype Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 58. 王元凱 Towards Embedded Computer Vision p. 58 Photo Mode Capture Command: capture images Switch Command: Mode switch Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 59. 王元凱 Towards Embedded Computer Vision p. 59 Manage Mode Original Photos Next Command Previous Command Switch Command 2(to photo) Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai 59
  • 60. 王元凱 Towards Embedded Computer Vision p. 60 Hardware (1/2) USER RESET OMAP3530 Processor Peripheral I/O •600MHz Cortex-A8 •NEON+VFPv3 •USB Host •16KB/16KB L1 •256KB L2 •JTAG •430MHz C64x+ DSP •32K/32K L1 •DVI-D video out •48K L1D •32K L2 •S-Video out •Power VR SGX GPU •64K on-chip RAM •SD/MMC+ POP Memory •256MB LPDDR RAM •Stereo in/out •256MB NAND flash •RS-232 serial1 •Alternate power •USB 2.0 HS OTG 7.6 cm Fu Jen University 60 Department of Electrical Engineering Wang, Yuan-Kai
  • 61. 王元凱 Towards Embedded Computer Vision p. 61 Hardware (2/2) Fu Jen University Department of Electrical Engineering 2010.04.25 Wang, Yuan-Kai 61
  • 62. 王元凱 Towards Embedded Computer Vision p. 62 Software (1/2) Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 63. 王元凱 Towards Embedded Computer Vision p. 63 Software (2/2) 軟體名稱 版本 功用簡述 Gesture Command 1.0 手勢辨識 Module OpenCV 1.0 影像處理 FFMpeg 0.5.1 視(音)訊邊解碼 QT 4.6.2 視窗介面 WinXP下安裝Linux VMWare 6.5.3 工具 Ubuntu (host) 9.04 安裝交叉編譯環境 Ubuntu (client) 9.10 BB上的filesystem Kernel (client) Fu Jen University 2.6.29 Department of Electrical Engineering BB上的kernel 2010.04.25 X-Eye Wang, Yuan-Kai 63
  • 64. 王元凱 Towards Embedded Computer Vision p. 64 Algorithm (1/2)  Gaussian Mixture Model (GMM)  Model four colors 1 N 1 ( − ( x − mi )T Covi−1 ( x − mi )) p ( x | c) = ∑ ωi e 2 i =1 2π || Covi ||1/2  Expectation Maximization (EM)  Parameter estimation of GMM E Step M Step N 1 ∑ E(z N 1 ω p( x j | m , C ) ωit +1 = t +1 ) m = ∑ E(z t t t )x j E ( zij ) = Nω t +1 i i i ij i ij i N j =1 i j =1 ∑ ω tp p( x j | mtp , C tp ) =C t +1 1 t +1 ∑ N E ( zij )[( x j − mit +1 )( x j − mit +1 )T ] p =1 N ωi i j =1 Fu Jen University 64 Department of Electrical Engineering Wang, Yuan-Kai
  • 65. 王元凱 Towards Embedded Computer Vision p. 65 Algorithm (2/2)  Color Identification  c ˆ = arg max P( x | c j ), j 1 ~ k cj  Performance optimization by Look Up Table (LUT) for real-time  Gesture Recognition  Four gestures: capture, switch, next, previous, Fu Jen University 65 Department of Electrical Engineering Wang, Yuan-Kai
  • 66. 王元凱 Towards Embedded Computer Vision p. 66 6. Smart Video Surveillance FPGA Solution Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 67. 王元凱 Towards Embedded Computer Vision p. 67 Our Experience Background subtraction, ... • 2.8 GHz Intel CPU • Software: C/C++ FPGA • Frame rate: 10 fps Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 68. 王元凱 Towards Embedded Computer Vision p. 68 Background Subtraction Current Frame Bk + 1 Background M k +1 ( x, y ) P k+1 Image Update Background Image = Pk +1 ( x, y ) − Bk ( x, y ) - Bk M k + 1 Bk +1 ( x, y ) = αBk ( x, y ) + (1 − α ) Pk +1 ( x, y ) Post Processing Motion Object Image Speed up by (1) Circuit design, (2) Paralization Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 69. 王元凱 Towards Embedded Computer Vision p. 69 Background Subtraction by FPGA (1/3)  Parallelism: 7-level pipeline  SIMD with stream processing Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 70. 王元凱 Towards Embedded Computer Vision p. 70 Background Subtraction by FPGA (2/3)  Hardware: Altera Cyclone II 2C35  Design: Verilog HDL with Quartus II Tools Background New Frame Result Frame rate • Background module : 368 fps • Whole system : 51 fps Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 71. 王元凱 Towards Embedded Computer Vision p. 71 Background Subtraction by FPGA (3/3)  Comparisons  PC: 2.8GHz CPU, C implementation  FPGA can speed up 500 times 2.8G 51 CPU FPGA 25M 10 Clock(Hz) FPS Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 72. 王元凱 Towards Embedded Computer Vision p. 72 7. Summary and Future Research Directions Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 73. 王元凱 Towards Embedded Computer Vision p. 73 Summary (1/2)  Embedded CPU is not appropriate for computer vision  Although CPU has great flexibility and programming environment  Its architecture is interrupt-based  Designed for I/O-process usage  Not for data-intensive computing, such as DSP and image/video processing Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 74. 王元凱 Towards Embedded Computer Vision p. 74 Summary (2/2)  High-performance processor is necessary for computer vision  Clock rate is not the crucial point  But SIMD and algorithm parallelism do Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 75. 王元凱 Towards Embedded Computer Vision p. 75 Questions  Embedded compute vision  Low-cost, low-power, Constrained minimal hardware Resource  High-Performance Contradiction computer vision  Fast speed without cost, Abundant power, and hardware Resource constraints From contradiction to convergence ?! Yes by multicore Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 76. 王元凱 Towards Embedded Computer Vision p. 76 Challenges (1/2)  Algorithm decomposition  Function decomposition  Partition serial part and parallel part  Data flow analysis and data dependency analysis  Parallelism  Loop unrolling  Multithreading  Pipeline Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 77. 王元凱 Towards Embedded Computer Vision p. 77 Challenges (2/2)  Performance analysis method  For efficiency improvement  Implementation efforts  Choose a good embedded platform for computer vision  Software issues  Hardware issues  Programming skills  Multi-threading Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 78. 王元凱 Towards Embedded Computer Vision p. 78 Future Research Directions  Multicore framework  DSP + CPU : FJUCam2  Advantage: Using C language  Challenge: algorithm parallelism  FPGA + CPU:  Advantage  Reconfigurable multicore  Less Verilog, more C  Challenge: hardware/software co-design  GPGPU  Advantage:  240~512 cores  Using C language  Challenge: algorithm parallelism Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 79. 王元凱 Towards Embedded Computer Vision p. 79 FJUCam2 (1/2)  Next generation FJUCam (MPSoC)  Adopt multicore technology  DSP(Media) + CPU 99/6 Image RAM Resolution 128MB FJUCam2 VGA 98/2 64KB FJUCam1 CIF Processor 60MHz 600MHz Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 80. 王元凱 Towards Embedded Computer Vision p. 80 FJUCam2 (2/2)  Algorithms going to be developed for FJUCam2  Color tracking  Gesture recognition  Face tracking and recognition  Event detection  Video summarization  Sleep monitoring  Distributed vision processing Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 81. 王元凱 Towards Embedded Computer Vision p. 81 Reconfigurable Multi-Core  FPGA + CPU + Linux Hardware Software DE2_70 FPGA Chip CMOS Nios II Processer Controller Background RGB to Y Subtraction Avalon Bus RAW Flash SDRM1 SSRAM DM9000A to Morphology Controller Controller Controller Controller RGB CMOS CCD SDRAM0 Flash SDRAM1 SSRAM DM9000A Capture Internet VGA PC Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 82. 王元凱 Towards Embedded Computer Vision p. 82 The End Free for Any Questions Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 83. 王元凱 Towards Embedded Computer Vision p. 83 Our Development Boards Xscale270 Beagle board TI DSP DaVinci 6446 Altera DE2-70 Celoxica RC10+DK Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 84. 王元凱 Towards Embedded Computer Vision p. 84 Robotic Vision Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai
  • 85. 王元凱 Towards Embedded Computer Vision p. 本簡報授權聲明  此簡報內容採用 Creative Commons 「姓名標示 - 非商 業性台灣 3.0 版」授權條款  歡迎非商業目的的重製、散布或修改本簡報的內容,但 請標明: (1)原作者姓名:王元凱; (2)圖標示:  簡報中所取用的部份圖形創作乃截取自網際網路,僅供 演講者於自由軟體推廣演講時主張合理使用,請讀者不 得對其再行取用,除非您本身自忖亦符合主張合理使用 之情狀,且自負相關法律責任。 Fu Jen University Department of Electrical Engineering Wang, Yuan-Kai