Skip to content

A tool to rotate and crop scanned images automatically.

License

GPL-3.0, Unknown licenses found

Licenses found

GPL-3.0
LICENSE
Unknown
license.txt
Notifications You must be signed in to change notification settings

bulkware/bwcropper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bwCropper

A tool to rotate and crop scanned images automatically.

Preamble

This tool is intended for rotating and cropping scanned images automatically. It was specifically made for processing comic magazine pages. It assumes the scanned input image is surrounded by black and grey colours. It then measures the distance between the edges and the image by calculating the RGB colour luminance of each pixel. If the pixel luminance exceeds given value, it assumes the image begins. It also rotates the pages to different angles, trying to find the optimal angle which to use for cropping.

This tool was also made because I wanted to learn Go programming language. I am still learning the very basics, so any issues, improvements or any input really would be greatly appreciated =)

Relative luminance

The formula for calculating relative luminance is taken from here: https://en.wikipedia.org/wiki/Relative_luminance

About

A tool to rotate and crop scanned images automatically.

Resources

License

GPL-3.0, Unknown licenses found

Licenses found

GPL-3.0
LICENSE
Unknown
license.txt

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages