SlideShare a Scribd company logo
1 of 25
Download to read offline
People Tracking via a Modified CAMSHIFT
                   Algorithm
                (DCABES 2009)



                  Fahad Fazal Elahi Guraya, Pierre-Yves Bayle
                           and Faouzi Alaya Cheikh

            Department of Computer Science and Media Technology,
                  Gjovik University College Gjovik , Norway

                         Email: fahad.guraya@hig.no
1
Outline
     Introduction
     Problem Statement
     Tracking Algorithms
     T ki Al ith
     Mean-shift tracking
     CAMSHIFT tracking
     Extended CAMSHIFT tracking
     Implementation
     Experimental Results
        p
     Conclusion

2
    fahad.guraya@hig.no           Gjøvik University College Norway
Introduction




     Multi-Camera Cooperated Object Detection, Tracking, and Event Analysis
3
    fahad.guraya@hig.no                               Gjøvik University College Norway
Introduction (Applications)
I t d ti (A li ti         )
      Motion-based recognition:
                       g
         Human identification based on gait, automatic object detection, etc.
      Automated Video surveillance:
         Monitoring a scene to detect suspicious activities or unlikely events
      Video indexing:
         Automatic annotation and retrieval of the videos in multimedia databases
      Human-computer interaction:
         Gesture recognition, eye gaze tracking for data input to computers, etc.
      Traffic monitoring:
         Real-time gathering of traffic statistics to direct traffic flow
      Vehicle navigation:
         Video-based path planning and obstacle avoidance capabilities


4   fahad.guraya@hig.no                                      Gjøvik University College Norway
Problem St t
    P bl    Statement
                    t

       Frame 1              Frame 2      Frame 3             Frame 4




      Can we estimate the position of the object?
      Can we estimate its velocity?
      Can we predict future positions?
           e


5     fahad.guraya@hig.no                      Gjøvik University College Norway
Problem Statement
       Given a Sequence of Images/frames
       Find center of moving object
       Camera might be moving or stationary

    We Assume:
          We can find object in individual frames
    The Problem:
          Track across multiple frames

       A fundamental problem in the field of video analysis

6   fahad.guraya@hig.no                             Gjøvik University College Norway
Tracking Algorithms


     a)     Point Tracking by Bayesian Filters
            (Differ in representing probability densities (pdf))
            Kalman Filters
            Particle Filters
            Grid-based approach
            Multi-hypothesis(MHT) filter
     b)     Kernel Tracking
            Mean-shift tracking
            Continuously Adaptive Mean-shift (CAMSHIFT)
            Modified CAMSHIFT with Motion
            Kanade-Lucas-Tomasi Feature Tracker (KLT)
            Support Vector Machines (SVM) Tracker
            Eigen Tracking
     c,d)   SilhouetteTracking
            Contour evolution state space models
            Contour evolution by variational methods
            Shape Matching hough transform
7
    fahad.guraya@hig.no                                            Gjøvik University College Norway
Mean shift Tracking
    • Introduced by Y. Cheng. in “Mean Shift, Mode Seeking,
      and Clustering” PAMI 1995
    • Mean shift algorithm climbs the gradient of a probability
      distribution to find the nearest domain mode (peak)




      @R. Collins
      @R C lli CVPR 2003                  @Comaniciu PAMI 2003
                                          @C    i i

8      fahad.guraya@hig.no                    Gjøvik University College Norway
Mean shift Tracking
M     hift T ki
    Given a likelihood image, find the optimal location of the
    tracked object
    The likelihood image is generated by computing, at each pixel,
    the probability that the pixel belongs to the object based on the
    distribution f h f
    di ib i of the feature
    Obtain mean-shift vector y by maximizing the Bhattacharyya
    coefficient, which is equivalent to minimizing the di
       ffi i      hi h i     i l         i i i i h distance

    maximize:

    where
                                                         Bhattacharyya
                                                         coefficient for a
