Accessor: image/ComputerVision

image/ComputerVision

A computer vision accessor. This accessor takes an input image, applies a computer vision transformation, and outputs the modified image.

Try me! For 'input', enter /accessors/hosts/browser/demo/computerVision/terraswarm.jpg then click 'react to inputs'.

The input may be an image or a path to a local image. Remote images are not supported due to browser security restrictions - a browser will not allow a remote image to be exported from a canvas.

This accessor uses the computer vision library from UC Irvine, https://github.com/ucisysarch/opencvjs Please see cvlicense.txt in /accessor/web/hosts/browser/modules/cvlicense.txt, available as http://accessors.org/hosts/browser/modules/cvlicense.txt.

To run, please point your browser to: http://accessors.org/node_modules/@accessors-hosts/browser/demo/computerVision/computerVision.html

Version:
  • $$Id$$
Author:
  • Sajjad Taheri (CV code), Elizabeth Osyk (accessorization)
Source:
Inputs:
Name Type Description
input (string or image) An image or path to a local image. Remote images are not supported due to browser security restrictions - a browser will not allow a remote image to be exported from a canvas.
Outputs:
Name Type Description
output (image) A modified image.
Parameters:
Name Type Description
options (JSON) Options for the selected transform, if any.
transform (string) The transform to apply to the image. Selected from a list.

Methods

(static) initialize()

Register an input handler to apply the selected transformation on each input image.

Source:

(static) setup()

Create inputs, outputs and parameters for the accessor.

Source: