This last few weeks I have made some good progress, met with Dr. Pankratz as well in to some new issues. I have successfully loaded and saved data to a file, this way the information can be saved for later uses. The data that is savable to a file is the FaceNamePair class I have created. This data contains a name, a photo and the distance between the eyes. When a new photo is taken it finds the closest match of distance between the eyes in the entire database. The problem I have run in to this week is the data I am receiving. The only data I can retrieve using the methods I am using is the distance between the eyes, but in pixels. This is terribly inaccurate because depending on how close or far away the person is from the camera when the picture is taken the distance between the eyes will always be different even for the same person. So I have decided that I need to use a different method to obtain data about the face in the picture. I have done some research this week and discovered that Android has a fairly new camera api called Camera2. There is very little documentation on this and seems to be difficult to figure out currently. However with this api I can retrieve the points of the eyes, the center of the face and the mouth center point. With these points I can create ratios which is a lot more accurate. Another function I would like to create is a way to display the pictures and data in the database, this would allow the user to delete pictures and data from the database. To know how the app will work more clearly I have attached a flowchart of the app below.
|
garrett moodyThis is my blog about my capstone project. Archives
May 2015
Categories |