9                                                        single bin u
Continuously Adaptive Mean-SHIFT
(CAMSHIFT) Tracking
      Modified form of Mean-shift tracking algorithm
      Introduced by GR Bradski. in “Computer vision face tracking for use in a perceptual
      user interface”. Intel Technology Jounal 1998
      Differs from Mean-shift: Search window adjusts itself in size
                                                               size.
      If we have well-segmented distributions(face) then CAMSHIFT will automatically
      adjust itself for the size of face as the person moves closer or further from camera.
       search           Re-centre                                            Current search
       window           the search            Both search window              window size is
        size              window,             size and centre are            the object size;
       M *N             rescale it
                               l its                 stable                  its
                                                                             it centre is the
                                                                                    t i th
        centre              size                                             centre of object
       ( xc , y c )
                                                     Target

                                                    End                Yes Resolution
     Initialization       Control
                                                  Condition                    Found
                                                  Satisfied?
10                                                      No
CAMSHIFT Tracking
     1.   Choose the initial location of the 2D mean shift search window
     2.   Calculate the color probability distribution in the 2D region centered at the
          search window location in an ROI slightly larger than mean shift window size
     3.
     3    Run Mean Shift algorithm to find the search window center Store the zeroth
                                                             center.
          moment(M00) area or size and centriod location
     4.   For the next video frame, center the search window at the mean location
          stored in Step-3 and set the window size to a function of the zeroth moment
          M00 found there. Go to Step-2.




11   fahad.guraya@hig.no
Extended CAMSHIFT tracking
      Optical Flow computation by Lucas-Kanade Method
      Brightness Constancy, Temporal Persistance, Spatial
      Coherence




              Video Frame
              Vid F                   Motion Direction
                                      M ti Di ti
12
     fahad.guraya@hig.no                      Gjøvik University College Norway
Extended CAMSHIFT tracking
     Purposed Method: Compute motion information of the
     moving objects and add it linearly to the back-projected
           g j                        y             p j
     color histogram
     Steps:
        p
       Select initial location of the person i.e ROI (Region of interest)
       Compute equalized histogram of the ROI
            p       q              g
       Compute back projection image using the current histogram for
       the next frame
       Compute the motion of the blob using Lucas-Kanade algorithm
       Update the back-projection image using motion information
         Combine direction of motion with back projection image linearly, give
         more weightage to pixels moving in same direction as in the previous
         frame and less weightage to pixels moving in the other directions
                           g g       p           g

13
       Use updated back-projection image to track object/s in the new
       frame
Extended CAMSHIFT Tracking
        Pros:
           Computationally efficient (robust statistics and probability
           distributions) -Working in real-time: fast processing
                        )         g             : ast p         g
           Robust to image noise
           Robust to distractors (e.g. other objects)
                                 ( g           j )
           Irregular object motion (linear/non-linear)
           Robust to partial/full occlusion
                      p
           Robust to background-foreground color
        Cons:
           Need manual input to initialize template window


14
     fahad.guraya@hig.no                            Gjøvik University College Norway
Implementation
   p
     OpenCV Computer Vision Library/ Visual C++




15
       fahad.guraya@hig.no                        Gjøvik University College Norway
Implementation
 I l     t ti

      Video
     Frames
                     Background       Post Processing
                      Modeling      (Shadow Removal)




                                                          Object
                                                          Tracks
                    Object/People     Object/People
                     Detection          Tracking



16
        fahad.guraya@hig.no              Gjøvik University College Norway
Implementation(Background Modeling)
     Recursive techniques
                     q
       Running Gaussian average (RGA)
       Gaussian mixture model (GMM)
                              (      )
       GMM with adaptive number of Gaussians
       (AGMM)
       Approximated median filtering (AMF)

     Non-recursive techniques
       Median filtering
       Mediod filtering
       Eigenbackgrounds (EigBG)

17      fahad.guraya@hig.no
                                               Gjøvik University College Norway
Implementation (GMM)
     Data is represented by a mixture of N Gaussians
     Different Gaussians represent different colors




18
        fahad.guraya@hig.no                     Gjøvik University College Norway
Implementation(Shadows Removal)


                           We want to realize this!
Traditional C t
T diti    l Contour




19   fahad.guraya@hig.no       Gjøvik University College Norway
Implementation(Shadows Removal)
     Original background (B): Brightness and chromaticity
     similar to those of the same pixel in the background image.
      Shaded background (S): Similar chromaticity but lower
     brightness.




     Moving foreground object (F): Chromaticity different from
            g      g            j    ( )          y
     the expected values in the background image.


