

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
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
1 / 3
This page cannot be seen from the preview
Don't miss anything!


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:
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:
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