0.0.12 • Published 5 years ago

autoseg v0.0.12

Weekly downloads
1,031
License
LGPL
Repository
github
Last release
5 years ago

autoseg | Automatic Fast WebAssembly Image Segmentation

autoseg segments images from a list of points and polygons containing classifications. Autoseg was originally created by Severin Ibarluzea for usage with the Universal Data Tool.

Features

  • Simple API
  • WebWorker background computation
  • Deterministic, suitable for mask compression
  • Fast. WebAssembly compiled from state of the art C++ implementations of SLIC superpixeling and graph cut
  • Fully compliant with the Universal Data Tool and UDT Format

Example Inputs -> Output

Input Image

Input Image

Input Polygon

Input Image Polygon

Output Mask

Output Mask

API

const autoseg = require("autoseg") // OR require("autoseg/node")

await autoseg.loadImage({ data: imData, width: 320, height: 249 })

// Points/polygons are in the UDT Shape format
// https://github.com/UniversalDataTool/udt-format
const maskImageData = await autoseg.getMask([
  { regionType: "point", x: 50, y: 50, cls: 0 },
  { regionType: "point", x: 150, y: 150, cls: 1 },
])

// If you have a canvas, you can draw the image of the mask
canvasContext.putImageData(maskImageData, 0, 0)

// NOTE: nodejs doesn't have builtin support for ImageData, but you
// can use the returned data in a similar way, it's an object with
// { data: Uint8ClampedArray, width: number, height: number }

Configuring

await autoseg.setConfig({
  maxClusters: 1000,
  classNames: ["dog", "cat"],
  classColors: [0xffffffff, 0xff000000],
})
react-image-annotate-filterable@everything-registry/sub-chunk-1187tusk-annotatetusk-annotate-tool@arifzeeshan-ign/react-image-annotate@advancedsolutions/react-image-annotate@dataunion.app/react-annotate@dataunion/react-annotate@eylonkoenig/react-image-annotate@intelligence-stack/react-image-annotate@saran-ign/react-image-annotate@rediminds/image-video-annotator@searpent/react-image-annotatemtc-react-image-annotatens_workflow_image_annotationns_workflow_image_annotation_2024ns_workflow_image_annotationsreact-multiple-image-annotatereact-image-annotate_ns_demoreact-image-annotate_ns_demo_brushreact-image-annotatereact-image-annotate-adexereact-image-annotate-cnreact-image-annotate-coonereact-image-annotate-customreact-image-annotate-forkreact-image-annotate-masterreact-image-annotate-master-customreact-image-annotate-prabathreact-image-annotate-prop-2react-image-annotate-switchonreact-image-annotate-switchon-ratanreact-image-annotate-switchon-ratan1react-image-annotate-switchon1react-image-bound-boxreact-image-labelingreact-image-taggerreact-wound-image-annotatereact_image_annotate_ns_workflowreact_image_annotate_ns_workflow_3react_image_annotate_ns_workflow_7react_image_annotate_ns_workflow_8react_image_annotate_ns_workflow_9react_image_annotate_nsworkflow_2024image-annotate-reactholman-react-image-annotate@wcarpenter96/react-image-annotate@yoonjae.yang/react-image-annotate@zalastax/nolb-autosai-image-annotatorcoraldd-react-image-annotatecustom-react-image-annotateautoseg-cli@silentnerd/react-image-annotate
0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.6

5 years ago

0.0.3

5 years ago