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
buildinside the directory that contains this ReadMe file. - Open a terminal window,
cdtobuilddirectory created just before and type incmake ..then pressENTERkey. - Wait until CMake completed its job, deal with errors when needed.
- Modify
CMakeCache.txtif needed. You may want to change the value ofCMAKE_BUILD_TYPEtoReleaseorRelWithDebInfosince defaultDebugbuild is extremely slow due to various C/C++ assertion calls. - Type in
cmake --build . --target installthen pressENTERkey and wait. - If Doxygen was installed on you computer, run
doxygenindocdirectory 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.