Skip to content
Implementaion of "A Simple Approach to Recognise Geometric Shapes Interactively" by Joaquim A. Jorge and Manuel J. Fonseca.
JavaScript
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
demo
.gitignore
.npmignore
LICENSE.md
README.md
index.js
package-lock.json
package.json

README.md

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-recognition

Usage

const detectShape = require("interactive-shape-recognition");

const points = [
  // .. [x, y] positions ..
];

const { shape } = detectShape(points)

// shape is one of: "CIRCLE", "LINE", "RECTANGLE", "UNKNOWN"
You can’t perform that action at this time.