Code Monkey home page Code Monkey logo

simplear7's Introduction

simpleAR7

simpleAR7 Demo - Showing Geolocation hacks added to the JSARToolKit5

Entry for The Stamford Hackathon 16-18 September 2016

The Idea

The idea is to allow geolocation-only Augmented Reality (AR) in supported web browsers, without any third party apps (No Apps) required. So No AppAR.

How It Works

The current JSARToolKit5 (ported from the python library) already allows AR in web browsers, but with real-time video detection of markers or limited barcodes. Our hacks use geolocation and geofences to trigger the AR point detection, then allow an image to be displayed at a marker location.

How It Was Built

We modified the JSARToolKit () with geolocation data tagged to markers and a geofence detection code that could be called instead of the current marker detection event loop. The demo web site was coded in JavaScript/CSS/HTML5 with our modified JSARToolKit and Three.js (which was used to display the three-dimensional objects in the canvas). We did find that due to security issues the currently supported browsers (firefox and chrome) can only allow the required getUserMedia method to be allowed if served up with HTTPS. So we hosted our demos under GitHub pages with HTTPS.

What's next for NoApp AR

All of the current geolocation features have been added as javascript patches and will need to be ported back to the original ARToolKit in python (as that is the supported base). Also, since all of the geo and image processing is based in the client web browser, the amount of markers is limited (ARToolKit recommends no more that 1,000 simple markers). This could be increased with a larger geofence that could trigger marker downloads when entered.

The other major current limitation is that the JSARToolKit currently does not support NFT (Natural Feature Tracking) Markers or full photo images, because it is too computationally expensive on the client side.

Live Demos

Apple iPhone and any Android smartphones (or tablets) can run the demo pages (below) with either the Chrome or Firefox browser.

Please note that the geofences are placed from the Stamford Innovation Center (175 Atlantic Street Stamford, CT 06901 lat: 41.052904 lon: -73.539738 to 1544 Bedford Street lat: 41.064597 lon: -73.541436)

https://mkobar.github.io/simpleAR7/index.html

https://mkobar.github.io/simpleAR7/index2.html

Resources

Stamford Hackathon site: http://www.stamfordhackathon.org/

ARToolKit - http://artoolkit.org

JSARToolKit - https://github.com/artoolkit/jsartoolkit5

Three.js - https://threejs.org and http://ushiroad.com/3j/

X3DOM - http://www.x3dom.org

License

Copyright @ 2016 RKOSecurity

simplear7's People

Contributors

mkobar avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.