Skip to content

annotatorproject/annotatorlib

Repository files navigation

Annotator Library

Library for labeling and annotating images.

=================

Stories in Ready Build Status Build Status Windows Coverage_Status Coverage Status Codecov Coverity Scan Build Status Documentation Gitter

Quick start

First install CMake, Qt5 and a c++11 compiler (gcc 5).

sudo apt-get install libboost-system-dev libboost-filesystem-dev libpoco-dev libmysqlclient-dev libmongo-client-dev

Build LibPoco

git clone https://github.com/pocoproject/poco.git
cd poco
sed -i 's#mysqlclient_r#mysqlclient mysqlclient_r#g' cmake/FindMySQL.cmake
cd build
cmake ..
make -j2

Then build.

git clone https://github.com/annotatorproject/annotatorlib
git submodule update --init --recursive
cd annotatorlib
mkdir build
cd build
cmake -DPoco_DIR= ../../poco/build/Poco ..
make

Add PascalVoc storage support.

cd annotatorlib/source/storages
git clone https://github.com/annotatorproject/annotatorstorage_pascalvocxml
cd ../../build
cmake ..
make

Conan Build on Windows

First install Visual Studio, CMake, Git and Conan.

Open Git Bash:

git clone https://github.com/annotatorproject/annotatorlib
git submodule update --init --recursive
cd annotatorlib
mkdir build
cd build
cmake .. -G "Visual Studio 14 2015 Win64" -DCMAKE_BUILD_TYPE=Release -DOPTION_CONAN_PACKAGES=1
cmake --build . --config Release

Build coverage

git clone https://github.com/annotatorproject/annotatorlib
git submodule update --init --recursive
cd annotatorlib
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Coverage ..
make annotatorlib_coverage