#!/usr/bin/env python3 import argparse from pathlib import Path import cv2 as cv import numpy as np parser = argparse.ArgumentParser(description="Draw text and shape overlays with OpenCV.") parser.add_argument("input_image", type=Path) parser.add_argument("output_image", type=Path) args = parser.parse_args() image = cv.imread(str(args.input_image), cv.IMREAD_COLOR) if image is None: raise SystemExit(f"could not read image: {args.input_image}") annotated = image.copy() height, width = annotated.shape[:2]