Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created February 13, 2021 21:06
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/35bc8bbd7bead33f86077d673d357972 to your computer and use it in GitHub Desktop.
Save parzibyte/35bc8bbd7bead33f86077d673d357972 to your computer and use it in GitHub Desktop.
@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