• Stars
    star
    55
  • Rank 519,348 (Top 11 %)
  • Language
    C++
  • Created over 13 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Clojure wrapper for the Tesseract OCR software
# clj-tesseract

A Clojure wrapper for the Tesseract OCR software.

## Installation

 1. Install OpenCV and Tesseract for you target platform

    In OSX this can be accomplished using MacPorts.

 2. Install Nakkaya's Vision library for Clojure

    Instructions can be found here: http://nakkaya.com/vision.html
    You need to copy the Vision .jar file to the clj-tesseract project
    lib directory.

 3. Compile clj-tesseract native shared library.

    $ cd microcr && make
    $ sudo cp libmicrocr.dylib /usr/local/lib/libmicrocr.dylib

 4. Compile clj-tesseract classes

    $ lein compile

 5. Run the tests to check that everything is ok

   $ lein test

 6. Fire swank/SLIME

    $ lein swank


## Usage

;; Load the library
(use 'clj-tesseract.core)

;; Load vision
(use 'vision.core)

;; Start tesseract

(def *api* (make-tesseract "/tmp"))

;; Retrieve an image from the
;; the standard webcam

(def *capture* (capture-from-cam 0))
(def *frame* (query-frame *capture*))

;; try capture

(def *text* (capture *api* *frame*))
(println (str "Captured: " *text*))

;; release resources

(clear *api*)
(release *capture*)

;; load image from file

(def *img* (load-image "./test/adam.png" :grayscale))
(view :test *img*) ; show the image in a Frame

;; try capture and clear

(println (str "Captured:"  (capture *api* *img*)))
(clear *api*)

;; release Tesseract

(end *api*)


## License

Copyright (C) 2010 Antonio Garrote

Distributed under the Eclipse Public License, the same as Clojure.

More Repositories

1

rdfstore-js

JS RDF store with SPARQL support
JavaScript
561
star
2

clj-ml

A machine learning library for Clojure built on top of Weka and friends
Clojure
148
star
3

jobim

Actors library for Clojure
Clojure
113
star
4

palermo

Palermo a job processing system inspired by resque for the JVM and RabbitMQ
JavaScript
69
star
5

json-ld-macros

Declarative transformation of JSON APIs into JSON-LD
JavaScript
68
star
6

clj-plaza

clojure's rdf framework
JavaScript
49
star
7

apricot-soup

HTML manipulation library for Clojure
Clojure
39
star
8

lein-javac

a javac plugin for the leiningen clojure's building system
Clojure
36
star
9

semantic-ko

declarative web interfaces using semantic data
JavaScript
32
star
10

typed.rb

Gradual type checker for Ruby
Ruby
30
star
11

egearmand-server

erlang implementation of gearman server
Erlang
28
star
12

clj-haml

a haml like template HTML library for clojure
Clojure
27
star
13

levanzo

Building hypermedia APIs in Clojure using Hydra and Triple Fragment Patterns
Clojure
26
star
14

clj-r2rml

Clojure implementation of the W3C proposal R2RML: RDB to RDF mapping language
Objective-J
25
star
15

clj-control

control abstractions for the Clojure programming language
Clojure
19
star
16

NodeJS-WebID-demo

JavaScript
14
star
17

clj-s4

Clojure library for the Yahoo S4 distributed streams framework
Clojure
13
star
18

mahout-vis

Visualization utils for Mahout and the Clojure REPL
Clojure
12
star
19

hiccup-rdfa

RDFa function for hiccup templates that can be used in a Clojure Ring app
Clojure
12
star
20

rdf-raptor-node-js

Node.js extension for the Raptor RDF library
C++
11
star
21

clojure_kilim

Clojure/Kilim integration
Java
11
star
22

stardog-rb

Ruby bindings for Stardog HTTP API
Ruby
10
star
23

erlfaye

comet ++ websockets ++ erlang
Erlang
10
star
24

tokengame

modelling distributed systems in Clojure
Clojure
9
star
25

mondello

Mondello is a free graphical client for Docker, Docker Machine, Docker Compose for OSX
JavaScript
9
star
26

clojure-grizzly-trial

a sample clojure-grizzly adapter based on jruby-grizzly
Clojure
8
star
27

cronparser.erl

Crontab parsing and date computation functionality for erlang
Erlang
8
star
28

Chinarro

Chinarro is a version of Pocho who likes parenthesis
Clojure
7
star
29

micrograph.js

graph data layer for JS client apps
JavaScript
7
star
30

sparql-clj-v8-integration

an experiment embedding V8 into Clojure
JavaScript
6
star
31

semantic_rest

toolkit for the creation of semantic restful web services
JavaScript
5
star
32

serenade.js

JS music library based on "Music for Geeks and Nerds"
JavaScript
5
star
33

conf_rails_hispana_2009

a sample project for the rails conf hispana 2009
Ruby
5
star
34

clj-tuples

Support for tuples and pattern matching in clojure
Clojure
4
star
35

clj-plaza-rabbit

Yet another RabbitMQ Clojure wrapper
Clojure
4
star
36

geektalk

a demo JS app using RDF to link data from different APIs
JavaScript
4
star
37

exceptions_begone_dispatcher

Pushing live exceptions (begone!) from one application to your websockets enabled browser
Erlang
3
star
38

CortesAbiertas---Abredatos-2010

JavaScript
3
star
39

cassandra-wrapper

a Clojure 1.2 wrapper for Cassandra Thrift API aiming current version of Cassandra
3
star
40

social.rdf

Javascript platform to aggregate and publish social data associated to a WebID
JavaScript
3
star
41

linkedvis

Grammar of Graphics style Visualization Toolkit for RDF
JavaScript
3
star
42

Plaza

Non object oriented, non SQL based, non MVC centered web framework for building web applications consisting of sets of semantic RESTful web services.
Erlang
3
star
43

pivotal_tracker_iphone

an iphone client for pivotal tracker (http://www.pivotaltracker.com)
2
star
44

grel

Query and manipulation library of ruby objects in a graph
Ruby
2
star
45

clj-raml

RAML library in Clojure
Clojure
2
star
46

clj-LOGO

a clojure interpreter for the LOGO programming language that runs on Google App Engine
Clojure
2
star
47

coding-test

the coding test
1
star
48

dbwidgets

widgets+dashboard demo app using DBPedia info
JavaScript
1
star