Skip to content

Instantly share code, notes, and snippets.

@Kakarot-2000
Last active May 10, 2021 16:01
Show Gist options
  • Save Kakarot-2000/248c61a76130e3e81c7855f6c3b26760 to your computer and use it in GitHub Desktop.
Save Kakarot-2000/248c61a76130e3e81c7855f6c3b26760 to your computer and use it in GitHub Desktop.
model = model_from_json(open("fer.json", "r").read()) #load model
model.load_weights('fer.h5') #load weights
face_haar_cascade = cv2.CascadeClassifier('haarcascade_frontalface_default.xml')
camera = cv2.VideoCapture(0)
app = Flask(__name__)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment