Basic Image Processing for Moving Object Tracking
This tutorial aims at demonstrating how to use image processing to track a moving object.
We make these tutorials for use to test the up coming camera and image processing utility blockset for Waijung 13.11a, to be release in Nov 2013. So stay tuned…
We were able to watch just the 2 video tutorials by Student Dave’s (items 2 and 3 below) and implement this in Simulink in just 1 day without any prior image processing knowledge.
So the explanation is extremely comprehensive, easy-to-understand and, hence, highly recommended.
The Student Dave’s Tutorials! site also contains other simple-to-understand tutorials on such topics as Kalman filtering, Extended Kalman filtering, and Particle filtering.
If you have time, visit the Student Dave’s Tutorials! site and help make some donations to fuel these great tutorials with coffee and Ramen.
The followings summarize resources related only to this basic image processing tutorial.
1) The main basic image processing tutorial site http://studentdavestutorials.weebly.com/basic-image-processing-with-matlab.html
2) Excellent short Youtube video part 1 of 2 on the same topic: http://www.youtube.com/watch?v=8RbD4X8y65A
3) Excellent short Youtube video part 2 of 2 on the same topic: http://www.youtube.com/watch?v=c-ZWNfoQmTA
4) Image source files: https://docs.google.com/open?id=0BwvRg6SCVt_ndTFBUjJOT0F4Q0k
5) Matlab source files: http://studentdavestutorials.weebly.com/uploads/1/3/1/3/13139014/find_hexbug.m
The followings summarize steps for moving object tracking:
- Subtract still background image from current image to keep only the moving (alien) object.
- Apply Guassian filter to smooth the image of the object.
- Apply Histrogram Thresholding to identify moving object more precisely.
- Compute object position in pixel XY co-ordinate.
Note: we used MakeAVI (http://makeavi.sourceforge.net/) to convert the original video file to individual images.
The followings display different Simulink model files for studying the algorithm progressively.
See this article http://aimagin.com/blog/real-time-moving-object-tracking-stm32f4-image-processing-algorithms/ for a real-time system implementation.