20
       fahad.guraya@hig.no                      Gjøvik University College Norway
Experimental Results
E    i   t lR    lt
Shadow Removal                            Morphological filtering
                                              Closing operation
                                                 Structuring element: 3x3
                                              Removing small regions




 Background subtraction Shadows removal      Before          After




21
Experimental Results
     E    i   t lR    lt
        Object/People Detection
           Contours detection
           Bounding box




            Contours and bounding          Contours and bounding boxes for 2
            boxes for 2 separate persons   persons starting to overlap


22
       fahad.guraya@hig.no                             Gjøvik University College Norway
Experimental Results
   p
 Back projection images (with/without) motion information




       Backprojection person.1 using color feature      Backprojection person.2  using color feature




23    Backprojection person.1 using color and motion    Backprojection person.2 using color and motion 
      features                                          features
Experimental Results
     Tracking Results using CamShift + Optical Flow




                                 Tracking windows around
                                 moving persons




Tracking Without Motion Information                        Tracking Using Motion Information
Conclusion
      A modified CAMSHIFT algorithm is presented
      The Algorithm use color and motion features
      The Algorithm is tested d ifi d for
      Th Al ith i t t d and verified f a set of videos
                                                 t f id
      As future work the algorithm should be tested/verified for
      indoor/outdoor id
      i d / d videos with strong shadows and partial/full
                               ih         hd        d     i l/f ll
      occlusion of objects
      The l i h h ld l be
      Th algorithm should also b tested and modified f
                                       d d difi d for
      multiple objects and multiple camera tracking



25
     fahad.guraya@hig.no                       Gjøvik University College Norway

More Related Content

What's hot

Practical Digital Image Processing 3
 Practical Digital Image Processing 3 Practical Digital Image Processing 3
Practical Digital Image Processing 3Aly Abdelkareem
 
Template Matching - Pattern Recognition
Template Matching - Pattern RecognitionTemplate Matching - Pattern Recognition
Template Matching - Pattern RecognitionMustafa Salam
 
Introduction to Computer Vision
Introduction to Computer VisionIntroduction to Computer Vision
Introduction to Computer VisionComponica LLC
 
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...ijceronline
 
Concept of stereo vision based virtual touch
Concept of stereo vision based virtual touchConcept of stereo vision based virtual touch
Concept of stereo vision based virtual touchVivek Chamorshikar
 
Video Forgery Detection: Literature review
Video Forgery Detection: Literature reviewVideo Forgery Detection: Literature review
Video Forgery Detection: Literature reviewTharindu Rusira
 
Object Detection for Service Robot Using Range and Color Features of an Image
Object Detection for Service Robot Using Range and Color Features of an ImageObject Detection for Service Robot Using Range and Color Features of an Image
Object Detection for Service Robot Using Range and Color Features of an ImageIJCSEA Journal
 
Practical Digital Image Processing 5
Practical Digital Image Processing 5Practical Digital Image Processing 5
Practical Digital Image Processing 5Aly Abdelkareem
 
A Survey on Approaches for Object Tracking
A Survey on Approaches for Object TrackingA Survey on Approaches for Object Tracking
A Survey on Approaches for Object Trackingjournal ijrtem
 
Object detection for service robot using range and color features of an image
Object detection for service robot using range and color features of an imageObject detection for service robot using range and color features of an image
Object detection for service robot using range and color features of an imageIJCSEA Journal
 
Image segmentation with deep learning
Image segmentation with deep learningImage segmentation with deep learning
Image segmentation with deep learningAntonio Rueda-Toicen
 
Improved hand tracking system
Improved hand tracking systemImproved hand tracking system
Improved hand tracking systemkishor2691
 
A Comparison of People Counting Techniques via Video Scene Analysis
A Comparison of People Counting Techniques viaVideo Scene AnalysisA Comparison of People Counting Techniques viaVideo Scene Analysis
A Comparison of People Counting Techniques via Video Scene AnalysisPoo Kuan Hoong
 
Features image processing and Extaction
Features image processing and ExtactionFeatures image processing and Extaction
Features image processing and ExtactionAli A Jalil
 
Adaptive Disparity Estimation for Auto Convergence of Region of Interest in a...
Adaptive Disparity Estimation for Auto Convergence of Region of Interest in a...Adaptive Disparity Estimation for Auto Convergence of Region of Interest in a...
Adaptive Disparity Estimation for Auto Convergence of Region of Interest in a...ijcga
 
