openbr @ docker

Hi,

just testing face recognition and face detection, so i came over openbr.

In order not to mess up my system i build it via docker, that what i like to share.

building:

docker build -t openbr openbr/.

running (enables webcam + xserver):

docker run -t -i --privileged -e DISPLAY=$DISPLAY -v /dev:/dev -v /tmp/.X11-unix:/tmp/.X11-unix openbr $SHELL

And last  but not least the docker file:

FROM ubuntu:16.04
RUN apt update && apt install -y git build-essential cmake cmake-curses-gui software-properties-common
RUN add-apt-repository --yes ppa:xqms/opencv-nonfree && apt update && apt install -y libopencv-dev qt5-default libqt5svg5-dev qtcreator libopencv-nonfree-dev
RUN cd && git clone https://github.com/biometrics/openbr.git && cd openbr && git checkout v1.1.0 && git submodule init && git submodule update
RUN apt upgrade -y
RUN cd && cd openbr && cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/opt/openbr_v1.1.0
RUN cd && cd openbr && make -j4
RUN cd && cd openbr && make install
# openbr installed under /opt/openbr_v1.1.0

Enjoy.

Advertisements
This entry was posted in Docker, Uncategorized and tagged , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s