Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

alan-view

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

alan-view

Alan's view for a given image

  • 0.1.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

(WIP) Alan's View

a.k.a AI's View or Terminator's View, is pure canvas library to overlay measurement data on top of analysed images.

An online demo is available. Also check examples/ and examples/fixtures.json for an example of input data.

Terminator's view

Using

Having some properties/features extracted from a given image:

props =
  src: 'http://foo.com/bar.png'
  cover:
    colors: ...
    saliency: ...
    histogram: ...

We can setup AlanView to draw those features into a given canvas:

view = new AlanView
  canvas: document.getElementById 'some-canvas'
  maxWidth: 500
  maxHeight: 300

view.draw props

Should give something like:

Result

It is also possible to hide layers:

view = new AlanView
  canvas: document.getElementById 'some-canvas'
  maxWidth: 500
  maxHeight: 300
  noCircle: true
  noSceneFading: true
  noColors: true

view.draw props

Those are the options available:

  • noSaliency: hides the salient region bounding box
    • noPolygon: hides the polygon around the salient region
    • noCircle: hides the circle around the salient region
  • noFaces: hides faces bounding boxes
    • noFaceConfidence: hide confidence levels for faces
  • noScene: hides scene bounding box
    • noSceneFading: hides the fading bounding box around scene
  • noLines: hides rows/columns bounding boxes
  • noColors: hides the color palette
  • noTextregions: hides textual regions
  • noBackground: do not clean the background (good for overlays)

Information displayed

Carl

Alan

  • Color palettes: 5 circles at top-left
  • Salient region: white bounding box
  • Salient polygon: white shape with no opacity
  • Salient circle: white circle
  • Scene region: green bounding box
  • Lines (columns/rows): red bounding boxes around scene region
  • Faces: blue bounding boxes around each face
  • Text regions: blue bounding boxes around textual regions

Keywords

FAQs

Package last updated on 26 Aug 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc