Skip to content

Instantly share code, notes, and snippets.

View korantu's full-sized avatar

Konstantin Levinski korantu

  • NEC
  • Singapore
  • 19:25 (UTC -12:00)
View GitHub Profile
@korantu
korantu / camera_generator.py
Last active September 11, 2024 04:08
camera infrastructure and kit
# main
import cv2
from threading import Thread
from json import load, dump
from pathlib import Path
CFG_FILE = Path('config.json')
class Config:
@korantu
korantu / main.py
Created June 11, 2024 14:34
eye detection with insightface
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()