Ray tracing converted (1)
Ray tracing converted (1)Ray tracing converted (1)
Ray tracing converted (1)achnobghiti
 

What's hot (19)

Practical Digital Image Processing 3
 Practical Digital Image Processing 3 Practical Digital Image Processing 3
Practical Digital Image Processing 3
 
291A_report_Hannah-Deepa-YunSuk
291A_report_Hannah-Deepa-YunSuk291A_report_Hannah-Deepa-YunSuk
291A_report_Hannah-Deepa-YunSuk
 
Template Matching - Pattern Recognition
Template Matching - Pattern RecognitionTemplate Matching - Pattern Recognition
Template Matching - Pattern Recognition
 
Introduction to Computer Vision
Introduction to Computer VisionIntroduction to Computer Vision
Introduction to Computer Vision
 
Survey 1 (project overview)
Survey 1 (project overview)Survey 1 (project overview)
Survey 1 (project overview)
 
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
 
Concept of stereo vision based virtual touch
Concept of stereo vision based virtual touchConcept of stereo vision based virtual touch
Concept of stereo vision based virtual touch
 
Video Forgery Detection: Literature review
Video Forgery Detection: Literature reviewVideo Forgery Detection: Literature review
Video Forgery Detection: Literature review
 
Object Detection for Service Robot Using Range and Color Features of an Image
Object Detection for Service Robot Using Range and Color Features of an ImageObject Detection for Service Robot Using Range and Color Features of an Image
Object Detection for Service Robot Using Range and Color Features of an Image
 
Practical Digital Image Processing 5
Practical Digital Image Processing 5Practical Digital Image Processing 5
Practical Digital Image Processing 5
 
A Survey on Approaches for Object Tracking
A Survey on Approaches for Object TrackingA Survey on Approaches for Object Tracking
A Survey on Approaches for Object Tracking
 
Object detection for service robot using range and color features of an image
Object detection for service robot using range and color features of an imageObject detection for service robot using range and color features of an image
Object detection for service robot using range and color features of an image
 
Image segmentation with deep learning
Image segmentation with deep learningImage segmentation with deep learning
Image segmentation with deep learning
 
Presentation of Visual Tracking
Presentation of Visual TrackingPresentation of Visual Tracking
Presentation of Visual Tracking
 
Improved hand tracking system
Improved hand tracking systemImproved hand tracking system
Improved hand tracking system
 
A Comparison of People Counting Techniques via Video Scene Analysis
A Comparison of People Counting Techniques viaVideo Scene AnalysisA Comparison of People Counting Techniques viaVideo Scene Analysis
A Comparison of People Counting Techniques via Video Scene Analysis
 
Features image processing and Extaction
Features image processing and ExtactionFeatures image processing and Extaction
Features image processing and Extaction
 
Adaptive Disparity Estimation for Auto Convergence of Region of Interest in a...
Adaptive Disparity Estimation for Auto Convergence of Region of Interest in a...Adaptive Disparity Estimation for Auto Convergence of Region of Interest in a...
Adaptive Disparity Estimation for Auto Convergence of Region of Interest in a...
 
Ray tracing converted (1)
Ray tracing converted (1)Ray tracing converted (1)
Ray tracing converted (1)
 

Similar to Fahad Fazal Elahi Guraya

Design and implementation of video tracking system based on camera field of view
Design and implementation of video tracking system based on camera field of viewDesign and implementation of video tracking system based on camera field of view
Design and implementation of video tracking system based on camera field of viewsipij
 
Effective Object Detection and Background Subtraction by using M.O.I
Effective Object Detection and Background Subtraction by using M.O.IEffective Object Detection and Background Subtraction by using M.O.I
Effective Object Detection and Background Subtraction by using M.O.IIJMTST Journal
 
A Novel Background Subtraction Algorithm for Dynamic Texture Scenes
A Novel Background Subtraction Algorithm for Dynamic Texture ScenesA Novel Background Subtraction Algorithm for Dynamic Texture Scenes
A Novel Background Subtraction Algorithm for Dynamic Texture ScenesIJMER
 
