* Copyright (c) 2004-2005 Platon Group, http://platon.sk/
* Licensed under terms of GNU General Public License.
* All rights reserved.
*
* Changelog:
* 2004-12-04 - created
*
*/
/* $Platon: phpWebFileManager/plugins/ocr.php,v 1.1 2005/05/03 08:57:32 nepto Exp $ */
$fm_init_file = dirname(__FILE__)
. (strlen(dirname(__FILE__)) > 0 ? '/' : '')
. '../init.inc.php';
if (! @file_exists($fm_init_file)) {
exit;
}
require_once $fm_init_file;
require_once $PN_PathPrefix . 'functions.inc.php';
$file = '../'.$fm_cfg['dir']['root'].$_REQUEST[$fm_cfg['cgi'].'image_file'];
echo 'Filename: ',basename($file),'
',"\n";
echo 'Filesize: ',filesize($file),'
',"\n";
echo 'Image:
',"\n";
echo 'OCR engine:
';
echo shell_exec('/usr/bin/php /home/nepto/tmp/rac/img-ocr/do-ocr.php '.escapeshellarg($file));
echo '';
/* Modeline for ViM {{{
* vim: set ts=4:
* vim600: fdm=marker fdl=0 fdc=0:
* }}} */
?>