How does it work under the hood? #60
-
Awesome project! It would be great if you could add some notes to the readme (or other wiki page) on how it works under the hood. For example here are a few questions I had:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
I read through the code, here's what I learned:
The main capture loop is something like this:
When searching from the UI, it will do a fulltext search in sqlite for matching keywords. Or the database of captured screenshots can be browsed chronologically. |
Beta Was this translation helpful? Give feedback.
-
Mutable generated a wiki for us https://wiki.mutable.ai/jasonjmcghee/rem |
Beta Was this translation helpful? Give feedback.
Now it’s changed a bit- using the old ocr api, which image analyzer uses under the hood. Optionally in “fast mode”. Also optionally only ocr the current window. These together reduce energy usage a fair amount.
another piece not mentioned here is search and timeline.
search and timeline both use AVFoundation to extract a thumbnail from the mp4 for display. Timeline also runs ImageAnalyzer with overlay, so users can select text on the timeline.
search uses full text search to match, optionally filtering by application name.