📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP
Socket
Sign inDemoInstall
Socket

mirada

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mirada

Node.js and Browser high level OpenCv API. Based on OpenCv.js and distributed as npm package with support for TypeScript and easy APIs for server and browser.

0.0.15
latest
Source
npm
Version published
Weekly downloads
18K
15.14%
Maintainers
1
Weekly downloads
 
Created
Source

OpenCv JavaScript/TypeScript API for Node.js and Browser on top of OpenCv.js, adding support for npm, TypeScript and utilities related to asynchronicity, DOM, etc.

Contents

  • Summary
  • Install
  • Usage

Summary

  • TypeScript editor playground. Experience TypeScript code editor with opencv.js TypeScript online with autocomplete, type-checking, online docs, etc.
  • Video filter demo. Filter camera output with many opencv operations real time. Multiple operations can be applied together and their order and parameters can be configured.
  • Type declarations are generated by Project doxygen2typescript automatically from opencv doxygen XML documentation output.

Install

npm i mirada

Usage

Sorry I don't have docs yet, please take a look to tests. (Working on it)

Reference API

Extra APIs: project ojos

This project focus on providing type declarations for opencv.js, node.js support, a thin facade for registering image codecs, a thin facade around Mat for easy loading / writing / render from different mediums in node.js and browser.

But little more. Besides mentioned facades, this project limits to support existing opencv APIs, and test both types and implementation works. It doesn't contain high level APIs or features to keep it simple.

Then, the project ojos provides high level APIs, features and utilities, on top of this project. These are my creation and not present in openCV APIs, some of them just wrappers to existing opencv APIs with defensive checks or defaults, other more elaborated transformations involving several opencv operations. For example, Video filter demo is based on ojos

Command line

See mirada-cli project page.

TODO

  • docs - usage- - tuts - getting starterd
  • integrate the new videoCapturer and replace/remove the old one src/browser/videoCapture.ts
  • browser tests
  • canvas codec loaded in browser bu default
  • canvas codec support svg image input
  • move tool and commands to another project
  • the morphing with slide effect but against two different videos ? (like obama and trump speeches and come from one to the other and back again with the slider) - see http://overengineer.net/enabling-cors-for-html5-video-element-screenshots
  • camera helpers ../mirada-ts-playground/src/examples/toPack/faceDetectionCamera.ts
  • ensureDataFile()
  • learnopencv.com/non-photorealistic-rendering-using-opencv-python-c/
  • don't waste more time manually porting docs. build the doxygen2typescript thing

Keywords

typescript

FAQs

Package last updated on 17 Sep 2019

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