For OCR you will need OpenCV compiled with Tesseract support.
See tutorial here, especially using the C++ API:
[https://www.learnopencv.com/deep-learning-based-text-recognition-ocr-using-tesseract-and-opencv](https://www.learnopencv.com/deep-learning-based-text-recognition-ocr-using-tesseract-and
What packages and sample code projects can I use to write a multi-platform time
tracker with ML use?
What I need:
* take a screenshot every Nth second (one in a minute is affordable I think)
* encode it into daily or weekly video ring buffer (for logging)
* OCR screenshot for text