How to make Anyline work with just a few lines of JavaScript

Project Description

How to make Anyline work with just a few lines of JavaScript

This week, we launched Anyline 11, our JavaScript SDK. This release lets us take ‘one giant leap’ from being an entirely mobile-based SDK to one that also works on web browsers. It’s a huge development which opens many new opportunities for different use cases.

For a full understanding of these new possibilities, check out the latest blog from our CEO Lukas Kinigadner.

In this guide, I get deep into the details of how the JavaScript SDK works, and what we did to bring it to market in under 2 months.

C++ in, JavaScript out

As you can imagine, Anyline is built from a huge shared code base of  C++. We use it for its versatility, as it can be used on all our existing platforms. In order for it to be understood by web browsers our challenge was therefore to recompile our C++ to JavaScript.

For this, we used the emscripten toolchain. This is a very modern compiler toolchain based around LLVM that turns C++ code into WebAssembly. WebAssembly can be loaded by all modern browsers and executes blazingly fast.

This process enabled us to automatically generate 90% of our JavaScript SDK from our C++ code – an incredible time saver.

Not all smooth sailing…

So far, so simple, right? Not quite. We did face some significant challenges. Firstly, we had to overcome some technical issues relating to Tensorflow, which we use for training of classification and detection networks. Tensorflow is at the heart of our SDK and its execution speed defines much of how fast our SDK feels overall. Because of that we switched to TensorflowJS to get WebGL accelerated inference.

We also had to make some changes inside our core, and compile the dependencies for WebAssembly before adjusting our internal architecture to match the web. Sorting these issues was a tedious process at times, but ultimately worth the effort.

Teamwork makes the dream work

Luckily, some forward planning from our team over the past year made key parts of this project move smoothly. For example, we decided to prepare the UI aspects of our JavaScript SDK a year ago – such as the cutout and visual feedback.

This meant that all of the UI functionality for the browser-based SDK was ready to go, so we could focus on ironing out the issues elsewhere and bring the product to market as quickly as we did.

Getting Started with the JavaScript SDK

With all this said, we’re delighted to be able to bring the JavaScript SDK to our users, and look forward to seeing it in action!

If you want to try it out, you can download the SDK here, and for more information on how it can work for specific use cases, don’t forget to check out Lukas’ blog.

Anyline is a Gartner Cool Vendor

Gartner, the world wide research institute famous for creating the hype cycle model to predict the maturity of emerging technologies, named Anyline as a Cool Vendor for supply chain execution in 2018.

Gartner Cool Vendors exist across all major areas of technology innovation. Those that stand out, do so because they offer some disruptive capability or opportunity. Anyline has been listed as a Cool Vendor because of their mobile OCR technology. This technology is backed by artificial intelligence and machine learning to provide the most accurate scan possible.

“This is a huge success for us. Gartner are one of the best known research institutes in the tech industry. Their work on the “Magic Quadrant” and the “Hype Cycle” have helped to guide companies for years. Growing enterprises around the world rely on the analysis and reports they provide to choose only the best service providers. To be recognized by them is to receive the gold standard of approval within our field.”

– Anyline CEO, Lukas Kinigadner.

Anyline was recognized by Gartner because our technology supports the digitization of all kinds of data. By removing typing and manual data entry from everyday processes, you can save time, money and resources while also improving your data quality.

Follow Us For All The Latest Scanning News!

Want to stay up-to-date on all the latest mobile text recognition technology news? Follow us on Facebook, LinkedIn or Twitter to stay in the know about mobile scanning!

You can also join our mailing list to get all Anyline announcements sent straight to your inbox. Sign-up is simple and we don’t send too many mails!

Finally, if you have questions, suggestions or feedback on this post, please don’t hesitate to reach out to us. Contact us via social media or else send us an email at [email protected]!


Recent Posts

Sign up for our Newsletter!

Be the first to receive the latest news, release notes and updates!