A NOVEL BACKGROUND SUBTRACTION ALGORITHM FOR PERSON TRACKING BASED ON K-NN
A NOVEL BACKGROUND SUBTRACTION ALGORITHM FOR PERSON TRACKING BASED ON K-NN A NOVEL BACKGROUND SUBTRACTION ALGORITHM FOR PERSON TRACKING BASED ON K-NN
A NOVEL BACKGROUND SUBTRACTION ALGORITHM FOR PERSON TRACKING BASED ON K-NN csandit
 
A Novel Background Subtraction Algorithm for Person Tracking Based on K-NN
A Novel Background Subtraction Algorithm for Person Tracking Based on K-NN A Novel Background Subtraction Algorithm for Person Tracking Based on K-NN
A Novel Background Subtraction Algorithm for Person Tracking Based on K-NN cscpconf
 
Tracing of an Object in Video through Mean Shift Protocol
Tracing of an Object in Video through Mean Shift ProtocolTracing of an Object in Video through Mean Shift Protocol
Tracing of an Object in Video through Mean Shift Protocolijtsrd
 
[3D勉強会@関東] Deep Reinforcement Learning of Volume-guided Progressive View Inpa...
[3D勉強会@関東] Deep Reinforcement Learning of Volume-guided Progressive View Inpa...[3D勉強会@関東] Deep Reinforcement Learning of Volume-guided Progressive View Inpa...
[3D勉強会@関東] Deep Reinforcement Learning of Volume-guided Progressive View Inpa...Seiya Ito
 
SkyStitch: a Cooperative Multi-UAV-based Real-time Video Surveillance System ...
SkyStitch: a Cooperative Multi-UAV-based Real-time Video Surveillance System ...SkyStitch: a Cooperative Multi-UAV-based Real-time Video Surveillance System ...
SkyStitch: a Cooperative Multi-UAV-based Real-time Video Surveillance System ...Kitsukawa Yuki
 
Object video tracking using a pan tilt-zoom system
Object video tracking using a pan tilt-zoom systemObject video tracking using a pan tilt-zoom system
Object video tracking using a pan tilt-zoom systemMohammed Abdalhakam Taha
 
SENSITIVITY OF A VIDEO SURVEILLANCE SYSTEM BASED ON MOTION DETECTION
SENSITIVITY OF A VIDEO SURVEILLANCE SYSTEM BASED ON MOTION DETECTIONSENSITIVITY OF A VIDEO SURVEILLANCE SYSTEM BASED ON MOTION DETECTION
SENSITIVITY OF A VIDEO SURVEILLANCE SYSTEM BASED ON MOTION DETECTIONsipij
 
最近の研究情勢についていくために - Deep Learningを中心に -
最近の研究情勢についていくために - Deep Learningを中心に - 最近の研究情勢についていくために - Deep Learningを中心に -
最近の研究情勢についていくために - Deep Learningを中心に - Hiroshi Fukui
 
Color Based Object Tracking with OpenCV A Survey
Color Based Object Tracking with OpenCV A SurveyColor Based Object Tracking with OpenCV A Survey
Color Based Object Tracking with OpenCV A SurveyYogeshIJTSRD
 
Implementation of Object Tracking for Real Time Video
Implementation of Object Tracking for Real Time VideoImplementation of Object Tracking for Real Time Video
Implementation of Object Tracking for Real Time VideoIDES Editor
 
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...ijceronline
 
Wang midterm-defence
Wang midterm-defenceWang midterm-defence
Wang midterm-defenceZhipeng Wang
 
Dj31514517
Dj31514517Dj31514517
Dj31514517IJMER
 

Similar to Fahad Fazal Elahi Guraya (20)

Design and implementation of video tracking system based on camera field of view
Design and implementation of video tracking system based on camera field of viewDesign and implementation of video tracking system based on camera field of view
Design and implementation of video tracking system based on camera field of view
 
I0343065072
I0343065072I0343065072
I0343065072
 
research_paper
research_paperresearch_paper
research_paper
 
Fpga human detection
Fpga human detectionFpga human detection
Fpga human detection
 
Effective Object Detection and Background Subtraction by using M.O.I
Effective Object Detection and Background Subtraction by using M.O.IEffective Object Detection and Background Subtraction by using M.O.I
Effective Object Detection and Background Subtraction by using M.O.I
 
