Skip to content

Instantly share code, notes, and snippets.

@MasterKia
MasterKia / tesseract-ocr-folder.ps1
Created December 22, 2021 09:41 — forked from BenniG123/tesseract-ocr-folder.ps1
Quick powershell script to grab all images in a folder, run tessaract OCR on all of them, and then pipe all output to out.txt
function Get-DirectoryName($initialDirectory)
{
[System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms") | Out-Null
$openFolderDialog = New-Object System.Windows.Forms.FolderBrowserDialog
$openFolderDialog.ShowDialog() | Out-Null
return $openFolderDialog.SelectedPath
}
Write-Output "Select image folder"