Skip to content

Instantly share code, notes, and snippets.

View rob0tca's full-sized avatar

Rebecca Dickson rob0tca

View GitHub Profile
@rob0tca
rob0tca / batch_ocr.gs
Created September 28, 2017 04:54
Google Apps script for performing OCR on all JPEGS found in the specified Drive folder. Extracts text to a Google sheet, where it's mapped to the JPEG's filename.
function extractTextOnOpen() {
//ADD YOUR VALUES BELOW
var folderName = "[YOUR PROJECT FOLDER]";
var sheetId = "[YOUR SHEET ID]";
//Define folder
var folder = DriveApp.getFoldersByName(folderName).next();
var folderId = folder.getId();