Skip to content

kalwalt/webarkit-OCVT

Repository files navigation

webarkit-OCVT

WIP -> Testing the OCVT module from ArtoolkitX for webarkit. Briefly this project try to integrate ARToolkit5 and ARToolkitX for WebAR thanks to Emscripten, the C and C++ was modified to adpat it to our needs.

Example

Run the examples in localhost with a python server or http-server, inside the examples folder try one of them:

barcode.html // using barcode marker 4.
hiro.html // using the hiro pattern.
nft_example.html // using nft marker, not yet working.
2d_example.html // using 2d tracking, just for testing, not tracking.
orb_2d_example.html // using orb_2d tracking, still experimental , it detect and track but not working as expected. 

Building notes

First you need to load the WebARKitLib submodule with git submodule update --init then you can run the build script in the main folder ./build.sh. The script will download the required opencv libs and modules to be used in the project. Pay attention that using other opencv version will not work out of the box. Last, you need to use emsdk (Emscripten) 3.1.7 because this project was compiled with this version (and opencv libs too).

Steps for building:

Install all node modules:

npm install

If you make changes in the WebARKitLib run:

npm run build

Then run:

npm run dev-ts

This last will compile the dist library (in dev mode).