All Projects → spite → Android Lens Blur Depth Extractor

spite / Android Lens Blur Depth Extractor

Licence: mit

Programming Languages

javascript
184084 projects - #8 most used programming language

LensBlurDepthExtractor.js

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

Extractor tool is here: https://clicktorelease.com/tools/lens-blur-depth-extractor

Demo is here: https://www.clicktorelease.com/code/depth-player/

Snapshot

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) 2016 Jaume Sanchez Elias http://twitter.com/thespite

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

http://www.clicktorelease.com

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].