frostyandy2k / de-kit-ar-demo

Web Browser Augmented Reality demonstration for Industry 4.0 packed in a ScaleIT App

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Shopfloor Augmented Reality App

Augmented Reality Shop-floor App built using AR.js

Add a new marker with model

  • Models can be found for example at google poly. Right now only OBJ format is suported.
  • Makers can be generated/trained here
    • The best image ratio seems to be ~7x5
    • If QR codes are added they have to be inversely transformed (stretched along the y axis) because the generator mapps the input image on a square
    • Download the image (to use as a marker) and the pattern to put in the

File Structure

Local Testing

How to Run the app Locally

To run the aoo locally on your computer, first clone a copy of the repository.

$ git clone https://github.com/matthiasSchedel/shopfloor_ar.git $ cd shopfloor_ar After that, serve the files using a static http server. I use a simple command line http server called http-server. This can be installed using npm:

$ npm install -g http-server to start the http-server, simply run:

$ http-server

Can’t access user media error

On mobile, accessing the camera using getUserMedia requires that you have a secure HTTPS connection to the server. To do this, you will need to generate a certificate by running:

$ openssl req -newkey rsa:2048 -new -nodes -x509 -days 3650 -keyout key.pem -out cert.pem This will generate two files: key.pem and cert.pem.

You then run the server with the -S to enable SSL and -C for your certificate files:

$ http-server -S -C cert.pem -o

Example Markers to test with app

Explaination

  • Clicking on a model will replace the model by its linked web-app page and a navigation button

  • A click on the navigation button will openb the linked web-app

  • And a click on the web-app page will go back to the first state with only showing the model

  • To test the application open the app and hold the camera to view one of the 2 markers shown below.

Markers

Marker 1

Board Marker

Marker 2

Robot Arm Marker

Using docker

  • Coming soon ...

About

Web Browser Augmented Reality demonstration for Industry 4.0 packed in a ScaleIT App

License:MIT License


Languages

Language:JavaScript 99.1%Language:HTML 0.9%Language:Shell 0.0%Language:Dockerfile 0.0%