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
# main | |
import cv2 | |
from threading import Thread | |
from json import load, dump | |
from pathlib import Path | |
CFG_FILE = Path('config.json') | |
class Config: |
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 insightface | |
from insightface.app import FaceAnalysis | |
import cv2 | |
import numpy as np | |
import time | |
input_images = ["face.jpg", "face2.jpg"] | |
# Initialize the FaceAnalysis module | |
app = FaceAnalysis() |