danilkhromov / cropneg

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cropneg

Description

cropneg is a darktable plugin that automatically crops negative scans by exposed area bounds. Main application is written in go using GoCV library.

The project was inspired by this proof of concept.

How it works

Application tries to find exposure bounds of provided image by gradually thresholding it.

Cropping works best if your scan has good contrast between exposed area and film base.


Installation

Download the archive, place cropneg binary in your $HOME/bin folder. Place the crop_negative.lua in the $HOME/.config/darktable/lua and then add require "crop_negative" to the luarc file in $HOME/.config/darktable.

For more information about the lua scripts for darktable see this and this.

Usage

In darktable select enable auto crop checkbox located under the export tab. Selected images will be cropped automatically in the export process. If application is unable to properly detect exposed bounds of scanned image, then it will be exported without any cropping.


Notes

Currently this application can run on linux.

About


Languages

Language:Go 78.1%Language:Lua 21.9%