For time tracking with screenshots and advanced tagging based on window titles (and sometimes open documents), there is also ManicTime [1]. I don’t think it has OCR though.
ManicTime was a lifesaver when I was working as a consultant and had to attribute every hour of my week to one of several clients.
> cloud or license
The free tier is bought by being a firehose of data for them.
The opposite, actually. Nothing leaves the computer you install it on, unless you specifically pay for their cloud service or stand up your own server. This is one of the reasons I chose it for myself over using timely or toggl.