8000 GitHub - bshaffer/dlib-elixir: dlib for Elixir
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

bshaffer/dlib-elixir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

dlib-elixir

dlib for Elixir

Requirements

  • Dlib
  • Elixir

Compile dlib.so

# ERLANG_PATH should be the path to a directory containing "erl_nif.h"
$ export ERLANG_PATH=/usr/local/lib/erlang/usr/include

# DLIB_PATH should be where you've installed dlib
$ export DLIB_PATH=dlib-19.4

$ cc -fPIC \
  -I$ERLANG_PATH \
  -I$DLIB_PATH \
  -Wl,-undefined \
  -Wl,dynamic_lookup \
  -shared  \
  -std=c++11 \
  -lstdc++ \
  -ldlib \
  -o dlib.so dlib.cpp

Usage

c "dlib.ex"

// The first argument is a matrix of pixels.
// A pixel is a list of integers [r,g,b]
Dlib.frontal_face_detector([
  [
    [255,255,255],
    ...
  ]
])

About

dlib for Elixir

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0