This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <fdeep/fdeep.hpp> | |
#include <opencv2/core/core.hpp> | |
#include <opencv2/highgui/highgui.hpp> | |
#include <opencv2/imgproc.hpp> | |
#include <filesystem> | |
#include <exception> | |
using namespace stdext; | |
namespace fs = std::filesystem; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cv2 | |
import glob | |
from sklearn.neighbors import KNeighborsClassifier | |
import numpy as np | |
from sklearn.preprocessing import LabelEncoder | |
from tensorflow.keras.utils import to_categorical | |
from joblib import dump, load | |
from sklearn.model_selection import train_test_split | |
import tensorflow as tf | |
from tensorflow.keras import models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tensorflow as tf | |
import glob | |
from mtcnn import MTCNN | |
from tensorflow.keras.models import load_model | |
import cv2 | |
import numpy as np | |
from scipy.spatial.distance import cosine | |
detector = MTCNN() |