Using JSON in Android for DICOM Communication

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.

Java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
protected Bitmap doInBackground(String... urls) {
String seriesID = //...
// ************* Get Selected Series Presentation Info ***************
// ------ Get the presentation info for the first series -----
httpget = getHttpGet(String.format("http://demo.leadtools.com/MedicalViewerService/ObjectRetrieveService.svc/GetPresentationInfo?auth=%s&series=%s", authenticationToken, seriesID));
// Send the request and read the response
httpResponse = httpclient.execute(httpget);
resEntity = httpResponse.getEntity();
String info = EntityUtils.toString(resEntity);
// ###********** Get Selected Series Info ************###
JSONArray infoArray = new JSONArray(info);
if(studiesArray.length() < 1)
return null;
JSONObject sopInfoObj = infoArray.getJSONObject(0);
String sopInstanceUID = sopInfoObj.getString("SOPInstanceUID");
// ************* Get the images (First Frame) ***************
int frameNumber = 1;
InputStream in = new URL(String.format("http://demo.leadtools.com/MedicalViewerService/ObjectRetrieveService.svc/GetImage?auth=%s&instance=%s&frame=%d&cx=%d&cy=%d", authenticationToken, sopInstanceUID, frameNumber, 1024, 1024)).openStream();
// ###********** Get the images url (First Frame) ************###
return BitmapFactory.decodeStream(in);
}
protected void onPostExecute(Bitmap bm) {
mDialog.dismiss();
if(bm == null) {
displayAlert("Ann Error Occured");
} else {
ImageView imgView = (ImageView) findViewById(R.id.imageview1);
imgView.setImageBitmap(bm);
}
}
Calling Medical Web Viewer on Android

Typically, the workflow for something like this would be to authenticate the service calls, start at the patient or study level with a broad or narrow search, parse the JSON, and display the matching results. Then the user can drill down to the series and image or images to be displayed with increasingly narrow service requests and JSON responses. Attached is an Android Java project that does just that and more. If you have any more questions or would like to see more examples like this, please leave a comment below or contact support@leadtools.com

Posted in PACS | Tagged , , , , , , , , , , , , | Leave a comment

LEAD Exhibiting at Android Developer Conference (AnDevCon) 2013

LEADTOOLS Anywhere™ is getting pretty popular and keeping our sales and support staff busy. LEAD Technologies is a common sight around the world at various tradeshows and conferences. With our new cross-platform libraries we can now be a part of even more, and next week will mark the first time ever that LEAD will be an exhibitor at an Android specific conference!

Win a $25 Google Play Gift Card

At the end of each exhibit day, LEAD Technologies will be giving away five $25 Google Play gift cards to use on new apps and games for your Android device! Stop by our booth, let us scan your badge, and come back at the end of the day to see if your name gets chosen!

Speaking of free apps, did you know LEADTOOLS has published several of its demos to Google Play and other mobile app stores? See for yourself just how powerful LEADTOOLS imaging technology is by downloading our free apps for OCR, Barcode, Image Processing, DICOM viewing and more.

Posted in Marketing | Tagged , , , , , , , , , , , , , , , , , , , , , , , , | Leave a comment

New Media Foundation Features and Updates

LEAD Technologies has a strong commitment to ongoing support and improvements to the current version. This isn’t just the bare minimum bug fixing and workarounds like the rest, we’re talking about new features and additions that are added to the toolkit at no charge or upgrade fee. Today we have released an update to the Media Foundation features within the LEADTOOLS Multimedia SDK.

At first glance some of these features might not seem like much, such as a live preview for the capture and convert controls. However, anyone who has attempted low level Media Foundation programming knows this is a pretty major undertaking. The near-magical work our engineers did will save LEADTOOLS customers countless hours of headache! Here’s what’s new and improved for the Media Foundation SDK:

  • Live preview for convert and capture modules
  • Enhanced DirectShow LEAD Screen Capture Filter when used in Media Foundation
  • Improved usage of DirectShow audio and video capture devices in Media Foundation under Windows 8
  • Enhanced support for playing and writing WMV files in Windows 8

Though Media Foundation certainly was the primary focus of this update, our customers using DirectShow will also be glad to see some improvements:

  • More advanced frame rate options for Windows 8, including reverse playback
  • Added options for selecting the preferred decoder rather than using the default Microsoft decoder

These features and enhancements go a long way towards making LEADTOOLS the absolute best choice for developing Media Foundation applications with the highest quality, compression and speed. All of these features are included in the latest Multimedia download.

Posted in Multimedia Imaging | Tagged , , , , , , , , , , , , , , | Leave a comment

New Article on The CodeProject: Multi-Platform Barcode with LEADTOOLS 18

LEADTOOLS Version 18, also known as LEADTOOLS Anywhere™, is designed with the purpose of opening new opportunities and easing the development of high quality imaging applications that can run anywhere. Since V18′s release earlier this year, we have published several articles on The CodeProject showing the benefits of using LEADTOOLS to create multi-platform, native apps for .NET, WinRT, iOS, OS X and Android.

This month we are continuing that series and have written an article showing the beauty and simplicity of using LEADTOOLS Anywhere™ for barcode recognition. For each platform, it only requires a few simple lines of code to detect and recognize barcodes from still images and video streams. Head on over to The CodeProject, grab the latest evaluation for LEADTOOLS V18 and see for yourself how LEADTOOLS Anywhere™ can increase your mobile app’s ROI.

