Cleaning Up Color Images with LEADTOOLS Document Imaging

Posted on 2016-10-07 10:49:40 by Greg

One of the most foundational features in document imaging is image cleanup (also called preprocessing). When paper documents are scanned to digital form there are almost always imperfections. The paper can be at an angle, hole punches leave large black dots, folded paper introduces lines, and at the very least dust speckles litter small, dark dots throughout the image. All of these can have an adverse trickle-down effect on many other algorithms such as OCR, Forms, Barcode, Compression and more.

There is one caveat with most document imaging libraries: the document images must be black and white. While technically true for LEADTOOLS as well, it's not a limitation whatsoever. Each of the LEADTOOLS document cleanup functions return information on what it has done. For example, you can get the deskew angle, rectangle to crop, or region to fill and then apply those same operations on a color image:

Continue Reading...

Using Video Transforms with the LEADTOOLS Media Foundation Play Control

Posted on 2016-10-07 10:47:01 by Greg

Microsoft Media Foundation is rapidly gaining ground as more and more people adopt the latest Windows Operating Systems. Naturally, it is growing in popularity among our customers since we released our Media Foundation SDK earlier this year.

LEADTOOLS includes high level controls for handling all of the core Multimedia functionality such as playback, capture and conversion. More advanced applications often implement transforms (previously known as filters in DirectShow) to add special processing to the audio and video streams. One of the most popular and flexible transforms in LEADTOOLS is the Video Callback Transform, which gives you direct access to the raw video data. With that data, and one of LEADTOOLS raster, document or medical imaging SDKs, the possibilities are quite endless.

Continue Reading...

Continuous Multipage Scrolling in HTML5

Posted on 2016-10-07 10:34:55 by Greg

Most image viewing applications and controls are designed for viewing a single image at a time. However some images and documents, such as TIFF and PDF, have multiple pages. Since these documents are typically full of text, it is very natural to keep reading on to the next page without the need to press a button to load the next page. We have received several requests for this feature and one of our developer support agents has created an demo showing how to implement continuous multipage scrolling with our HTML5 viewer and RESTful Web Services.

The basic idea works similarly to an image slider or carousel you might see on a homepage. There is an outer container which, when scrolled to a specified location, will asynchronously create an additional HTML5 Viewer for the next page and allow you to keep scrolling until you have reached the end of the document. Below is the JavaScript snippet which modifies the DOM with jQuery and calls the LEADTOOLS Raster Web service to retrieve the image.

Continue Reading...

Using LEADTOOLS CDLL Functions in Android

Posted on 2016-10-07 10:20:31 by Greg

Android NDK for C/C++

After a successful and productive exhibit at AnDevCon, we have had a rewarding time talking to our many customers using the LEADTOOLS Android SDK. It is growing rapidly in popularity, and developers are putting it to use in many exciting ways. Fairly soon, LEADTOOLS should literally be in the palms of millions of hands around the world.

While the LEADTOOLS Android Java class library provides powerful imaging technology, some customers require native only apps or are simply more skilled and comfortable with C/C++ development. Recently, we have had several customers ask if it was possible to use LEADTOOLS C/C++ to create native Android apps (using the Android NDK) instead of using the Java class library. Never backing down from a challenge, our Developer Support agents created a sample project that shows off this functionality. Here’s a snippet of the C++ code that exposes L_IntensityDetectBitmap through JNI:

Continue Reading...

Using JSON in Android for DICOM Communication

Posted on 2016-10-07 10:01:20 by Greg

We have received several requests regarding PACS and DICOM Communication within our Android imaging SDK. One way of accomplishing this is by using JSON to communicate with the RESTful web services included with the HTML5 Zero Footprint DICOM Viewer.

The snippet below shows a portion of the asynchronous code that calls the RESTful Medical Viewer Service and then parses the JSON response to get the SOP Instance UID. After that, the SOP Instance UID is used to get the image data and put it into an InputStream.

Continue Reading...
LEADTOOLS Blog

LEADTOOLS Powered by Apryse,the Market Leading PDF SDK,All Rights Reserved