|
| 1 | +ECE241-Final_Project |
| 2 | +==================== |
| 3 | +Authors: **Matthew Walker** and **Linda Shen** |
| 4 | + |
| 5 | +Almost all of the commits may be golvok(Matthew Walker)'s, but we pair-programmed essentially the whole thing. |
| 6 | + |
| 7 | +This is our final project for Digital Systems (ECE241). Here follows some random excerpts from the report, and scroll down for some video. |
| 8 | + |
| 9 | +###Intro |
| 10 | + |
| 11 | +The goal of this project was to detect |
| 12 | +and track motion in real time. Images |
| 13 | +were extracted from a video camera and |
| 14 | +analyzed to determine movement |
| 15 | +between each frame and the centre of |
| 16 | +motion was tracked. The results were |
| 17 | +filtered and displayed. |
| 18 | + |
| 19 | +The project was done on an Altera DE2 board. (Cyclone II) |
| 20 | + |
| 21 | +Explanations |
| 22 | +------------ |
| 23 | +###Block Diagram |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | +###Smoothing |
| 28 | + |
| 29 | +To smooth the binary image, the 8 pixels surrounding the current pixel, as well as it’s value, are considered. If all 9 are high, we display the center one as high. To minimize the number of clock cycles needed, the pixels are loaded into 3 shift registers, one for the row above, below, and current. They are then shifted as it moves across the image. |
| 30 | + |
| 31 | +###Centroid Calcultation |
| 32 | +The centroid is computed by dividing the x and y totals by the difference count. This must be done at a slower clock speed, as the dividend and divisor are large and variable. |
| 33 | + |
| 34 | +###Motion Tracking/History |
| 35 | +The centroid is stored in a shift register that keeps the centroid location of 20 frames. This history is drawn to show the path of motion, in the lower right corner of the screen. |
| 36 | + |
| 37 | +###"Random" 3 Cycle Delays |
| 38 | +There is a 3 clock cycle delay between the setting of the read address and the value being ready from the RAMs. We buffer pixel locations in several places to accommodate this delay. |
| 39 | + |
| 40 | +Video Links |
| 41 | +----------- |
| 42 | +###Short Demo |
| 43 | + |
| 44 | +<a href="http://www.youtube.com/watch?feature=player_embedded&v=7-euBfdgQd0 |
| 45 | +" target="_blank"><img src="http://img.youtube.com/vi/7-euBfdgQd0/0.jpg" |
| 46 | +alt="long demo" width="240" height="180" border="10" /></a> |
| 47 | + |
| 48 | +###Long Demo |
| 49 | + |
| 50 | +<a href="http://www.youtube.com/watch?feature=player_embedded&v=DNowxkbowgg |
| 51 | +" target="_blank"><img src="http://img.youtube.com/vi/DNowxkbowgg/0.jpg" |
| 52 | +alt="short demo" width="240" height="180" border="10" /></a> |
0 commit comments