use FuzzyOcr::Config qw(get_config set_config get_tmpdir);
use FuzzyOcr::Misc qw(save_execute);
use FuzzyOcr::Logging qw(errorlog warnlog infolog);
use File::Basename qw(dirname);
# Provide functions to deanimate gifs
sub deanimate {
my $conf = get_config();
my $imgdir = get_tmpdir();
my $tfile = shift;
my $imgdir = dirname($tfile);
my $efile = $tfile . ".err";
my $tfile2 = $tfile;
my $tfile3 = $tfile;
sub gif_info {
my $giffile = $_[0];
my $imgdir = dirname($giffile);
my $fd = new IO::Handle;
package FuzzyOcr::Preprocessor;
sub new {
my ($class, $label, $command, $args) = @_;
sub run {
my ($self, $input) = @_;
my $tmpdir = FuzzyOcr::Config::get_tmpdir();
my $tmpdir = dirname($input);
my $label = $self->{label};
my $output = "$tmpdir/prep.$label.out";
my $stderr = ">$tmpdir/prep.$label.err";
use lib qw(..);
use FuzzyOcr::Logging qw(errorlog);
my ($class, $label, $preprocessors, $command, $args, $output_in) = @_;
my $conf = FuzzyOcr::Config::get_config();
my $output = "$tmpdir/scanset.$label.out";
my $stderr = ">$tmpdir/scanset.$label.err";