Homework Assignments

From CS219

Jump to: navigation, search

Homework Assignments

Homework #1 :: Capture (Wednesday 4/9)

  • Objective

Your task is to write a program using PyS60 on the Nokia n95 to gather a location trace automatically every 1 second. Furthermore, when a user presses a button, you should give the ability to take a picture, record a second of audio, and provide some annotation. This information should be uploaded to SensorBase. Then you need to create a webpage that summarizes the location trace. Summary information can include, the total distance traveled, the image/audio/annotations in a table by themselves, etc...

  • Submission

You should create a webpage to post all your homework assignments. For Homework #1, you should provide a link to the source code (zipped up) and also provide a link to the webpage where we can view the current summary for the trace you generated. Homework is submitted by sending an email to uclacs219 [at] gmail [dot] com with subject of "CS 219: Homework # FirstName LastName"

  • Hints

SensorBase Project / Table Setup [1]
SensorBase PHP Example [2]
SensorBase PHP Example Source [3]
SensorBase HTTP Example [4]
Python Install Directions [5]
Python Install Files [6]
Python Access Point File [7]
Python Audio Capture and Log [8]
Python Camera Capture and Log [9]

Homework #2 :: Visualization (Wednesday 4/16)

  • Objective

Your task is to build a Google Maps browsing utility for traces (the ones generated using Homework #1). You are allowed to be creative in the way you present this but the minimum requirement is that you will need a page that shows the elements of the total trace and another page where the user is able to specify a query (space by defining a polygon and time by defining an interval) and get results for the trace. The trace will need to show your path using polylines and the image/audio/annotations as markers that can be clicked. We are going to leave it to you to be creative in presenting this - your grade will be influenced by this. It is recommended that you generate more traces by carrying the phone around.

  • Submission

Create a webpage for Homework #2, where a link to the code exists along with a link to the page that contains the interface. Homework is submitted by sending an email to uclacs219 [at] gmail [dot] com with subject of "CS 219: Homework # FirstName LastName"

Homework #3 :: Processing (Monday 4/28)

  • Objective

This will be a three part assignment. The first part, you will be asked to write a simple Python program that records audio for 5 seconds, get the location (both in terms of GSM cell id and GPS if available), and a tag (which will be specified) and uploads it to a SensorBase account. The second part will occur in class on the April 21st and will involve you going out and collecting data using your program. The third part will involve processing the audio. In class, you were supposed to get a "number" assigned to you. Based on that number, you have to implement the corresponding feature(s) and then show it based on class. All code must be written in Python and documented properly. The link to the feature set are here: [10] and the paper where there is more explanation of the features is here: [11]. Lets consider a frame to be 1 second when you have to calculate a feature without using multiple frames (this is different from the paper) and for cases you need multiple frames, divide 1 second worth of data into 250 ms frames. You can use SciPy for the feature extraction (similar to Matlab): [12].

  • Submission

Create a webpage for Homework #3, where a link to the code exists for your phone application, your feature application (written in Python), and the output that compares the features (you can use whatever graphing utility you want). Homework is submitted by sending an email to uclacs219 [at] gmail [dot] com with subject of "CS 219: Homework # Part # FirstName LastName"

Personal tools