Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

SnapCode 🦥: I stopped retyping code from lecture slides. One hotkey, offline, Gemma does the rest

Описание и применение

SnapCode автоматизирует копирование кода с лекционных слайдов в Colab, используя Tesseract и Gemma, сокращая время с 60–90 с до 5–15 с за ячейку.

Задача

Copying code from lecture slides into Colab was slow, error‑prone, and required an internet connection.

Результат

SnapCode reduced per‑cell copy time from 60–90 s to 5–15 s, achieving 100 % exact code matches on four real lecture screenshots and eliminating the need for an internet connection.

Рабочий процесс

  • Press hotkey to capture region
  • Tesseract OCR extracts raw text
  • Gemma refines text (quotes, brackets, indentation)
  • Python ast verifies syntax, retry if needed
  • Copy cleaned code to clipboard (Cmd+V)

Доказательства

Press a hotkey, drag a box around code on a lecture slide or video, then press Cmd+V. The clean, correctly indented code is already on your clipboard.

Источник

SnapCode (Tesseract + Gemma): ... It matches the slide exactly.

Источник

Results on 4 real lecture screenshots ... 100% exact match.

Источник

My old Google Lens routine took about 60–90 seconds per cell... With SnapCode it's a hotkey and a 5–15 second wait.

Источник

  • Дата записи: 2026-10-25T07:26:12.551Z