Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/diogok/yaar
Yet Another Augmented Reality (a wrapper in javascript)
https://github.com/diogok/yaar
Last synced: about 2 months ago
JSON representation
Yet Another Augmented Reality (a wrapper in javascript)
- Host: GitHub
- URL: https://github.com/diogok/yaar
- Owner: diogok
- Created: 2015-02-27T00:25:54.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-02-27T00:42:08.000Z (almost 10 years ago)
- Last Synced: 2023-04-13T15:11:49.635Z (over 1 year ago)
- Language: JavaScript
- Size: 129 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Yet Another Augmented Reality in Javascript
This is just a wrapper. Get the (rear, if available) camera into a canvas and detects augmented reality markers on it, smoothly and also works fine on mobile.
[Just check it out](http://diogok.net/yaar).
[js-aruco](https://code.google.com/p/js-aruco/) is a great augmented reality lib in javascript, based on [ArUco](http://www.uco.es/investiga/grupos/ava/node/26), a lightweight RA based on OpenCV.
Also checkout the [js aruco markers](http://github.com/diogok/js-aruco-markers) to use with this.
## Compatibility
Work and tested on:
- Desktop Firefox
- Desktop Chrome
- Android Firefox
- Android ChromeDoes Not Work on:
- Android Stock Browser
- iOS Safari
- Desktop Safari
- IELikely to work, but not tested:
- iOS Chrome
- iOS FirefoxDoes not work on Android nor iOS stock browser so, no phonegap or cordova. But could work on [Chrome Apps](https://github.com/MobileChromeApps/mobile-chrome-apps), got to test that.
## Usage
Place yarr.js and detector.js in known place. Detector actually contains the code for OpenCV and Aruco in it, and it works as a webworker.
Take a look at index.html.
So, simply:
var opts = {
id: 'canvas-id', // canvas for the yaar to use
draw: true, // If I should draw lines on the found markers, good for debug
onMarker: function(markers){} // listen for found markers, with their ids and position
};
var instance = yaar(opts);
// sometime later
instance.stop();## License
OpenCV is BSD.
JS-Aruco is MIT.
This is MIT.