This is an interactive canvas like drawing library for OpenCV. Currently only C++ is supported. Note also that this is a beta version and there are opened issues.
For a user interface with interactive GUI without any external GUI toolkit dependencies.
- Line
- Arrow
- TextBox
- LineCrossing
- Quadrilateral
- Rectangle
- ShapesConnector
- LabeledShapesConnector
- All shapes are draggable
- All shapes are editable
- Support for create/modify/delete callbacks
Make sure these are installed first and that their executables are in your path:
- cmake - should already be installed since you built OpenCV by yourself.
- git (optional) - you can also download the sources from GitHub.
git clone https://github.com/sagi-z/CanvasCV.git
cd CanvasCV
mkdir build
cd build
cmake ..
make
cmake -DBUILD_TEST=ON ..
make
sudo make install
cpack -G DEB
sudo dpkg -i ./canvascv-1.0.0-Linux.deb
Assuming installation in '/usr/local', add to cflags '-I/usr/local/include' and to link flags '-L/usr/local/lib -lcanvascv'
Here is a minimal CMakeLists.txt example:
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
PROJECT(myapp)
FIND_PACKAGE(OpenCV 3.1.0 REQUIRED)
INCLUDE_DIRECTORIES(${OpenCV_INCLUDE_DIRS} "/usr/local/include")
ADD_EXECUTABLE(myapp main.cpp)
FIND_LIBRARY(CanvasCV_LIB canvascv "/usr/local/lib")
TARGET_LINK_LIBRARIES (myapp ${CanvasCV_LIB} ${OpenCV_LIBS})
make sure the include path and link path and library are set correctly.