-
-
Save parzibyte/35bc8bbd7bead33f86077d673d357972 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("/comenzar_grabacion") | |
def comenzar_grabacion(): | |
global grabando | |
global archivo_video | |
if grabando and archivo_video: | |
return jsonify(False) | |
nombre = utiles.fecha_y_hora_para_nombre_archivo() + ".avi" | |
archivo_video = cv2.VideoWriter( | |
nombre, fourcc, FRAMES_VIDEO, RESOLUCION_VIDEO) | |
grabando = True | |
return jsonify(True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment