WPI Computer Science Department

Computer Science Department
------------------------------------------

CS 403X, D Term 2016 Project 2: Exploring the Android Camera and Images, (9/100 of course grade)
Due date: Thursday, March 31, 11.59PM!!


Overview

The aim of this project is to get you familiar with Android apps that use the Android Camera and Images. You may complete this project either alone or in groups of up to 3 students. If you work alone, you will submit 1 project. If you work as part of a group, the GROUP will submit 1 project with all team members listed. You may discuss the projects with other classmates or on myWPI but each group (or student working alone) will submit their own code for the project.


Project Preparation

Complete the following steps and submit the project at the end.

Step 1: Learn how to run your apps on a real phone Thus far you have run all your programs on the Android Studio Emulator. The emulator is not able to run programs requiring sensors or the phone's camera. So you will need to run this project on a real phone. If your phone is running Android 4.x, a good video to learn how to connect and use a real smartphone with Android Studio is located [ HERE ]

To learn how to run your programs on Android lollipop phones (Android 5.x), to learn how to install USB drivers on your home machine (and the zoolab) and how to run the examples in the textbook, go through the following tutorials



Step 2: Download code for Chapter 16 (CriminalIntent) The following zip file available [ Here ] contains all the working programs from the Android Nerd Ranch book. Download it, unzip it and find the complete solution for Chapter 16.



Step 3: Study the code for Chapter 16 of Android Nerd Ranch You will be required to extend and modify the code for chapter 16 for this project. Read chapter 16 and also study the complete code. Run the code for chapter 16 on your phone and make sure you understand the code.



Step 4: Get Face Detection working: The following demo of the Mobile Vistion API from Google includes [ Face Tracking ] as described in class. You can also access the code on Google's [ Mobile Vision Github site ] . You will be required to integrate face detection into this project. Download the code, run it on a real phone and study it. The code requires Android 5.0 (lollipop). Make sure you understand the code. You can also visit [ Google's Mobile Vision Page to ] understand more about this API and demo code.



Project Requirements



Step 5: Make the following Changes to the code:

  1. Currently, the app can only store one image in the top left corner. Taking a second image replaces the first image with the second. Make it possible to store more images below the "SEND CRIME REPORT" button as shown below. Taking images 2,3 and 4 should store those images in the positions below the "SEND CRIME REPORT" button as shown.

  2. If 4 images are already displayed, taking a 5th image should replace image 1 (in top left corner). Taking a 6th image replaces image 2 (leftmost image below the "SEND CRIME REPORT" button) and so on.

  3. Extra Credit (Worth 20 extra points. i.e. total = 120) Add face detection for your project. Add a checkbox in the bottom left corner. When checked, face detection is enabled and when unchecked, face detection is off. When Face detection is enabled, the rectangles for face detection are overlayed around each face in the preview of the picture. When the picture is taken, the number of faces found in the LAST PICTURE taken is reported in the bottom right corner of the screen as shown. So, for example, if the user tries to take a picture with 2 faces, two rectangles would appear around those faces during the preview, before the picture is taken. After the picture is taken, if face detection is enabled, the text "2 Faces detected" will be displayed in the bottom right corner of the screen. If face detection is not enabled, then the bottom right corner of the screen should be blank (nothing displayed).



Step 6: Record session of running code on real phone You will submit both your APK (compliled Android program) and a video of you running the app on your phone. You will need to learn how to record a session of you running the app on your phone. Here's a good video on how to do Android screen capture [ Here ]


Submitting Your Work

Make sure to double-check that everything works before submitting. Create a zip file containing your APK AND MP4 Video (Captured session) files. Submit your zip file using web-based turnin. Do not email me your program or submit it via dropbox.

Before submitting MAKE SURE YOUR PROJECT'S APK FILE RUNS ON YOUR ANDROID PHONE If you worked alone, name your zip file according to the convention FirstName_lastName_hw2.zip. If the submission is for a group, then list all last names in the submission using the convention LastName1_LastName2_LastName3.zip. Only one team member should submit each groups work.


[Feedback] [Search Our Web] [Help & Index]

[Return to the WPI Homepage] [Return to CS Homepage]

mailto:emmanuel@cs.wpi.edu