Pedestrian Traffic Flow Analysis: A Computer Vision Project - Prof. Linda Wills, Study Guides, Projects, Research of Electrical and Electronics Engineering

A computer vision project focused on pedestrian traffic flow analysis. Students are required to collect input sequences using a webcam, analyze pedestrian movement in each frame, and track pedestrians while counting those crossing a vertical mid-line. The project involves creating a directory for collected image files, analyzing sequences using a provided python package, and submitting the results before the deadline.

Typology: Study Guides, Projects, Research

Pre 2010

Uploaded on 08/05/2009

koofers-user-jet
koofers-user-jet 🇺🇸

8 documents

1 / 3

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
ECE 8893 Project Three: Pedestrian Traffic Flow 1.3 Spring 2008
1
Summary: This project explores pedestrian traffic surveillance and analysis. The task is to
identify people who are moving in a scene (e.g., walking, running, or riding bikes along a
sidewalk, indoor corridor, crosswalk, etc.), track them, and compute statistics of pedestrian
traffic flow.
P3-1 Collect Input Sequences: Use your web-cam to collect an input image sequence of
pedestrian traffic. This sequence and those collected by the other teams in the class will be used
as input sequences to test the program you write in part P3-2. The image sequence should satisfy
the following specification:
1. The pedestrian flow must be primarily bi-directional and orthogonal to the camera’s
shooting direction (i.e., people move left/right across the camera’s field of view).
2. The pedestrian traffic must be within a walkway/corridor that is 3-4 meters wide.
3. The camera must be located approximately 10 meters from the center of the pedestrian
flow corridor, at a height of approximately 1.5 meters.
4. The pedestrian flow rate must be approximately 15-30 people/minute, crossing a vertical
tripwire bisecting the image.
5. The images must be collected (using the Collect program described below) at a rate of 2-
5 frames/second. The sequence should contain a total of 500-750 frames.
6. The image sequence must be temporally contiguous; do not edit or splice image
sequences.
Collect program:
In order to collect images on your computer, you can download and extract files from
Collect.zip. Then make a directory on your C or D drive named ‘C:\Images\Seqs\’. Load
‘Collect’py’ into Idle and run it. At the prompt, type:
>>> Collect(750, 0.0)
Your program should begin collecting 750 image files in the sequence directory as fast as your
camera and hard disk allows. You can adjust the second argument to add additional delay (in
seconds between captured images. You can adjust the first argument to collect more or less
frames.
This program uses a neat Python package called VideoCapture by Markus Gritsch (from
http://videocapture.sourceforge.net/).
Reminder about proper conduct:
In all activities associated with this class, particularly in gathering videos for test input
data, do nothing to harm yourself or others (including risking personal injury, causing
embarrassment, or invading privacy).
For this part, you must create a directory that contains your collected image files plus an info file
that contains important data on the image sequence. To create this file, modify the
readme.txt in the provided example sequence 20070403-09.zip shown below.
pf3

Partial preview of the text

Download Pedestrian Traffic Flow Analysis: A Computer Vision Project - Prof. Linda Wills and more Study Guides, Projects, Research Electrical and Electronics Engineering in PDF only on Docsity!

Summary : This project explores pedestrian traffic surveillance and analysis. The task is to identify people who are moving in a scene (e.g., walking, running, or riding bikes along a sidewalk, indoor corridor, crosswalk, etc.), track them, and compute statistics of pedestrian traffic flow.

P3-1 Collect Input Sequence s: Use your web-cam to collect an input image sequence of pedestrian traffic. This sequence and those collected by the other teams in the class will be used as input sequences to test the program you write in part P3-2. The image sequence should satisfy the following specification:

  1. The pedestrian flow must be primarily bi-directional and orthogonal to the camera’s shooting direction (i.e., people move left/right across the camera’s field of view).
  2. The pedestrian traffic must be within a walkway/corridor that is 3-4 meters wide.
  3. The camera must be located approximately 10 meters from the center of the pedestrian flow corridor, at a height of approximately 1.5 meters.
  4. The pedestrian flow rate must be approximately 15-30 people/minute, crossing a vertical tripwire bisecting the image.
  5. The images must be collected (using the Collect program described below) at a rate of 2- 5 frames/second. The sequence should contain a total of 500-750 frames.
  6. The image sequence must be temporally contiguous; do not edit or splice image sequences.

Collect program:

In order to collect images on your computer, you can download and extract files from Collect.zip. Then make a directory on your C or D drive named ‘C:\Images\Seqs\’. Load ‘Collect’py’ into Idle and run it. At the prompt, type:

Collect(750, 0.0)

Your program should begin collecting 750 image files in the sequence directory as fast as your camera and hard disk allows. You can adjust the second argument to add additional delay (in seconds between captured images. You can adjust the first argument to collect more or less frames.

This program uses a neat Python package called VideoCapture by Markus Gritsch (from http://videocapture.sourceforge.net/).

Reminder about proper conduct:

In all activities associated with this class, particularly in gathering videos for test input data, do nothing to harm yourself or others (including risking personal injury, causing embarrassment, or invading privacy).

For this part, you must create a directory that contains your collected image files plus an info file that contains important data on the image sequence. To create this file, modify the readme.txt in the provided example sequence 20070403-09.zip shown below.

Team Member Names: Linda Wills Scott Wills Location Photographed: Student Center to Library Walkway Date: 2007/04/ Start Time: 13:28: End Time: 13:31: Number of Frames: 750 Start Frame Number: 1 End Frame Number: 750 Frames per Second: 4.31 fps People per Minute: 30 L-to-R Tripwire Cross: 45 R-to-L Tripwire Cross: 41

Once this directory is complete, perform the following steps:

  1. Include your readme.txt file in the directory. The directory should only contain properly named image files (five numerical digits plus extension e.g., 00001.jpg) and the sequence info file. The directory name should be in the format yyymmdd-nn/. For example, the a sequence might be 20070403-09/.
  2. Zip the directory into a file with the same name as the directory. Be sure to include the directory so it will be recovered when the zip file is extracted.
  3. Since this zip file will be rather large, perhaps > 100 MB, you cannot upload the file using the project submission website. Instead you can submit the zip file in one of four ways: (1) bring it to class on a memory thumb, (2) bring it to class on a CD, (3) place the zip file on a publically accessible website, or (4) mail a CD to the course faculty.
  4. Your files must be properly uploaded to the submission site before the scheduled P3- due date, 9:00pm on Monday, 14 April 2008.

P3-2 Pedestrian Identification and Traffic Analysis

In this part of the project, you will write a program that operates on the sequences collected by your classmates. You should analyze each frame of each sequence and track pedestrians moving left and right in each frame. You should also count the number of pedestrians crossing the vertical mid-line of the frame in each direction. These two counts, along with correct tracking of pedestrians will form the basis of project grading.

To help visualize moving objects, a specialized output sequence class PedSeq has been included in FrameCore.pyc. It has the same arguments and methods as regular sequences. But it includes a method to mark tracked objects and display pedestrian counts. A description of the included methods is summarized below (from FrameWork v1.08 API documentation).

MyFrame = OutSeq. Mark_Frame(FN, Frame, PedList, Counts) : This method draws markers on the specified frame for each object in the PedList. A PedList object (ID, Xpos,

Dir) is a triple containing the object’s ID, X position relative to the left edge of the frame and direction (+1 = RIGHT, -1 = LEFT). Each tracked object should have a unique ID beginning with 1. A given object’s ID should not change between frames. The Counts variable is double (LeftCount, RightCount) indicated the number of pedestrians crossing