Note: Cài môi trường ảo: * python -m -venv flask_sentiment * .\flask_sentiment\Scripts\activate * python * pip install -r .\final_project\requirements.txt Các bước chạy insightface: * Cài insightface, onnxruntime * Đọc tấm hình bằng openCV ```python app = FaceAnalysis( name="buffalo_m", allow_modules=["detection", "recognition"], providers=["CPUExecutionProvider"]) # đọc image bằng opencv faces = app.get(img) ``` * Hiểu dữ liệu của face là list * Dùng thư viện opencv để vẽ các thông tin * Load thêm tấm hình khác * So sánh embedding của 2 pics * 2 pics là một * 2 pics của 1 ng * 2 pics của 2 ng khác nhau