Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created February 13, 2021 20:57
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/273de9179c6f133901f162eae59e1c31 to your computer and use it in GitHub Desktop.
Save parzibyte/273de9179c6f133901f162eae59e1c31 to your computer and use it in GitHub Desktop.
# Marca de agua
# https://docs.opencv.org/master/d6/d6e/group__imgproc__draw.html#ga5126f47f883d730f633d74f07456c576
UBICACION_FECHA_HORA = (0, 15)
FUENTE_FECHA_Y_HORA = cv2.FONT_HERSHEY_PLAIN
ESCALA_FUENTE = 1
COLOR_FECHA_HORA = (255, 255, 255)
GROSOR_TEXTO = 1
TIPO_LINEA_TEXTO = cv2.LINE_AA
def agregar_fecha_hora_frame(frame):
cv2.putText(frame, utiles.fecha_y_hora(), UBICACION_FECHA_HORA, FUENTE_FECHA_Y_HORA,
ESCALA_FUENTE, COLOR_FECHA_HORA, GROSOR_TEXTO, TIPO_LINEA_TEXTO)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment