Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created February 10, 2021 23:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/a9cfb23ec84e30a07dd280990275107a to your computer and use it in GitHub Desktop.
Save parzibyte/a9cfb23ec84e30a07dd280990275107a to your computer and use it in GitHub Desktop.
@app.route("/tomar_foto_guardar")
def guardar_foto():
nombre_foto = str(uuid.uuid4()) + ".jpg"
ok, frame = camara.read()
if ok:
cv2.imwrite(nombre_foto, frame)
return jsonify({
"ok": ok,
"nombre_foto": nombre_foto,
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment