Skip to content

Instantly share code, notes, and snippets.

@Erol444
Erol444 / center_text_on_cv2_frame.py
Created September 4, 2022 21:19
Center text on a OpenCV frame in Python
#!/usr/bin/env python
import cv2
import numpy as np
from enum import IntEnum
class Position(IntEnum):
"""
Where on frame do we want to print text.
"""