SMOD (Shape Model Object Detector) enables users to search an image for a pre-registered template, and obtain information on position, orientation and scaling of the objects found.
The source code is licensed under BSD 2-Clause License.
Line2Dup and ICP were ported then modified from sim3 branch of shape_based_matching project hosted by meiqua.
- Intel / AMD CPU that supports SSE4.2 instruction set.
- C++ 14 compatible compilers with OpenMP support.
- OpenCV 3 or above.
- CMake 3.1 or above.
- Create a directory named
build
inside the directory that contains this ReadMe file. - Open a terminal window,
cd
tobuild
directory created just before and type incmake ..
then pressENTER
key. - Wait until CMake completed its job, deal with errors when needed.
- Modify
CMakeCache.txt
if needed. You may want to change the value ofCMAKE_BUILD_TYPE
toRelease
orRelWithDebInfo
since defaultDebug
build is extremely slow due to various C/C++ assertion calls. - Type in
cmake --build . --target install
then pressENTER
key and wait. - If Doxygen was installed on you computer, run
doxygen
indoc
directory to generate HTML documentation. - Done.
Add the following lines in CMakeLists.txt
.
find_package(libsmod REQUIRED)
target_include_directories(your_project_name PRIVATE ${libsmod_INCLUDE_DIRS})
target_link_libraries(your_project_name PRIVATE ${libsmod_LIBS})
For details on data structures and functions, refer to generated HTML documentation.
See the sample code in /src/test/test.cpp
.