This repository will provide a way of creating, storing, and accessing a datbase of biometric and biographical features.
The default constructor requires no arguments and will assume all the files are within the running directory.
The second constructor requiress four arguments:
- String: The path to the .txt containing biographical data.
- String: The path to the .txt containing biometric data.
- String: The path to the .txt containing the current ID number.
- String: The path to the .txt relating internal IDs to external IDs (matricula).
The class' functions are listed below with their respective parameters listed below them if applicable.
-
load_N_File, loads N.txt
-
load_ImgFolder, creates a directory for images
-
load_BiometricFile, loads biometrics.txt
-
load_BiographicalFile, loads BiographicalData.txt
-
load_Id_MatriculaFile, loads ID_mat.txt
-
Mat getMatrix, retrieve entire biometric matrix
-
Mat getColumn
- int, the column to be returned by the function
-
Mat getRow
- int, the row to be returned by the function
-
std::pair <Mat, Mat> search, returns a matrix of similar vectors
- Mat, the vector to be searched
- int, the number of similar vectors to be returned
-
Mat getBiometricByMatricula, returns a biometric vector of a given person
-
string, the ID (matricula) to be searched
-
BiographicalData getUserInfoByID, returns a data type BiographicalData containing biographical data for a given person
-
int, the ID (given and used by the system) to be searched
-
saveUserDataInAFile, saves user biographical data in the biographical data txt file
-
BiographicalData, a structure in which biographical data is contained
-
saveUserBiometricDataInAFile, saves user biometric data in the biometric data txt file
-
Mat, a vector in which biometric data is contained
-
saveUserImage, saves the image of the user
-
Mat, the image of the user, uncropped and unaligned
-
getN, updates the N.txt
-
updateDataBase, updates the biometric database file (changes will be made only within the program's Mat and will be lost on closing unless this function is ran)
-
std::vectorstd::string indexData, returns a vector of biographical data
-
std::string, a string of biographical data, comma delimited
-
BiographicalData String_To_Structure, returns a BiographicalData structure
-
std::string, a string of biographical data, comma delimited
-
bool ValidName, returns true if a name contains only valid characters
-
std::string, the name to be validated
-
bool SimpleValidateMail, returns true if an email is valid
-
std::string, the email
-
int ValidateData, returns an error code if there are any issues with a user's biographical data (name, email, ID (matricula)
-
BiographicalData*, a pointer to the BiographicalData structure containing the biographical data