About this project
One of my favorite features of my ipad is the apple pencil. So naturally, to keep my notes platform neutral and syncable across all my devices, I use Obsidian Notes everywhere. The problem is, as my notes library has been growing, I can't search for notes that I've written like in Apple notes. Obisidian's Excalidraw does have an OCR setting but it's using a third-party service called taskbone. I don't know anything about them and saw this as an opportunity to build something custom. Unfortunately I defaulted to running it on a server but with a homelab, it isn't a problem for me. I may however, look into creating a startup script or something for excalidraw. This self hosted solution uses any model your heart desires from openrouter. The script takes your API key, defaults to two free models that are vision capable and will send your drawings to the model for transcription. The transcript gets saved in your Obsidian notebook where it has a link to the drawing and is now searchable.
Future considerations
The first is something that runs locally on the device that the notes are being made on. Removes the middleman that needs this service and your vault being synced. The next is the ability to run on self hosted models. The ultimate form of AI privacy.