This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A PowerShell script to use ImageMagick to find documents | |
# arranged vertically in scanned images | |
# and crop out each into separate images. | |
# | |
# Usage: ./findGapsBetweenScans.ps1 [-extension abc] [-threshold float ][-nosource] [-nodelete] | |
# | |
# Will analyze all images with extention abc (default is bmp) | |
# in current folder. | |
# | |
# if -nodeltee switch is used then script will skip deleting of temp files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Param( | |
[Parameter(Mandatory=$true)][string]$binder = $null | |
) | |
write-host renner started | |
Get-ChildItem -Filter *.bmp | | |
Foreach-Object { | |
# $origName = $_.FullName -replace 'f', '-front' | |
if ($_.BaseName -match '^[0-9]*[f|b]$') { | |
if ($_.BaseName -match 'f') { | |
$side = 'front' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A PowerShell script to use ImageMagick to find documents | |
# arranged vertically in scanned images | |
# and crop out each into separate images. | |
# | |
# Usage: ./findGapsBetweenScans.ps1 [-extension abc] [-threshold float ][-nosource] [-nodelete] | |
# | |
# Will analyze all images with extention abc (default is bmp) | |
# in current folder. | |
# | |
# if -nodeltee switch is used then script will skip deleting of temp files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ECHO off | |
SETLOCAL ENABLEDELAYEDEXPANSION ENABLEEXTENSIONS | |
REM chop.bat uses ImageMagick to cut all .bmp files in the current folder | |
REM into three .BMP files. | |
REM | |
REM Usage: | |
REM chop.bat optional:([topCut1] [bottomCut1] [topCut2] [bottomCut2] [topCut2] [bottomCut2]) | |
REM | |
REM If no arguments are provided chop.bat will use the following: | |
SET topCut1=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function chopper { | |
Get-ChildItem $PSScriptRoot -Filter *.jpg | | |
Foreach-Object { | |
[System.Collections.ArrayList]$gapInfo = @() | |
$gapInfo += $_ | |
$gapInfo += 96 | |
$gapInfo += 96 | |
$gapInfo += 106 | |
$gapInfo += 2379 | |
$gapInfo += 133 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param( | |
[string]$ext = "bmp", | |
[float]$triplethresh = 0.09, | |
[float]$singlethresh = 0.04, | |
[string]$colour = 'rgb(55,60,56)', | |
[Parameter(Mandatory = $true)][int]$tempNum, | |
[string]$stopAfter = "", | |
[float]$rotThresh = 2, | |
[int]$max = 3, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ECHO off | |
SETLOCAL ENABLEDELAYEDEXPANSION ENABLEEXTENSIONS | |
REM IMprocessBMPscansOnBlackCarstock.bat | |
REM Usage: IMprocessBMPscansOnBlackCarstock.bat optional:(fuzz[integer] padding[integer]) | |
REM Creates straightened and cropped with padding 100% quality jpgs | |
REM of all BMP files in current directory and places them in a subdirectory | |
REM called output | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param( | |
[string]$ext = "jpg" | |
) | |
# Powershell script that runs photos (default jpg) in current folder through | |
# Microsoft's Cognitive Services Vision API and rotates the photo | |
# to match the orientation that MSCSVapi has the most confidence in its caption of. | |
New-Item -ItemType directory -Path $PSScriptRoot/temp -Force | |
function callMsAPI { |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OlderNewer