Posted in Barcode | Tagged , , , , , , , , , , , , , , , , , , , , | Leave a comment

New Video Presenting HTML5 Zero Footprint DICOM Viewer

The latest LEADTOOLS Version 18 promo video from our marketing crew shows off LEADTOOLS’ HTML5 Zero Footprint DICOM Viewer. This new video shows new and improved features including PACS connectivity, advanced client-side tools, DICOM annotations, study and series cell layout, patient orientation and reference lines.

In case you missed it, our first Version 18 promo video covered the new features in the OCR engine. Stay tuned for more videos, and be sure to let us know if there’s something you specifically want to see covered!

Posted in HTML5 | Tagged , , , , , , , , , , , , , | Leave a comment

LEADTOOLS Anywhere™ Still Growing – Windows Phone 8 and Linux

The LEADTOOLS Anywhereâ„¢ cross platform libraries in LEADTOOLS V18 have been very popular since their release earlier this year. LEAD continues to expand its reach by adding new development platforms and interfaces for Windows Phone 8 and Linux.

Click on the headers below for more a more detailed list of all the features supported by each interface.

Windows Phone 8

Windows Phone 8, powered by the new Windows Runtime or WinRT, is growing. Savvy mobile app developers are taking advantage of the new opportunities and LEADTOOLS is here to help them with their imaging needs. LEADTOOLS V18 has much to offer, including viewers, annotations and markup, OCR, barcode, image formats, compression, image processing and more.

Linux

For developers creating a server-based application, Linux is an attractive option. Whether purchasing hardware, self-hosting, or sourcing a third-party server host, the cost for choosing Linux for your server needs are typically far superior. Imaging is much more than what you see on the screen; the majority of LEADTOOLS imaging features work behind the scenes and have been ported to run on Linux.

Posted in General Imaging | Tagged , , , , , , , , , , , , , , , , , , , , , | Leave a comment

Universal Annotations Design and Format in LEADTOOLS 18

Annotation and Markup has been a staple feature in LEADTOOLS Document Imaging SDKs for almost two decades. Over the years it has undergone several transformations, some cosmetic and some structural. LEADTOOLS Annotations, which started as a CDLL API, were also ported to new technologies as they came along: C++ Classes, .NET, WPF, Silverlight, HTML5 and more. Not only did we add new interfaces with the release of LEADTOOLS Anywhere™ in Version 18, but the Annotations library took on another big change that will not only future-proof the library, but also make cross-platform application development a breeze.

Compared to our current offering, the new annotations design and format in LEADTOOLS V18 most closely resembles the .NET interface. Developers using .NET, WPF, Silverlight, HTML5/JavaScript, WinRT, iOS, OS X and Android now share identical libraries. On top of the uniform programming interface design, the annotation file format which LEADTOOLS loads and saves has been standardized as well, allowing annotations to be loaded and saved in any LEADTOOLS application, regardless of its development platform.

Overall, LEAD is very excited about the big upgrade to the Annotation and Markup engine and hopes it will make all of our existing and future customers very happy with its improved ease of use and compatibility.

Posted in Document Imaging | Tagged , , , , , , , , , , , , , , , , , , , , , , | Leave a comment

Media Foundation Capture and Convert with LEADTOOLS 18 on The CodeProject

We’re going back to back with Multimedia Version 18 articles on The CodeProject. After showing how to create a powerful RTSP Server with only a few lines of code last month, now we’re illustrating how easy it is to implement Microsoft Media Foundation Capture and Convert functionality with LEADTOOLS Version 18.

LEADTOOLS has a rich history of simplifying DirectShow application deployment with its award-winning Multimedia SDKs. Version 18 builds on that reputation and provides the same programmer-friendly interface and powerful features that developers can rely upon for years to come as Microsoft Media Foundation becomes more and more popular.

Posted in Multimedia Imaging | Tagged , , , , , , , , , | Leave a comment

LEADTOOLS Multimedia Version 18 and the Cloud

Lately we’ve had some customers inquire about using LEADTOOLS Multimedia 18 with the Cloud SDK. This is a perfect choice since the conversion of audio/video files is what originally sparked the creation of our Cloud SDK. LEADTOOLS Multimedia V18 gives distributed processing application developers the most flexibility, features and performance with the latest codecs, processing filters, and the option to use either DirectShow or Media Foundation. This combination sets up LEADTOOLS as the unrivaled choice for parallel processing of multimedia conversion tasks.

In case you’re new to the LEADTOOLS Cloud SDK, its greatest asset is the freedom it gives developers. While we include demos for OCR and Multimedia since those are the most popular kinds of distributed applications among our customers, the Cloud SDK is actually a completely independent framework. You don’t have to use LEADTOOLS Multimedia, OCR, Image Processing, or really any LEADTOOLS imaging feature. LEADTOOLS Cloud SDK simply makes it easy to divide any job amongst an unlimited number of networked computers and get your job done faster and less expensively.

Posted in Cloud | Tagged , , , , , , , , , , , , , | Leave a comment

LEADTOOLS Named a Finalist in Dr. Dobb’s Jolt Awards 2013

We just got word that LEADTOOLS has racked up yet another award! LEADTOOLS Imaging Pro was nominated for and won a finalist award for the Dr. Dobb’s Jolt Awards 2013. These prestigious annual awards from Dr. Dobb’s were given by a panel of independent judges who rigorously tested and evaluated over thirty software development kits.

Posted in Marketing | Tagged , , , , , , | 2 Comments