interactive-shape-recognition
v1.0.1
Published
Implementaion of "A Simple Approach to Recognise Geometric Shapes Interactively" by Joaquim A. Jorge and Manuel J. Fonseca.
Readme
Interactive Shape Recognition
Implementaion of "A Simple Approach to Recognise Geometric Shapes Interactively" by Joaquim A. Jorge and Manuel J. Fonseca.
Installation
npm i interactive-shape-recognitionUsage
const detectShape = require("Interactive-shape-recognition");
const points = [
// .. [x, y] positions ..
];
const { shape } = detectShape(points)
// shape is one of: "CIRCLE", "LINE", "RECTANGLE", "UNKNOWN"