See:
This library is for recognition of handwritten mathematical expresssions in the online fashion, i.e., through the utilization of stroke representations of handwritten symbols.
This is the core part of Glyphoid.
List of currently supported math notation syntaxes:
- Numerical values: Decimal numbers, negative/positive signs
- Basic arithemtics: Addition, subtraction, multplication
- Fractions
- Exponentiation
- Square root
- Parentheses (Limited support so far)
- Variable definition and arithmetics: Symbol names including Latin and Greek letters, with or without suffixes
- Function definition and evaluation: Multi-argument function supported
- Matrices and vectors: Sparse matrix notations supported, addition, multiplication, transpose, inverse
- Certain common elementary functions: e.g., sin, cos, log, exp
- Certain matrix functions: det, rank
- Summation (Sigma) and product (Pi) expressions
- Definite integrals
- Numerical comparisons (e.g., >, <, =)
- Logical AND / OR expressions
- Common mathematical and scientific constants, such as pi, e and c
- Incremental parsing: Example
- Piecewise functions: Example
-
Make sure that you have the following installed:
-
Java 7 or above
-
Apache Maven
-
Download and build the Glyphoid Java Worker Pool Porject
-
Download and build the Glyphoid Java Web Utilites Porject
-
Get the token set data from the tokensets repository. These are required by the unit tests of math-handwriting-lib.
-
cd to the root directory of math-handwriting-lib (i.e., where the pom.xml is)
-
On Linux and Mac, execute Maven clean build and local-repository installation:
mvn clean install -DtokenSetPathPrefix=${TOKENSETS_DATA_DIR}/TS_
On Windows, do
mvn clean install -DtokenSetPathPrefix=${TOKENSETS_DATA_DIR}\TS_
The environment variable tokenSetPathPrefix
tells the unit tests in math-handwriting-lib the location of the test token set files. TOKENSETS_DATA_DIR
is the path to the above-mentioned tokensets repository.