A Novel Background Subtraction Algorithm for Dynamic Texture Scenes
A Novel Background Subtraction Algorithm for Dynamic Texture ScenesA Novel Background Subtraction Algorithm for Dynamic Texture Scenes
A Novel Background Subtraction Algorithm for Dynamic Texture Scenes
 
A NOVEL BACKGROUND SUBTRACTION ALGORITHM FOR PERSON TRACKING BASED ON K-NN
A NOVEL BACKGROUND SUBTRACTION ALGORITHM FOR PERSON TRACKING BASED ON K-NN A NOVEL BACKGROUND SUBTRACTION ALGORITHM FOR PERSON TRACKING BASED ON K-NN
A NOVEL BACKGROUND SUBTRACTION ALGORITHM FOR PERSON TRACKING BASED ON K-NN
 
A Novel Background Subtraction Algorithm for Person Tracking Based on K-NN
A Novel Background Subtraction Algorithm for Person Tracking Based on K-NN A Novel Background Subtraction Algorithm for Person Tracking Based on K-NN
A Novel Background Subtraction Algorithm for Person Tracking Based on K-NN
 
Tracing of an Object in Video through Mean Shift Protocol
Tracing of an Object in Video through Mean Shift ProtocolTracing of an Object in Video through Mean Shift Protocol
Tracing of an Object in Video through Mean Shift Protocol
 
[3D勉強会@関東] Deep Reinforcement Learning of Volume-guided Progressive View Inpa...
[3D勉強会@関東] Deep Reinforcement Learning of Volume-guided Progressive View Inpa...[3D勉強会@関東] Deep Reinforcement Learning of Volume-guided Progressive View Inpa...
[3D勉強会@関東] Deep Reinforcement Learning of Volume-guided Progressive View Inpa...
 
SkyStitch: a Cooperative Multi-UAV-based Real-time Video Surveillance System ...
SkyStitch: a Cooperative Multi-UAV-based Real-time Video Surveillance System ...SkyStitch: a Cooperative Multi-UAV-based Real-time Video Surveillance System ...
SkyStitch: a Cooperative Multi-UAV-based Real-time Video Surveillance System ...
 
Object video tracking using a pan tilt-zoom system
Object video tracking using a pan tilt-zoom systemObject video tracking using a pan tilt-zoom system
Object video tracking using a pan tilt-zoom system
 
Oc2423022305
Oc2423022305Oc2423022305
Oc2423022305
 
SENSITIVITY OF A VIDEO SURVEILLANCE SYSTEM BASED ON MOTION DETECTION
SENSITIVITY OF A VIDEO SURVEILLANCE SYSTEM BASED ON MOTION DETECTIONSENSITIVITY OF A VIDEO SURVEILLANCE SYSTEM BASED ON MOTION DETECTION
SENSITIVITY OF A VIDEO SURVEILLANCE SYSTEM BASED ON MOTION DETECTION
 
最近の研究情勢についていくために - Deep Learningを中心に -
最近の研究情勢についていくために - Deep Learningを中心に - 最近の研究情勢についていくために - Deep Learningを中心に -
最近の研究情勢についていくために - Deep Learningを中心に -
 
Color Based Object Tracking with OpenCV A Survey
Color Based Object Tracking with OpenCV A SurveyColor Based Object Tracking with OpenCV A Survey
Color Based Object Tracking with OpenCV A Survey
 
Implementation of Object Tracking for Real Time Video
Implementation of Object Tracking for Real Time VideoImplementation of Object Tracking for Real Time Video
Implementation of Object Tracking for Real Time Video
 
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
 
Wang midterm-defence
Wang midterm-defenceWang midterm-defence
Wang midterm-defence
 
Dj31514517
Dj31514517Dj31514517
Dj31514517
 

Recently uploaded

Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostZilliz
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesZilliz
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfSeasiaInfotech2
 

Recently uploaded (20)

Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector Databases
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdf
 

