Skip to content

bitstars/android-lens-blur-depth-extractor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LensBlurDepthExtractor.js

This library parses images created with the new Android camera app mode Lens Blur and extracts the depth map.

Demo is here: http://clicktorelease.com/tools/lens-blur-depth-extractor

How to use

Include the library:

<script src="LensBlurDepthExtractor.js" ></script>

Instantiate an object:

var d = new DepthReader();

Load from a file:

d.loadFile( 
    'table.jpg', 
    function( src ) { /* src is base64 png source */ }, 
    function( error ) { /* error is a string */ } 
);

Or, load directly from an array buffer

d.parseFile( 
    arrayBuffer, 
    function( src ) { /* src is base64 png source */ }, 
    function( error ) { /* error is a string */ } 
);

License

MIT licensed

Copyright (C) 2014 Jaume Sanchez Elias http://twitter.com/thespite

Table picture by https://twitter.com/blurspline

http://www.clicktorelease.com

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 51.2%
  • HTML 48.8%