Hi All,
I'd like to read the OSD date from avi files with python or ffmpeg.
I thought that I would extract the first jpeg from the avi file,
find the corner and extract the date from that. I'm currently reading OpenCV's pattern matching docs
Does anyone know an easy way to do this?
I've managed to get the OSD part of an image from my camera:
Code:
import cv2
import pytesseract
frame = 'axis.png'
img = cv2.imread(frame, 0)
osd = img[0:15, 0:img.shape[1]]
cv2.imshow('test', osd)
cv2.waitKey(1000)
print(pytesseract.image_to_string(osd, lang='eng'))
Thanks,
Zoli