Fahad Fazal Elahi Guraya

  • 1. People Tracking via a Modified CAMSHIFT Algorithm (DCABES 2009) Fahad Fazal Elahi Guraya, Pierre-Yves Bayle and Faouzi Alaya Cheikh Department of Computer Science and Media Technology, Gjovik University College Gjovik , Norway Email: fahad.guraya@hig.no 1
  • 2. Outline Introduction Problem Statement Tracking Algorithms T ki Al ith Mean-shift tracking CAMSHIFT tracking Extended CAMSHIFT tracking Implementation Experimental Results p Conclusion 2 fahad.guraya@hig.no Gjøvik University College Norway
  • 3. Introduction Multi-Camera Cooperated Object Detection, Tracking, and Event Analysis 3 fahad.guraya@hig.no Gjøvik University College Norway
  • 4. Introduction (Applications) I t d ti (A li ti ) Motion-based recognition: g Human identification based on gait, automatic object detection, etc. Automated Video surveillance: Monitoring a scene to detect suspicious activities or unlikely events Video indexing: Automatic annotation and retrieval of the videos in multimedia databases Human-computer interaction: Gesture recognition, eye gaze tracking for data input to computers, etc. Traffic monitoring: Real-time gathering of traffic statistics to direct traffic flow Vehicle navigation: Video-based path planning and obstacle avoidance capabilities 4 fahad.guraya@hig.no Gjøvik University College Norway
  • 5. Problem St t P bl Statement t Frame 1 Frame 2 Frame 3 Frame 4 Can we estimate the position of the object? Can we estimate its velocity? Can we predict future positions? e 5 fahad.guraya@hig.no Gjøvik University College Norway
  • 6. Problem Statement Given a Sequence of Images/frames Find center of moving object Camera might be moving or stationary We Assume: We can find object in individual frames The Problem: Track across multiple frames A fundamental problem in the field of video analysis 6 fahad.guraya@hig.no Gjøvik University College Norway
  • 7. Tracking Algorithms a) Point Tracking by Bayesian Filters (Differ in representing probability densities (pdf)) Kalman Filters Particle Filters Grid-based approach Multi-hypothesis(MHT) filter b) Kernel Tracking Mean-shift tracking Continuously Adaptive Mean-shift (CAMSHIFT) Modified CAMSHIFT with Motion Kanade-Lucas-Tomasi Feature Tracker (KLT) Support Vector Machines (SVM) Tracker Eigen Tracking c,d) SilhouetteTracking Contour evolution state space models Contour evolution by variational methods Shape Matching hough transform 7 fahad.guraya@hig.no Gjøvik University College Norway
  • 8. Mean shift Tracking • Introduced by Y. Cheng. in “Mean Shift, Mode Seeking, and Clustering” PAMI 1995 • Mean shift algorithm climbs the gradient of a probability distribution to find the nearest domain mode (peak) @R. Collins @R C lli CVPR 2003 @Comaniciu PAMI 2003 @C i i 8 fahad.guraya@hig.no Gjøvik University College Norway
  • 9. Mean shift Tracking M hift T ki Given a likelihood image, find the optimal location of the tracked object The likelihood image is generated by computing, at each pixel, the probability that the pixel belongs to the object based on the distribution f h f di ib i of the feature Obtain mean-shift vector y by maximizing the Bhattacharyya coefficient, which is equivalent to minimizing the di ffi i hi h i i l i i i i h distance maximize: where Bhattacharyya coefficient for a 9 single bin u
  • 10. Continuously Adaptive Mean-SHIFT (CAMSHIFT) Tracking Modified form of Mean-shift tracking algorithm Introduced by GR Bradski. in “Computer vision face tracking for use in a perceptual user interface”. Intel Technology Jounal 1998 Differs from Mean-shift: Search window adjusts itself in size size. If we have well-segmented distributions(face) then CAMSHIFT will automatically adjust itself for the size of face as the person moves closer or further from camera. search Re-centre Current search window the search Both search window window size is size window, size and centre are the object size; M *N rescale it l its stable its it centre is the t i th centre size centre of object ( xc , y c ) Target End Yes Resolution Initialization Control Condition Found Satisfied? 10 No
  • 11. CAMSHIFT Tracking 1. Choose the initial location of the 2D mean shift search window 2. Calculate the color probability distribution in the 2D region centered at the search window location in an ROI slightly larger than mean shift window size 3. 3 Run Mean Shift algorithm to find the search window center Store the zeroth center. moment(M00) area or size and centriod location 4. For the next video frame, center the search window at the mean location stored in Step-3 and set the window size to a function of the zeroth moment M00 found there. Go to Step-2. 11 fahad.guraya@hig.no
  • 12. Extended CAMSHIFT tracking Optical Flow computation by Lucas-Kanade Method Brightness Constancy, Temporal Persistance, Spatial Coherence Video Frame Vid F Motion Direction M ti Di ti 12 fahad.guraya@hig.no Gjøvik University College Norway
  • 13. Extended CAMSHIFT tracking Purposed Method: Compute motion information of the moving objects and add it linearly to the back-projected g j y p j color histogram Steps: p Select initial location of the person i.e ROI (Region of interest) Compute equalized histogram of the ROI p q g Compute back projection image using the current histogram for the next frame Compute the motion of the blob using Lucas-Kanade algorithm Update the back-projection image using motion information Combine direction of motion with back projection image linearly, give more weightage to pixels moving in same direction as in the previous frame and less weightage to pixels moving in the other directions g g p g 13 Use updated back-projection image to track object/s in the new frame
  • 14. Extended CAMSHIFT Tracking Pros: Computationally efficient (robust statistics and probability distributions) -Working in real-time: fast processing ) g : ast p g Robust to image noise Robust to distractors (e.g. other objects) ( g j ) Irregular object motion (linear/non-linear) Robust to partial/full occlusion p Robust to background-foreground color Cons: Need manual input to initialize template window 14 fahad.guraya@hig.no Gjøvik University College Norway
  • 15. Implementation p OpenCV Computer Vision Library/ Visual C++ 15 fahad.guraya@hig.no Gjøvik University College Norway
  • 16. Implementation I l t ti Video Frames Background Post Processing Modeling (Shadow Removal) Object Tracks Object/People Object/People Detection Tracking 16 fahad.guraya@hig.no Gjøvik University College Norway
  • 17. Implementation(Background Modeling) Recursive techniques q Running Gaussian average (RGA) Gaussian mixture model (GMM) ( ) GMM with adaptive number of Gaussians (AGMM) Approximated median filtering (AMF) Non-recursive techniques Median filtering Mediod filtering Eigenbackgrounds (EigBG) 17 fahad.guraya@hig.no Gjøvik University College Norway
  • 18. Implementation (GMM) Data is represented by a mixture of N Gaussians Different Gaussians represent different colors 18 fahad.guraya@hig.no Gjøvik University College Norway
  • 19. Implementation(Shadows Removal) We want to realize this! Traditional C t T diti l Contour 19 fahad.guraya@hig.no Gjøvik University College Norway
  • 20. Implementation(Shadows Removal) Original background (B): Brightness and chromaticity similar to those of the same pixel in the background image. Shaded background (S): Similar chromaticity but lower brightness. Moving foreground object (F): Chromaticity different from g g j ( ) y the expected values in the background image. 20 fahad.guraya@hig.no Gjøvik University College Norway
  • 21. Experimental Results E i t lR lt Shadow Removal Morphological filtering Closing operation Structuring element: 3x3 Removing small regions Background subtraction Shadows removal Before After 21
  • 22. Experimental Results E i t lR lt Object/People Detection Contours detection Bounding box Contours and bounding Contours and bounding boxes for 2 boxes for 2 separate persons persons starting to overlap 22 fahad.guraya@hig.no Gjøvik University College Norway
  • 23. Experimental Results p Back projection images (with/without) motion information Backprojection person.1 using color feature Backprojection person.2  using color feature 23 Backprojection person.1 using color and motion  Backprojection person.2 using color and motion  features features
  • 24. Experimental Results Tracking Results using CamShift + Optical Flow Tracking windows around moving persons Tracking Without Motion Information Tracking Using Motion Information
  • 25. Conclusion A modified CAMSHIFT algorithm is presented The Algorithm use color and motion features The Algorithm is tested d ifi d for Th Al ith i t t d and verified f a set of videos t f id As future work the algorithm should be tested/verified for indoor/outdoor id i d / d videos with strong shadows and partial/full ih hd d i l/f ll occlusion of objects The l i h h ld l be Th algorithm should also b tested and modified f d d difi d for multiple objects and multiple camera tracking 25 fahad.guraya@hig.no Gjøvik University College Norway