Android Open Source - AndroidFaceRecognizer Face Recognizer D B Helper






From Project

Back to project page AndroidFaceRecognizer.

License

The source code is released under:

MIT License

If you think the Android project AndroidFaceRecognizer listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.yaylas.sytech.facerecognizer.facedatabase;
/*from  w ww . j  a  va 2  s .c o  m*/

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

public class FaceRecognizerDBHelper extends SQLiteOpenHelper{
  private Context mContext;
  private static int VERSION_INT = 1;
  public static String TABLE_FACES = "facetable";
  public static String COLUMN_ID = "_id";
  public static String COLUMN_NAME = "name";
  public static String COLUMN_FOLDERPATH = "folderpath";
  FaceRecognizerDBHelper(Context context){
    super(context, "facedb", null, VERSION_INT);
    this.mContext = context;
  }
  
  @Override
  public void onCreate(SQLiteDatabase db) {
    String createFaceTable = "CREATE TABLE IF NOT EXISTS facetable(_id TEXT(10) PRIMARY KEY, name TEXT(30), folderpath TEXT(80));";
    db.execSQL(createFaceTable);
  }
  
  @Override
  public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
    String deleteFaceTable = "DROP TABLE IF EXISTS facetable;";
    db.execSQL(deleteFaceTable);
    onCreate(db);
    
  }

}




Java Source Code List

com.yaylas.sytech.facerecognizer.DetectionBasedTracker.java
com.yaylas.sytech.facerecognizer.EditDatabaseActivity.java
com.yaylas.sytech.facerecognizer.FaceDetectionActivity.java
com.yaylas.sytech.facerecognizer.FaceRecognitionActivity.java
com.yaylas.sytech.facerecognizer.MainPageActivity.java
com.yaylas.sytech.facerecognizer.SplashActivity.java
com.yaylas.sytech.facerecognizer.facedatabase.FaceRecognizerDBHelper.java
com.yaylas.sytech.facerecognizer.facedatabase.FacesDataSource.java
com.yaylas.sytech.facerecognizer.facedatabase.Person.java
com.yaylas.sytech.facerecognizer.methods.FaceDetection.java
com.yaylas.sytech.facerecognizer.utils.FaceDetectionUtils.java
com.yaylas.sytech.facerecognizer.utils.ImageUtils.java