Skip to content

Commit

Permalink
mv
Browse files Browse the repository at this point in the history
  • Loading branch information
nenad committed Sep 13, 2020
1 parent 65dacf6 commit c0b28fc
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 199 deletions.
5 changes: 2 additions & 3 deletions examples/webcam.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@
(2) initialize the lploc.js library with a pupil localizer
*/
var do_puploc = function(r, c, s, nperturbs, pixels, nrows, ncols, ldim) {return [-1.0, -1.0];};
//var puplocurl = '../puploc.bin';
var puplocurl = 'https://f002.backblazeb2.com/file/tehnokv-www/posts/puploc-with-trees/demo/puploc.bin'
var puplocurl = 'https://drone.nenadmarkus.com/data/blog-stuff/puploc.bin'
fetch(puplocurl).then(function(response) {
response.arrayBuffer().then(function(buffer) {
var bytes = new Int8Array(buffer);
Expand Down Expand Up @@ -150,4 +149,4 @@ <h3>Using pico.js and lploc.js for real-time localization of eye pupils</h3>
<p><center><canvas width=640 height=480></canvas></center></p>
</div>
</body>
</html>
</html>
4 changes: 2 additions & 2 deletions lploc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* This library is released under the MIT license, contact @tehnokv for more details */
/* This library is released under the MIT license, see https://github.com/nenadmarkus/picojs */
lploc = {}

lploc.unpack_localizer = function(bytes)
Expand Down Expand Up @@ -116,4 +116,4 @@ lploc.unpack_localizer = function(bytes)
we're done
*/
return loc_fun_with_perturbs;
}
}
4 changes: 2 additions & 2 deletions pico.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* This library is released under the MIT license, see https://github.com/tehnokv/picojs */
/* This library is released under the MIT license, see https://github.com/nenadmarkus/picojs */
pico = {}

pico.unpack_cascade = function(bytes)
Expand Down Expand Up @@ -197,4 +197,4 @@ pico.instantiate_detection_memory = function(size)
we're done
*/
return update_memory;
}
}
12 changes: 5 additions & 7 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,25 @@
A face-detection library in 200 lines of JavaScript.

* approximately 200 lines of pure JavaScript
* see <https://tehnokv.com/posts/picojs-intro/> for details
* real-time detection demo available at <https://tehnokv.com/posts/picojs-intro/demo/>
* see <https://nenadmarkus.com/p/picojs-intro/> for details
* real-time detection demo available at <https://nenadmarkus.com/p/picojs-intro/demo/>

## lploc.js

A tiny JavaScript library for real-time localization of eye pupils.

* see <https://tehnokv.com/posts/puploc-with-trees> for details
* real-time demo available at <https://tehnokv.com/posts/puploc-with-trees/demo>
* see <https://nenadmarkus.com/p/puploc-with-trees> for details
* real-time demo available at <https://nenadmarkus.com/p/puploc-with-trees/demo>

## Examples

The folder `examples/` contains a webcam and image demo that demonstrate how to use the libraries.
Use these files as documentation.

The folder `wasm/` demonstrates how to compile the original `pico` to WebAssembly.

## License

MIT.

## Updates and similar projects

Follow <a href="https://twitter.com/tehnokv">@tehnokv</a> on twitter or visit the blog at <https://tehnokv.com/posts/>.
Visit <https://nenadmarkus.com>.
15 changes: 0 additions & 15 deletions wasm/build.sh

This file was deleted.

109 changes: 0 additions & 109 deletions wasm/index.html

This file was deleted.

46 changes: 0 additions & 46 deletions wasm/main.c

This file was deleted.

15 changes: 0 additions & 15 deletions wasm/readme.md

This file was deleted.

0 comments on commit c0b28fc

Please sign in to comment.