UNPKG

handwritten-mathematics-recogniser

Version:

Easy and abstracted way to recognise handwritten mathematics in a browser or in a web view.

12 lines (11 loc) 435 B
import { Layer } from './layer'; export declare class Segmenter { static getLayers(image: number[][]): Layer[]; private static getLayer(x, y, image, layer); private static connect(x, y, image, layer); private static cropImage(layer, boundingBox); private static initialiseArray(columns, rows); private static doThinning(givenImage); private static getA(image, y, x); private static getB(image, y, x); }