Archived - How to get JavaScript up and running after the RealSense R3 release.

The Intel® RealSense™ SDK has been discontinued. No ongoing support or updates will be available.

What does this blog post cover? 
It covers how to get JavaScript support up and running with Intel RealSense RealSense R3 SDK and runtime.

Who is this for? 
This blog post is for people who have downloaded and installed the latest  F200 DCM, RealSense R3 SDK releases of RealSense and you wish to use JavaScript.  If do not wish to use JavaScript or you have not upgraded to R3, then this blog post is not relevant to you.

A very brief history
Intel needed to decouple JavaScript direct support out of the latest R3 update. This is only temporary and I assure you, Intel is fully committed to bringing it back. For more information, please read Eric Mantion’s blog post.

What do I need to download?
You will need to download the external JavaScript Zip file

What’s in the JavaScript zip file?
Inside you will find three folders and a couple of license type readme files.  

  • Doc.v4 ontains the standard documentation that gets distributed with the SDK. This documentation corresponds to the R2 release

  • Framework.v4 ontains sample applications and the supporting JavaScript files.

  • Hotfix ontains a hotfix. *PLEASE NOTE*This is an optional hotfix that is only included in this download as a convenience to special case situations.  The hotfix has no impact on the JavaScript source code. In most cases, users will not have any need to run this. 

Now that the zip file has been extracted, what do I do?
If you are upgrading from a previous version of the RealSense SDK, it’s highly probable you had to uninstall RealSense R2 and chances are the JavaScript files you had been referencing into your HTML files have been removed. This of course is if you didn’t manually move them in the first place.  The easiest method to getting around this would be to store these new JavaScript files in a convenient location on your hard drive, open up your existing HTML files, and re-reference in these files from their new location on your hard drive.

Next we are going to take a look at the sample HTML applications that have been provided. Navigate into the Framework.v4 folder and double click on one of the samples.  Chances are you will see a screen that looks like the following.   


Take note of the message above the start button.  It’s instructing you to download an SDK runtime component that is specific to (in this case) the blob viewer.  You will need to download the executable run the installer.  When the installation is complete, refresh the page.  The message and URL should now be gone and you can run the sample application.  

This URL will most likely appear on each of the four JavaScript samples.  *PLEASE NOTE* that when you attempt to download the runtime setup executable, it will be downloading the same file and Windows will want to increment the filename by using the familiar (x) naming convention.  Just allow this name to be created and download the file again.  There is magic going on and you have to have faith that it works.  

Possible issues
When I was trying this yesterday, I had R3 of everything installed.  While running the R2 runtime installation, I was prompted with the dialog box that allows you to either re-install, modify or remove the existing app.  There didn’t seem to be a way around this, so I canceled the install.  I then uninstalled R3 and found any and all traces of it left behind on my computer. Cleaned out registry settings that were left behind.  At this point I was fairly confident I had a clean system.  I then re-ran the R2 install, then I re-installed R2.  Once I did this, my JavaScript samples started working.

 

Good luck!

For more complete information about compiler optimizations, see our Optimization Notice.

3 comments

Top

In this demo,when I click the start button, It would say Init failed: {"error":"error opening websocket"},how can I fix it?

MAD\rwblack's picture

Hi Geoffrey

I'm afraid it does not support Facial Recognition. 

Cheers.
Rick

Hi guys,

I got a question. Is it possible to do Facial Recognition with the Intel RealSense F200 in Javascript ?

Like in this link:

https://software.intel.com/sites/landingpage/realsense/camera-sdk/2014gold/documentation/html/index.html?manuals_face_recognition_data.html

Thanks in advance. ;)

 

Add a Comment

Have a technical question? Visit our forums. Have site or software product issues? Contact support.