-
-
Save parzibyte/a9cfb23ec84e30a07dd280990275107a to your computer and use it in GitHub Desktop.
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
@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