Code Monkey home page Code Monkey logo

apriltags-emscripten's Introduction

AprilTags in JavaScript with emscripten

Some AprilTags

This is a proof of concept project showing how to detect AprilTags using JavaScript. The original C code was cross compiled to JavaScript with emscripten. The result is html/apriltag.js. An example of how to use this wrapped c library can be found in html/index.html.

Demo

Try it out here. You can either choose the included example.jpg file, or, if you're on a device that allows you to directly capture images, you might want to capture a picture of the above image.

It should detect the three tags visible.

Limits

  • Only the tag36h11 family is supported. I didn't bother including the other families as that seems to be the recommended anyway.

  • The example code scales the input image down to a maximum resolution of 800x800. Otherwise Safari on my IPad crashes :-)

  • All detection parameters are fixed at the moment. So you have to recompile with emscripten if you want to change any of those.

  • No error handling whatsoever :-P

apriltags-emscripten's People

Contributors

dividuum avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

dazkind

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.