Skip to content

webarkit/webarkit-cv

Repository files navigation

github releases github stars github forks code style: prettier CI WebARKitCV Build WebARKitCV

webarkit-cv

A set of tools to build a custom and light opencv lib to be used in WebAR projects. This is a WIP, but at this moment opencv_js.js can be imported as a ES6 module. The main goal of this project is to develop a WebAR library that can be used to build a WebAR application, based on the OpenCV library. We do not reccomend to use this library in production, but if you want to try it, you can clone the project and test the examples. The API and the structure of the project can change in the future, so be aware of this.

Typescript

WebARKitCV is developed in the Typescript language; Type definitions are in the types folder.

OpenCV and Emscripten emsdk

We are using OpenCV version 4.7.0 (our modified fork) and emsdk 3.1.26

Tools

See the build.sh script. It will build the opencv_js.js lib and after it will copy in the build folder. We are trying to build a lighter opencv_js.js lib, So we use a config to minimize the file size. Without this the final lib will be too big in size with features that we don't need. The opencv_js.js file is based on a modified version of OpenCV that let you import the OpenCV library as a ES6 module. If you are interested read this issue.

Future development

  • npm package
  • documentation
  • first WebAR example