File: image.c

package info (click to toggle)
libgocr 0.7.2-4
  • links: PTS
  • area: main
  • in suites: woody
  • size: 2,888 kB
  • ctags: 3,506
  • sloc: sh: 8,723; ansic: 7,872; makefile: 242
file content (17 lines) | stat: -rw-r--r-- 389 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
 * Test image functions. 
 */

#include "../include/gocr.h"
#include "../include/gocr_module.h"

int main (int argc, char **argv) {
  gocr_init(argc, argv);

  gocr_setAttribute(VERBOSE, (void *)3);
  gocr_imageLoad("small.pbm", (void *)GOCR_BW);
  gocr_printArea(currentimage, 0, 0, currentimage->width-1, currentimage->height-1);
  gocr_imageClose();
  gocr_finalize();
  return 0;
}